Skip to content

feat: Phase D D3 agent PR self-check script -- scans Python and markdown files for forbidden claim language before PR creation - #891

Merged
cschanhniem merged 1 commit into
mainfrom
feat/d3-pr-claim-checker
Jul 10, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
feat/d3-pr-claim-checker

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Implements D3 from NEXT_100_PR_MAP: agent PR claim self-check.

What

  • pr_claim_checker.py: check_pr_claims() + format_pr_claim_report() + PRClaimReport + ClaimViolation
  • Scans .md, .py, .rst, .txt files for 11 forbidden claim patterns
  • PR_ALLOWLIST skips known-safe files (AGENTS.md, check_claims.py, etc.)
  • Agents can run this before creating a PR to catch overclaiming
  • 63 tests; BASELINE 7276 to 7339

Why

The existing check_claims.py only scans markdown docs. D3 extends claim scanning to Python source files (docstrings, comments) and makes the check callable on a list of files — suitable for pre-PR agent use without shelling out.

Disconfirming pass

  • Allowlist prevents false positives on claim-definition files
  • Case-insensitive scan catches ALL_CAPS violations
  • No safety/release policy touched.

…own files for forbidden claim language before PR creation (#891)
@cschanhniem
cschanhniem merged commit 569f3bb into main Jul 10, 2026
1 check failed
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