Skip to content

chore(jit-context): curate the nine waiting trap.d fragments - #581

Merged
fdaviddpt merged 3 commits into
mainfrom
chore/curate-trapd
Sep 5, 2026
Merged

fdaviddpt merged 3 commits into
mainfrom
chore/curate-trapd

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

One /oss:curate pass over the nine fragments waiting in trap.d/. Part of #580, which came out of it; closes nothing by itself.

Reading them together changed three of the answers

456.tree-snapshot-cwd-reset, 539.tree-snapshot-scratchpad-vanished and 527.explore-reviewer-left-stale-index are not three notes. They are one rule with three clauses about the review phase's snapshot/compare step -- and that is only visible from a position where every fragment is open at once, which is exactly why this judgement is not taken inside the lane that writes a fragment.

Promoted -- tools/00-manual/

  • tree-snapshot-compare.md -- the cd must be on the compare's own Bash call (cwd resets between calls; a compare from the wrong cwd reports VERDICT: mutated about the main clone, indistinguishable from a real one); the before-snapshot belongs inside the worktree, not the shared scratchpad (539's file was written, verified readable, and gone several calls later with no error, while every neighbouring file written in the same window survived); and could-not-compare is a third verdict that is never clean. 527 is in it as the positive control: an Explore reviewer left the index at HEAD~1 while the working tree sat at HEAD, git status showed a false MM, and the reviewer's own final message claimed it had worked only in a scratch copy. Only the blob hashes caught it.
  • release-publish-denied.md -- the classifier's denial of release_publish --execute is per-context, not per-command. v0.26.0: denied in oss:releaser, denied again in the scheduler, finished by a human. v0.28.0 (today): denied twice in oss:releaser, succeeded first try from the scheduler. So the scheduler retries once before handing a human a command.
  • supertool-literal-backslashes.md -- edit:@- refuses an even backslash run in a written field; Python source containing \n trips it legitimately. The refusal names its own fix (literal_backslashes), which went untried while the lane bypassed supertool's write path and its validators for one 40-line edit.

Merged

554 (agy prints [ok] above five skipped (not found), exit 0 -- a directory resolving zero components validates identically to one resolving all five) into vocabulary/02-hosts/antigravity-hooks.md, where anyone about to trust an agy verdict is already reading.

Declined, each traced in its layer's 00-README.md

The builder skips those files by name, so an absence recorded there reads as a decision rather than an oversight, and the next lane to hit the same thing finds the answer instead of re-filing it.

Firing proof -- both directions, with a control

payload result
python3 scripts/tree_snapshot.py compare --before - fired tree-snapshot-compare.md
python3 scripts/release_publish.py --version 0.29.0 --execute fired release-publish-denied.md
./supertool gh-pr-merge:1:squash (known-good control) fired the shipped merge-gate.md
ls -la docs/ {} -- silent

The control is not decoration: without a rule already known to fire in the same batch, a silent must-fire case and a broken checker report identically.

Two of these rules do not belong to this repo

tree-snapshot-compare and release-publish-denied are about the oss loop's own flow; supertool-literal-backslashes is about supertool's own op. They sit in 00-manual/ as interim copies, because 01-oss/ is generated and replaced wholesale on every plugin install (oss_rules.py: "the layer is replaced wholesale on every install, because nothing a human wrote lives in it") -- an append there is destroyed silently by the next update, with no error and no diff.

Filed upstream, each carrying the rule verbatim so it can be dropped into the generated layer: claude-oss#1105, claude-oss#1106, claude-supertool#2327. tools/00-manual/00-README.md records the mapping so the local copies get deleted when they ship rather than drifting as forks.

trap.d/ ends empty

As the command requires. No keeper file was added: the directory held only fragments before this pass, and trap_curate.py already reports one filename that does not parse as <issue>.<slug>.md, so a 00-README.md there would be flagged as a malformed fragment on every future pass.

Verification

Documentation and rule files only -- no code, no test changes. The firing proof above is the behavioural check; trap_curate.py . now answers none waiting. Observed on macOS; nothing here is platform-conditional.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7

[AI-generated]

