Repository navigation
feat(toolchain): warn at turn end when the tree's recorded check or lint result is not a pass - #11684
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM6yQO1c Lane-Thread: PRRT_kwDOTCGFQM6yQO5L
Lane-Activity: pr-unblock/fix-ci
…11519-toolchain-tree-warn # Conflicts: # docs/catalog.md
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Incremental review of the changes since 9cf1a3f: the changelog fragment,
No closing-issue criteria or manifest items were touched by this delta. No spend or billing change is involved. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9cf1a3f726
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed No security issues found in the incremental change since 9cf1a3f. It covers three files: the changelog fragment, I read the whole
No manifest fields changed and no instruction surface was touched, so there are no critical-findings: 0 |
An unstaged change that replaced a tracked file with a directory, or a tracked directory with a file, made update-index fail on the scratch index, so treeHash threw, record-result.mjs exited 2 and the Stop hook stayed silent. A listed path that is now a directory over a file or symlink entry is force-removed first and left out of the add pass; --replace lets a path that became a file drop the entries under it. Submodule entries are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 3, survived 2, timeout 0, no coverage 0, invalid 0, not run 2.
Surviving mutants
The run's summary has the full report. |
Closes #11500
Summary
Replaces #11519, a lanes App pull request that conflicted with main. Merging main into it stages
.github/workflowsfiles, which the App cannot push, so this owner-login branch carries the same change: #11519's head (baf98ff) merged into current main./toolchain:check and check-mode /toolchain:lint record their Overall line per working-tree id, and a new Stop hook (
plugins/toolchain/hooks/result-gate.mjs) warns at turn end when the tree's recorded result is not a pass, or no result is recorded for a changed tree. Theturn_end_result_gateoption (advisory by default,enforceblocks once on a recorded FAIL,offis silent) is read from user and managed settings only. #11519's body has the full design notes and its known limits.Fix
plugins/toolchain/lib/tree-result.mjs,scripts/record-result.mjs,hooks/result-gate.mjs,hooks/hooks.json,hooks/result-gate.test.sh,hooks/plugin-options.mjs(shared copy oflib/plugin-options.mjs),plugin.json,prerequisites.json, the check and lint skills, the README,scripts/shared-copies.txt, and the changelog fragment.docs/catalog.md(generated from the manifests): took main's file and reranscripts/generate-catalog.mjs, which keeps main's newer sql-server line and this change's toolchain description..github/workflowsfile.tree-result.mjs): before this fix, an unstaged change that replaced a tracked file with a directory, or a tracked directory with a file, madeupdate-indexfail on the scratch index.treeHashthrew,record-result.mjsexited 2, and the Stop hook stayed silent. Now a listed path that has become a directory over a file or symlink entry is removed with--force-removefirst and left out of the add pass, and the add pass runs with--replace, so a path that has become a file drops the entries under it. Submodule (gitlink) entries are kept.Verification
bash plugins/toolchain/hooks/result-gate.test.sh: 48 passed, 0 failed, exit 0. The four new cases ("a tracked file replaced by a directory hashes to the staged tree", "a file-to-directory swap records a result", "a tracked directory replaced by a file hashes to the staged tree", "a directory-to-file swap records a result") failed before the fix: 44 passed, 4 failed, exit 1.scripts/check-affected.sh --uncommittedon the swap fix: 13 passed, 5 skipped, exit 0.scripts/check-affected.sh --tests --no-fetch14 passed, 2 skipped;node scripts/generate-catalog.mjs --checkin sync;bash scripts/sync-shared-copies.sh --checkall 548 copies match; all exit 0.Related
🤖 Generated with Claude Code