Skip to content

fix(claude-ops): audit takes the plugins skill Step 1 pre-refresh snapshot - #3938

Merged
kyle-sexton merged 3 commits into
mainfrom
agent-a7d4de29a3001fcea
Sep 7, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
agent-a7d4de29a3001fcea

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Closes #3937

Summary

The catalog-regression check added to the plugins skill in 0.44.0 diffs consecutive run-journal
snapshots and names the first interval in which a marketplace catalog moved backward. The earliest
snapshot in that chain, pre-refresh.<mp>.json, was written by sync.md's Step 1 in the same code
fence as claude plugin marketplace update. The audit action runs the same algorithm with every
mutating call replaced by a prediction, so the skill read Step 1 as wholly mutating and said so
outright: Step 3's audit bullet stated "Step 1 never runs", and the run journal's audit paragraph
listed only Steps 2-5 among the reports an audit run writes. An audit run's regression check
therefore started at pre and lost its first interval, the one that isolates the refresh point.

The snapshot is a read, taken through the read-only fleet-state.sh. audit legitimately declines
only the claude plugin marketplace update call beside it.

Fix

Prose only; no script changed.

  • context/sync.md Step 1 splits its one code fence in two, each labelled: the snapshot is a
    read both actions take, the refresh is the sync-only mutation that audit renders as
    would run:. The rationale paragraph now states what a regression in the pre-refresh to pre
    interval means per action: under sync this run's own refresh pulling a source that moved
    backward, under audit the catalog changing under the run, since that run issued no refresh.
  • Step 3's audit bullet now reads "Step 1's refresh never runs (its snapshot is a read and is
    still taken)" instead of "Step 1 never runs".
  • The "Run journal" section: the pre-refresh.<mp>.json table row, the file-list paragraph, the
    catalog-regression bullet, and the audit scratch-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; the
    reads 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 the
    response still takes the pre-refresh snapshot before declining the refresh, with its
    expected_output amended to match.

fleet-state.test.sh gains no case: no script changed, and its only sync.md mention 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 main at 90cd27d after fad23dfeb took 0.44.1; this change is 0.44.2. Both commits
are 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 clean and passed
    all three bundled script suites: fleet-state.test.sh, cache-content-check.test.sh,
    normalize-enabled-plugins.test.sh.
  • fleet-state.test.sh standalone, the one suite affected-tests.sh --explain attributes to
    sync.md: 90 cases, 0 failed.
  • check-evals-quality.sh: PASS (0 warning(s) across 1 file(s)). The evals file also validates
    against the bundled evals.schema.json.
  • markdownlint-cli2 over the three changed markdown files: Summary: 0 issues in 0 files.
  • check-changelog-parity.sh in 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.
  • A separate fresh-context verifier subagent audited the committed diff blind to the reasoning that
    produced it, against pass/fail criteria: does audit now take the snapshot, does it still issue
    zero 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 plugin mutating 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).

kyle-sexton and others added 2 commits September 7, 2026 12:02
…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
@kyle-sexton
kyle-sexton force-pushed the agent-a7d4de29a3001fcea branch from 634405e to c075d02 Compare September 7, 2026 16:07
@kyle-sexton
kyle-sexton marked this pull request as ready for review September 7, 2026 16:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-07T16:12:54.734744Z c075d02 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 38s —— View job


Claude finished the code review

  • Gather context (PR diff, description, repo instructions)
  • Understand the request (/review:code-review lane per custom instructions)
  • Run the review against plugins/claude-ops skill files
  • Check for stale/contradictory prose left behind by the fix
  • Final summary

Review (CI code-review lane)

Scope: plugins/claude-ops/skills/plugins/{SKILL.md,context/sync.md,evals/evals.json}, plus the version bump and CHANGELOG.md entry. This is a prose-only fix (no scripts changed), consistent with the PR description.

No blocking findings. I checked for the failure modes this kind of fix typically introduces:

  • Stale contradictions left behind — searched the whole skills/plugins tree for the retired "Step 1 never runs" claim; the only remaining hits are the corrected audit bullet in context/sync.md:531 ("Step 1's refresh never runs") and unrelated matches in other files (converge.md, scope-semantics.md). No leftover contradiction.
  • Code-fence split correctness — Step 1's snippet in context/sync.md (around lines 344–354) was split from one fenced block into two (snapshot read, then the sync-only refresh mutation), with the new prose sitting between them. Both fences are independently valid bash and the split reads correctly.
  • Cross-file consistency — SKILL.md's action table row/"Action: audit" section, context/sync.md's Run-journal table row, the catalog-regression-check bullet, the Step 1 section, the Step 3 audit-mode bullet, and evals/evals.json's eval 2 (expected_output + a new expectation) all now describe the same thing: the pre-refresh snapshot is a read both actions take, only claude plugin marketplace update is sync-only, and the scratch run_dir is created before Step 1. I didn't find a place that was updated in one file and missed in another.
  • Em dashes — grep for newly added + lines containing an em dash found only one, and it's inside a bullet lead-in (- **audit mode** —) that already existed pre-diff; not a new introduction, so it doesn't conflict with .claude/rules/vendor-docs-are-not-style.md.
  • Skill-body convention — .claude/rules/skill-bodies-state-current-rules.md says a skill body should state the current rule, not the incident that motivated it. The changed lines in SKILL.md/sync.md hold to that; the issue number (claude-ops/plugins: audit skips Step 1 entirely, so it never writes pre-refresh.<mp>.json and its catalog-regression check loses its first interval #3937) only appears in CHANGELOG.md, which is exactly where the rule says that history belongs.
  • Version/changelog hygiene — plugin.json bumps 0.44.1 → 0.44.2, and the new CHANGELOG.md entry matches. Author states check-changelog-parity.sh passed in all four modes; I did not independently re-run it (affected-tests.sh wasn't run in this pass), so that remains author-claimed/unverified by me — flagging per this lane's own rule against restating claimed verification as independently confirmed.

Nothing here rises to a senior-reviewer blocking bar; this is a well-scoped, internally consistent documentation fix with matching eval-expectation updates. No inline comments filed.

Branch: agent-a7d4de29a3001fcea

@claude

claude Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 41s —— View job


Security review complete

  • Gather context (PR body, changed files list)
  • Run /review:security-review skip gate and criteria
  • Read changed files' diffs
  • Post findings (or note no issues found)

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 /review:security-review, stopping here with no findings.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Last security-reviewed head: c075d02064473de02b8531e720e0d36ceafc7fea. On the next push, the relevance gate compares only the commits since this SHA; delete this comment to force a full re-review.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

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]>
@kyle-sexton
kyle-sexton enabled auto-merge (squash) September 7, 2026 16:17
@kyle-sexton
kyle-sexton merged commit 84bc80b into main Sep 7, 2026
3 checks passed
@kyle-sexton
kyle-sexton deleted the agent-a7d4de29a3001fcea branch September 7, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

claude-ops/plugins: audit skips Step 1 entirely, so it never writes pre-refresh.<mp>.json and its catalog-regression check loses its first interval

2 participants