16. The Harmony 700 pair, and what a controlled sample buys¶
Both of dmrzzz's Harmony 700 dumps are in the corpus, so the corpus has its first controlled pair: two configs of one remote, with the contributor's own written account of what differs. Everything else available is either two different remotes, where nearly everything differs, or the four arch 8 configs, which differ from each other in 73 to 84 percent of their bytes with no record of why.
Source, with the permission explicit in it, is https://github.com/trelowney/harmony-decompiler/issues/9. The issue body of 2026-08-04 carries the current dump; a comment 22 minutes later carries an older one recovered from the contributor's version control, with the diff of the notes file they keep beside the dumps. Both are posted under "I have had a look at what is in it and I am happy to publish it".
Which file is which, and this is now in question. The comment states its attachment is the
older dump, and that file's own timestamp is 2024-10-12 against 2026-08-04 for the other, so
harmony700-2.EZHex was taken as the earlier of the two. Everything below is stated in that
direction, older to newer.
Section 21 contradicts it. Each config carries its own build timestamp, and they read 2021-07-31
for harmony700.EZHex against 2023-04-23 for harmony700-2.EZHex, which is the opposite order. Both
dates read a day earlier until section 322, which moved them and not their order.
The discrepancy is unresolved and section 21 sets out what does and does not bear on it. Nothing
below has been rewritten, because the direction here rests on the contributor's own statement, which is
better evidence about provenance than a byte is. But every "older to newer" in this section is
provisional until that is settled, and the direction can be read the other way throughout.
What changed, in the contributor's words¶
Their notes diff, abbreviated to the lines that moved. This is an activity called "Watch TV" and one called "Watch Bluray" on a six device installation:
* Netflix = (Receiver: InputAv1, TV: Netflix)
+ * NintendoSwitch = (Receiver: InputHdmi4, TV: InputHdmi2)
* Standard Buttons
+ * UpArrow = Receiver: InputAv1
* Additional Buttons
- * Netflix (Sequence)
+ * Nintendo Switch (Sequence)
+ * Home = TV: Home
- * Home = TV
+ * TV Vol+ = TV: VolumeUp
+ * TV Vol- = TV: VolumeDown
So: one new sequence, one new standard button assignment, two new additional buttons, one respecified, one sequence dropped from the additional buttons while staying a sequence, and some repositioning in the Bluray activity. No device added, removed or changed.
The owner's own caveat is worth carrying: "Accuracy not guaranteed, but this comes from an svn history". The notes are a record of intent rather than a dump of the config, so they say what was meant, and the bytes say what was emitted.
One thing does not follow the description. All of that was added, and yet the newer config is 58 bytes smaller. Whatever the generator does, config size is not a running total of what the configuration contains.
Establishing that it is the same remote¶
Four independent agreements, none of which a different remote would produce:
- The XML headers are byte identical apart from
BINARYDATASIZE. Same skin 66, same flash0x15:0x1C, same board0.0.0, same protocol 14, sameCHECKSUMvalue of 15. - The same
version word3394 in section slot 1. - Section slot 0 is byte identical, all 2328 bytes. That is the named state variable tree, so the two configs describe the same six devices with the same roles, the same input counts and the same delay settings. This is the decisive one: it makes them the same installation rather than merely the same model.
- The key table is byte identical, all 163 records including their
indexfields, so nothing was remapped to a different button.
Where the change is¶
The payload shrank by 58 bytes. The layout moved by a constant either side of one section, and only one section changed size:
| Base slots | shift, older to newer | note |
|---|---|---|
| 0 to 8 | 50 bytes earlier | so the region ahead of slot 0 lost 50 bytes |
| 8 | shrank by 8 | 3600 to 3592 bytes, the only section whose size changed |
| 9 to 17 | 58 bytes earlier | the 50 above plus slot 8's 8 bytes |
Per section, after realigning for those shifts:
| Slot | bytes | differing | reading |
|---|---|---|---|
| 0 | 2328 | 0 | the state variable tree, untouched |
| 1 | 7 | 0 | the architecture record |
| 2 | 8 | 0 | |
| 3 | 14 | 7 | |
| 4 | 1193 | 1 | one byte |
| 5 | 19 | 7 | a pointer array, all six entries +50 |
| 6 | 74011 | 938, 1.3% | |
| 7 | 53 | 21 | a pointer array, all 17 entries +50 |
| 8 | 3592 to 3600 | rewritten | diverges at +0x22 and does not realign |
| 9 | 2920 | 90% | |
| 10 | 24113 | 40% | a pointer array of 8037 entries, 14 distinct deltas |
| 11 | 17135 | 40% | a pointer array, all 5711 entries +50 |
| 12 | 28 | 16 | a pointer array, all nine entries +50 |
| 13 | 290 | 32% | |
| 14 | 215 | 19% | |
| 15 | 28 | 9 | a pointer array, all nine entries +58 |
| 16 | 1 | 0 | |
| 17 | 598324 | 89% | the bulk |
The change is not localised, and it is worth being precise about that, because the size table above invites the opposite reading. Only slot 8 changed size. By content the config splits three ways:
- Untouched. Slots 0, 1, 2 and 16, the whole header apart from
end_addrand the pointer table, and the entire key table. Slot 4 differs in one byte of 1193 and slot 6 in 1.3 percent. - Displaced only. The six pointer arrays, whose entries moved by exactly the layout shift.
- Rewritten wholesale, at unchanged size. Slot 9, 2920 bytes and 90 percent different. Slot 17, 598324 bytes and 89 percent different. The 249 KiB region ahead of slot 0, 46 percent different, which no pointer in the table addresses. None of these is explained by displacement: read as 2, 3 or 4 byte values, almost none of their values moved by the layout shift, so this is different content rather than the same content at new addresses.
Slot 8 belongs to a fourth case, changing both size and content: it diverges 34 bytes in and never resynchronises, so it was regenerated rather than patched.
That corroborates something already recorded here from the arch 8 set, where three configs
generated within about half an hour of each other differ in 73 to 84 percent of their bytes:
Logitech's
generator does not emit minimal diffs. A pair like this one narrows the search enormously
compared to two unrelated configs, but it does not hand over a small edit. The consequence for the
application is the one already in docs/plans/002-the-roadmap.md: an editor here must make minimal diffs against
an existing config, because reproducing what Logitech's generator would have emitted is not
achievable.
That the six arrays hold real pointers¶
The pair is what turns "these sections fit the shape of a pointer array" into a fact. In five of
the six arrays, every entry moved by exactly the layout shift, +50 or +58 according to which
side of slot 8 its target sits on. The shift is known independently, from the container's own
pointer table in the header, so this is two unrelated parts of the file agreeing. A section that
merely happened to satisfy width + 3 * count == length would have no reason to.
Slot 10 is the exception and it argues the same way. Its 8037 entries moved by fourteen different deltas, not one, because they address the 249 KiB region ahead of slot 0 that was rewritten rather than displaced. A table of offsets into a rebuilt region is exactly what that looks like; a coincidence would not have produced a small set of consistent deltas either.
The pointer width is three bytes, which is a deliberate saving rather than an oddity: 24 bits covers a config region that tops out around 1.4 MB, and at 8037 entries a fourth byte would cost 8 KiB in slot 10 alone.
One pointer table across four architectures¶
Recognising the arrays made an alignment visible. Arch 9 and arch 14 carry arrays at slots 5, 7, 10, 11, 12 and 15. Arch 8 and arch 12 carry them at 5, 7, 11, 12, 13 and 16, and those are precisely the architectures whose slot 8 is NULL. So the table is one table with a NULL inserted at slot 8 on arch 8 and arch 12:
| Architecture | slots | insertions | trailing NULL lands at |
|---|---|---|---|
| 9, 14 | 19 | none, the base layout | 18 |
| 8 | 20 | NULL at 8 | 19 |
| 12 | 21 | NULL at 8, real section at 18 | 20 |
Three fingerprints agree, which is what makes this an alignment rather than arithmetic that happens to fit:
- the six pointer array slots all map to base slots 5, 7, 10, 11, 12, 15;
- the single one byte section maps to base slot 16 on all four architectures;
- base slot 18 is NULL on all four.
Each holds in every sample: two arch 14 configs, two arch 12, four arch 8, one arch 9.
This is the most useful consequence in this section. The format work is done on arch 14
because there every config byte read passes through the single SPI primitive at 0x1B9AC, while
the remote most people own is the arch 12 Harmony One. Section labels now transfer between them
through gspm.base_slot and gspm.arch_slot rather than through a second investigation. It also
means the arch 9 sample, which was kept only as a control, is a full participant: it uses the base
layout unmodified.
What would falsify it: an architecture whose pointer arrays or one byte section land somewhere the
mapping does not predict. gspm.base_slot raises for an architecture whose insertions have not
been established rather than assuming none, so arch 7, 15 and the rest are refusals and not silent
wrong answers.
Three negatives, which are the most solid thing here¶
A described change plus an unchanged structure rules things out, and ruling out is worth as much as a label.
The key table does not hold button assignments. It is byte identical between the two dumps,
all 163 records including their middle field, while the described change reassigns UpArrow, adds
TV Vol+ and TV Vol-, and respecifies Home. Whatever LWJL is, it is not the button to action
map. That sharpens the caution in section 8 and it matters for the button mapping problem
harmony-decompiler is blocked on: the table is a property of the remote, not of the configuration
loaded onto it.
Nothing indexed by the six pointer arrays is per button or per sequence. Every one of the six counts is identical across the pair: 6, 17, 8037, 5711, 9 and 9. Adding a sequence and three button assignments changed none of them. Whatever those thousands of entries address, it is not allocated per assignment.
No device data moved. Slot 0, the named state variable tree, is byte identical across all 2328 bytes, consistent with a change that touched no device. This is the pair's calibration case for slot 0: a change that should not affect it did not.
A lead on slot 8, and why it stays a lead¶
Slot 8 is the only section that changed size, and the change was button assignments plus one
sequence, so per assignment records are the obvious candidate. Its first bytes support it: a
leading 0x0B, then three byte groups whose third byte is 0x7E or 0x7F:
0b 12 00 7e 02 00 7f 03 00 7f 04 00 7f 05 00 7f 0e 00 7e 32 01 7f ...
Which is the shape of an opcode with a 16 bit operand, and harmony-decompiler reports a config interpreter in the 525's firmware behaving as an accumulator machine, so action lists as bytecode is their reading too.
It stays a lead, and deliberately so. Slots 9 and 17 were rewritten just as thoroughly without
changing size, so slot 8 is singled out by its size change alone, which is weak evidence on its
own. Naming a section from what its bytes look like is the failure mode
.claude/skills/trace-section/SKILL.md exists to prevent. The label has to come from the firmware
routine that reads the pointer, and on arch 14 those routines are enumerable through the SPI
primitive at 0x1B9AC. Slot 8 is now the first one to go after.
What the pair also settled¶
The version word in section slot 1 did not move: both dumps read 3394, across roughly two years
and a configuration change. So it is not a timestamp and not a revision counter for the config
itself.
Section 15 | the archive | section 17. Section 16 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.