Skip to content

feat(proof-debt): add .trusted-base-ignore for scanner self-reference false positives#29

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/trusted-base-ignore-scanner-fixtures
May 27, 2026
Merged

feat(proof-debt): add .trusted-base-ignore for scanner self-reference false positives#29
hyperpolymath merged 1 commit into
mainfrom
claude/trusted-base-ignore-scanner-fixtures

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

standards#223 added path-fragment exemption support to check-trusted-base.sh.

What

Adds .trusted-base-ignore exempting the 2 scanner-self-reference sites:

Pattern Reason
src/scanners/banned_patterns.rs Detector pattern table — the literal needle: "unsafeCoerce" matches itself in self-scan
tests/scanners.rs Test fixture — the string "import Unsafe.Coerce…" is the input the test feeds the detector

Cleanup (deferred)

The inline TRUSTED: comments added by #27 become redundant after this lands but are kept for now to avoid stomping on that in-flight PR. Follow-up will remove them.

🤖 Generated with Claude Code

… false positives

standards#223 merged 2026-05-27 adding path-fragment exemption support
to check-trusted-base.sh. governance.yml here uses @main floating pin,
so the new exemption mechanism is available on the next CI run.

Exempts the 2 scanner-self-reference sites that PR #27 currently
annotates inline with TRUSTED: comments:

  - src/scanners/banned_patterns.rs — detector pattern table mentions
    the strings it must detect.
  - tests/scanners.rs — test fixture includes the pattern under test.

The inline TRUSTED: comments in #27 remain valid (script accepts
either mechanism) but become redundant after this lands. Follow-up
PR can remove them once #27 settles.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) May 27, 2026 11:12
@hyperpolymath
hyperpolymath merged commit 8144f85 into main May 27, 2026
25 checks passed
@hyperpolymath
hyperpolymath deleted the claude/trusted-base-ignore-scanner-fixtures branch May 27, 2026 11:22
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