Skip to content

fix(#667): add regex pattern decomposition guidance to review sub-agents - #668

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/667-regex-decomposition-guidance
Open

fix(#667): add regex pattern decomposition guidance to review sub-agents#668
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/667-regex-decomposition-guidance

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

  • Add a "Regex pattern verification" section to skills/pr-review/sub-agents/correctness.md requiring element-by-element regex decomposition (character classes, quantifiers, anchors, alternations, escape sequences, literals) before reporting findings that assert a regex pattern is incorrect
  • Add "Regex pattern misread" to the false-positive checklist in skills/pr-review/sub-agents/challenger.md with instructions to independently decompose any cited regex pattern before confirming or removing a finding

Context

On PR #595, both the correctness and challenger sub-agents misread [Cc]lose[sd]? as containing a double 'c', confusing the [Cc] character class boundary with the adjacent lose literal. Neither sub-agent definition had regex-specific guidance to prevent this class of false positive.

Testing

  • Verified changes are limited to the two sub-agent markdown files
  • Pre-existing test suite passes (one pre-existing failure in post-triage-test.sh unrelated to this change)
  • Secret scan clean

Closes #667

Post-script verification

  • Branch is not main/master (agent/667-regex-decomposition-guidance)
  • Secret scan passed (gitleaks — 6c81c8c420ac5a8e30e09639f4b7f869396ece92..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Both the correctness and challenger sub-agents lacked domain-specific
guidance for verifying regex patterns in findings. This caused false
positives where character class boundaries were misread as adjacent
literals (e.g., `[Cc]lose` read as having a double 'c').

Add a "Regex pattern verification" section to correctness.md requiring
element-by-element pattern decomposition before reporting regex-based
findings. Add "Regex pattern misread" to challenger.md's false-positive
checklist with instructions to independently decompose cited patterns
before confirming findings.

Closes #667
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner August 5, 2026 08:19
@fullsend-ai-review

fullsend-ai-review Bot commented Aug 5, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:20 AM UTC · Completed 8:29 AM UTC
Commit: 546a8c9 · View workflow run →

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium


Labels: PR modifies review sub-agent definitions (skills/pr-review/sub-agents/)

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment review-agent labels Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correctness and challenger sub-agents should decompose regex patterns before asserting regex-based findings

0 participants