Skip to content

docs(guardrails): count 22 toggleable guards in the README and manifest - #17069

Merged
kyle-sexton merged 3 commits into
mainfrom
docs/17004-guard-count
Nov 18, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
docs/17004-guard-count

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #17004

Summary

The guardrails README intro said twenty guards and the manifest description said 25. Both now say
22 toggleable guards, the number of guards the manifest's userConfig toggles.

Fix

  • Count: plugins/guardrails/.claude-plugin/plugin.json userConfig holds 23 *_enabled booleans
    (jq '.userConfig|keys|map(select(endswith("_enabled")))|length'). One of them,
    git_hooks_notice_enabled, switches a session-start notice, not a guard, so 22 guards have a
    switch. The README's per-hook kill switch table lists the same 22 guards.
  • The old 25 matched the rows of the README's guard table, which also lists three git-hook checks
    with no userConfig switch (cli-flag-verify, skill-reference-verify, stale-path-verify), so
    it did not count toggleable guards.
  • README intro line, manifest description and the generated docs/catalog.md line now say 22;
    patch changelog fragment added.

Verification

  • node scripts/generate-catalog.mjs --check: catalog in sync with the manifests.
  • node scripts/generate-marketplace.mjs --check: marketplace entries in sync.
  • bash scripts/generate-catalog.test.sh: PASS=16 FAIL=0; pre-push check-affected passed.
  • Left out: nothing.

Related

  • The README intro's "four git-hook checks" count is unchanged; this issue covers only the guard count.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VcupokBnD3fgV5DKj7GeJA

The README intro said twenty guards and the manifest description 25. The
count is now the guards the manifest's userConfig toggles: the 23 *_enabled
booleans minus git_hooks_notice_enabled, a session-start notice, which is
also the 22 rows of the README's per-hook kill switch table. The catalog
line is regenerated.

Closes #17004

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupokBnD3fgV5DKj7GeJA
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 06:15
@kyle-sexton

Copy link
Copy Markdown
Member Author

Owned by the hub session Plugin Presets; it watches checks and review threads and merges.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 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-18T06:17:05.978080Z babb9ea 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.

@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 babb9eab201f4e22aee2183e728afc22e28de9bb; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/guardrails/README.md Resolved
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17069, guardrails guard count (blocking only)

This lane already reviewed an earlier head (babb9eab), so this review reports only blocking findings. There are none.

What changed since the earlier head. The PR adds plugins/guardrails/hooks/guard-count.test.sh, which answers the earlier advisory that nothing checked the count. That thread is resolved and settled. The test:

  • counts the userConfig keys ending in _enabled, leaving out git_hooks_notice_enabled;
  • requires N toggleable guards in the manifest description;
  • requires N toggleable **safety guards** on README line 3.

I read the helpers it sources in guardrails-test-helpers.sh, and they exist with the signatures the test uses: jq_crlf_free, assert_contains (label, haystack, needle) and report, which exits nonzero when FAIL>0. The test-scope: header names both files the count lives in. The PR says the suite passes at 22 and fails when the README says 21; that is the author's claim, and I did not run it.

Closing issue #17004. The criterion "The README intro and the manifest description give the same count, taken from the guards the manifest's userConfig toggles" is met. All three places now say 22: the README intro, the manifest description and the docs/catalog.md line. The new suite now covers it.

Loosened checks. The wrapper wrote no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. The diff changes prose, a description string and adds a test; it loosens no check. Loosened-check verdict: pass (nothing loosened).

Advisory and manifest lines (2)
  • manifest description: pass. The count now matches the 22 guard switches in userConfig, and the listed capabilities are unchanged.
  • manifest version: pass. The changelog fragment's bump: patch fits a description-only fix.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17069

I found no security issues and read all five changed files in full. This review is blocking only, because this lane already reviewed an earlier head (babb9eab). Only CRITICAL and IMPORTANT findings would be posted, and there are none.

What the pull request changes:

  • Guard count. The README intro, the manifest description and the generated docs/catalog.md line now all say "22 toggleable guards". The README intro only gains the count, and no standing instruction is deleted, narrowed or softened.
  • Changelog. It adds a patch fragment under .changes/guardrails/.
  • New test. It adds plugins/guardrails/hooks/guard-count.test.sh. The script reads the plugin's own plugin.json and README.md from paths built from its own directory. It counts the userConfig keys ending in _enabled, leaves out git_hooks_notice_enabled, and checks that both files state that count. It takes no external input, passes nothing to a shell, uses no network, secret or token, and adds no hook. It is a test suite, not a guard.

Nothing else changes: no workflow, trust control, merge hold, token scope or kill switch, and no userConfig key. The PR context holds no embedded instructions aimed at the lane. The only settled thread asked for this count check; it is not a security point, and the new test answers it.

critical-findings: 0

Manifest lines (1)
  • manifest description: pass

kyle-sexton and others added 2 commits November 18, 2026 03:31
…nfig

The README intro and the manifest description state how many guards
userConfig toggles, and nothing compared them, so the count could go
stale again unnoticed. The suite counts the *_enabled switches, leaves
out git_hooks_notice_enabled, which is not a guard, and requires that
number in both places.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44267981983

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit a60c1c2 Nov 18, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the docs/17004-guard-count branch November 18, 2026 09:40
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 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.

guardrails README intro says twenty guards while the manifest says 25

1 participant