Skip to content

fix(handoff): flag injection payloads in content-guard lint (#477) - #515

Merged
solomonneas merged 2 commits into
mainfrom
issue/477-content-guard-injection
Jul 24, 2026
Merged

fix(handoff): flag injection payloads in content-guard lint (#477)#515
solomonneas merged 2 commits into
mainfrom
issue/477-content-guard-injection

Conversation

@solomonneas

Copy link
Copy Markdown
Collaborator

Summary

  • Extend brigade handoff lint --content-guard with line-numbered injection heuristics alongside the existing leak scan.
  • Add scan_handoff_injection_heuristics() for override phrases, fake system blocks, assistant directives, and base64+decode chains; benign prompt-injection discussion downgrades to info.
  • Add an injection fixture corpus and tests; document the broader --content-guard scope in CLI help and docs/security.md.

Closes #477.

Test plan

  • ./scripts/verify (4200 passed, 82.62% coverage)
  • pytest tests/test_handoff_injection_lint.py tests/test_untrusted.py -q
  • Evil fixtures warn with line numbers; benign fixtures pass without warnings

Made with Cursor

solomonneas and others added 2 commits July 24, 2026 00:07
Update overview and technical guide links, finish phase-4a checklist item
for product/doc migration, and align stations/notify README with setup flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
Extend handoff lint --content-guard with line-numbered injection heuristics
alongside the leak scan, add a fixture corpus, and document the broader scope.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7ce5639b-0d5e-4660-b2cd-17818e187fd6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue/477-content-guard-injection

Comment @coderabbitai help to get the list of available commands.

@solomonneas solomonneas self-assigned this Jul 24, 2026
@solomonneas
solomonneas merged commit 6b7edb1 into main Jul 24, 2026
28 checks passed
@solomonneas
solomonneas deleted the issue/477-content-guard-injection branch July 26, 2026 20:38
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.

handoff lint --content-guard passes injection-laden handoffs as clean

1 participant