Skip to content

77. Base slot 0 is a tree of named nodes, and level 1 names the state variables

The one section the emitter could not touch, and the last one whose extent was known while none of its contents were. coverage counted its bytes because the 0xFEED frame states its own length, so a Harmony One config could report 100% attributed with 277 bytes inside it understood only as "this many".

What opened it was a sample whose first node is not called Root. Section 76 found an arch 9 safe mode container in the 525's firmware region, and the first thing it contradicted was FRAME_PROLOGUE, a constant this project had carried for months:

a7 08 00 00 00 00 00 R o o t

That is not a prologue. It is the first node, which in every config anyone had happens to be named Root with both its fields zero. In the safe mode container the first node is CurrentActivityState_PowerOff_1, and Root is the third.

The reading

the frame
+0x00  u16   0xFEED
+0x02  u24   length, counted from the cookie, terminator excluded
+0x05        nodes, packed end to end, up to +length
+len   u16   0xBEEF

a node
+0x00  u8    0xA7
+0x01  u16   4 + the name's length
+0x03  u16   level
+0x05  u16   index
+0x07  char  name[]

The u16 at +0x01 is what makes the walk self checking: it counts the two fields and the name and not the tag, so Root states 8 and State states 9, which is 4 + 4 and 4 + 5. It was sitting in the published layout the whole time as the second and third bytes of a fixed prologue.

Widened on 9 August 2026. The frame's length was published here as a u16 at +0x02 with the byte at +0x04 a spare that is "zero in every sample". Logitech's own client reads three bytes there, docs/host-client.md, and it is right that the sample evidence proves nothing either way: the largest name tree in the corpus is 2326 bytes, twenty eight times below the 16 bit boundary, so the high byte would be zero under both readings. Both codecs take the wider one, because two readings that cannot be separated by any available sample should be settled by which one survives a sample nobody has. This is client sourced and stays marked as unconfirmed, and tests/test_gspm.py asserts the corpus statement rather than the claim: the byte is zero in every container, the narrow read equals the wide one in every container, and the largest tree is pinned so a container that could tell them apart fails there instead of being absorbed.

That is the third time here that a byte beside a length turned out to belong to it, after the font header's first glyph code in section 78 and the wide tagged list in the pitfall list. The rule those three make is already written down: infer a structure's form from the byte that states it, and when a byte next to a length is always zero, suspect the length.

The closures, all three corpus wide

  • The nodes tile the frame exactly, in every framed container, landing on the byte the stated length names with nothing left over and nothing short. nameNodes returns undefined rather than a partial list when they do not, which is the same discipline glyphAt uses.
  • Level 0's indices are a permutation of 0..n-1 in every container, whatever order the nodes appear in. In the safe mode container the level 0 nodes are State at index 1 and Root at index 0, in that file order, so the index is the node's place and the file's order is free.
  • Every level 1 index is inside base slot 13's state variable count, in every container. Not loosely: the largest is 93 of 94 on a Harmony 700, 73 of 74 on a 600, 44 of 46 on a One, 19 of 21 on the bench 525. So level 1 names base slot 13's table, entry by entry, which is the designer's prior in harmony-decompiler discussion #1 made executable for the first time.

Level 2 exists on arch 8 and arch 9 and holds a small menu, AssistantMenu and Show under HarmonyAssistant, with indices that run within their own level.

What it rules out

That Root is structural. Nothing in the frame distinguishes it; it is a name at level 0 like any other, and a reader that requires it refuses a container the remote accepts.

That base slot 0 needs a firmware. It was read from four architectures of data and one sample that broke the pattern, with no arch 12 or arch 14 code opened at all. Sixteen of the nineteen containers make coverage reports carry nodes, and the two that do not are the One's safe mode config, whose frame is the degenerate empty one.

What would falsify it

A frame whose nodes do not tile it. A level 0 index that repeats or skips. A level 1 index at or above base slot 13's count, which would mean the two tables are not the same table. A name containing a byte that is not text, which would suggest the field is not a name.

Where it lands

  • docs/config-format.md: base slot 0.
  • packages/codec/src/sections.ts: nameNodes, and the constants beside it.
  • packages/codec/src/emit.ts: base slot 0 is rebuilt from fields, so every owner the accounting claims is now rebuilt and what stays copied is only what nothing claims: 22 bytes of a Harmony One config, 39 of a 600.
  • packages/codec/test/sections.test.ts, including the negative: a node length one byte out stops the frame tiling.

Section 76 | the archive | section 78. Section 77 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.