Repository navigation
chore(jit-context): curate the nine waiting trap.d fragments - #581
Merged
Merged
Conversation
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
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
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.
One
/oss:curatepass over the nine fragments waiting intrap.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-vanishedand527.explore-reviewer-left-stale-indexare 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-- thecdmust be on the compare's own Bash call (cwd resets between calls; a compare from the wrong cwd reportsVERDICT: mutatedabout 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); andcould-not-compareis a third verdict that is neverclean. 527 is in it as the positive control: anExplorereviewer left the index atHEAD~1while the working tree sat at HEAD,git statusshowed a falseMM, 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 ofrelease_publish --executeis per-context, not per-command. v0.26.0: denied inoss:releaser, denied again in the scheduler, finished by a human. v0.28.0 (today): denied twice inoss: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\ntrips 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 fiveskipped (not found), exit 0 -- a directory resolving zero components validates identically to one resolving all five) intovocabulary/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.mdThe 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.
456.gemini-cli-headless-auth-- premise dead: Gemini CLI: no working credentials in this environment -- blocks driving any live session for #456's remaining scope #532 closed, 0.58.0 refuses free-tier accounts before auth is reached, Gemini CLI left the README in README never mentions Antigravity, and presents Gemini CLI as an equal install route #572.487.ostype-immutable-on-windows-gitbash-- well-evidenced (two override mechanisms, two CI runs, jobs 100892436094 and 100895310415) but the lesson is already encoded where it bites, in the test's ownskipif. The README says to reopen this if anyone tries the override a second time, since a repeat would mean the skip is not visible enough -- a different finding from the one declined.524.readme-call-site-count-stale-- a wrong number is a defect, not a rule. Filed as docs/windows.md claims 10 _remember_forward_slash call sites; there are 15 #580:docs/windows.mdsays 10_remember_forward_slashcall sites,grepcounts 15.Firing proof -- both directions, with a control
python3 scripts/tree_snapshot.py compare --before -tree-snapshot-compare.mdpython3 scripts/release_publish.py --version 0.29.0 --executerelease-publish-denied.md./supertool gh-pr-merge:1:squash(known-good control)merge-gate.mdls -la docs/{}-- silentThe 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-compareandrelease-publish-deniedare about the oss loop's own flow;supertool-literal-backslashesis about supertool's own op. They sit in00-manual/as interim copies, because01-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.mdrecords the mapping so the local copies get deleted when they ship rather than drifting as forks.trap.d/ends emptyAs the command requires. No keeper file was added: the directory held only fragments before this pass, and
trap_curate.pyalready reports one filename that does not parse as<issue>.<slug>.md, so a00-README.mdthere 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 answersnone waiting. Observed on macOS; nothing here is platform-conditional.🤖 Generated with Claude Code
https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7
[AI-generated]