Repository navigation
refactor(plugins): forward auth and catalog to their owners - #190205
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: needs changes before merge. What this changesThis PR forwards provider authentication and catalog operations directly to their existing owners while preserving current exports. Example: A registered provider formats fixture-access-key and supplies the catalog row fixture/row.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored draft open: it is a focused refactor through existing owners, with no actionable correctness finding from source inspection. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe deferred provider facade and public SDK catalog entrypoint connect credential and model-catalog callers to registered provider hooks, returning authentication results and supplemental catalog rows. flowchart TD
A[Credential callers] --> B[Deferred provider facade]
C[Model catalog callers] --> B
B --> D[Auth owner]
B --> E[Catalog owner]
F[SDK catalog entrypoint] --> E
D --> G[Registered provider hooks]
E --> G
Technical reviewBest possible solution: Preserve the existing facade and SDK contracts while forwarding directly to the auth and catalog owners. Do we have a high-confidence way to reproduce the issue? This PR addresses an import dependency rather than a reported runtime bug; source confirms that current main routes the affected entrypoints through the aggregate. Is this the best way to solve the issue? The unnecessary dependency is the aggregate import; redirecting the existing facade and SDK export, relocating the formatter, and retaining its compatibility re-export is a small, coherent solution using existing owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e46014433988. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +11, Tests +50, Other +1. Total +62 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 4:58 AM ET / 09:58 UTC. |
|
Merged via squash auto-merge.
|
Related: #188252
What Problem This Solves
Provider auth and model-catalog forwarding route through the aggregate runtime even though both have existing execution owners. The SDK catalog entrypoint also reaches that aggregate.
User Impact
No intended behavior or public API change. Provider selection, credentials, auth authority, catalog rows, failure isolation and deferred invocation retain their existing contracts. No CPU, latency, startup or total load-graph improvement is claimed.
Why This Change Was Made
Route the lazy facade to the existing auth and catalog owners and the SDK catalog export directly to the catalog owner. Move the formatter into the auth owner while preserving lookup, optional-hook behavior, arguments and plugin receiver; retain its aggregate export.
One real-registration regression traps aggregate loading while exercising the formatter and both catalog entrypoints, including receiver identity, stable results and cleanup. Remove the obsolete six-line aggregate mock. Production grows by 12 LF; tests grow by 50 LF, recorded in the existing allocation without changing the shared baseline. The correction extracts the formatter hook before calling it, preserving receiver binding while satisfying lint.
Evidence
3e5fadc2. After the formatter correction, both affected suites passed all 32 tests.4aa2b086: catalog 43.171s command wall / 9.09s Vitest duration, auth 7.510s wall / 4.60s Vitest duration. The catalog file exercises real registration and resource/lifecycle cleanup; runner preparation is included in command wall time. Exact-head CI run42642964630 passed; its timestamp interval was765s (workflow wall interval, not per-file CPU or cost).4aa2b086b5c34bd2ef495ecbed0f099e1699ce1b, with no actionable correctness or security findings.d08a78f7. No API baseline was changed.Native publication and preparation completed at exact
4aa2b086b5c34bd2ef495ecbed0f099e1699ce1b. Exact-head CI passed; normal squash landing merged this head asf63e5cd0f6d38f1d0438978255d9e244183864c3. Normal native completion is verified. No skipped or pending result is counted as passing proof.