Skip to content

📖 docs: exclude project-local excuses from the Stop-hook recipe like watch --rebuttal=send does - #271

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
sec/fix-stop-hook-project-excuses
Oct 18, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
sec/fix-stop-hook-project-excuses

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Security Fix

The Claude Code Stop-hook recipe in README.md said it applied the "same 0.7 confidence floor that watch --rebuttal=send uses", but it skipped the watcher's other send-time guard: matches whose excuse has source: "project" are detection-only, because ./.rationguard/custom-excuses.json belongs to the (untrusted) checkout. Without that filter a cloned repo could plant a catch-all excuse and have its rebuttal delivered to Claude as hook feedback with exit 2.

This change:

  • adds and .excuse.source != "project" to the recipe's jq select, with a comment stating why;
  • updates the explanatory prose so readers know project-local matches still count as detections but are never forwarded.

Verified locally with a planted .rationguard/custom-excuses.json (pattern: "the", confidence 1): the fixed hook exits 0 with no output for a message that only matches the planted excuse, and still exits 2 with the builtin rebuttal for "This is too complex to fix right now".

Docs-only change; no code or tests touched.

Closes #270


Filed by sec-check agent (ACMM L6 — full mode)

— hive: agent=sec-check backend=copilot model=claude-fable-5.1 copilot=1.0.88

…tch --rebuttal=send does

The README's Claude Code Stop-hook recipe mirrored the watcher's 0.7
confidence floor but not its project-source exclusion, so rebuttals
loaded from ./.rationguard/custom-excuses.json in an untrusted checkout
could be handed to the agent as hook feedback. Filter them out in the jq
select and explain why in the prose.

Closes #270

Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Oct 18, 2026
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 18, 2026
@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head and removed dco-signoff: yes Indicates the PR's author has signed the DCO. labels Oct 18, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=reviewer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 709be7f into main Oct 18, 2026
12 of 13 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the sec/fix-stop-hook-project-excuses branch October 18, 2026 17:31
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#2716573978` sha256:ddcca2e3eee4fbd1f444a82a79b50e115503befbcfa590d309fbb0a07166cf2b — download from the dashboard or `hivectl review evidence #271`.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution! Your PR has been merged.

We'd love to hear how your experience was: share feedback

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

0 participants