Repository navigation
refactor: consolidate unique string list helpers - #99785
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 2:28 PM ET / 18:28 UTC. Summary PR surface: Source -9. Total -9 across 4 files. Reproducibility: not applicable. this is refactor cleanup rather than a bug report. Source inspection and existing focused tests give high confidence that the replaced helpers have equivalent contracts. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Proceed through normal maintainer approval and merge if checks stay green, keeping the change limited to exact first-seen or sorted unique-string mechanics. Do we have a high-confidence way to reproduce the issue? Not applicable; this is refactor cleanup rather than a bug report. Source inspection and existing focused tests give high confidence that the replaced helpers have equivalent contracts. Is this the best way to solve the issue? Yes. Directly calling uniqueStrings and sortUniqueStrings is the narrow maintainable refactor for exact delegate and Set patterns; broadly replacing unrelated Set or domain-specific normalization logic would be too risky. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6da5db21a633. Label changesLabel justifications:
Evidence reviewedPR surface: Source -9. Total -9 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
ae1f641 to
2e019d0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
2e019d0 to
2955cfe
Compare
What Problem This Solves
OpenClaw had several local wrappers and raw
Setconversions that duplicated the shared stable-order string dedupe helpers, making the same policy-free mechanics appear to have multiple owners.Why This Change Was Made
This AI-assisted refactor removes three exact aliases of
sortUniqueStringsin provider resolution and routes exec authorization reason-list dedupe throughuniqueStrings. Sorting, trimming, casing, validation, precedence, source priority, and domain defaults remain local and unchanged.User Impact
No user-visible behavior changes. Maintainers get one canonical implementation for these exact unique-list mechanics and nine fewer production lines.
Evidence
node scripts/run-vitest.mjs src/infra/exec-authorization-plan.test.ts src/plugins/capability-provider-runtime.test.ts src/plugins/providers.test.ts src/plugins/providers.runtime.consult-current-snapshot.test.ts— 146 tests passed across 2 shards.tbx_01kwnhjbqsc6hgt2eb4c8m4y93, Actions run28693064957, exit 0..agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output— clean, 0 accepted/actionable findings, correctness confidence 0.99.git diff --check— passed.