Skip to content

docs(handoff): RETRACT the CI-flake ranked step β€” that failure is already root-caused in scripts/ci-repro/README.md - #1229

Merged
ZacxDev merged 1 commit into
mainfrom
docs/resume-state-rank2-retraction
Sep 2, 2026
Merged

docs(handoff): RETRACT the CI-flake ranked step β€” that failure is already root-caused in scripts/ci-repro/README.md#1229
ZacxDev merged 1 commit into
mainfrom
docs/resume-state-rank2-retraction

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Sep 2, 2026

Copy link
Copy Markdown
Member

Corrects the resume-state-worktree-resolution handoff doc, which landed in #1166 with a ranked next-step that would send the next session to do work that is already done.

The defect

Rank 2 read "File the CI-flake issue β€” four distinct tests, four PRs, one session, each needing a fresh push."

That failure is already root-caused, on main. scripts/ci-repro/README.md names the mechanism β€” server.py:_replace_bytes fsyncs the file and then the parent directory inside the request, before the response is written, and devrc-ci is pinned to one node, so stacked runs contend on one disk. It states outright that it hits PRs whose diff cannot reach it, docs-only included. The devrc/tests.md index entry carries the same finding dated 2026-09-01, measured across two docs-only PRs: 4 reds, 3 different tests, scripts/tests targets 464–530 s, each passing 3/3 locally in ~5 s with a --collect-only positive control proving the failing test was actually selected.

So the ranked step is retracted, and the Open-investigations block that fed it is superseded in place rather than deleted β€” the prior reading stays visible, which is the point of an append-only section.

Why it happened, recorded as a gotcha

I measured that same flake four times across four PRs β€” attribution against the PR's own file list, a pristine-main control, a same-window sibling PR β€” and concluded it was unexplained. The answer was in the subsystem index the whole time, with a deeper diagnosis than any of those four measurements produced. /resume step 4 exists for exactly this and costs one command.

Second gotcha, found by a completion audit rather than by any gate: the index write is per-effort, and a multi-effort session will skip the second one. /handoff step 4 ran for effort 1 and not for effort 2. Nothing noticed β€” the doc, the PRs and the claims were all clean. If a session lands more than one PR, run subsystem_touch --pr <n> once per effort.

Also updated

Docs only β€” one file, no code, no tests, no behaviour.

πŸ€– Generated with Claude Code

https://claude.ai/code/session_01Emy2y7tGJjRee3GV2cNuaJ

…out PR #1166, the subsystem ind

Claude-Session-Id: 2b50cc65-f7bf-4f03-8f8e-19bd8fabe25c
@ZacxDev
ZacxDev merged commit e106258 into main Sep 2, 2026
2 checks passed
@ZacxDev
ZacxDev deleted the docs/resume-state-rank2-retraction branch September 2, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant