board: restore PR_ARC_INVENTORY.md (5876 lines destroyed by #1081's destructive prepend) - #1082
Merged
Conversation
…ructive-prepend one-liner) + census trap 10 The #1081 hygiene commit truncated the append-only arc inventory 5876 -> 32 lines: open(p, 'w') evaluates (and truncates) before the argument's open(p).read() runs, so the prepend wrote the new entry over nothing. Caught operator-side (dangling #1079 self-reference). Restored from cdf8c15^1 with the #1081 entry prepended as intended and a dated storno note at the file head; LATEST_STATE and EPIPHANIES verified intact (read-before-open there). Lesson banked as census SS8.3 trap 10 with the wc -l falsifier: an append-only file that got shorter is always a defect. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KCGhDYoQBXs3poaR7sFuqp
The prior commit's message claimed trap 10 was banked in the census, but that edit failed silently (anchor mismatch: the census's trap 9 was the last line of the file, so the anchor-after search threw and only the PR_ARC restore landed). This commit adds trap 10 for real: the open(p, 'w').write(entry + open(p).read()) truncate-before-read pattern that destroyed 5876 lines of PR_ARC_INVENTORY.md in #1081, plus the wc -l falsifier for every ledger write. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KCGhDYoQBXs3poaR7sFuqp
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_4d40e0eb-b5c2-43ac-bd4e-58af9186ead3) |
This was referenced Aug 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
The #1081 board-hygiene commit prepended its arc entry with the one-liner
open(p, "w").write(entry + open(p).read()). Python evaluatesopen(p, "w")— which truncates the file — before the argument expression's
open(p).read()runs, so the read-back returned empty and.claude/board/PR_ARC_INVENTORY.mdcollapsed from 5876 → 32 lines onmain. The truncation was unintended; the surviving 32-line file even
contained a dangling #1079 self-reference proving history was gone.
LATEST_STATE.mdandEPIPHANIES.mdwere verified intact (their writes readbefore opening for write).
What this PR does
PR_ARC_INVENTORY.mdto 5920 lines: a dated⊘ TRUNCATION RESTOREDnote at the top + the 32-line board: batched arc entries for #1077 + #1078 (hygiene-only) #1081 entry (theonly content the truncating commit legitimately added) + the full
5876-line pre-board: batched arc entries for #1077 + #1078 (hygiene-only) #1081 history taken verbatim from the parent blob
(
git show cdf8c15a^1:.claude/board/PR_ARC_INVENTORY.md). Ordering staysreverse-chronological; nothing is deleted or rewritten — append-only
discipline restored, not merely patched.
docs/architecture/COGNITIVE-FABRIC-CENSUS-2026-08-30.md§8.3: the destructive-prepend pattern itself, with the falsifier — after
any ledger write,
wc -lthe file; an append-only file that got SHORTER isalways a defect. (The first commit's message claimed this trap was banked;
that edit had silently failed on an anchor mismatch — the second commit
lands it for real and says so.)
Verification
wc -l .claude/board/PR_ARC_INVENTORY.md→ 5920 (32-line head + 5876restored + 12-line note/separators)
cdf8c15a^1blobGenerated by Claude Code