feat(sdk): add shared codex runtime strategy foundation#122
Open
yaniv-tg wants to merge 1 commit intoa5c-ai:stagingfrom
Open
feat(sdk): add shared codex runtime strategy foundation#122yaniv-tg wants to merge 1 commit intoa5c-ai:stagingfrom
yaniv-tg wants to merge 1 commit intoa5c-ai:stagingfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR moves the first Codex runtime uplift into the shared SDK instead of continuing to grow duplicated plugin-only logic.
It adds shared runtime foundations for:
plan/interactive/execute/review/fixlocal,subagent, and futurecloudmodesorchestrator_taskmetadata for subagent fan-outThis is PR 1 of the Codex upstreaming work. It is intentionally limited to shared SDK/runtime foundations.
What Changed
Shared runtime modules
Added:
packages/sdk/src/runtime/capabilityReport.tspackages/sdk/src/runtime/modelRouting.tspackages/sdk/src/runtime/executionStrategy.tspackages/sdk/src/runtime/strategyDispatch.tsThese provide:
interactive->gpt-5.3-codex-sparkgpt-5.3-codexlocalsubagentcloudrequested but still local fallback in this PRRuntime wiring
Updated:
packages/sdk/src/runtime/intrinsics/task.tspackages/sdk/src/runtime/intrinsics/orchestratorTask.tspackages/sdk/src/runtime/orchestrateIteration.tspackages/sdk/src/runtime/types.tspackages/sdk/src/runtime/index.tsThis adds:
executionHintson pending effect actionsharnessCapabilitiesroutedModelsByPhasependingEffectsByModeTask schema updates
Updated:
packages/sdk/src/tasks/types.tspackages/sdk/src/tasks/kinds/index.tsThis extends
orchestrator_taskdefinitions with:executionModemodelPhaseparallelismsubtasksThis is the baseline needed for local subagent fan-out semantics in shared code.
Tests
Added/updated:
packages/sdk/src/runtime/__tests__/strategyRuntime.test.tspackages/sdk/src/runtime/__tests__/intrinsics.behaviors.test.tspackages/sdk/src/runtime/__tests__/orchestrateIteration.integration.test.tspackages/sdk/src/tasks/__tests__/kinds.test.tsCoverage includes:
Docs
Updated:
README.mdplugins/babysitter-codex/README.mdThese now point out that shared Codex runtime policy is moving into
packages/sdk.Non-goals in This PR
This PR does not yet do:
plugins/babysitter-codextreeThose should follow in later PRs.
Validation
Ran:
npm.cmd test -- --run src/runtime/__tests__/strategyRuntime.test.ts src/runtime/__tests__/intrinsics.behaviors.test.ts src/runtime/__tests__/orchestrateIteration.integration.test.ts src/tasks/__tests__/kinds.test.ts src/harness/__tests__/harness.test.tsResult:
5test files passed63tests passed0failed