Skip to content

Improve GitHub issue deduplication reliability by introducing a stage… - #11769

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/dedup
Feb 13, 2026
Merged

etraut-openai merged 2 commits into
mainfrom
etraut/dedup

Conversation

@etraut-openai

@etraut-openai etraut-openai commented Feb 13, 2026 •

Copy link
Copy Markdown
Contributor

…d two-pass Codex search strategy with deterministic fallback behavior, and remove an obsolete prompt file that was no longer used.

Changes

  • Updated workflows/issue-deduplicator.yml:

    • Added richer issue input fields (state, updatedAt, labels) for model context.
    • Added two candidate pools:
      • codex-existing-issues-all.json (--state all)
      • codex-existing-issues-open.json (--state open)
    • Added body truncation during JSON preparation to reduce prompt noise.
    • Added Pass 1 Codex run over all issues.
    • Added normalization/validation step for Pass 1 output:
      • tolerant JSON parsing
      • self-issue filtering
      • deduplication
      • cap to 5 results
    • Added Pass 2 fallback Codex run over open issues only, triggered only when Pass 1 has no usable matches.
    • Added normalization/validation step for Pass 2 output (same filtering/dedup/cap behavior).
    • Added final deterministic selector:
      • prefer pass 2 if it finds matches
      • otherwise use pass 1
      • otherwise return no matches
    • Added observability logs:
      • pool sizes
      • per-pass parse/match status
      • final pass selected and final duplicate count
    • Kept public issue-comment format unchanged.
    • Added comment documenting that prompt text now lives inline in workflow.
  • Deleted obsolete file:

    • /prompts/issue-deduplicator.txt

Behavior Impact

  • Better duplicate recall when broad search fails by retrying against active issues only.
  • More deterministic/noise-resistant output handling.
  • No change to workflow trigger conditions, permissions, or issue comment structure.

…d two-pass Codex search strategy with deterministic fallback behavior, and remove an obsolete prompt file that was no longer used.

### Changes
- Updated `workflows/issue-deduplicator.yml`:
  - Added richer issue input fields (`state`, `updatedAt`, `labels`) for model context.
  - Added two candidate pools:
    - `codex-existing-issues-all.json` (`--state all`)
    - `codex-existing-issues-open.json` (`--state open`)
  - Added body truncation during JSON preparation to reduce prompt noise.
  - Added **Pass 1** Codex run over all issues.
  - Added normalization/validation step for Pass 1 output:
    - tolerant JSON parsing
    - self-issue filtering
    - deduplication
    - cap to 5 results
  - Added **Pass 2 fallback** Codex run over open issues only, triggered only when Pass 1 has no usable matches.
  - Added normalization/validation step for Pass 2 output (same filtering/dedup/cap behavior).
  - Added final deterministic selector:
    - prefer pass 2 if it finds matches
    - otherwise use pass 1
    - otherwise return no matches
  - Added observability logs:
    - pool sizes
    - per-pass parse/match status
    - final pass selected and final duplicate count
  - Kept public issue-comment format unchanged.
  - Added comment documenting that prompt text now lives inline in workflow.

- Deleted obsolete file:
  - `/prompts/issue-deduplicator.txt`

### Behavior Impact
- Better duplicate recall when broad search fails by retrying against active issues only.
- More deterministic/noise-resistant output handling.
- No change to workflow trigger conditions, permissions, or issue comment structure.
@etraut-openai

Copy link
Copy Markdown
Contributor Author

@codex review

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

Copy link
Copy Markdown
Contributor

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: 4e5ab51078

ℹ️ 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".

@etraut-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 👍

ℹ️ 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".

@etraut-openai
etraut-openai merged commit ffef5ce into main Feb 13, 2026
33 checks passed
@etraut-openai
etraut-openai deleted the etraut/dedup branch February 13, 2026 20:01
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant