fix(import): allow issue-only duplicate closes - #309
Conversation
|
Codex review: needs changes before merge. Reviewed August 6, 2026, 5:15 AM ET / 09:15 UTC. ClawSweeper reviewWhat this changesThe PR changes Gitcrawl cluster-job generation so non-security clusters containing only issues do not require a repair or merge before automated duplicate closure. Merge readiness⛔ Blocked by patch quality or review findings - 5 items remain Keep this member-authored draft open, but it has a P1 automation-safety defect: it disables the fix-first gate for every non-security issue-only cluster, allowing superseded closures without a repair or merged fix. Duplicate closures already bypass that gate on current main. Likely related people: github-actions[bot] (low confidence; the locally available current-main history attributes the relevant guard to this account). Priority: P1 Review scores
Verification
How this fits togetherGitcrawl cluster import converts related GitHub issues and pull requests into guarded Clownfish jobs. Those job flags feed the result applicator, which decides whether a duplicate or superseded item may be closed automatically. flowchart LR
A[Gitcrawl cluster data] --> B[Cluster job generator]
B --> C[Fix-first policy flag]
C --> D[Result applicator]
D --> E[Duplicate closure]
D --> F[Superseded closure]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the generator's existing fix-first flag and add applicator-boundary coverage proving that duplicates may close without a fix while superseded items remain blocked. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection gives a high-confidence path: generate a non-security issue-only autonomous cluster with merge enabled, then submit a superseded closure; the branch emits a false guard and the applicator skips fix-first validation. Is this the best way to solve the issue? No. The supported duplicate path is already exempted at the applicator boundary; preserving the broader guard and testing both classifications is narrower and safer. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against db7fe033a14b. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (56 earlier review cycles; latest 8 shown)
|
Summary
Validation
node --test test/import-gitcrawl-clusters.test.mjs(8/8)npm run validate(6,699 jobs)