Repository navigation
fix: prevent GitHub work item identity collisions - #3588
Conversation
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 3 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 3 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 3 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 3 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
[High impact] Safe to merge within the reviewed scope; no blocking issues were found in repository identity handling, legacy compatibility, stale closure, or the encoded-ID CLI lifecycle.
|
|
Thank you for preventing GitHub identity collisions while retaining legacy IDs. This is now merged through #3806, with your contributor head preserved. The combined integration and exact resulting main passed CI, CodeQL and a fresh supply-chain scan (CI, main |
What Changed
Prevent
work-items sync-githubfrom overwriting another repository's work item when repository names produce the same slug. For example,acme/tool-kit#1andacme/tool_kit#1now remain separate records for both issues and PRs.New IDs encode the case-normalized repository name without discarding punctuation or the owner/repository boundary. Existing imported IDs are retained only when their repository, source, source number, and sync marker match. An existing canonical ID takes precedence, and a conflicting canonical record produces an error instead of being overwritten. Stale-item matching uses the same case-insensitive repository identity.
No schema migration or bulk ID rewrite is required; existing matching records retain their IDs and creation timestamps. Other sync field-update behavior is unchanged.
Why This Change
The previous slug collapsed
/,-,_, and.into-. The resulting primary-key collision caused SQLite's upsert to silently replace the first repository's record with the second repository's data.Testing Done
work-items.jscoverage: 86.26% lines, 76.81% branches, 95.83% functions.git diff --checkpasses. Independent code review found no actionable issues.npm test: validators pass; 419 test files pass and two fail (install-guided.test.jsandsetup.test.js, 13 failing PTY cases). The same failing cases were reproduced on unmodified base commitb92f181b; no additional failures appear with this change.Type of Change
fix:Bug fixSecurity & Quality Checklist