Skip to content

93. The internal read cap is stricter than the hazard it was built for

Written before measuring, and committed before the remote was touched, which is the only reason the numbers below are worth anything. docs/host-client.md's Desktop client reads a unit's identity block as a single 64 byte READ_FLASH from internal memory, and this project's library refuses that read.

Where the cap came from, and the arithmetic that was missed

readInternalMemory and readFlash both refuse an internal read of more than one chunk, 62 bytes, because a read of that region restarted a remote five times. The measurements behind it are in the code and they already say what the condition is:

read result
63 bytes at 0x1000 restarted, 3 of 3
63 bytes at 0x0040 completed, then the remote died
63 bytes at 0x0000 fine, twice
64 bytes at 0x1000 fine, twice
124 bytes at 0x1000 fine, twice

A chunk carries 62 data bytes, one of the 63 the largest length nibble describes being the sequence number. So 63 bytes is 62 plus a final chunk of one, and 64 is 62 plus two, and 124 is two full chunks. The hazard is a final chunk of exactly one byte, which is count % 62 == 1, and the cap that was written to avoid it refuses everything above 62 instead.

64 bytes was already measured as safe when the cap was written. The cap is not wrong, it is coarse, and this project has been describing it as the shape of the hazard rather than as a bound around it.

The prediction

  1. A 64 byte internal read on the spare Harmony One succeeds and does not restart it, at an offset other than zero, reproducing the client's own shape.
  2. It returns 64 bytes, in two chunks.
  3. The remote answers a config window against its own lab dump afterwards, unchanged.

  4. If all three hold, the refusal should become count % FLASH_CHUNK_DATA == 1 rather than count > FLASH_CHUNK_DATA, and the reason attached to it should be the final chunk rather than the chunk count.

  5. Left as written, because it is the committed prediction. It is also wrong, and section 94 says why within the day: the condition is an odd count, and this one would have let 65 through.

The address is deliberately not the identity block. 0xFFF400 is what the client reads and it holds the unit's serial GUIDs, which this repository does not publish and has no reason to read. 0xFF offset 0xE000 is the same page and the same transfer shape, and the client's own region map calls it a PIC library.

Measured

9 August 2026, on the spare Harmony One with both Ones attached at once. The unit was identified by what it holds, not by its port: its config base reads back the bytes of one_spare_after_sync where the other reads those of one_config, which is the only way to tell two Harmony Ones apart, since they enumerate identically and report no serial number.

read bytes back remote afterwards
page 0xFF, offset 0xE000, 64 bytes 64 answered GET_VERSION immediately
page 0xFF, offset 0x1000, 64 bytes 64 answered
page 0xFF, offset 0x1000, 124 bytes 124 answered
page 0xFE, offset 0x1000, 64 bytes 64 answered

The 64 byte read at 0xE000 was run twice, in separate sessions. The config window at 0x040000 was read before the first and after the last and was byte identical, so nothing here disturbed the remote at all. All three predictions hold.

~~The refusal became count % FLASH_CHUNK_DATA == 1 on the strength of this, as the measured~~ ~~condition~~, and it is not. It is a curve through four data points, and section 94 read the loop that same day: the fetch primitive can only read a word, the loop subtracts two and exits on zero, so any odd count never terminates. 65 and 127 are odd and are not 62n + 1, so the rail installed here would have let them through. The refusal is an odd count now.

A confirmation nobody asked for

GET_VERSION field 8 is documented as the version of the image at page 0xFF offset 0xE000, read by the firmware from program 0x01E007, and the Harmony One reports 0x34. The 64 byte read above starts at 0xE000, so its eighth byte is 0xE007, and it is 0x34. That accessor had been derived from disassembly and checked against the value the remote reports; this is the first time the byte has been read at the address directly.

The two bytes after it are 0x48 0x47, and the client's own image header builder writes 0x4748 at that position, so the region carries an image of the shape the client knows how to make. What the region is for is still only the client's word, docs/host-client.md.

What it does not settle

Why a one byte final chunk restarts a remote, which is unchanged: the refusal is narrower now and it is still a workaround. Offset zero being exempt is unexplained too. Widening this on an architecture nobody has tested is the thing not to do, and the arch 9 remote is the one that would tempt somebody, since its internal memory sits at plain low addresses where every caller can reach it.


Section 92 | the archive | section 94. Section 93 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.