Repository navigation
refactor(decisions): isolate SDK transport from host bundles - #189404
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 imports two Decisions transport helpers directly from their existing owners instead of broad SDK facades. Example: Load the standalone Decisions executor and evaluate a Boolean question without an API key.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: the focused import substitution preserves existing owners and contracts, and no introduced correctness defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared Decisions SDK executor accepts prepared provider credentials, transport settings, deadlines and admission checks, sends guarded HTTP requests, and returns typed outcomes to OpenAI-compatible providers. flowchart TD
A[Provider or SDK caller] --> B[Decisions executor]
C[Request transport owner] --> B
D[Timeout owner] --> B
B --> E[Guarded HTTP transport]
E --> F[Decisions endpoint]
F --> G[Typed outcome]
Technical reviewBest possible solution: Retain the two direct imports and focused boundary regression, then complete the already-declared SDK validation before landing. Do we have a high-confidence way to reproduce the issue? Source inspection confirms the two broad import edges on current main; this refactor does not report a separate runtime failure, and no target code was executed during this read-only review. Is this the best way to solve the issue? The smallest complete change is the proposed import substitution: keep helper identity and execution semantics intact while removing the unnecessary facade edges. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 40b332d1a8a9. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +30, Other +1. Total +31 across 3 files. Added test files: 0. View PR surface stats
Review metrics
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 October 31, 2026, 9:20 AM ET / 13:20 UTC. |
|
Merged via squash auto-merge.
|
(cherry picked from commit 7485abc)
Related: #188252
What Problem This Solves
The OpenAI-compatible Decision SDK entry imports broad host and extension bundles for two operations already owned by smaller modules.
User Impact
Decision execution and the public SDK contracts remain unchanged. The SDK entry can load and execute without initializing those two broad bundles. Bundled providers still retain their own other host imports; this makes no whole-provider startup claim.
Why This Change Was Made
Import request-transport projection and timeout construction directly from their existing owners. Keep the public entry, prepared-context compatibility adapter, executor, authentication, authority, deadlines, HTTP guards and result translation intact. Retain both broad public barrels for their other consumers.
The existing SDK test gains an independent cold-entry case while retaining its codec and type assertions. Its30 added lines have a separate30-line allocation; production line count is unchanged.
Evidence
pnpm buildpassed (237.937s), including declarations, runtime/plugin outputs and UI. No reduced build profile or skipped phases were used.Broad exact-head PR CI remains required. These are cold-boundary and behavior proofs, not measured startup-latency or memory claims.