Repository navigation
refactor(config): share TTS migration traversal - #130708
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 1:15 AM ET / 05:15 UTC. ClawSweeper reviewWhat this changesThe PR makes Doctor’s legacy-TTS detection and repair share one lazy traversal of supported configuration locations, and adds table-driven scope coverage. Merge readinessKeep open: this is a member-authored, maintainer-labeled PR, so it is not eligible for automated cleanup. The reviewed source shows a coherent behavior-preserving consolidation; exact-head CI is still pending. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherDoctor inspects legacy configuration, reports migrations that can be safely repaired, then applies those repairs before writing config. This change centralizes the location walk used by TTS migration detection and mutation. flowchart LR
A[Legacy configuration] --> B[Doctor issue detection]
B --> C[Shared TTS location traversal]
C --> D[Migration repairs]
D --> E[Validated configuration]
C --> F[Preview messages]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -116, Tests +98. Total -18 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single shared lazy traversal and land it after exact-head CI confirms the preserved migration contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors existing migration traversal rather than reporting a new failure. Is this the best way to solve the issue? Yes: a shared traversal is the narrowest way to keep preview detection and repair scope aligned while preserving the deliberately narrower provider-alias scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 036e635c71cb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for This AI-assisted private traversal cleanup removes 116 production lines and adds 98 behavioral test lines. It preserves the four migration IDs/order, supported-location exclusions, blocked-key handling, collision precedence, ordered messages and repeat no-op behavior. No config/schema/default/persistence/API change is included. Verified commands and evidence:
Known boundary: #130637 remains open and unfixed. The unchanged public diagnostic reproduces the same legacy per-agent persistence loss on both baseline and candidate. No provider credentials or running Gateway were used; isolated Gateway-unavailable diagnostics were expected. This is not live-provider proof. The latest ClawSweeper comment ( |
|
Merged via squash.
|
Related: #130637 (separate migration-persistence follow-up; not fixed by this cleanup).
What Problem This Solves
Doctor's TTS migration previews and repairs maintained separate copies of the same location and speaker/persona walks. Keeping those copies aligned made future maintenance unnecessarily error-prone.
Why This Change Was Made
Share the existing private traversal between detection and repair, retaining lazy preview termination and the supported-location exclusions. All four migration IDs, their order, messages, collision precedence, blocked-key handling, and public config behavior remain unchanged. Production is net −116 lines; tests add 98 lines. No files moved, generated output, dependencies, SDK, schema, defaults, or persistence changes.
User Impact
No intended user-visible change. Root and voice-call provider aliases retain their existing scope; speaker/enabled migrations retain their existing legacy-agent and supported channel locations. Unsupported agent defaults/keyed entries, Discord root/account-root TTS, and unknown plugins are not newly migrated.
During end-to-end verification, a preexisting Doctor persistence problem was independently reproduced on the unchanged base: legacy per-agent TTS repairs can be announced but not saved. Investigation of that repair also exposed authored environment-reference preservation requirements. The larger authored-migration-owner repair remains tracked in #130637; this PR does not claim to resolve it or alter its behavior.
Evidence
0f51ba4269b9ac8706eb39ff24c053b5370eda23; no retries.This cleanup was AI-assisted and independently reviewed with Codex. The latest ClawSweeper comment was inspected before native preparation; it is still a review-start placeholder, with no published findings or Rank-up moves. No passing ClawSweeper verdict is claimed.