Repository navigation
Require hosted plugin discovery to return a rejected promise - #5655
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 maintainer review before merge. What this changesThis PR checks that both hosted catalog operations return a Promise before asserting their rejection of malformed identity metadata. Example: A JavaScript caller supplies isFedramp: "true", and discoverCatalog synchronously throws credentials_rejected.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR repairs a concrete false-positive assertion with a minimal test-only change. No introduced defects were found, and exact-head required CI passed. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherOCC calls the selected Plugin Driver for catalog discovery and details; the hosted implementation validates credential metadata before requesting provider data. flowchart LR
A[OCC discovery caller] --> B[Codex Plugin Driver]
B --> C[Credential validation]
C --> D[Hosted catalog provider]
E[Conformance assertion] --> B
B --> F[Promise result or rejection]
Technical reviewBest possible solution: Land the focused assertion repair while retaining rejection matching and the existing prohibition on provider requests. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the false-positive path: a synchronous credentials_rejected throw inside the old async callback becomes an accepted rejection; no reproduction was executed during this read-only review. Is this the best way to solve the issue? Moving invocation outside the wrapper is the smallest complete fix and checks the existing Promise contract without changing production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2765f1de9ad6. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 12, 2026, 6:06 AM ET / 11:06 UTC. |
Summary
Require both hosted catalog operations to return a Promise before checking how they reject a malformed warm identity. The test still verifies that neither operation contacts the provider.
Validation