ci: #225 — uutils-tolerant create_at stamp + toolchain %3N preflight guard #233

Closed
matou-build-agent wants to merge 1 commit from agent/issue-225 into main

Advances #225. (Not closes — dev-factory is MERGE_AUTHORITY=human, and #225 carries a path-2 host-posture decision beyond this PR.)

What

ci / test is red on origin/main because the pinned runner (matou-workstation) runs uutils coreutils 0.8.0, which ignores the %N width: date +%3N returns full 9-digit nanoseconds, not 3-digit milliseconds. tests/fakebin/curl stamped fake Mattermost posts with create_at: $(date +%s%3N), so the question's create_at ballooned ~1e5×; ask-human.sh's first_reply then filtered every real (ms-valued) reply below the garbage stamp → tests/test-ask-human.sh T5/T7 (6 checks) timed out.

Changes

  • tests/fakebin/curl — compute ms as $(date +%s%N) / 1000000. %s%N is full nanoseconds on both GNU and uutils, so /1e6 is epoch-ms on both.
  • onboarding/onboard-host-lib.sh — onboard_host_check_toolchain now runs date +%3N and demands a 3-digit result, closing the #212 gap (its date -u -d @0 probe never exercised the %N width). A uutils host now fails onboard-host verify naming %3N by name — surfacing the host-posture question (path 2) exactly where a human rules it.
  • onboarding/tests/onboard-host-lib-test.sh — +2 cases (red→green) covering the new check via a uutils-simulating date shim.
  • STATUS.md + docs/journal/2026-10-15-225.md.

Proof (I'm on bens-mac-04 / GNU, so uutils is simulated with a date shim that returns full nanos for +%3N)

  • tests/test-ask-human.sh: 19/6 → 25/0 under simulated-uutils; unchanged 25/0 on native GNU.
  • onboarding/tests/onboard-host-lib-test.sh: 71 → 72.
  • Full offline suite after the change: 92 ok / 3 fail. The 3 fails (claude-call-guards, limit-lib, session-runner) are the pre-existing #200/#205 fp-keying reds, reproduced on pristine main (stash-verified), not #225.

Scope note

CI runs from the root checkout, so merging this un-reds the date leg immediately; consumers pick up the fakebin + preflight fix at the next re-vendor (GOTCHAS 4). ci / test as a whole stays red until the separately-tracked #200/#205 fp-keying suites land — out of #225's scope.

🤖 Generated with Claude Code

Advances #225. (Not `closes` — dev-factory is `MERGE_AUTHORITY=human`, and #225 carries a path-2 host-posture decision beyond this PR.) ## What `ci / test` is red on `origin/main` because the pinned runner (`matou-workstation`) runs **uutils coreutils 0.8.0**, which ignores the `%N` *width*: `date +%3N` returns full 9-digit nanoseconds, not 3-digit milliseconds. `tests/fakebin/curl` stamped fake Mattermost posts with `create_at: $(date +%s%3N)`, so the question's `create_at` ballooned ~1e5×; `ask-human.sh`'s `first_reply` then filtered every real (ms-valued) reply below the garbage stamp → `tests/test-ask-human.sh` T5/T7 (6 checks) timed out. ## Changes - **`tests/fakebin/curl`** — compute ms as `$(date +%s%N) / 1000000`. `%s%N` is full nanoseconds on both GNU and uutils, so `/1e6` is epoch-ms on both. - **`onboarding/onboard-host-lib.sh`** — `onboard_host_check_toolchain` now *runs* `date +%3N` and demands a 3-digit result, closing the #212 gap (its `date -u -d @0` probe never exercised the `%N` width). A uutils host now **fails `onboard-host verify` naming `%3N` by name** — surfacing the host-posture question (path 2) exactly where a human rules it. - `onboarding/tests/onboard-host-lib-test.sh` — +2 cases (red→green) covering the new check via a uutils-simulating `date` shim. - `STATUS.md` + `docs/journal/2026-10-15-225.md`. ## Proof (I'm on bens-mac-04 / GNU, so uutils is simulated with a `date` shim that returns full nanos for `+%3N`) - `tests/test-ask-human.sh`: **19/6 → 25/0** under simulated-uutils; unchanged **25/0** on native GNU. - `onboarding/tests/onboard-host-lib-test.sh`: **71 → 72**. - Full offline suite after the change: **92 ok / 3 fail**. The 3 fails (`claude-call-guards`, `limit-lib`, `session-runner`) are the **pre-existing #200/#205 fp-keying reds**, reproduced on pristine `main` (stash-verified), **not #225**. ## Scope note CI runs from the root checkout, so merging this un-reds the **date** leg immediately; consumers pick up the fakebin + preflight fix at the next re-vendor (GOTCHAS 4). `ci / test` as a whole stays red until the separately-tracked #200/#205 fp-keying suites land — out of #225's scope. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: #225 — uutils-tolerant ms create_at stamp + toolchain %3N guard
Some checks failed
ci / static (pull_request) Successful in 2m20s
ci / test (pull_request) Failing after 5m14s
d8ce1ff544
matou-workstation (the pinned `ci / test` runner) runs uutils coreutils
0.8.0, which ignores the `%N` width: `date +%3N` returns full 9-digit
nanoseconds, not 3-digit milliseconds. tests/fakebin/curl stamped fake
Mattermost posts with `create_at: $(date +%s%3N)`, so the question's
create_at ballooned ~1e5x and ask-human.sh's first_reply filtered every
real (ms-valued) reply below the garbage stamp — test-ask-human.sh T5/T7
(6 checks) timed out. Independent of #215; reproduces on clean main under
uutils.

- tests/fakebin/curl: compute ms as `$(date +%s%N) / 1000000`. `%s%N` is
  full nanoseconds on both GNU and uutils, so /1e6 is epoch-ms on both.
- onboarding/onboard-host-lib.sh: onboard_host_check_toolchain now RUNS
  `date +%3N` and demands a 3-digit result, closing the #212 gap (its
  `date -u -d @0` probe never exercised the `%N` width). A uutils host now
  FAILS `onboard-host verify` naming `%3N` by name.

