Skip to content

ci: check that an as-of date in a skill file carries a recheck trigger - #15989

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/15936-as-of-recheck-check
Nov 13, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/15936-as-of-recheck-check

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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 *.md under plugins/*/skills/, plugins/*/agents/ and plugins/*/reference/ (minus evals/ and fixtures/). A paragraph (a heading, table row and list item each stand alone; code fences skipped) fails when it holds as of YYYY-MM-DD and no recheck, unless the next paragraph opens with one (the As 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 mechanism check-spoke-plugin-root.sh already 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.
  • Wiring, following ci: run the rules-index check on every pull request #15965: a lint-repo step through scripts/run-hygiene-gate.sh as-of-recheck, its CHECK_RESULTS row, scripts/check-affected-gates.txt, and a run_check in scripts/check-affected.sh, so the same command also runs before every agent push. The script lives under scripts/, which CARRY_REFUSES already 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, gate as-of-recheck), and scripts/check-affected.sh runs 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:codify proof: prove-check.sh with this check against 4ba07469a3f^, 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 2 check-html-assets.sh failures come from a missing node_modules in this worktree), scripts/check-affected.test.sh PASS=131, scripts/check-affected-gates.test.sh PASS=6, scripts/check-lane-coverage.sh --check, scripts/aggregate-hygiene-results.sh --self-test, actionlint and shellcheck: all clean.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01VcupojPZLwoMUhW1ApGhJc

kyle-sexton and others added 2 commits November 13, 2026 10:48
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
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 15:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T15:55:04.581020Z 53bb9ac 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check-as-of-recheck.sh Resolved
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
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed caeecbfecf06074dd8f14896d42a8d63bf0d8de8: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15989 (incremental, head caeecbf)

No security issues found. This was an incremental review of the changes since 66a055f0. I read every hunk of both files in scope (scripts/check-as-of-recheck.sh and scripts/check-as-of-recheck.test.sh). Because this lane already reviewed an earlier head, this review was blocking only.

  • scripts/check-as-of-recheck.sh: one awk pattern used to treat any line starting with # as a heading. It now does so only when the #s are followed by a space, a tab or the end of the line, so a wrapped line that opens with an issue reference like #123 stays in its paragraph. This changes only how the checker groups markdown lines before it reads them. It builds no command from file content, writes no files, touches no credentials and widens no trust control.
  • scripts/check-as-of-recheck.test.sh: adds three test cases for that behaviour. These are test fixtures only and have no security surface.

Neither file matches a trusted-path glob. No manifest changes, merge holds, workflows or instruction surfaces were touched in this increment.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 66a055f05a1e42c54101aad1e8ae8de6a42bae1d; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread scripts/check-as-of-recheck.sh Resolved
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed caeecbfecf06074dd8f14896d42a8d63bf0d8de8: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: incremental, 66a055f0 → caeecbfe (#15989)

I found nothing to block in this push. I read both changed files in full: scripts/check-as-of-recheck.sh and scripts/check-as-of-recheck.test.sh. An earlier head was already reviewed, so this review reports blocking findings only.

The prior finding is fixed. The heading arm at scripts/check-as-of-recheck.sh:128 now matches only #+ followed by a space, a tab or the end of the line, as CommonMark requires. A wrapped line that opens with #15663 now stays in its paragraph. I traced each new test case through the awk by hand:

  • Date first, then #15663; recheck …: both lines become one paragraph that holds both the stamp and the trigger, so nothing is pending and the case exits 0.
  • Trigger first, then #15663, as of …: both lines become one paragraph that holds the trigger, so the case exits 0.
  • Real heading # Cap 3 as of 2026-01-01: the heading is flushed alone and becomes pending. The next paragraph starts with It moves;, so opens_with_trigger fails and the heading line is reported. The fixture's heredoc is 25 lines, then a blank line, so the heading is line 27, which matches the expected SKILL.md:27: FIX:.

Settled points. The owner left the | arm unchanged on purpose: GFM table rows may omit their trailing pipe. That thread is marked as unchanged since resolution, and I did not raise it again. The fence-closing thread (original line 115) has no new changes in this push.

Other notes

  • The PASS=25 result and "the same 8 baselined files" on the real tree are the author's claims. I had no shell and ran nothing.
  • Neither the settled-threads file nor the prior-findings file contains any instruction aimed at this lane.

Verifier dropped 0 of 0 candidates.

…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
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 59e8808 Nov 13, 2026
72 checks passed
@kyle-sexton
kyle-sexton deleted the feat/15936-as-of-recheck-check branch November 13, 2026 19:54
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check that an as-of stamp in a skill file carries a recheck trigger

1 participant