251. The re-check runs on the cable, and the restart was the write's¶
Section 250 read the latch out of the firmware and scored one control against it. Three more runs on the spare Harmony One on 4 September 2026 settle the mechanism, and two of them refute claims that section wrote down the same evening. The re-check is real and has now been watched: a remote whose verdict has been dropped re-validates its own configuration, restores the verdict, and does not restart to do it.
What makes these runs stronger than the earlier ones is that the remote's clock is the second instrument. Every earlier observation was a screen, and a screen cannot tell a running remote from one that restarted quickly.
The clock is an instrument, and here is why it may be used as one¶
Section 111 measured that a connected Harmony One's clock holds base slot 3's stamped time plus its
uptime, and section 138 identified the clock as base slot 13's records 0 to 6, seeded from each
record's first. What neither established is when the seeding happens, which is the whole
question if a clock reading is going to be evidence about a restart.
0x2A264 is the seeder's entry, the routine section 138 traced as parsing base slot 13's header
exactly as stateTable does. It has exactly one caller, 0x28AE8, and that call sits in the
initialisation run of 0x28A0E, the routine the reset vector at 0x2EA38 calls: eleven calls in a
row, then CLRF 0x315 and the top level loop at 0x28B1C. So the clock is seeded once per boot,
before the loop the poll lives in ever runs, and nothing else in the image writes those seven bytes
from the record. Section 111 searched for a direct write and found only the calendar's three; section
138 explains why a search could not have found the seeder's own store, since FSR0 is computed from a
literal 8 and an index rather than loaded.
Calibrated on the bench before it was used. Two readings 400 seconds of wall clock apart advanced
by exactly 400 seconds, with the cable in throughout, so the clock ticks at real rate and it ticks in
USB mode. A reading of the stamp plus n seconds therefore means the remote has been running for n
seconds, and a running time that starts over is a restart.
The three runs¶
Base slot 3's stamp in the configuration on the remote is 11:22:35. The verdict is bit 2 of 0x1A4
and the armed flag is 0x318, both as section 250 names them.
| run | verdict going in | what was sent | verdict after | running time after | restarted |
|---|---|---|---|---|---|
| A | dropped | the drop, then two 64 KiB blocks written | 0x2E |
38 s | yes |
| B | 0x2E, standing |
nothing at all | 0x2E |
continuous, 798 s then 900 s | no |
| C | dropped | the drop alone, no erase and no write | 0x2E |
continuous, 1317 s then 1380 s | no |
Each run is a cable transition: the operator pulls the cable, waits about fifteen seconds, and plugs it back in. In runs B and C the operator also read the time off the remote's own screen before pulling the cable, and it agreed with the byte both times.
Run C is the one that separates the two candidate causes, and it is why it was built. Runs A and B differ in two things at once, the drop and the write, so A's restart could belong to either.
What the runs settle¶
1. The re-check exists and it runs on the cable transition, not while connected. In run C the
verdict sat dropped for six minutes with the cable in, read three times, and the flag stayed armed.
The moment the cable moved it was back to 0x2E, with the clock showing the remote had never stopped.
Nothing but the poll's re-check can set that bit without a boot: of the five writers section 250
enumerates, three are on the boot path and one is the drop itself.
2. Run A's restart was the write's. Arch 12 executes its configuration in place out of the flash an erase clears, which is section 245's whole reason for dropping the descriptors first, so a restart during a two block write is unremarkable. Run C sent the same drop with nothing written and the remote did not flinch.
3. Section 250 has the cable states the wrong way round, which is the next subsection.
The polarity, and a predicate that was named backwards¶
Section 250 said the two halves are gated on PORTA bit 4, that "the routine that answers whether USB
is up refuses on that bit before it even reads the USB control register", and concluded that set means
a cable. The bit test was read correctly and the routine was named backwards. 0x20354 is:
20354: BTFSS PORTA,4 ; bit clear: straight to the zero
20356: BRA 0x20360
20358: BTFSS UCON,3 ; USBEN clear, so the module is off: one
2035a: RETLW 0x01
2035c: BTFSC UCON,1 ; SUSPND set, so the bus is idle: one
2035e: RETLW 0x01
20360: RETLW 0x00
It answers one only when the bit is set and the USB module is either disabled or suspended,
which is the opposite predicate: not "is USB up" but "is USB absent and quiet". Its caller is the head
of the guard chain at 0x28C40 that drives the top level mode to 2, and a chain that a live USB
session must not enter is a chain whose first question is whether the cable is gone.
So bit 4 clear means a cable is present, and three independent things say so:
PORTAreads0x29on a connected Harmony One, bit 4 clear, in section 111's register sweep and again on 4 September 2026 while the read itself was travelling over the cable being asked about;- section 99's mode 1 loop, which is USB mode, leaves USB mode when the bit is set;
- the three runs above, where the connected state sits in the arming half and the re-check fired only across a transition.
Section 99 refused to claim this polarity and was right to. It says so in as many words, on the ground that this project has twice recorded a bit sense being inverted in its own notes. Section 250 claimed it anyway, from a routine whose name it had assigned rather than derived, and the instructive part is that the error travelled in the name of a predicate and not in the reading of a bit. Every instruction section 250 quoted is correct.
The two halves, restated¶
- While the cable is in and the verdict stands, it arms the flag.
- While the cable is out, the flag is armed and the verdict has gone, it validates both containers and then clears the flag whatever it found. No branch protects that clear.
That reads as a design rather than an accident: a host writes while it is connected, and the remote re-validates when it is unplugged, which is what a sync is.
The latch survives the correction intact, and that is section 250's real finding. A validation that fails leaves the verdict clear and the flag cleared; arming needs the verdict standing; so the arming condition can never be met again, and only the boot path validates without an armed flag. Swapping the two cable states changes which half runs when and changes nothing about the trap.
One prediction that was wrong by a bit¶
Section 250 predicted the drop would take 0x1A4 from 0x2E to 0x2A, clearing bit 2 alone. It reads
0x22 on all three runs, so bit 3 goes with it: the drop also clears the bit that selects which
container a read reaches. The re-check clears and sets that same bit around its two validations, which
is where it comes back from.
The control, and what it cost to build¶
--drop-only in packages/corpus/bin/write-config.ts is run C. It sends the drop and stops: no erase,
no write, no restart. Two things about its shape are deliberate.
Its precondition is measured rather than asserted: it reads the whole container off the remote and refuses unless it is the file, byte for byte, before sending anything. That is what makes the run's starting state a fact, and it is a stronger statement than the block by block dump comparison an ordinary write makes, since on a drop-only run no block differs and that loop measures nothing.
And it presents the full write permission for a command that precedes no erase, which
assertInvalidateAllowed's own docstring calls a decision to take in a commit that says so. This is
that commit. The drop touches three records in data memory and reaches no flash gate, section 246, so
what the permission is protecting here is the unit, and that is exactly the check worth keeping.
Where it lands¶
tests/test_status_screens.py: the seeder's single caller and its position in the boot initialisation, which is what licenses the clock as an instrument;0x20354's real predicate, including the twoUCONbits it needs; and the poll's two halves with the corrected cable states.- Section 250, corrected in place, and
reference/superseded.md. packages/corpus/bin/write-config.ts, which gains the control and, from the same evening's failed write, the recovery of a block an earlier run erased and did not write.
Section 250 | the archive | section 252. Section 251 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.