Proven under a simulated-uutils `date` shim: test-ask-human.sh 19/6 -> 25/0
(unchanged 25/0 on GNU); onboard-host-lib-test.sh +2 (71 -> 72). The other
`ci / test` reds (claude-call-guards/limit-lib/session-runner) are the
pre-existing #200/#205 fp-keying failures, reproduced on pristine main,
not #225. Advances #225.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
Member

Superseded by fb9d846 on main — #225's two-way fix landed directly via the session-runner standing path (ADR 0174, PP_ENFORCE off), so this PR is no longer needed and is now mergeable: false against the landed STATUS/journal.

One substantive reason not to merge this version: its onboarding/tests/onboard-host-lib-test.sh adds the lib %3N check but leaves the pre-existing "passes on a host carrying the GNU toolchain" assertion (and the preflight/enrol chain) running the real host date. On the uutils runner that this ticket targets, those assertions fail — I ran this branch under a uutils-date shim and got 10+ FAILs. So merging it would re-red onboard-host-lib-test.sh on the uutils runner, not green ci/test.

The landed version instead shims date in those assertions (host-coreutils-independent) and the fakebin uses $(date +%s)*1000 to sidestep the %N zero-padding question — 73/73 on GNU and under full simulated-uutils. Full rationale and proof on #225. Closing.

Superseded by `fb9d846` on `main` — #225's two-way fix landed directly via the session-runner standing path (ADR 0174, `PP_ENFORCE` off), so this PR is no longer needed and is now `mergeable: false` against the landed STATUS/journal. One substantive reason not to merge this version: its `onboarding/tests/onboard-host-lib-test.sh` adds the lib `%3N` check but leaves the pre-existing **"passes on a host carrying the GNU toolchain"** assertion (and the preflight/enrol chain) running the **real host `date`**. On the uutils runner that this ticket targets, those assertions fail — I ran this branch under a uutils-`date` shim and got **10+ FAILs**. So merging it would re-red `onboard-host-lib-test.sh` on the uutils runner, not green `ci/test`. The landed version instead shims `date` in those assertions (host-coreutils-independent) and the fakebin uses `$(date +%s)*1000` to sidestep the `%N` zero-padding question — 73/73 on GNU and under full simulated-uutils. Full rationale and proof on #225. Closing.
Some checks failed
ci / static (pull_request) Successful in 2m20s
ci / test (pull_request) Failing after 5m14s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory!233
No description provided.