Skip to content

272. What a base slot 9 entry corresponds to: a fixed prefix, one per activity, and one more

Not devices and activities together, which is the reading docs/config-format.md recorded as supported by the counts and not proven. A device never has an entry at all.

The table has three populations, and the split is made by asking which entries the configuration's own code ever selects, 0x1F with an operand high byte of 0xFF, section 120.

population what it is how many
the configuration never selects it a contiguous prefix, per model 7 on arch 8 and 12, 5 on arch 14, 4 on arch 9
one activity's key map what activities already reports as its set one per activity
the one left over selected, and carries an enter handler as an activity's does exactly one

Over the fifteen user configurations on four architectures: the never selected entries are a prefix in 15 of 15, the selected ones number activities plus one in 15 of 15, and there is exactly one that is selected and is not an activity's in 15 of 15. The prefix length depends only on the architecture and moves with neither the device count nor the activity count.

Why the old reading looked right, which is the instructive part

It came from one owner's notes: a six device installation whose table has eleven entries. That container is h700_config, it has five activities, and its prefix is five, so 5 + 5 + 1 = 11 and 6 + 5 = 11 are the same number. Scored across the corpus:

reading fits
entries = devices + activities 2 of 15, and both are the Harmony 700 pair the reading came from
entries = a per model prefix + activities + 1 15 of 15

The two Harmony 700 configurations are one sample rather than two, since they differ in a single binding, so the old reading fits one installation, the one it was fitted to. That is the shape a rule fitted to its own evidence takes, and the corpus had 14 counterexamples available the whole time.

The prefix is never installed by the configuration, which is a separate result

Not one 0x1F in any of the fifteen configurations selects an entry below the prefix: 0 of 93 prefix entries across the corpus. So those entries exist, are pointed at by the table, and nothing the configuration does reaches them. Two readings, and neither is established here: the firmware installs them itself, by an index it holds rather than one a configuration states, or they are dead weight the generator emits for every remote of a model. The prefix being per model rather than per configuration favours the first, since the same seven entries appear in a Harmony One holding one device and in one holding five.

That matters for a writer more than the numbering does: a configuration built from nothing has to carry the prefix its model expects, and the number of entries it may then add is one per activity plus one. Getting the count wrong is the failure mode base slot 15 already has, where the firmware replaces a group of the wrong length with a compiled in default and reports nothing.

The one left over

It is selected in all fifteen, and in all fifteen it carries a tag 1 handler, which is the enter list an activity's own entry has. On the factory Harmony One configuration it is selected by a list that no mode, page or other entry runs, so it is installed from the boot chain, and it binds the Devices key. That is consistent with its being the map in force when no activity is running, and this section does not claim it: what is measured is the count, the selection and the enter handler. Whether the idle map is one thing on all four architectures is unread, and its bindings send infrared codes in 6 of the 15 and not in the other 9, which a single reading would have to explain.

What would falsify it

A user configuration whose selected entries do not number one more than its activities; a prefix entry that some 0x1F selects; a prefix that is not contiguous; or a prefix whose length differs between two configurations of one architecture.

Where it lands

  • docs/config-format.md, base slot 9, which carried the dead reading as "not established".
  • packages/codec/src/inventory.ts: handlerSetRoles, with HandlerSetRole.
  • packages/codec/test/inventory.test.ts: the three counts, the prefix lengths per architecture, and the score of the old reading against the new one, which is what stops it being written again.

Section 271 | the archive | section 273. Section 272 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.