Repository navigation
fix: keep status-file identities stable across timezones - #7384
arthurcruzd wants to merge 1 commit into
Conversation
On Linux, `stat -c %w` renders a status file's birth time in the reader's local time. The presentation cursor and the open-decisions cursor store that rendering as the file's identity, so an actor running under a different TZ (or the same home after a timezone change) read a different identity, treated the file as replaced, and re-presented already-presented status or judged a second-mate signal by its whole log. Both identity readers, _fm_open_decisions_file_ident and the Pi branch's statusFileIdentity, now pin TZ=UTC0. The macOS reader already uses the epoch-valued %FB, which no timezone affects. FM_OPEN_DECISIONS_FOLD_VERSION is unchanged: fold semantics did not change, and an affected home already re-keys once through the identity mismatch.
Why
|
|
CI note: |
|
Speaking as Kun's firstmate: thanks @arthurcruzd — small, precise fix with good cross-timezone regressions both ways and live drain/dispatch evidence. VISION per-rule
Contract-class: restore — the presentation cursor's file identity is specified to change only on rotation/recreation; rendering the birth time in local time broke that on non-UTC Linux homes. Noted your reasoning on not bumping CI: only |
|
Thanks for the re-run. Attempt 2 of |
|
Speaking as Kun's firstmate: thanks @arthurcruzd for the attempt-2 note. Head CI: Behavior portable serial 2 CANCELLED again at the 30-minute ceiling on run Outcome: waiting-ci. Flagging for Firstmate FYI: restore otherwise-ready; the only blocker is the #7255 serial2 ceiling after one spent re-run — land-despite / raise-limit is the existing open question, not another re-run. |
Bring the fork's fleet branch up to upstream main, keeping the fleet-only work upstream has not merged. Upstream's explicit-only T3 Code backend (kunchenguid#7518) is the base for every T3 file; the fleet's earlier copy of that PR is superseded by it, along with its own semantic-supervision push (upstream's pending-request watch), the T3 capture, telemetry, interrupt-verdict, and launch-ownership fixes, and the Claude env-channel ownership (upstream's FM_T3CODE_ENV_KEYS). On top of it the fleet keeps: the T3-hosted primary and its wake relay (bin/fm-t3-host.sh), remote second mates on a host's T3 server, quiet and away mode and the supervision host under the relay, Grok and Muse T3 workers, exit by archive with a relaunch that resumes the same thread, restart reconciliation, the foreign-slot refusal, local-interface telemetry, and the T3 0.1.2 standard-scope sign-in. Also kept: the open contributions for supervisor noise (kunchenguid#7726), one launch-failed wake per outage (kunchenguid#7386), status-file birth times (kunchenguid#7384), the take-over watcher TERM fix (kunchenguid#6916), and the fleet-only second-mate reply-source and CI commits.
Intent
Send our good Firstmate fixes upstream to kunchenguid/firstmate as pull requests (asked as: "pode enviar o que temos de bom"). This task is one of them: the timezone pin on the status-file birth identity.
Context: fleet commit
76935d7f(on the captain's fork branchfleet, arthurcruzd/firstmate) pinned TZ=UTC0 where the open-decisions fold derives a status file's birth identity. On a Linux home not running in UTC, on a filesystem that records birth time, that identity string is rendered in local time, so it changes when the timezone or its rendering changes and the fold re-reads or re-surfaces decisions it already folded.What Changed
TZ=UTC0in the shell identity writer and Pi branch reader so timezone differences preserve presentation cursors and prevent replaying already-presented status entries.Risk Assessment
✅ Low: Both identity readers consistently pin birth-time rendering to UTC, with behavioral regression coverage and no unnecessary scope expansion.
Testing
Real drain and dispatch CLI scenarios passed against isolated homes, and the targeted regression script passed. The base identity changed across timezones while the target identity remained stable. CLI transcripts capture the nonvisual product surface; disposable homes were removed.
Evidence: Live timezone drain and dispatch transcript
Source: Live timezone drain and dispatch transcript
Evidence: Base versus target identity comparison
Source: Base versus target identity comparison
Evidence: Reproducible live scenario driver
Source: Reproducible live scenario driver
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-wake-drain-unread-status.test.shpython3 ~/.no-mistakes/evidence/01M51EHJWSESFXEWMPFWV70T09/drive-timezones.pyExecuted base and target_fm_open_decisions_file_identunderTZ=BRT3andTZ=UTC0against the same birth-time-capable file.git status --shortconfirmed a clean worktree after disposable-home cleanup.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.