322. The clock counts the day of the month from 0 and the weekday from Sunday, so every date here was a day early¶
Every build date this project has reported was one day early, and every configuration it stamped set the remote's clock one day ahead. Base slot 3's eleven byte record and base slot 13's clock records 0 to 6 store the day of the month counted from 0, so the 1st is 0 and the 31st is 30, and the day of the week counted from Sunday as 0. This project read the same bytes as a day counted from 1 and a weekday counted from a Saturday epoch, 1 January 2000, section 21. The two readings name dates a day apart and each finds the stored weekday consistent with its own date, so on every stamp the corpus held they were indistinguishable. What told them apart was a stamp on the 1st of a month: a MyHarmony sync of the Harmony 650 on 1 October 2026 stored a day of 0, the reader refused it, and the device composer could not save that configuration, todo-compile-650 1.3.1.
Sources checked before the work¶
Logitech's classic client, the firmware, and this document. The client's time service,
hid/services/time/TimeHidService.java, is the square section 209 crossed: it reads the stored day
plus one and writes the calendar day minus one, and writes the weekday as Java's DAY_OF_WEEK
minus one, which counts from Sunday. Section 209 recorded both as places where the client disagreed with
the corpus; the client was right both times. Concordance agrees about both, independently: its clock
writer in libconcord/remote.cpp stores ht.day - 1, the calendar day of the month less one, and the
weekday from tm_wday, Sunday 0. Section 245 noticed the weekday and wrote it up as a disagreement. MyHarmony's client sets a
time for a different product with .NET's DayOfWeek, Sunday 0 again, in a message that is not this
record and says nothing about how this one counts the day. Client sourced, decision 2, and the firmware
below is what makes it more than that.
The firmware states the last day of each month as an index¶
Every firmware image in the lab carries one month end routine, the same code on all nine, five
architectures: the Harmony One 3.4 at 0x28072, the Harmony 600 0.2 and the bench 650's 0.2 at
0x10BC0, the 650's 0.4 at 0x14E90, the Harmony 700 2.8 at 0x150DA, the Harmony 525 at 0x4180, the
Harmony 880 and 885 at 0x156EA, and the Harmony 350 1.4 at 0x14382. The last was found by this
section's blind reviewer after the first draft had scoped arch 16 out. It copies state variables 3, 5 and 6, the day, the month and the
year, switches on the month with an XORLW chain whose cases are 3, 5, 8, 10 and 1, and compares the
stored day on each arm against one literal:
| months, zero based | the arm's literal | last day by the calendar |
|---|---|---|
| 0, 2, 4, 6, 7, 9, 11 | 30 | 31 |
| 3, 5, 8, 10 | 29 | 30 |
1, when year & 3 is zero |
28 | 29 |
| 1, otherwise | 27 | 28 |
Every literal is one less than the length of its month. A day counted from 1 would need 31 and 30.
So the stored day is an index. The routine has two modes: in the one the weekday routine calls it in, a
day past the index is clamped to it; in the one 0x27B62 calls it in on the Harmony One, it rolls to 0
and the month advances. In that second mode February's compare is 27 whatever the year, so stepping
forward treats every February as 28 days; read, not run on hardware, and recorded because nothing else
here depends on it.
The Harmony One's weekday routine, 0x27F78, section 111's calendar, opens with INCF on the day and
on the month before computing anything: it turns both indices into calendar numbers. Its arithmetic,
transcribed and run over every date from 2000 to 2089, 32873 of them, gives the Sunday based weekday of
the stored day plus one on every one. Section 111 read that INCF on its first pass as evidence the day
was zero based, which was right, and then took it back on the strength of section 21's fit: a reading
of the firmware gave way to a fit to the corpus, which is the wrong way round.
Every stamp with a date known from outside the record decodes to it¶
Twenty three containers have a build date recorded by something other than the stamp: the date a lab
manifest, directory or file name, or file time gives for the read or fetch, or the date the calibration
pair was made. That is every registered sample with such a date that this section found; the Harmony
700's first read after Harmony Desktop is the same stamp as h700_28_config_region and is not a
registered sample. All twenty three decode to that date under this reading. Under the old one, twenty two
come out a day early and the last, the 650's sync of 1 October, does not read at all.
| container | known date | reads now | read before |
|---|---|---|---|
one_spare_after_sync |
7 August 2026, its META.md |
2026-08-07 | 2026-08-06 |
calibration_one, calibration_h600 |
13 August 2026, sections 121 and 125 | 2026-08-13 | 2026-08-12 |
one_spare_myharmony |
23 August 2026, its META.md |
2026-08-23 | 2026-08-22 |
calibration_favchannels, calibration_favzero |
23 August 2026, their directories | 2026-08-23 | 2026-08-22 |
compiled_protocols, _2 and _3 |
24 August 2026, their files and directories | 2026-08-24 | 2026-08-23 |
phase7_before, phase7_after |
25 August 2026, their directory | 2026-08-25 | 2026-08-24 |
h650_config_region |
27 September 2026, the 650's first read | 2026-09-27 | 2026-09-26 |
h700_28_config_region |
29 September 2026, its read | 2026-09-29 | 2026-09-28 |
h650_panasonic_config |
1 October 2026, its read | 2026-10-01 | refused |
| the six power hold compiles, sections 306 to 308 | 2 October 2026, their directories | 2026-10-02 | 2026-10-01 |
h350_programmed_config, h350_three_devices_config, h300_programmed_config |
5 September 2026, their files and the commits of sections 262, 263 and 265 | 2026-09-05 | 2026-09-04 |
The arch 16 three are more than a date match. Section 263's container is the Harmony 350 after a device was removed from the configuration section 262 read off it at 12:13 on 5 September, with the questions about the removal committed before the read. The old reading built it on the 4th, before the configuration it was made from had been read.
Section 58's own known date was the 6th, and it was not independent: that section's account of what was done puts the change and the sync on 7 August, and the 6th came from the stamp itself, read a day early. So the confirmation section 21 cited was the reader confirming itself.
The remote's own screen agreed before anyone asked it. Section 242 saw a Harmony One booted on a
stamp whose weekday byte was 0 show Sun 3:42, and recorded the day name as a puzzle because section 21
said 0 was a Saturday. It is a Sunday, 23 August 2026, which is what that stamp reads as now.
The day's maximum agrees, and the 31st is a consequence rather than evidence. Base slot 13 states
the day's maximum as 30 in every one of the 88 containers in the lab that carry the record, and a day
counted from 1 could not reach the 31st under it. Under this reading Logitech's generator has met a 31st:
h700_config was built on 31 July 2021, which the old reading took for the 30th, and it stores 30 in
both records against that maximum of 30. That stored 30 fits either reading, so it decides nothing by
itself; what it settles is section 139's note that no config was built on a 31st and that what the
generator does on one is unknown, both of which were the misreading.
What changes¶
- The readers,
clockRecordinpackages/codec/src/gspm.tsandclock_recordinsrc/harmony/gspm.py: the date is the stored day plus one, a stored day pastclockLastDayIndexfor its month is refused, and the weekday is checked counted from Sunday. Both refuse a date the calendar does not have, which matters only for 29 February 2100 and 2200, which the firmware's& 3allows. - The encoder,
clockRecordFields, writes the day minus one andgetUTCDay(), and every save throughtimestampEditandclockStateEditsfollows. - The 31st is no longer special.
clockStateEditsraised the day's maximum to 31 on a 31st, a repair for a value only our own misreading could write. A save writes at most 30 now, and a configuration an old save left at 31 is put back to 30. - The stopgap goes:
isSyncDayZeroStamplet the writer, the byte accounting and the emitter accept the 650's day 0 stamp as a well framed record of unknown meaning. Its docstring said Logitech's compiles of that same day read day 1; they were the power hold compiles of the day after, which is why they read one more. - The golden vectors:
built_atmoved in 100 of 103, three of them reading for the first time, the 650's day 0 containers; the other three are Harmony 890 reads that carry no readable stamp either way.
Which remotes our writes left a day ahead¶
A save stamps the moment of saving into both records, through saveEdits, which compose-device.ts and
compose-activity.ts both call, and the Harmony One and the Harmony 650 put their clock back to that
stamp, at every boot on the One, section 111, and at every restart on the 650, section 283. So each save
of ours set the clock one day ahead, at this machine's local time. That holds for every save in the lab;
a save on the last day of a month would have stored an index past the firmware's limit, which the remote
clamps or rolls over rather than reading as a day ahead, and none was made on such a day.
- The spare Harmony One, every save since
compose-device.tsbegan stamping in section 242. The last of its regions in the lab,one_spare_page4_base, was stamped on 24 September and the remote reads it as Friday 25 September 17:12:56. - The Harmony 650, the saves behind
h650_lg_region,h650_post144_regionandh650_devicelist_region, and the write of 3 October 2026, stamped2026-10-03T16:06:12local by the old encoder: stored as day 3 and weekday 0, which the remote reads as Sunday 4 October 16:06:12. Its write journal records the whole configuration read back identical and the restart sent; no read of the remote's clock followed, so what it shows now is predicted from that and not observed. - Not the Harmony 600, the 700 or the 525. Their writes went through the faithful path, which keeps the input's stamp, so they carry Logitech's own stamps, correctly read.
The hour, measured and not settled¶
Our writer stamps local time, localTimestamp. Whether Logitech's stamps are local time, UTC or
something else cannot be settled from what the lab holds, and the first draft of this section tried
with the wrong instrument. It compared each stamp with the time the file holding it was saved, and for
most files that time is not a save moment: compiles extracted from an archive keep the archive entry's
time, two calibration compiles 16 minutes apart share one modification time, and two power hold
compiles share another. Those rows put stamps an hour after the file that holds them in August and on
5 September, and a few minutes after it in October, which says more about the file times than about the
stamps.
The rows with a recorded read time are four, each against the first read of the stamp:
| container | stamp minus the read time, UTC |
|---|---|
h650_config_region, the 650's first read on 27 September |
-0.3 minutes |
h700_28_config_region, its first read after Harmony Desktop on 29 September |
+3.8 |
h650_panasonic_config, 1 October |
-1.7 |
one_spare_myharmony, against its manifest's read time |
+17.0 |
Three sit within four minutes of UTC on either side and the fourth is 17 minutes after a read that took 53 seconds, while falling 3 seconds before that file's modification time, which is recorded and not explained. Read as local summer time, UTC+2, the 5 September Harmony 350 and 300 compiles would come 10 and 43 minutes before the files of the reads of the configurations they replaced, which a compile can only do if it was made before the remote it was for was read. Open: which clock and zone Logitech stamps in, and so whether our local stamps put the remote's time of day where Logitech's would. Nothing here was measured on a remote's screen.
Scope, decision 16¶
The month end routine is read on arch 8, 9, 12, 14 and 16, every image in the lab. The weekday
routine's INCF and its arithmetic are read on arch 12 only; the blind reviewer reports the same
routine on the other images and that is not asserted here. The stamps with known dates span arch 12, 14
and 16.
Arch 10 has no clock routine read here and no stamp with a known date; its containers carry the same
record and decode the same way.
Falsification¶
A firmware image whose month end compare is 31 for a long month; a Logitech stamp storing a day equal to its month's length; a stamp whose stored weekday is the Sunday based weekday of the stored day itself rather than of the day after; or a Harmony One booted on a stamp of ours showing a day name other than the one its date has.
Where it lands¶
tests/test_clock_counting.py: the limits read out of all nine images; the weekday routine'sINCFs on full addresses and its arithmetic with every constant read out of the image; the twenty three known dates, the old reading a day early on twenty two and blind on the last; the 31st onh700_config; and the reader's refusals on synthetic records.tests/test_gspm.py: section 21's search widened by the day's base finds two solutions, which is why the corpus could not decide; the weekday byte asserted as the Sunday count.tests/test_clock.py,tests/test_sync_pair.py,tests/test_host_client.py: the dates a day later, and section 209's two disagreements rewritten as agreements.packages/codec/test/gspm.test.ts,edit.test.ts,inventory.test.ts,metadata.test.ts: the same in TypeScript, including the 650's own stamp encoded byte for byte,1b 20 0e 00 04 09 1a;frame.test.ts: no arch 14 compile is laid out from raw stamp bytes any more, where one was.- Corrected in place: sections 16, 21, 58, 111, 130, 137, 139, 155, 209, 242, 245, 265, 310, 312, 316,
318 and 320;
docs/config-format.md,docs/host-client.md,docs/status.md,CLAUDE.md, thewriting-a-configskill anddocs/memory-map-525.md; the dead phrasings inreference/superseded.md.
Section 321 | the archive | section 323. Section 322 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.