fdaviddpt and others added 2 commits September 5, 2026 21:54
Read all nine together before deciding any, which changed three of the answers:
456.tree-snapshot-cwd-reset, 539.tree-snapshot-scratchpad-vanished and
527.explore-reviewer-left-stale-index are not three notes, they are one rule about
the review phase's snapshot/compare step with three clauses. That is only visible
from a position where every fragment is open at once.

Promoted (tools/00-manual/):
- tree-snapshot-compare.md -- same-call `cd` (a compare from the wrong cwd reports
  `mutated` about the main clone), the before-snapshot's home (539's vanished from
  the shared scratchpad with no error while its neighbours survived), and
  `could-not-compare` never rendering as `clean`. 527 is in it as the positive
  control: the check caught a real stale index a reviewer denied leaving.
- release-publish-denied.md -- the classifier's denial of `release_publish
  --execute` is per-context, not per-command. v0.26.0 needed a human; v0.28.0 was
  denied twice inside oss:releaser and succeeded first try from the scheduler. So
  the scheduler retries once before handing a human a command.
- supertool-literal-backslashes.md -- `edit:@-` refuses an even backslash run in a
  written field; Python source containing '\n' trips it legitimately and the
  refusal names its own fix, which went untried while the lane bypassed supertool.

Merged:
- 554 (agy plugin validate prints `[ok]` over five `skipped (not found)`) into
  vocabulary/02-hosts/antigravity-hooks.md, which is where anyone about to trust an
  agy verdict is already reading.

Declined, each traced in its layer's 00-README.md so the next lane finds a decision
rather than nothing:
- 456.gemini-cli-headless-auth -- premise dead. #532 closed, 0.58.0 refuses free-tier
  accounts before auth is reached, and Gemini CLI left the README in #572.
- 487.ostype-immutable-on-windows-gitbash -- well-evidenced (two mechanisms, two CI
  runs) but the lesson is already encoded where it bites, in the test's own skipif.
- 524.readme-call-site-count-stale -- a wrong number is a defect, not a rule. Filed
  as #580; docs/windows.md says 10 call sites, grep counts 15.

Firing proof, both directions, with a known-good control in the same batch:
`tree_snapshot.py compare` fired tree-snapshot-compare.md; `release_publish.py
--execute` fired release-publish-denied.md; `gh-pr-merge` fired the shipped
merge-gate.md (the control); `ls -la docs/` returned `{}`. Without the control a
silent must-fire and a broken checker are indistinguishable.

Two of these rules do not belong to this repo and say so in their own text:
tree-snapshot and release-publish are about the oss loop, supertool-literal-backslashes
about supertool's own op. They sit in 00-manual/ as interim copies because 01-oss/ is
generated and replaced wholesale on every install (oss_rules.py) -- an append there is
destroyed silently by the next update. Filed upstream as claude-oss#1105, claude-oss#1106
and claude-supertool#2327, each carrying the rule verbatim; delete the local copies once
they ship.

trap.d/ ends the pass empty, as the command requires. No keeper file was added: the
directory held only fragments before, and trap_curate.py already reports a filename
that does not parse as <issue>.<slug>.md, so a README there would be flagged as a
malformed fragment every pass.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7
Every other layer's index is tracked (paths/01-oss, tools/01-oss, tools/00-manual,
vocabulary/01-oss, vocabulary/02-hosts). These two are empty because their layers
hold only a 00-README.md, which the builder skips by name -- so they carry no rows
today and are still the file a rebuild writes. Tracking them keeps a rebuild from
showing up as untracked noise in the next lane's git status.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7
@fdaviddpt fdaviddpt added the no-changelog Change is invisible to users label Sep 5, 2026
PR #581's checks are green (16 passed, 0 failed), but a cancelled-and-
superseded `fragment` run left GitHub's mergeStateStatus on UNSTABLE, so
the merge gate refuses. An empty commit re-runs every leg on a commit with
no cancelled run attached.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7
@fdaviddpt
fdaviddpt merged commit 4327a64 into main Sep 5, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the chore/curate-trapd branch September 5, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Change is invisible to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant