78. A font set states its first glyph code, and the count is not where the architecture says¶
Section 46 read the three byte header above a glyph pointer array as height, then a count and a
spare byte that swap places by architecture, and recorded under "what is not established" that
which of the two holds the count is measured rather than explained. It is explained now, and
the explanation makes the other byte a field rather than a constant:
+0x00 u8 glyph height in pixels
+0x01 u8 the first glyph code
+0x02 u8 the glyph count
+0x03 u24 glyph[count]
so a code's index is code - first, and section 46's "the code minus one" is that formula with the
value every config in the corpus happens to carry.
The sample that could show it¶
Every container anyone here had starts its sets at code 1, which is precisely why the byte read as a
constant: a field whose value never varies is indistinguishable from padding. The arch 9 safe mode
container from section 76 is the first sample where it varies, and it varies to a number that names
itself. Its four sets declare (32, 91), (32, 90), (72, 50) and (32, 90), and 32 is the ASCII
space.
Its strings are English. Rendered through glyph[code - 32], the 54 inline strings of its
screen programs come out as USB CONNECTED, Update Successful, E0 : Error Startup, Entry.
Rendered through glyph[code - 1] none of them resolves at all, because a code of 122 runs past the
end of a 91 entry array. 54 of 54 against 0 of 54.
Two independent structures agree. The glyphs a set ships are exactly the characters that set's own strings use, computed from the pointer array on one side and from the screen programs on the other:
font 0 codes used .0:ABCDEFGHILMNOPRSTUW\abcdefghiklmnopqrstuvwyz
glyphs present .0:ABCDEFGHILMNOPRSTUW\abcdefghiklmnopqrstuvwyz
font 3 codes used :ACDcehiostvy
glyphs present :ACDHcehiostvy
One spare glyph in font 3 and none at all in font 0. That is section 46's "a config ships only the glyphs its own text uses" restated as an equality, and it cannot come out that way under a wrong first code.
The array ends where the count says. Entry 90 of set 0 is the last plausible address and entry
91 onwards reads as glyph data, so 91 at +0x02 is the count and the pointer array is exactly that
long. A reading with 122 entries, which is what indexing by code - 1 would need, runs into the
glyphs.
This also gives the arch 9 glyph decoder its first readable text. Section 63 derived the two bit packing from the encoder's own regularities and recorded that it could not run section 46's third closure. The reason it gave was wrong, and section 112 caught it: it said the one arch 9 config had no inline string codes at all, and that config draws 1435 of them in 179 strings and selects a font 244 times. What could not run the closure was the decoder, which refused an arch 9 glyph outright at the time. All 1435 land on a non-NULL glyph, so the closure holds on arch 9 as well.
And the count is not keyed on the architecture¶
The same reading of +0x02 immediately falsifies the other half. The One's own safe mode
container carries the shape section 46 assigned to arch 8, 9 and 14: (14, 1, 46), a 46 glyph set
with the count at +0x02, on an arch 12 container. Read with the count at +0x01 it is a set of
one glyph, and its 47 inline strings resolve 0 of 47 instead of 47 of 47.
So the rule is a property of the container, not of the remote:
read the count at
+0x02, unless that byte is zero, and then the count is at+0x01and the first code is 1.
That is a discriminator rather than an explanation, and it is stated as one. What is still not
known is why arch 12 user configs put the count in the first code's byte with a zero below it,
and the firmware does not settle it: the arch 14 renderer at 0x185E4 subtracts a literal 1 rather
than the header byte, and it never bounds a code with the count at all. So on that architecture
both fields are advisory to the firmware and load bearing to a reader.
5437 bytes, in one byte¶
The arch 12 safe mode container was 39.1% attributed, with 5437 unaccounted bytes that appeared
in no user config. CLAUDE.md recorded a u8 tag; u8 n; u16 v[n] walk that tiled them to within a
byte and warned it should not be believed on that basis. It should not have been: the whole
remainder was the 45 glyphs and 135 pointer bytes of a set the reader had cut to one entry.
| before | after | |
|---|---|---|
| accounted | 3465 of 8902 | 8870 of 8902 |
| 39.1% | 99.6% |
The lesson is the one section 46 recorded and this section had to apply again. Section 46's correction was that the header's first byte is a height and not a count; the same paragraph then published two more fields whose meanings had been assigned by which value they happened to hold. When a field's value never varies across the corpus, the corpus cannot tell you what it is, and the honest move is to say so and go looking for the sample where it varies. That sample existed, and it was in the firmware region of a remote nobody had connected.
What would falsify it¶
A container whose sets start at a code other than 1 and whose strings do not resolve through
code - first. A set whose pointer array is longer or shorter than the count at the byte this rule
picks. An arch 12 user config with a nonzero byte at +0x02, which would break the discriminator
outright.
Where it lands¶
docs/config-format.md: base slot 7.packages/codec/src/font.ts,fontSetHeaderandglyphOf;src/harmony/gspm.py,font_set_header, mirrored.packages/codec/test/screen.test.tsandtests/test_interpreter.py, including the two negatives: the old reading resolves 0 of 47 strings on the One's safe mode container and runs the arch 9 codes off the end of their set.- The arch 9 safe mode container joins the corpus as a sample,
h525_safemode_ahcm, and stays out of the corpus wide claim lists. Section 76 kept it out over six contradictions; section 77 read one and this section reads four, so what is left is base slot 1's extent and the log area's range.
Section 77 | the archive | section 79. Section 78 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.