222. The first write, and the erase block measured rather than believed¶
On 30 August 2026 this project wrote to a Harmony remote for the first time. The spare Harmony One,
one 64 KiB erase block at 0x040000, containing its own bytes, unchanged. Danny authorised it
after the dry run passed. packages/usb/bin/rehearse-block.ts --commit performed it, behind
HARMONY_ENABLE_WRITES=1 and HARMONY_FIRST_WRITE=1.
It succeeded, and the configuration on the remote afterwards is what it was before.
Why a write that changes nothing is the right first one. Any edit asks two questions at once, did the write land and was the edit correct. This asks the first alone, and its correct answer is known before it starts: the block must read back equal to the dump it came from. There is no interpretation step and no reader to be wrong.
What it establishes¶
The transfer derived in section 175 is right, end to end, on hardware. An announce carrying a 24 bit address and a 16 bit count, a run of data packets nothing answers, and a done acknowledged once. Two transfers of 32768 bytes, 1048 reports in total. That derivation came out of the firmware and had never been sent to a remote.
The erase takes exactly one 64 KiB block, and this is the first time anything measured it.
ERASE_BLOCK_SIZE has been client sourced since 9 August 2026, and section 221 narrowed it the day
before to what Logitech believed about the part the remote names. ERASE_FLASH carries no count, so
the only way to know what it destroyed is to look either side: the blocks at 0x030000 and
0x050000 were read before the erase and again after it and are byte identical. So the constant is
measured now, on this part, and the rail's provenance changes from the client's word to a
measurement.
No pacing was needed. writeFlash defaults to no delay between data packets, on the derivation
in section 175 that the firmware drains its staging buffer in the same service call. Section 175 was
careful to say that the silicon side was unread, the endpoint's buffer descriptor in particular,
so the derivation covered the firmware and not the peripheral. 1048 reports went out back to back and
every byte landed, which is an empirical answer to the half that was not derived. One run is not a
margin: it says the arrangement works, not how close it is to not working.
The verification, at two levels¶
The script reads the block back and compares: identical. That is the check it owns.
Then the whole configuration was read off the remote again, 1665900 bytes, and it is byte for byte identical to the read taken before the write, same SHA-256. That is the check worth having, because the block level compare cannot see damage anywhere else, and an erase with no count is exactly the command that could cause some.
The read that failed twice before it worked, explained the same day by section 223¶
The verification read failed on its first two attempts, both about a third of the way in, with the
reader's chunk sequence check refusing: expected 0xbf, got 0x14. The third attempt read all
1665900 bytes cleanly and is the one compared above.
Three things are known about it and none of them is a cause. The second failure is partly an artefact
of the first, since an aborted read leaves flash data packets queued and the next command reads them
first: the third attempt began by answering a GET_VERSION with a flash data reply, which is that
same pipe. A targeted read of the region the failures stopped in returns the right bytes. And the
same whole config read succeeded on the first attempt an hour earlier, before the write.
This paragraph said the cause was either the intermittent USB fault recorded before or something the write session left in the remote's USB state, with nothing to distinguish them. Neither, section 223: five chunks were dropped by the host's own USB library, which discards the oldest of an overfull input queue in silence, and the write had nothing to do with it. Reproduced on demand with a predicted loss count, drained and retried in code, and the practical consequence is now a retry that says so rather than a read that fails.
What it does not establish¶
It is one write, of 64 KiB, to one unit, of bytes that were already there. It says nothing about a write that changes a configuration, which is where the reader questions start, and nothing about the other 25 blocks of this configuration. The restore route is still unexercised: this run never needed it, which is the point of choosing it, and so it also never tested it.
Section 221 | the archive | section 223. Section 222 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.