Repository navigation
refactor(agents): separate MCP catalog metadata contracts - #192302
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. |
Baseline-Refresh: a77b479583876129b81e36639a69d1e286597cbf
|
Codex review: needs changes before merge. What this changesThis PR moves four MCP catalog type declarations into a dedicated internal module and updates consumers while preserving public SDK exports. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the focused type extraction preserves existing contracts, and no actionable defect was found; the draft still has reported merge conflicts and pending qualification. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherMCP servers supply catalog metadata that the agent runtime projects into tool inventories, native tool policy, and Gateway MCP Apps; the public harness SDK exposes the same catalog contract. flowchart LR
A[MCP servers] --> B[Catalog projection]
C[Catalog type contracts] -.-> B
B --> D[Session runtime]
B --> E[Tool inventories and policy]
D --> F[Gateway MCP Apps]
C -.-> G[Public harness SDK]
Technical reviewBest possible solution: Retain the dedicated catalog type owner, direct consumer imports, and unchanged public SDK names, then complete the draft’s integration and qualification. Do we have a high-confidence way to reproduce the issue? No runtime bug is claimed; source inspection confirms catalog-only consumers currently share a type module with session execution and lifecycle contracts. Is this the best way to solve the issue? The extraction is a small, coherent solution: it preserves all four declarations, migrates internal consumers, retains public exports, and adds no competing runtime path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e1a9f2c7a4fa. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -3, Tests -6. Total -9 across 34 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 3, 2026, 5:12 PM ET / 22:12 UTC. |
|
Merged via squash auto-merge.
|
MCP catalog metadata is consumed by discovery, materialization and public catalog projections, but its declarations currently live alongside session execution and lifecycle contracts.
Move the four complete catalog data declarations into one private catalog type owner and migrate their internal consumers together. Route the existing public
McpToolCatalogTYPE export directly to that owner. Preserve runtime bodies, value imports, catalog shapes and session callbacks, leases, authority and cleanup behavior. No new public names or performance claim.Validation on the integrated candidate:
Exact-head hosted CI and applicable security gates completed successfully. Merged as
f32ee258e30983f699abbe4fd3c4d3ad0114f563. No live or paid provider workload ran.Post-merge follow-up: a metadata helper that landed after the source pin retained the retired type import. The one-line correction routes it to the canonical catalog owner without changing helper bodies or runtime contracts. The same production typecheck failed before and passed after; both owning test-type projects and four suites / 65 tests passed, along with scoped lint/format and fresh review. The follow-up used the scoped red-main direct-push route; its CI was not complete at publication.