Skip to content

fix: keep target issues out of duplicate warnings - #19

Merged
VrtxOmega merged 1 commit into
mainfrom
fix/target-issue-not-self-duplicate
Jul 30, 2026
Merged

fix: keep target issues out of duplicate warnings#19
VrtxOmega merged 1 commit into
mainfrom
fix/target-issue-not-self-duplicate

Conversation

@VrtxOmega

Copy link
Copy Markdown
Owner

Summary

  • distinguish a pull request target named by an active closing keyword from genuinely similar open issues
  • preserve the direct target as neutral linkedTargetIssues evidence while keeping closed-target, related-issue, and concurrent-PR warnings
  • add regressions for the original self-duplicate failure and for negated language such as does not fix #258

Problem

A contribution body that correctly said Fixes #258 could be downgraded to needs-repair because PCF treated issue #258 as a duplicate of the pull request intended to close it. The target relationship is useful context, but it is not duplicate evidence by itself.

Validation

  • npm run ci:gates — 278/278 tests, benchmark 77/77, hostile red tests 29/29, maintainer demo PASS
  • git diff --check
  • signed one-commit diff: 6 files, 168 insertions, 10 deletions
  • live repository-context search: no overlapping open issue or pull request

Assurance boundary

The full VERITAS pipeline passed intake, type, dependency, math, cost, incentive, security, adversary, and trace/seal gates. Its release evidence verdict remained INCONCLUSIVE because all current evidence is author-side and does not satisfy the independence threshold. This PR does not claim independent validation or campaign-count progress.

AI assistance

Codex helped reproduce the false positive, implement the focused repair and regressions, and run the verification. I reviewed the exact diff, signed commit, and test output before submission.

@VrtxOmega
VrtxOmega merged commit d7e76cf into main Jul 30, 2026
1 check passed
@VrtxOmega
VrtxOmega deleted the fix/target-issue-not-self-duplicate branch July 30, 2026 03:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 978819942d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


for (const match of source.matchAll(closingReference)) {
const prefix = source.slice(Math.max(0, (match.index || 0) - 24), match.index || 0);
if (/\b(?:not|does\s+not|doesn't|won't|will\s+not)\s*$/i.test(prefix)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle qualified negations before suppressing duplicates

When a PR says does not actually fix #258, fails to fix #258, or cannot fix #258, the closing-reference regex still matches fix #258, while this negation check only recognizes a few phrases ending immediately before fix. The issue is consequently added to targetIssueRefs and removed from similarOpenIssues, so analyzeRepositoryContext returns pass without possibly-duplicate even when the PR explicitly says the defect remains; account for these common negated forms before treating the reference as a target.

Useful? React with 👍 / 👎.

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