upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/coder.md
AgeCommit message (Collapse)Author
11 daysdocs: measure the story-archive compressor and the mission state tablesToeesh Chaudhary
Two new format pages, both measured over the user's own copy with no payload stored. docs/coder.md - the 51.5 MB compressed mass in story000_script.rpf. Two interleaved populations (105 zlib blocks, 767 unidentified). Entry framing is u16 tag + 6 header bytes, zero pad, payload at align16(entry+8) - confirmed 10/10 on pad length and %16 alignment, which is why earlier scans that assumed the entry start found nothing. A 32-value tag alphabet that correlates with nothing. The payload is deflate-shaped but proprietary (popcount correlation +0.632 against zlib-9's +0.676, plane bias +0.0083 vs +0.0138; lzma -0.065 and bz2 -0.432 are excluded, and AES is excluded by the ~40 sigma plane bias). Codes are variable-length and LSB-first: 7 and 8 bit lengths measured from the bit spacing of single-symbol runs. No table is stored, so the symbol->length array is static in the executable; the Kraft constraint narrows it to a 129-140 byte vector of 7s and 8s, most likely n7=116 + n8=24. docs/mission_logic.md - the mission containers are state machines, not instruction streams: 32-byte records keyed by joaat, 40,804 of them across 2,309 containers. Records the details that cost a false start (the band field is a counter, not zero; offsets are file-absolute for most records), the 64-byte pool element carrying world transforms, the case-folding behaviour of joaat (340/340 folding vs 91/340 case-sensitive, so lookups must fold), and the flow shapes. 113 identical-state-set clusters cover 82.4% of the files, so naming one cluster names dozens of files. docs/README.md gets both rows.