STATUS.md is 939 KB (~235k tokens) and every agent is told to read it at session start — split it #196

Closed
opened 2026-10-15 02:58:58 +00:00 by ben · 3 comments
Owner

Filed from the 2026-10-14 infrastructure review (Claude Code session on Ben's workstation; four parallel read-only review passes over the root harness). Line anchors are against main at 3e50274.

Symptom

Measured on main at 3e50274: STATUS.md = 939,079 bytes, 2,516 lines; 41 **Last updated** paragraphs = 717,261 bytes (76% of the file), average 17.5 KB each; the longest single line is 308,733 bytes (the host-capacity table row at line 248). docs/GOTCHAS.md = 138,476 bytes, 64 entries, no index. CLAUDE.md:40 mandates "Read STATUS.md at session start"; the factory worker's read-first enrichment (.sandcastle/prompt-enrichments/read-first.md:7-11) names CLAUDE.md, CONTEXT.md, STATUS.md, GOTCHAS.md and ADRs — about 1.1 MB / ~277k tokens BEFORE the ticket is read, which exceeds a context window. 233 of 364 commits touched STATUS.md, and it is the PR merge-conflict magnet (forgejo-lib.sh:212-213).

Context load on long-running missions is the open hard problem named at AI Engineer 2026 (Factory.ai talk); this file is ours.

Proposed change

  1. STATUS.md under ~8 KB: header line, consumer table (slug, pin SHA, landing mode, runner host), host table, open blockers, pointer to the journal.
  2. docs/journal/YYYY-MM-DD-<ticket>.md, append-only, one file per former "Last updated" paragraph (migrate the 41 existing ones with a script; preserve content byte-for-byte).
  3. docs/GOTCHAS.md becomes a 64-row index (number, severity, one-line rule, link); bodies move to docs/gotchas/NN-slug.md.
  4. CLAUDE.md rule becomes "read STATUS.md (short) and the GOTCHAS index; add a journal file + update the status row in the same commit". Update read-first.md enrichment and the prompt skeleton sentence that says STATUS.md "must be updated in the same commit".
  5. tests/docs-budget-test.sh: fail when STATUS.md > 16 KB or any line in it > 2 KB, or GOTCHAS.md > 24 KB.

Acceptance

  • wc -c STATUS.md < 16384; the ratchet test is in the suite and green.
  • Every former paragraph is reachable from the journal dir; git log --follow continuity noted in the journal README.
  • Prompt skeleton/enrichment changes re-proven in onboarding/tests/onboard-lib-test.sh.

out_of_scope

Rewriting content; GOTCHAS wording changes.

_Filed from the 2026-10-14 infrastructure review (Claude Code session on Ben's workstation; four parallel read-only review passes over the root harness). Line anchors are against `main` at 3e50274._ ## Symptom Measured on `main` at 3e50274: `STATUS.md` = 939,079 bytes, 2,516 lines; 41 `**Last updated**` paragraphs = 717,261 bytes (76% of the file), average 17.5 KB each; the longest single line is 308,733 bytes (the host-capacity table row at line 248). `docs/GOTCHAS.md` = 138,476 bytes, 64 entries, no index. `CLAUDE.md:40` mandates "Read STATUS.md at session start"; the factory worker's `read-first` enrichment (`.sandcastle/prompt-enrichments/read-first.md:7-11`) names CLAUDE.md, CONTEXT.md, STATUS.md, GOTCHAS.md and ADRs — about 1.1 MB / ~277k tokens BEFORE the ticket is read, which exceeds a context window. 233 of 364 commits touched STATUS.md, and it is the PR merge-conflict magnet (`forgejo-lib.sh:212-213`). Context load on long-running missions is the open hard problem named at AI Engineer 2026 (Factory.ai talk); this file is ours. ## Proposed change 1. `STATUS.md` under ~8 KB: header line, consumer table (slug, pin SHA, landing mode, runner host), host table, open blockers, pointer to the journal. 2. `docs/journal/YYYY-MM-DD-<ticket>.md`, append-only, one file per former "Last updated" paragraph (migrate the 41 existing ones with a script; preserve content byte-for-byte). 3. `docs/GOTCHAS.md` becomes a 64-row index (number, severity, one-line rule, link); bodies move to `docs/gotchas/NN-slug.md`. 4. CLAUDE.md rule becomes "read STATUS.md (short) and the GOTCHAS index; add a journal file + update the status row in the same commit". Update `read-first.md` enrichment and the prompt skeleton sentence that says STATUS.md "must be updated in the same commit". 5. `tests/docs-budget-test.sh`: fail when STATUS.md > 16 KB or any line in it > 2 KB, or GOTCHAS.md > 24 KB. ## Acceptance - `wc -c STATUS.md` < 16384; the ratchet test is in the suite and green. - Every former paragraph is reachable from the journal dir; `git log --follow` continuity noted in the journal README. - Prompt skeleton/enrichment changes re-proven in `onboarding/tests/onboard-lib-test.sh`. ## out_of_scope Rewriting content; GOTCHAS wording changes.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

  • Ruling: ready-for-agent.
  • Why this is a two-way door: a docs restructure + read-rule change, fully revertible by a later commit. High blast radius (it touches the prompt skeleton and the read-first enrichment), but the acceptance already requires re-proving the byte-identical cutover fixtures, so the change stays test-anchored.
  • What proves it: a new docs-budget ratchet test in the offline suite that fails when STATUS.md > 16 KB, any STATUS.md line > 2 KB, or the GOTCHAS index > 24 KB.

Agent Brief

Category: bug

Summary: The read-first document set agents are told to load at session start exceeds a context window (STATUS.md alone is ~950 KB, one line is ~300 KB, GOTCHAS ~140 KB). Shrink STATUS.md to a short status surface, move its history to an append-only journal, convert GOTCHAS to an index + per-entry bodies, and ratchet the budgets.

Current behavior: CLAUDE.md and the read-first enrichment mandate reading STATUS.md + GOTCHAS at session start; STATUS.md accretes a full paragraph per state change and is the PR merge-conflict magnet.

Desired behavior: STATUS.md stays a compact status surface (header line, consumer table, host table, open blockers, pointer to the journal). Former "Last updated" paragraphs live in an append-only per-ticket journal directory, migrated byte-for-byte. GOTCHAS becomes a one-row-per-hazard index with bodies in per-gotcha files. The read/update contract in CLAUDE.md, the read-first enrichment, and the prompt skeleton sentence are updated to "read the short STATUS + the GOTCHAS index; add a journal file and update the status row in the same commit."

Key interfaces (contracts only):

  • A compact STATUS surface + an append-only journal directory whose entries preserve prior content verbatim and remain reachable (git-follow continuity noted).
  • A GOTCHAS index whose rows carry number, severity, one-line rule, and a link to the body file.
  • The session-start read/update rule in the identity-facing docs + prompt skeleton reflects the new split.
  • A docs-budget ratchet test in the offline suite.

Acceptance criteria:

  • wc -c STATUS.md < 16384 and no STATUS.md line > 2 KB.
  • A ratchet test fails when STATUS.md > 16 KB, any STATUS.md line > 2 KB, or GOTCHAS index > 24 KB; it is in the offline suite and green.
  • Every former "Last updated" paragraph is reachable from the journal dir, content preserved byte-for-byte; git-follow continuity noted in a journal README.
  • CLAUDE.md, the read-first enrichment, and the prompt skeleton carry the new read/update rule.
  • Prompt-skeleton + enrichment changes re-proven byte-identical (or deliberately updated with the wording explained) in the onboarding cutover fixtures.
  • Full offline suite green.

Out of scope: Rewriting the content itself; GOTCHAS wording changes.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** - **Ruling:** `ready-for-agent`. - **Why this is a two-way door:** a docs restructure + read-rule change, fully revertible by a later commit. High blast radius (it touches the prompt skeleton and the `read-first` enrichment), but the acceptance already requires re-proving the byte-identical cutover fixtures, so the change stays test-anchored. - **What proves it:** a new `docs-budget` ratchet test in the offline suite that fails when STATUS.md > 16 KB, any STATUS.md line > 2 KB, or the GOTCHAS index > 24 KB. ## Agent Brief **Category:** bug **Summary:** The read-first document set agents are told to load at session start exceeds a context window (STATUS.md alone is ~950 KB, one line is ~300 KB, GOTCHAS ~140 KB). Shrink STATUS.md to a short status surface, move its history to an append-only journal, convert GOTCHAS to an index + per-entry bodies, and ratchet the budgets. **Current behavior:** `CLAUDE.md` and the `read-first` enrichment mandate reading STATUS.md + GOTCHAS at session start; STATUS.md accretes a full paragraph per state change and is the PR merge-conflict magnet. **Desired behavior:** STATUS.md stays a compact status surface (header line, consumer table, host table, open blockers, pointer to the journal). Former "Last updated" paragraphs live in an append-only per-ticket journal directory, migrated byte-for-byte. GOTCHAS becomes a one-row-per-hazard index with bodies in per-gotcha files. The read/update contract in CLAUDE.md, the `read-first` enrichment, and the prompt skeleton sentence are updated to "read the short STATUS + the GOTCHAS index; add a journal file and update the status row in the same commit." **Key interfaces (contracts only):** - A compact STATUS surface + an append-only journal directory whose entries preserve prior content verbatim and remain reachable (git-follow continuity noted). - A GOTCHAS index whose rows carry number, severity, one-line rule, and a link to the body file. - The session-start read/update rule in the identity-facing docs + prompt skeleton reflects the new split. - A docs-budget ratchet test in the offline suite. **Acceptance criteria:** - [ ] `wc -c STATUS.md` < 16384 and no STATUS.md line > 2 KB. - [ ] A ratchet test fails when STATUS.md > 16 KB, any STATUS.md line > 2 KB, or GOTCHAS index > 24 KB; it is in the offline suite and green. - [ ] Every former "Last updated" paragraph is reachable from the journal dir, content preserved byte-for-byte; git-follow continuity noted in a journal README. - [ ] CLAUDE.md, the `read-first` enrichment, and the prompt skeleton carry the new read/update rule. - [ ] Prompt-skeleton + enrichment changes re-proven byte-identical (or deliberately updated with the wording explained) in the onboarding cutover fixtures. - [ ] Full offline suite green. **Out of scope:** Rewriting the content itself; GOTCHAS wording changes.

swarm-claim host=bens-mac-04 run=21817
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=21817 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #196 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 196,
  "status": "success",
  "commits": [
    "f121041b6c8025360c8306c3a14309ba163f140a"
  ],
  "changed_files": [
    "CLAUDE.md",
    "STATUS.md",
    "docs/GOTCHAS.md",
    "docs/gotchas/01-ci-jobs-on-the-shared-swarm-runner.md",
    "docs/gotchas/02-labels-passed-in-an-issue-patch-are.md",
    "docs/gotchas/03-a-consumer-s-drift-check-is-green.md",
    "docs/gotchas/04-a-root-harness-fix-in-this-repo.md",
    "docs/gotchas/05-a-workflow-writes-a-healer-verdict-marker.md",
    "docs/gotchas/06-the-bot-can-comment-but-every-issue.md",
    "docs/gotchas/07-a-run-swarm-guard-that-fatal-s.md",
    "docs/gotchas/08-a-worker-adds-claim-labels-but-only.md",
    "docs/gotchas/09-a-consumer-s-ci-builds-the-sandbox.md",
    "docs/gotchas/10-a-hotfix-hand-patched-into-a-rendered.md",
    "docs/gotchas/11-a-rehearsal-drive-declares-a-capacity-reservation.md",
    "docs/gotchas/12-a-pin-bump-makes-the-harness-call.md",
    "docs/gotchas/13-a-bare-cond-echo-as-a-script.md",
    "docs/gotchas/14-a-resource-killed-sigkill-oom-heavy-job.md",
    "docs/gotchas/15-a-generated-key-value-config-file-is.md",
    "docs/gotchas/16-an-unpaged-forgejo-actions-list-call-page.md",
    "docs/gotchas/17-a-new-key-in-a-closed-vocabulary.md",
    "docs/gotchas/18-widening-an-existing-enrichment-slot-s-scope.md",
    "docs/gotchas/19-a-product-s-issue-number-defaulted-or.md",
    "docs/gotchas/20-renaming-a-field-the-harness-reads-but.md",
    "docs/gotchas/21-a-per-call-api-timeout-equal-to.md",
    "docs/gotchas/22-a-claim-label-the-picker-excludes-becomes.md",
    "docs/gotchas/23-a-single-token-claude-caller-that-parks.md",
    "docs/gotchas/24-a-generated-host-script-that-drives-its.md",
    "docs/gotchas/25-an-unattended-session-s-workspace-can-be.md",
    "docs/gotchas/26-a-blanket-secrets-in-the-root-gitignore.md",
    "docs/gotchas/27-a-python-test-run-leaves-pycache-in.md",
    "docs/gotchas/28-an-escalation-branch-that-pings-a-human.md",
    "docs/gotchas/29-a-test-that-inherits-a-host-global.md",
    "docs/gotchas/30-a-guard-that-cannot-reach-the-code.md",
    "docs/gotchas/31-a-ruling-hand-patched-into-a-vendored.md",
    "docs/gotchas/32-a-tracker-write-made-while-parked-is.md",
    "docs/gotchas/33-a-locale-sort-feeding-a-byte-order.md",
    "docs/gotchas/34-two-scheduler-silence-failure-modes-need-two.md",
    "docs/gotchas/35-a-yield-is-exit-0-so-a.md",
    "docs/gotchas/36-a-pr-mode-close-report-can-arrive.md",
    "docs/gotchas/37-the-recency-paged-tasks-view-loses-a.md",
    "docs/gotchas/38-the-drive-reservation-yield-fires-only-at.md",
    "docs/gotchas/39-a-sigkilled-run-s-open-runs-row.md",
    "docs/gotchas/40-forgejo-ignores-an-unknown-labels-filter-a.md",
    "docs/gotchas/41-in-pr-mode-an-orphaned-green-agent.md",
    "docs/gotchas/42-a-lock-file-s-content-cannot-label.md",
    "docs/gotchas/43-editing-this-repo-s-own-forgejo-workflows.md",
    "docs/gotchas/44-a-host-mode-test-that-forgets-to.md",
    "docs/gotchas/45-a-drive-holder-labelled-by-a-mode.md",
    "docs/gotchas/46-two-modules-named-app-py-share-one.md",
    "docs/gotchas/47-the-container-sweep-only-reaps-by-name.md",
    "docs/gotchas/48-independent-api-listings-in-a-prompt-expansion.md",
    "docs/gotchas/49-a-pre-push-hook-that-runs-git.md",
    "docs/gotchas/50-a-fail-closed-workflow-guard-that-matches.md",
    "docs/gotchas/51-every-session-drainer-on-one-host-renders.md",
    "docs/gotchas/52-jq-e-on-empty-input-exits-0.md",
    "docs/gotchas/53-git-setup-sh-s-fetch-or-clone.md",
    "docs/gotchas/54-the-swarm-s-rescue-ladder-alarmed-that.md",
    "docs/gotchas/55-a-failed-ready-list-read-asserted-transient.md",
    "docs/gotchas/56-the-swarm-triage-picking-up-n-task.md",
    "docs/gotchas/57-a-rehearsal-confirm-ticket-on-the-executor.md",
    "docs/gotchas/58-onboard-host-enrol-invoked-a-repo-s.md",
    "docs/gotchas/59-a-set-u-script-touched-a-workflow.md",
    "docs/gotchas/60-a-multi-host-claim-race-let-two.md",
    "docs/gotchas/61-a-capacity-reservation-is-for-waiting-not.md",
    "docs/gotchas/62-a-pool-label-swarm-leg-goes-to.md",
    "docs/gotchas/63-a-vendored-test-that-left-a-policy.md",
    "docs/gotchas/64-a-concurrency-group-keyed-on-github-runnumber.md",
    "docs/gotchas/65-the-only-job-log-route-this-forgejo.md",
    "docs/gotchas/66-a-rebase-conflict-resolved-by-a-headless.md",
    "docs/gotchas/67-host-global-factory-state-in-tmp-silently.md",
    "docs/gotchas/68-the-close-report-gates-re-derive-a.md",
    "docs/gotchas/69-the-swarm-healer-ran-its-dangerously-skip.md",
    "docs/journal/2026-08-31-119.md",
    "docs/journal/2026-09-03-123.md",
    "docs/journal/2026-09-03-126.md",
    "docs/journal/2026-09-04-drive-tab.md",
    "docs/journal/2026-09-05-129.md",
    "docs/journal/2026-09-06-1245.md",
    "docs/journal/2026-09-06-130.md",
    "docs/journal/2026-09-06-133.md",
    "docs/journal/2026-09-07-134.md",
    "docs/journal/2026-09-10-135.md",
    "docs/journal/2026-09-12-1090.md",
    "docs/journal/2026-09-12-137.md",
    "docs/journal/2026-09-12-138.md",
    "docs/journal/2026-09-12-141.md",
    "docs/journal/2026-09-12-1411.md",
    "docs/journal/2026-09-12-1412.md",
    "docs/journal/2026-09-12-142.md",
    "docs/journal/2026-09-12-1424.md",
    "docs/journal/2026-09-12-1425.md",
    "docs/journal/2026-09-12-1427.md",
    "docs/journal/2026-09-12-144.md",
    "docs/journal/2026-09-12-1458.md",
    "docs/journal/2026-09-14-1468.md",
    "docs/journal/2026-09-15-146.md",
    "docs/journal/2026-09-15-147.md",
    "docs/journal/2026-09-15-148.md",
    "docs/journal/2026-09-15-2.md",
    "docs/journal/2026-09-16-153.md",
    "docs/journal/2026-09-19-1652.md",
    "docs/journal/2026-09-20-157.md",
    "docs/journal/2026-09-21-162.md",
    "docs/journal/2026-09-21-164.md",
    "docs/journal/2026-09-21-1682.md",
    "docs/journal/2026-09-22-165.md",
    "docs/journal/2026-09-22-167.md",
    "docs/journal/2026-09-22-1717.md",
    "docs/journal/2026-09-22-1733.md",
    "docs/journal/2026-09-23-167.md",
    "docs/journal/2026-09-24-169.md",
    "docs/journal/2026-09-24-1809.md",
    "docs/journal/2026-09-24-186.md",
    "docs/journal/2026-09-27-169.md",
    "docs/journal/2026-09-27-1940.md",
    "docs/journal/2026-09-27-1943.md",
    "docs/journal/2026-09-28-169.md",
    "docs/journal/2026-10-09-188.md",
    "docs/journal/2026-10-09-189.md",
    "docs/journal/2026-10-09-190.md",
    "docs/journal/2026-10-15-192.md",
    "docs/journal/2026-10-15-196-where-things-stand-snapshot.md",
    "docs/journal/2026-10-15-196.md",
    "docs/journal/2026-10-15-198.md",
    "docs/journal/2026-10-15-203.md",
    "docs/journal/2026-10-15-205.md",
    "docs/journal/2026-10-15-206-2.md",
    "docs/journal/2026-10-15-206.md",
    "docs/journal/2026-10-15-207.md",
    "docs/journal/2026-10-15-209.md",
    "docs/journal/2026-10-15-211.md",
    "docs/journal/2026-10-15-212.md",
    "docs/journal/2026-10-15-213.md",
    "docs/journal/README.md",
    "docs/journal/milestone-log.md",
    "tests/docs-budget-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/docs-budget-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/vendor-manifest-coverage-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/judgement-call-prompts-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "wc -c STATUS.md < 16384 and no line > 2KB": "STATUS.md is 6734 bytes, longest line 952 bytes (tests/docs-budget-test.sh asserts both; green)",
    "ratchet test fails when STATUS.md>16KB / any line>2KB / GOTCHAS index>24KB; in the offline suite and green": "tests/docs-budget-test.sh added (3 checks green); red-proven on a 20000-byte fixture; picked up by the suite loop (tests/*.sh)",
    "every former 'Last updated' paragraph reachable from the journal dir, byte-for-byte; git-follow continuity in a README": "docs/journal/ holds 59 entries (one per '**Last updated' line, incl. glued ones split and the 152-line entry whole), migrated byte-for-byte and asserted equal to the source slices by the migration; docs/journal/README.md carries the `git log --follow -- STATUS.md` continuity note; milestone-log.md + where-things-stand snapshot preserved whole",
    "CLAUDE.md, the read-first enrichment, and the prompt skeleton carry the new read/update rule": "CLAUDE.md DONE (Project-status + Docs-homes sections rewritten for the compact surface + journal + GOTCHAS index). read-first enrichment (.sandcastle/prompt-enrichments/read-first.md) and the prompts/session-runner-prompt.md skeleton sentence DEFERRED to ready-for-session #221: both require editing the protected .sandcastle/ self-copy — a worker's protected-paths fence rolls back any .sandcastle/ edit, and any skeleton prose edit reds onboard-lib-test.sh's dev-factory cutover (the committed .sandcastle copy can only be re-rendered by a human re-vendor, GOTCHAS 4 / rule 9)",
    "prompt-skeleton + enrichment changes re-proven byte-identical (or deliberately updated) in the onboarding cutover fixtures": "no skeleton/enrichment prose was changed this run (deferred to #221), so the onboarding cutover fixtures stay byte-identical and green (onboard-lib-test.sh: 270 passed, 0 failed)",
    "full offline suite green": "the suite loop (tests/*.sh + onboarding/tests/*.sh) ran with exit 0; no FAIL lines"
  },
  "summary": "Split STATUS.md into a <7KB compact surface + an append-only docs/journal/ (59 entries byte-for-byte), GOTCHAS.md into a 69-row index + per-hazard docs/gotchas/ bodies, added the tests/docs-budget-test.sh ratchet, and rewrote CLAUDE.md's read/update rule.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #196 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 196, "status": "success", "commits": [ "f121041b6c8025360c8306c3a14309ba163f140a" ], "changed_files": [ "CLAUDE.md", "STATUS.md", "docs/GOTCHAS.md", "docs/gotchas/01-ci-jobs-on-the-shared-swarm-runner.md", "docs/gotchas/02-labels-passed-in-an-issue-patch-are.md", "docs/gotchas/03-a-consumer-s-drift-check-is-green.md", "docs/gotchas/04-a-root-harness-fix-in-this-repo.md", "docs/gotchas/05-a-workflow-writes-a-healer-verdict-marker.md", "docs/gotchas/06-the-bot-can-comment-but-every-issue.md", "docs/gotchas/07-a-run-swarm-guard-that-fatal-s.md", "docs/gotchas/08-a-worker-adds-claim-labels-but-only.md", "docs/gotchas/09-a-consumer-s-ci-builds-the-sandbox.md", "docs/gotchas/10-a-hotfix-hand-patched-into-a-rendered.md", "docs/gotchas/11-a-rehearsal-drive-declares-a-capacity-reservation.md", "docs/gotchas/12-a-pin-bump-makes-the-harness-call.md", "docs/gotchas/13-a-bare-cond-echo-as-a-script.md", "docs/gotchas/14-a-resource-killed-sigkill-oom-heavy-job.md", "docs/gotchas/15-a-generated-key-value-config-file-is.md", "docs/gotchas/16-an-unpaged-forgejo-actions-list-call-page.md", "docs/gotchas/17-a-new-key-in-a-closed-vocabulary.md", "docs/gotchas/18-widening-an-existing-enrichment-slot-s-scope.md", "docs/gotchas/19-a-product-s-issue-number-defaulted-or.md", "docs/gotchas/20-renaming-a-field-the-harness-reads-but.md", "docs/gotchas/21-a-per-call-api-timeout-equal-to.md", "docs/gotchas/22-a-claim-label-the-picker-excludes-becomes.md", "docs/gotchas/23-a-single-token-claude-caller-that-parks.md", "docs/gotchas/24-a-generated-host-script-that-drives-its.md", "docs/gotchas/25-an-unattended-session-s-workspace-can-be.md", "docs/gotchas/26-a-blanket-secrets-in-the-root-gitignore.md", "docs/gotchas/27-a-python-test-run-leaves-pycache-in.md", "docs/gotchas/28-an-escalation-branch-that-pings-a-human.md", "docs/gotchas/29-a-test-that-inherits-a-host-global.md", "docs/gotchas/30-a-guard-that-cannot-reach-the-code.md", "docs/gotchas/31-a-ruling-hand-patched-into-a-vendored.md", "docs/gotchas/32-a-tracker-write-made-while-parked-is.md", "docs/gotchas/33-a-locale-sort-feeding-a-byte-order.md", "docs/gotchas/34-two-scheduler-silence-failure-modes-need-two.md", "docs/gotchas/35-a-yield-is-exit-0-so-a.md", "docs/gotchas/36-a-pr-mode-close-report-can-arrive.md", "docs/gotchas/37-the-recency-paged-tasks-view-loses-a.md", "docs/gotchas/38-the-drive-reservation-yield-fires-only-at.md", "docs/gotchas/39-a-sigkilled-run-s-open-runs-row.md", "docs/gotchas/40-forgejo-ignores-an-unknown-labels-filter-a.md", "docs/gotchas/41-in-pr-mode-an-orphaned-green-agent.md", "docs/gotchas/42-a-lock-file-s-content-cannot-label.md", "docs/gotchas/43-editing-this-repo-s-own-forgejo-workflows.md", "docs/gotchas/44-a-host-mode-test-that-forgets-to.md", "docs/gotchas/45-a-drive-holder-labelled-by-a-mode.md", "docs/gotchas/46-two-modules-named-app-py-share-one.md", "docs/gotchas/47-the-container-sweep-only-reaps-by-name.md", "docs/gotchas/48-independent-api-listings-in-a-prompt-expansion.md", "docs/gotchas/49-a-pre-push-hook-that-runs-git.md", "docs/gotchas/50-a-fail-closed-workflow-guard-that-matches.md", "docs/gotchas/51-every-session-drainer-on-one-host-renders.md", "docs/gotchas/52-jq-e-on-empty-input-exits-0.md", "docs/gotchas/53-git-setup-sh-s-fetch-or-clone.md", "docs/gotchas/54-the-swarm-s-rescue-ladder-alarmed-that.md", "docs/gotchas/55-a-failed-ready-list-read-asserted-transient.md", "docs/gotchas/56-the-swarm-triage-picking-up-n-task.md", "docs/gotchas/57-a-rehearsal-confirm-ticket-on-the-executor.md", "docs/gotchas/58-onboard-host-enrol-invoked-a-repo-s.md", "docs/gotchas/59-a-set-u-script-touched-a-workflow.md", "docs/gotchas/60-a-multi-host-claim-race-let-two.md", "docs/gotchas/61-a-capacity-reservation-is-for-waiting-not.md", "docs/gotchas/62-a-pool-label-swarm-leg-goes-to.md", "docs/gotchas/63-a-vendored-test-that-left-a-policy.md", "docs/gotchas/64-a-concurrency-group-keyed-on-github-runnumber.md", "docs/gotchas/65-the-only-job-log-route-this-forgejo.md", "docs/gotchas/66-a-rebase-conflict-resolved-by-a-headless.md", "docs/gotchas/67-host-global-factory-state-in-tmp-silently.md", "docs/gotchas/68-the-close-report-gates-re-derive-a.md", "docs/gotchas/69-the-swarm-healer-ran-its-dangerously-skip.md", "docs/journal/2026-08-31-119.md", "docs/journal/2026-09-03-123.md", "docs/journal/2026-09-03-126.md", "docs/journal/2026-09-04-drive-tab.md", "docs/journal/2026-09-05-129.md", "docs/journal/2026-09-06-1245.md", "docs/journal/2026-09-06-130.md", "docs/journal/2026-09-06-133.md", "docs/journal/2026-09-07-134.md", "docs/journal/2026-09-10-135.md", "docs/journal/2026-09-12-1090.md", "docs/journal/2026-09-12-137.md", "docs/journal/2026-09-12-138.md", "docs/journal/2026-09-12-141.md", "docs/journal/2026-09-12-1411.md", "docs/journal/2026-09-12-1412.md", "docs/journal/2026-09-12-142.md", "docs/journal/2026-09-12-1424.md", "docs/journal/2026-09-12-1425.md", "docs/journal/2026-09-12-1427.md", "docs/journal/2026-09-12-144.md", "docs/journal/2026-09-12-1458.md", "docs/journal/2026-09-14-1468.md", "docs/journal/2026-09-15-146.md", "docs/journal/2026-09-15-147.md", "docs/journal/2026-09-15-148.md", "docs/journal/2026-09-15-2.md", "docs/journal/2026-09-16-153.md", "docs/journal/2026-09-19-1652.md", "docs/journal/2026-09-20-157.md", "docs/journal/2026-09-21-162.md", "docs/journal/2026-09-21-164.md", "docs/journal/2026-09-21-1682.md", "docs/journal/2026-09-22-165.md", "docs/journal/2026-09-22-167.md", "docs/journal/2026-09-22-1717.md", "docs/journal/2026-09-22-1733.md", "docs/journal/2026-09-23-167.md", "docs/journal/2026-09-24-169.md", "docs/journal/2026-09-24-1809.md", "docs/journal/2026-09-24-186.md", "docs/journal/2026-09-27-169.md", "docs/journal/2026-09-27-1940.md", "docs/journal/2026-09-27-1943.md", "docs/journal/2026-09-28-169.md", "docs/journal/2026-10-09-188.md", "docs/journal/2026-10-09-189.md", "docs/journal/2026-10-09-190.md", "docs/journal/2026-10-15-192.md", "docs/journal/2026-10-15-196-where-things-stand-snapshot.md", "docs/journal/2026-10-15-196.md", "docs/journal/2026-10-15-198.md", "docs/journal/2026-10-15-203.md", "docs/journal/2026-10-15-205.md", "docs/journal/2026-10-15-206-2.md", "docs/journal/2026-10-15-206.md", "docs/journal/2026-10-15-207.md", "docs/journal/2026-10-15-209.md", "docs/journal/2026-10-15-211.md", "docs/journal/2026-10-15-212.md", "docs/journal/2026-10-15-213.md", "docs/journal/README.md", "docs/journal/milestone-log.md", "tests/docs-budget-test.sh" ], "tests": [ { "command": "bash tests/docs-budget-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/vendor-manifest-coverage-test.sh", "exit_code": 0 }, { "command": "bash tests/judgement-call-prompts-test.sh", "exit_code": 0 } ], "criteria": { "wc -c STATUS.md < 16384 and no line > 2KB": "STATUS.md is 6734 bytes, longest line 952 bytes (tests/docs-budget-test.sh asserts both; green)", "ratchet test fails when STATUS.md>16KB / any line>2KB / GOTCHAS index>24KB; in the offline suite and green": "tests/docs-budget-test.sh added (3 checks green); red-proven on a 20000-byte fixture; picked up by the suite loop (tests/*.sh)", "every former 'Last updated' paragraph reachable from the journal dir, byte-for-byte; git-follow continuity in a README": "docs/journal/ holds 59 entries (one per '**Last updated' line, incl. glued ones split and the 152-line entry whole), migrated byte-for-byte and asserted equal to the source slices by the migration; docs/journal/README.md carries the `git log --follow -- STATUS.md` continuity note; milestone-log.md + where-things-stand snapshot preserved whole", "CLAUDE.md, the read-first enrichment, and the prompt skeleton carry the new read/update rule": "CLAUDE.md DONE (Project-status + Docs-homes sections rewritten for the compact surface + journal + GOTCHAS index). read-first enrichment (.sandcastle/prompt-enrichments/read-first.md) and the prompts/session-runner-prompt.md skeleton sentence DEFERRED to ready-for-session #221: both require editing the protected .sandcastle/ self-copy — a worker's protected-paths fence rolls back any .sandcastle/ edit, and any skeleton prose edit reds onboard-lib-test.sh's dev-factory cutover (the committed .sandcastle copy can only be re-rendered by a human re-vendor, GOTCHAS 4 / rule 9)", "prompt-skeleton + enrichment changes re-proven byte-identical (or deliberately updated) in the onboarding cutover fixtures": "no skeleton/enrichment prose was changed this run (deferred to #221), so the onboarding cutover fixtures stay byte-identical and green (onboard-lib-test.sh: 270 passed, 0 failed)", "full offline suite green": "the suite loop (tests/*.sh + onboarding/tests/*.sh) ran with exit 0; no FAIL lines" }, "summary": "Split STATUS.md into a <7KB compact surface + an append-only docs/journal/ (59 entries byte-for-byte), GOTCHAS.md into a 69-row index + per-hazard docs/gotchas/ bodies, added the tests/docs-budget-test.sh ratchet, and rewrote CLAUDE.md's read/update rule.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#196
No description provided.