Repository navigation
improve(doctor): skip unused plugin catalogs during startup - #150670
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 18, 2026, 1:47 AM ET / 05:47 UTC (Revision 4). ClawSweeper reviewWhat this changesDoctor skips plugin catalog lookups when existing provider, plugin, and channel selections cannot use their entries, with regression coverage for empty selections and environment-selected providers. Merge readiness⛔ Blocked before merge - 1 item remains The PR remains useful: current main lacks these guards, and no blocking defect was found. The completed acceptance evidence resolves the previous review’s proof request for the unchanged candidate. Priority: P2 Review scores
Verification
How this fits togetherDoctor inspects configured plugins during Gateway startup, diagnostics, and updates. It combines configuration and environment selections with installation metadata to identify package repairs and deferred migrations. flowchart TD
A[Configuration and environment] --> B[Collect selected providers and plugins]
B --> C{Relevant selections or missing plugins?}
C -->|Yes| D[Read installation catalogs]
C -->|No| E[Skip unused catalog reads]
D --> F[Package repair and migration inspection]
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +40. Total +49 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep catalog access conditional on canonical selections while preserving environment-selected providers and retained migration obligations. Do we have a high-confidence way to reproduce the issue? Not applicable to a correctness bug: source inspection confirms unnecessary catalog reads for empty selections, but no startup timing improvement was measured in this review. Is this the best way to solve the issue? Yes. The guards reuse existing selection owners and skip work whose results cannot contribute, without introducing another cache, configuration option, or migration path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b97803a2f3b2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review Please refresh the review of unchanged head The PR body now records completed proof for the identical retained package: fresh npm onboarding and published2026.9.2 configured-plugin upgrade passed in run35190299360 attempt2; all15 missing-plugin serving, deferred-state, and Doctor-resumption phases passed in run35204618475 after the independently reviewed assertion repair150748. Exact-head CI35188692725 is green. Current-main guard owners and canonical selection helpers remain unchanged; supporting migration/dependency drift is explicitly documented. No startup timing gain is claimed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Gateway startup's Doctor inspection loads plugin catalogs even when no selected provider, plugin, or channel can use their entries.
User Impact
Startup avoids unnecessary catalog work for empty selections. Configured plugins, environment-selected official providers, and declared migration obligations retain their existing behavior. No configuration or update migration changes are required.
Why This Change Was Made
Guard the two catalog lookups with their existing canonical selection results. This follows #149737 without adding another cache or migration path.
Evidence
517a5b44and package SHA-25625d0259d61cd504e9335bdd5eccc58c9630b2bdbc61a8f6c4cacd10939fd4803passed fresh npm onboarding and the published2026.9.2configured-plugin upgrade in Package Acceptance attempt 2. The missing-plugin cell exposed a tooling assertion defect; the narrowly reviewed repair is now merged. The complete missing-plugin cell passed using that same retained package: all 15 required phases include Gateway health/status, deferred state after startup and Doctor, and successful migration/config validation once Codex becomes available. Its survivor artifact was digest-verified (bdb10cc0f3202509c0998224b471016d0474b48aa8fba5e610a254129dc03b2e). These are manual-restart published-updater cells; original infrastructure and assertion failures remain recorded.