Repository navigation
ci: check that an as-of date in a skill file carries a recheck trigger - #15989
Conversation
scripts/check-as-of-recheck.sh fails a paragraph in a plugin skill, agent or reference file that holds an as-of date and no recheck trigger, and each finding names the fix first: a trigger for a stored value, no date for a pointer. A generated shared copy is reported at its canonical source. The eight current offenders sit in scripts/as-of-recheck-baseline.txt, which fails when a count could shrink, the spoke-plugin-root mechanism. It runs in lint-repo through run-hygiene-gate.sh and in scripts/check-affected.sh, and the rule's stored-value paragraph now points at it. Closes #15936 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojPZLwoMUhW1ApGhJc
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53bb9acb0f
ℹ️ 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".
A three-backtick line inside a four-backtick example toggled the fence off, so the example's text was read as prose. A fence now closes only on a bare run of the opener's character at least as long as the opener. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojPZLwoMUhW1ApGhJc
|
claude-security-review reviewed Security review: PR #15989 (incremental, head caeecbf)No security issues found. This was an incremental review of the changes since
Neither file matches a trusted-path glob. No manifest changes, merge holds, workflows or instruction surfaces were touched in this increment. critical-findings: 0 |
|
claude-review reviewed Code review: incremental,
|
…s #s A wrapped prose line opening with an issue reference (#15663; recheck when ...) was flushed as a heading, splitting its paragraph from the date or the trigger beside it. A heading now needs a space or the line end after its #s, as CommonMark requires. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojPZLwoMUhW1ApGhJc
Closes #15936
Summary
The rule that a stored upstream value keeps an as-of date and a recheck trigger was prose only and was swept by hand across about a dozen pull requests. This adds a check that fails a paragraph in a plugin skill, agent or reference file holding an as-of date with no recheck trigger, holds today's offenders in a baseline that can only shrink, and shortens the rule to point at the check.
Fix
scripts/check-as-of-recheck.sh: reads every*.mdunderplugins/*/skills/,plugins/*/agents/andplugins/*/reference/(minusevals/andfixtures/). A paragraph (a heading, table row and list item each stand alone; code fences skipped) fails when it holdsas of YYYY-MM-DDand norecheck, unless the next paragraph opens with one (theAs of:/Recheck when:record shape). Every finding names the fix first: a trigger for a stored value, no date for a pointer, so it never demands a stamp on a pointer. A generated shared copy (scripts/shared-copies.txt) is reported at its canonical source.scripts/as-of-recheck-baseline.txt: the 8 current offenders, one paragraph each in 8 files, recounted on this branch. The issue's count of 16 in 6 files came from a different reading. It uses the<path> <count>baseline mechanismcheck-spoke-plugin-root.shalready uses: a count above the entry is a new offender, and a count below it, or a clean or missing file, fails until the entry is lowered or removed.lint-repostep throughscripts/run-hygiene-gate.sh as-of-recheck, itsCHECK_RESULTSrow,scripts/check-affected-gates.txt, and arun_checkinscripts/check-affected.sh, so the same command also runs before every agent push. The script lives underscripts/, whichCARRY_REFUSESalready covers, so the merge-hold lists need no change..claude/rules/skill-bodies-state-current-rules.md: the stored-value paragraph now points at the check instead of stating the trigger rule.Dogfooding: this repository's own CI runs the check on every non-draft pull request (
lint-repo, gateas-of-recheck), andscripts/check-affected.shruns it at pre-push.Verification
bash scripts/check-as-of-recheck.test.sh: PASS=19 FAIL=0. It covers a violating paragraph that fails and names the fix, the corrected paragraph that passes, each record shape, a baseline that could shrink, stale entries and environment errors./corrections:codifyproof:prove-check.shwith this check against4ba07469a3f^, the tree before the 2026-11-12 stamp sweeps, exited 0. The old tree exits 1 with 23 trigger-less paragraphs, and HEAD exits 0.scripts/check-script-contract.test.sh(the new member's clean and violation arms pass; the 2check-html-assets.shfailures come from a missingnode_modulesin this worktree),scripts/check-affected.test.shPASS=131,scripts/check-affected-gates.test.shPASS=6,scripts/check-lane-coverage.sh --check,scripts/aggregate-hygiene-results.sh --self-test,actionlintandshellcheck: all clean.Related
plugins/attribution/skills/audit/scripts/check-stamps.sh --trigger-lessis the consumer-facing audit and reads a trigger anywhere in a file as clearing the whole file. This gate needs paragraph-level findings and a shrink-only baseline, so it does not reuse that script.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojPZLwoMUhW1ApGhJc