Repository navigation
fix(claude-ops): audit takes the plugins skill Step 1 pre-refresh snapshot - #3938
Conversation
…pshot (#3937) Step 1 wrote pre-refresh.<mp>.json in the same code fence as its `claude plugin marketplace update` call, so the skill read the whole step as mutating and told `audit` to skip it. The snapshot is a read and it is the first link in the catalog-regression chain, so an `audit` run started that check at `pre` and lost the interval that isolates the refresh point. Step 1 now separates the two: the snapshot is taken by both actions, only the refresh is sync-only. The interval is read per action, `audit` creates its scratch directory before Step 1, and the run-journal row, SKILL.md action table, "Action: audit" section and the audit eval match. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QKEaVqVaeGnNeFq14sc6pW
Follow-up on the same change. The new sentences carried em dashes the surrounding new text in these files does not use, an orphaned rewrap line in SKILL.md, a partial enumeration of what an audit run writes, and a sync-framed rationale sentence sitting above the paragraph that qualifies it. Reworded, reflowed, and stated once. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QKEaVqVaeGnNeFq14sc6pW
634405e to
c075d02
Compare
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 finished @kyle-sexton's task in 2m 38s —— View job Claude finished the code review
|
|
Claude finished @kyle-sexton's task in 41s —— View job Security review complete
Skip gate triggered: no security-relevant surface. This PR is prose-only, as the PR description states and the diff confirms:
No scripts changed, no new inputs are parsed, no auth/access-control logic, no injection surface (command, SQL, path, template), and no secret/token handling is touched. Per the skip gate in |
|
Last security-reviewed head: |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Stack the plugins-skill audit snapshot fix as 0.44.3 above the hook-utils stdin cut-short vendor bump that landed as 0.44.2. Co-authored-by: ksextonmelodic <[email protected]>

Closes #3937
Summary
The catalog-regression check added to the
pluginsskill in 0.44.0 diffs consecutive run-journalsnapshots and names the first interval in which a marketplace catalog moved backward. The earliest
snapshot in that chain,
pre-refresh.<mp>.json, was written bysync.md's Step 1 in the same codefence as
claude plugin marketplace update. Theauditaction runs the same algorithm with everymutating call replaced by a prediction, so the skill read Step 1 as wholly mutating and said so
outright: Step 3's
auditbullet stated "Step 1 never runs", and the run journal'sauditparagraphlisted only Steps 2-5 among the reports an
auditrun writes. Anauditrun's regression checktherefore started at
preand lost its first interval, the one that isolates the refresh point.The snapshot is a read, taken through the read-only
fleet-state.sh.auditlegitimately declinesonly the
claude plugin marketplace updatecall beside it.Fix
Prose only; no script changed.
context/sync.mdStep 1 splits its one code fence in two, each labelled: the snapshot is aread both actions take, the refresh is the
sync-only mutation thatauditrenders aswould run:. The rationale paragraph now states what a regression in thepre-refreshtopreinterval means per action: under
syncthis run's own refresh pulling a source that movedbackward, under
auditthe catalog changing under the run, since that run issued no refresh.auditbullet now reads "Step 1's refresh never runs (its snapshot is a read and isstill taken)" instead of "Step 1 never runs".
pre-refresh.<mp>.jsontable row, the file-list paragraph, thecatalog-regression bullet, and the
auditscratch-directory paragraph now read for both actions,and place the scratch
run_dir's creation before Step 1 rather than before Step 2.SKILL.md: the action table row ("every mutating CLI call replaced with a prediction; thereads those calls sit beside still run") and the "Action: audit" section, which now states the
Step 1 snapshot is taken and why, and describes the scratch directory the same way.
evals/evals.json: eval 2,audit-issues-zero-mutating-calls, gains an expectation that theresponse still takes the pre-refresh snapshot before declining the refresh, with its
expected_outputamended to match.fleet-state.test.shgains no case: no script changed, and its onlysync.mdmention is a comment.The behaviour under test is prose the model executes, which is what the eval covers.
Out of scope and deliberately untouched: the downgrade guard's own logic, and the version parser's
three-component ceiling being framed only as a prerelease-suffix case.
Verification
Rebased onto
mainat 90cd27d afterfad23dfebtook 0.44.1; this change is 0.44.2. Both commitsare signature-verified.
check-skill.sh plugins(skill-quality's static contract gate):PASS — 0 errors, 1 warning(s).The warning is the pre-existing 200-line soft target (SKILL.md is 419 lines against a 500 hard
cap; it was 413 before this change). Its internal probes reported
markdownlint cleanand passedall three bundled script suites:
fleet-state.test.sh,cache-content-check.test.sh,normalize-enabled-plugins.test.sh.fleet-state.test.shstandalone, the one suiteaffected-tests.sh --explainattributes tosync.md:90 cases, 0 failed.check-evals-quality.sh:PASS (0 warning(s) across 1 file(s)). The evals file also validatesagainst the bundled
evals.schema.json.markdownlint-cli2over the three changed markdown files:Summary: 0 issues in 0 files.check-changelog-parity.shin all four modes:--check,--check-bump origin/main,--check-preserved origin/main(184 headings compared),--check-order(93 changelogs). All pass.check-purged-em-dashes.sh --check: 98 declared paths, 130 files scanned, no em dashes.produced it, against pass/fail criteria: does
auditnow take the snapshot, does it still issuezero mutating calls, is the first interval available in both actions, does the committed prose
match the (unchanged) scripts, and do the repo's conventions hold. Verdict: PASS on all eight
criteria, no must-fix items. Its nice-to-haves are folded into the second commit.
No
claude pluginmutating command was run at any point in producing this change.Related
Refs #3930 (the downgrade guard's originating report) and #3936 (the PR that added the guard and
this snapshot chain).