Skip to content

fix(audit): bootstrap template skips and pass-color signal matches - #53

Merged
jaruesink merged 2 commits into
mainfrom
fix/sfe-1073-1074-loupe
Aug 24, 2026
Merged

fix(audit): bootstrap template skips and pass-color signal matches#53
jaruesink merged 2 commits into
mainfrom
fix/sfe-1073-1074-loupe

Conversation

@jaruesink

Copy link
Copy Markdown
Contributor

Fixes SFE-1073 and SFE-1074 as a bounded one-off against current main (ec4e279, same as the frozen Loupe evidence commit).

SFE-1073 — bootstrap metadata validation

Malformed or unknown template metadata is no longer dropped silently. The loader names the file and missing/invalid field, treats onDemand as on-demand instead of alwaysApply, and gives general explicit match-all semantics. All 18 templates now load; performance-measure-before-optimize is on-demand. Inventory/vocabulary tests and the bootstrap golden were updated deliberately.

SFE-1074 — audit report status color

Successful PR rule-signal matches render as 🟢 signal match instead of yellow. Missing stays red; unknown stays unlabeled. Yellow remains the degraded/backlog color elsewhere in the report.

Validation

  • bun test scripts/bootstrap-generate.test.ts scripts/audit-report-format.test.ts scripts/__tests__/golden.test.ts scripts/verify-self-audit-proof.test.ts
  • bun run lint && bun run typecheck && bun test — 534 pass / 0 fail

Conversation: https://app.warp.dev/conversation/9e0e7871-f0b3-46b9-9cc9-7405363f9b73

Co-Authored-By: Warp agent@warp.dev

…tches

Make malformed or unknown bootstrap metadata visible instead of silently
dropping templates, treat onDemand/general as explicit vocabulary, and
render successful PR signal matches as green so they no longer look
degraded.

Co-Authored-By: Warp <agent@warp.dev>
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

On-demand reviews are free for the next 27 days. After that, they cost $0.25 per reviewed file.

Or wait 51 minutes for your next included review.

View limit details

Limit details: You’ve used the included review currently available. Your 74 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 26c8235e-c63e-498d-9d78-4fa2482d9eb5

📥 Commits

Reviewing files that changed from the base of the PR and between ec4e279 and 9316c1e.

📒 Files selected for processing (9)
  • .gitleaks.toml
  • docs/audits/anvil-audit-2026-08-09.md
  • docs/bootstrap-templates/scope-boundaries.md
  • scripts/__tests__/golden/bootstrap-generate.sample-cli.md
  • scripts/audit-report-format.test.ts
  • scripts/audit.ts
  • scripts/bootstrap-generate.test.ts
  • scripts/bootstrap-generate.ts
  • scripts/verify-self-audit-proof.test.ts

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

The SFE-1073 catalog fix now emits the security-patterns template into
the sample-cli bootstrap golden, which copies the same documented
example key already allowlisted in the source template.

Co-Authored-By: Warp <agent@warp.dev>
@jaruesink
jaruesink merged commit 3b04ac6 into main Aug 24, 2026
3 checks passed
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.

1 participant