Repository navigation
refactor(openai): project prepared Decision execution explicitly - #188231
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 passes prepared Decision execution fields explicitly from the OpenAI plugin to the shared executor. Example: Evaluate a Boolean question using openai/gpt-6-luna.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the explicit projection preserves the existing executor inputs, and no actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe OpenAI Decision adapter receives a prepared question batch and provider context, checks endpoint eligibility, and invokes the shared guarded HTTP executor to return typed results. flowchart LR
A[Prepared Decision batch] --> B[Lazy OpenAI adapter]
C[Prepared provider context] --> B
B --> D[Explicit execution inputs]
D --> E[Shared guarded executor]
E --> F[Decisions endpoint]
F --> G[Typed Decision outcome]
Technical reviewBest possible solution: Retain the explicit plugin projection while keeping guarded execution and supported SDK compatibility with their existing owners. Do we have a high-confidence way to reproduce the issue? This PR reports an internal dependency-boundary concern rather than a user-visible bug; source comparison confirms the broader context is replaced by equivalent explicit inputs. Is this the best way to solve the issue? The smallest complete change is this direct projection into the existing executor, preserving endpoint eligibility, lazy registration, and shared execution ownership without new machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5310270e46cf. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9. Total +9 across 1 file. 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 October 30, 2026, 6:12 AM ET / 10:12 UTC. |
cb577ec to
56e8dd6
Compare
f9f2a4d to
779d567
Compare
56e8dd6 to
1404ebf
Compare
1404ebf to
85390ca
Compare
779d567 to
48089ac
Compare
|
Merged via squash.
|
…nclaw#188231) * refactor(decisions): centralize scoped consumer execution * refactor(decisions): keep consumer evaluation receipts opaque * refactor(decisions): avoid shadowing consumer runtime names * refactor(decisions): separate OpenAI protocol from guarded execution * refactor(openai): project prepared Decision execution explicitly
What Problem This Solves
The OpenAI Decision plugin passes a broad host context to its shared executor, obscuring which prepared facts execution consumes.
User Impact
No user-visible behavior or configuration changes. Part 07 of the maintainer-directed Decision refactor stack, based on part 06.
Why This Change Was Made
Project prepared model, auth, transport, lifetime and reasoning facts explicitly. Keep endpoint eligibility and lazy registration with the OpenAI plugin.
1 production file, +11/-2 lines. Existing provider and registered integration tests are retained; no duplicate extraction-only tests were added.
Evidence
git range-diff.74d7ee2d56cda5940618e5abc42abcdb12575964, including the configured runtime, type, lint and guard lanes.5b235dd694af030aeb75e1ec6e831b71ce4b745c. Shared SDK source-audit evidence, the advisory API-report timeout and broader manual-campaign limitations are recorded in part01.Landing update
Current head:
48089ac3081836900f679c8df6b10cb65027da7c; current-head CI passed at48089ac3081836900f679c8df6b10cb65027da7c. Landing waits for the preceding slices. After part04 landed, the remaining stack was replayed onto its actual protected-main commit63dbee6a514580948082dc20cb930c7e748c019eto resolve the named CI/base-context gap in part05. All 20 commit ranges remain patch-identical bygit range-diff; the allocation guard passes. Earlier CI/build evidence above remains historical. Each slice lands through the native main-targeted review, preparation, and merge workflow after its predecessor.