Repository navigation
refactor(plugins): consume admitted metadata directly - #177436
Conversation
Recover the plugin-area portion of the parked backup cleanup. Manifest admission remains the provider-policy owner, registration still validates every scope, and source-controlled catalog inputs use their inferred shapes. Malformed hand-edited bundled JSON may fail visibly instead of silently producing empty entries.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes repeated metadata checks after manifest admission and Control UI registration have validated the values. Example: A plugin declares provider key " DEMO " with family " demo-family ".
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-directed simplification with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPlugin manifest admission and registration turn external declarations into canonical metadata consumed by provider requests, config schemas, onboarding, and Control UI projections. flowchart TD
A[Plugin manifests] --> B[Manifest admission]
B --> C[Metadata projections]
D[Bundled catalogs] --> C
C --> E[Provider and setup consumers]
F[Control UI registration] --> G[Validated UI descriptors]
Technical reviewBest possible solution: Keep validation in the existing admission owners and let these projections consume their canonical values directly. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported bug; source inspection confirms the repeated checks and their upstream admission owners. Is this the best way to solve the issue? The change is appropriately small: it removes downstream revalidation, preserves external admission and feature checks, and adds coverage at the real manifest boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 11d0c854192d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -29, Tests +34, Other -2. Total +3 across 7 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 October 19, 2026, 11:52 AM ET / 15:52 UTC. |
|
Coordinator landing evidence for exact head
Merging with the exact-head SHA guard (squash). This works around a misfiring gate publisher; it does not bypass any failing check. |
|
Merged via squash auto-merge.
|
Recover the plugin-area portion of the parked backup cleanup. Manifest admission remains the provider-policy owner, registration still validates every scope, and source-controlled catalog inputs use their inferred shapes. Malformed hand-edited bundled JSON may fail visibly instead of silently producing empty entries.
What Problem This Solves
Plugin metadata projections repeat shape checks and normalization after their owners have already admitted the values. This recovers the plugin-area slice of the parked backup cleanup; the other infrastructure areas are deliberately separate for CI attribution.
What Changed
Read the two repository-bundled JSON catalogs using their inferred shapes, consume provider request policies normalized by manifest admission, and retain the fresh scope list after Control UI registration validates every scope. External manifest validation, provider ownership filtering, endpoint classification, HTTPS checks, required presentation fields, duplicate IDs, and operator-scope rejection remain in place. No SDK, config, protocol, dependency, or stored-data change.
The manifest test exercises the real load boundary with raw provider keys, padded policy fields, an unowned provider, and a malformed policy. The snapshot fixture now supplies canonical admitted facts without changing its expected result. Two obsolete assertion-baseline rows disappear with their casts; no budget grows.
29 net production lines removed, excluding tests and generated/baseline files. This is an area-split recovery, not the total parked-family reduction.
Best-effort tradeoffs accepted
Evidence
src/gateway/session-row-scope.ts|unicorn/no-new-array|1(98 received / 97 expected), matching the open scheduled-main signature in runs39270035500and39261680942. No suppression or allowance added.Hosted result and remaining status-owner blocker
Exact-head CI 39279185290, attempt 1 completed success; its native gate job
118165995736also succeeded. The separate Security Review publisher 39285796872 subsequently published a contradictory CI-only failure status while its dependency and sensitive-change guards both succeeded. Its historical API snapshot was not logged, so the reason for that false negative is not claimed known. The scheduled reconciler treats the newer terminal status as settled and skipped review in the next two observed runs. This remains an unresolved status-owner recovery need, not a product CI failure or a verified merge. The original accepted exact-head squash auto-merge intent remains armed; no CI rerun, repush, status injection, cancellation or rearming was performed.