Repository navigation
perf(plugins): retire the unused compiled provider index - #139930
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 6, 2026, 4:56 AM ET / 08:56 UTC. ClawSweeper reviewWhat this changesRemoves the unused compiled provider catalog and its setup branch, deletes their tests, updates the manifest documentation, and tightens the counted-name budget. Merge readiness⛔ Blocked before merge - 1 item remains Keep open as useful, bounded cleanup with no actionable findings. The stable-release comparison resolves the previous compatibility concern: the removed source contributes no shipped setup choices, and current main still contains it. Priority: P3 Review scores
Verification
How this fits togetherProvider setup combines installed plugin metadata with the official external catalog to produce authentication choices and installation hints. These choices feed onboarding, setup help, and plugin repair. flowchart TD
A[Installed plugin manifests] --> D[Provider setup catalog]
B[Installed package records] --> D
C[Official external catalog] --> D
D --> E[Installed owners take precedence]
E --> F[Onboarding and setup help]
E --> G[Plugin repair hints]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -486, Tests -525, Docs -9, Other 0. Total -1020 across 11 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retire the inert compiled source while preserving the existing manifest and external-catalog owners, installation precedence, and setup output. Do we have a high-confidence way to reproduce the issue? Not applicable as a functional bug reproduction: source confirms redundant normalization of rows that cannot produce setup choices; the body reports bounded CLI performance comparisons. Is this the best way to solve the issue? Yes. Removing the unused producer and sole setup consumer is narrower than maintaining another catalog or adding a compatibility layer for an empty contribution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7969f4992a8a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Related: #135997, #114393.
Current head:
50aba6672b60dfb4001dcf6ae6c2b247c8547879; merged main base:132da0ae7b08441a7e7d2238fa51a4ff8dc7b8ac. Original measurements remain pinned to4149769f8dcdc06b0fe9d757c1f5dc0908f60926and the original runtime patch; they have not been rerun or relabeled as current-head measurements.What Problem This Solves
Provider setup and onboarding help still load and normalize a compiled provider preview catalog that contributes no setup choices. Maintaining that unused source also leaves an obsolete discovery contract in the manifest documentation.
Why This Change Was Made
Remove the compiled index and its empty install-catalog branch. The only bundled rows have neither install metadata nor auth choices, and #114393 already removed the model-list preview consumer. Installed manifests and the official external catalog remain the setup owners; their precedence, aliases, deprecated choices, scopes and install-source metadata are unchanged.
This is an explicit prerequisite extraction from the retirement already included in #135997. It does not import that PR's ClawHub feed, wizard, installation, credential or UI changes. The broader feature should be rebased after this prerequisite lands. The existing documentation anchor is retained while its obsolete source description is corrected.
User Impact
Setup choices and help output remain byte-for-byte equivalent in the tested fixtures. Default onboarding help median latency improved from 431.832 to 332.207 ms in forward order and from 380.274 to 347.234 ms in reverse order. Other cases were mixed: reverse default setup median increased 0.22%, and root-help controls included regressions. These are local built-CLI observations, not a universal performance or memory claim.
The cleanup removes 486 production lines and 525 test lines. The two removed OPENCLAW_PROVIDER_INDEX constants also shrink the existing counted-name budget from 496 to 494; this does not remove or change an operator environment variable.
Evidence
Compatibility and upgrade decision
The latest review's config-compatibility checklist is satisfied: zero operator configuration keys, environment variables, defaults, persisted formats, database schemas or public package exports are added, changed or removed. The budget adjustment counts two TypeScript constants, not environment-variable readers. The removed optional source parameter was used only by tests; no configuration or SDK ingress supplied alternate index rows.
The exact producer and sole consumer were compared with stable v2026.9.2. Those shipped rows have no install metadata or auth choices, so deleting this contribution does not remove a shipped setup option. Installed manifests and the official external catalog still produce the same complete choices, aliases, precedence and help output in the paired proof. Legacy provenance literals, durable install records and Doctor migrations are untouched. No operator action or migration is required. This is an inert-source retirement, not a configuration/default change; no additional compatibility layer is justified.