Commit Graph
2090 Commits
Author SHA1 Message Date
Julius Marminge 799e032fe9 Integrate orchestration V2 controls and process recovery
- Add V2 item inspection, thread relationships, queued-run controls, and composer dispatch policies
- Reconcile interrupted provider state safely across shutdown and startup
- Preserve checkpoint baselines and shared provider-session projections
2026-08-07 13:21:01 +02:00
Julius Marminge 8f521e516e Complete orchestration V2 frontend cutover
- Migrate web and mobile state, commands, and persistence to V2 projections
- Render conversations from authoritative visible turn items
- Harden runtime policy, launch handling, attachments, and cache invalidation
2026-08-07 13:20:20 +02:00
Julius Marminge f38dbfd84c Integrate orchestration v2 with the application runtime
Retain the existing event-sourced application data plane for projects and shell state while making orchestration v2 the sole agent runtime. Adapt v2 events and receipts to the shared infrastructure and remove the v1 provider reactors.
2026-08-07 13:20:00 +02:00
Julius Marminge 8616a426b2 Guarantee MCP revocation during session release 2026-08-07 13:18:41 +02:00
Julius Marminge 243a5dee3a Remove MCP credential expiration 2026-08-07 13:18:41 +02:00
Julius Marminge ec79eb1411 Require MCP registry for V2 provider sessions 2026-08-07 13:18:41 +02:00
Julius Marminge 14abe0feb7 Complete orchestration V2 application services 2026-08-07 13:18:41 +02:00
Julius Marminge ffd02c6239 Start orchestration V2 application services 2026-08-07 13:18:02 +02:00
Julius Marminge d7d3fec8e6 Align orchestration V2 with Effect service conventions 2026-08-07 13:18:02 +02:00
Julius Marminge 5f4c29df2b Share Codex sessions across orchestration threads
- Track explicit thread-to-session bindings and detach without stopping siblings
- Apply runtime settings per Codex thread and filter multiplexed events by turn
- Add migration, projection, lifecycle, and concurrency coverage
2026-08-07 13:18:02 +02:00
Julius Marminge c4eea8d512 Map orchestration turns to provider instances
- Separate provider driver identity from configured provider instances
- Add durable event, effect, checkpoint, and turn-position persistence
- Route turn lifecycle and recovery through shared orchestration services
2026-08-07 13:18:02 +02:00
Julius Marminge c3f140c2b8 Add MCP thread management and Codex turn mapping
- Add scoped thread list, read, send, wait, and interrupt tools
- Track creation provenance and map provider turns across adapters
- Centralize thread lifecycle operations in a management service
2026-08-07 13:17:53 +02:00
Julius Marminge 5254973761 Add ACP replay harness and session lifecycle support
- Add replay agent and fixture-driven ACP transcript testing
- Support session lifecycle, auth methods, and session resume/fork flows
- Expand orchestration V2 adapter coverage and debug tooling
2026-08-07 13:17:53 +02:00
Julius Marminge e30da49e1d Handle segmented Cursor turns and stable visible timelines
- split streaming assistant and reasoning output into separate segments
- filter hidden interruption artifacts from projections and replay fixtures
- keep visible timeline positions stable when upserting streamed items
2026-08-07 13:17:36 +02:00
Julius Marminge 287048ed1b Add Cursor SDK orchestration replay support
- Wire Cursor adapter and provider session handling into orchestration v2
- Add replay fixtures, recording script, and coverage for Cursor turn flows
- Update docs and debug timeline mapping for Cursor events
2026-08-07 13:17:36 +02:00
Julius Marminge 66c36aa086 Add orchestration MCP toolkit
- Register orchestration tools on the MCP HTTP server
- Grant orchestration capability to MCP sessions
- Add service and integration coverage for delegated tasks and thread creation
2026-08-07 13:17:35 +02:00
Julius Marmingeandcodex c15de61875 refactor(orchestration-v2): adopt host process spawn policy
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:35 +02:00
Julius Marminge de198dd1f8 wip 2026-08-07 13:17:35 +02:00
Julius Marmingeandcodex 3273fa742b feat(orchestration-v2): model native subagents
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:35 +02:00
Julius Marminge 504d672ba2 Map orchestration v2 WS methods to auth scopes
- Require operate scope for v2 command dispatch
- Allow read scope for v2 thread and shell subscriptions
2026-08-07 13:17:28 +02:00
Julius Marmingeandcodex f7ce34740b fix(orchestration-v2): preserve source history on merged switch
Send full canonical target-thread context when a provider switch consumes a merge-back, and cover returning to an existing provider thread after a cross-provider fork.

Co-authored-by: codex <[email protected]>
2026-08-07 13:17:28 +02:00
Julius Marmingeandcodex adeaaf3565 fix(orchestration-v2): compose provider switch merge context
Allow a pending merge-back to be consumed while changing providers and deliver both the provider-switch history and fork delta to the selected provider.

Co-authored-by: codex <[email protected]>
2026-08-07 13:17:28 +02:00
Julius Marmingeandcodex d5f86541d3 feat(orchestration-v2): add merge-back replay coverage
Record provider fixtures for continued forks and sibling merge-backs, exercise context survival end to end, and stop completed run listeners from consuming later provider events.

Co-authored-by: codex <[email protected]>
2026-08-07 13:17:28 +02:00
Julius Marmingeandcodex 86e3e75e5a fix(orchestration-v2): resolve cross-provider forks
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:28 +02:00
Julius Marmingeandcodex 37cf2924cc feat(orchestration-v2): support cross-provider handoff
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:27 +02:00
Julius Marmingeandcodex 5c5bc8c3c1 feat(orchestration-v2): wire claude adapter primitives
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:27 +02:00
Julius Marminge fa9a1916f8 Add turn-interrupt replay coverage and protocol logging
- add interrupt and mid-tool replay fixtures for Claude and Codex
- log Claude Agent SDK protocol frames to native event traces
- project Codex commandExecution start events into orchestration updates
2026-08-07 13:17:27 +02:00
Julius Marminge 29934f5dd8 Support active Claude steering and turn replay mapping
- add active steering and interrupt-restart replay fixtures
- update Claude adapter/orchestrator turn handling for steering
- refresh replay and integration test coverage
2026-08-07 13:17:27 +02:00
Julius Marmingeandcodex ccf4f042a9 Map Claude turns to runtime query policies
- Derive Claude SDK query options from runtime policy
- Add read-only replay fixture and policy mapping tests
- Reuse shared approval-policy fixtures across orchestrator tests

Co-authored-by: codex <[email protected]>
2026-08-07 13:17:27 +02:00
Julius Marminge 5bd96556a7 Map Claude replay fixtures to multi-turn turns
- Record Claude SDK transcripts across multiple prompts and restart/query modes
- Add approval and tool-call replay coverage for new orchestration fixtures
- Update Claude adapter testkit to model open/prompt/permission frames
2026-08-07 13:17:27 +02:00
Julius Marminge 4ceca32fac Add model selection to orchestration runs
- persist the selected model on run records
- surface run model selection in the debug UI
- update replay fixtures and contracts for the new field
2026-08-07 13:17:27 +02:00
Julius Marminge 219cb15aa0 Extract Claude SDK query runner from provider adapter
- Move Claude provider runtime logic into its own module
- Share the SDK query runner between live and replay paths
- Add replay driver error wrapping for unexpected failures
2026-08-07 13:17:27 +02:00
Julius Marminge 4d279ac42f Add Claude replay fixture recorder
- Move Codex replay recording into `apps/server`
- Add Claude Agent SDK replay fixtures and test harness
- Update orchestration-v2 fixture scenarios and docs
2026-08-07 13:17:27 +02:00
Julius Marmingeandcodex 8440d26eba Add V2 command capability policy
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:27 +02:00
Julius Marminge a0d2282a47 Add merge-back context handoff support
- Map fork and merge-back turns into stored handoffs and transfer resolutions
- Add shell snapshot projection support plus coverage tests
- Update replay fixtures and web contracts for the new turn flow
2026-08-07 13:17:27 +02:00
Julius Marminge 8e3e6570a1 Add orchestration V2 backend checklist
- Track remaining projection, context transfer, rollback, capability, and subagent work
- Clarify current V2 baseline and debugger-only follow-ups
2026-08-07 13:17:27 +02:00
Julius Marminge 2e848f9b17 Add thread fork lineage and lazy context transfer
- Add context transfer IDs, schemas, and projections
- Support cheap fork creation and Codex native fork rollback
- Cover fork idempotency and replay behavior in tests
2026-08-07 13:17:27 +02:00
Julius Marmingeandcodex d788fb20eb Implement orchestration v2 runtime
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:26 +02:00
Julius Marminge c76057c319 Map Codex turns into orchestration v2
- Add Codex adapter and replay harness wiring
- Introduce in-memory orchestration projections and provider registry
- Expand orchestration contracts for turn and runtime events
2026-08-07 13:17:01 +02:00
Julius Marmingeandcodex 21875f2bc5 Add orchestration v2 replay and service contracts
- Introduce orchestration v2 service interfaces and error types
- Add replay runtime, fixtures, and integration coverage
- Update shared contracts and probe transcripts

Co-authored-by: codex <[email protected]>
2026-08-07 13:17:01 +02:00
Julius Marmingeandcodex 47322f1175 Fix Codex provider status test expectations
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:01 +02:00
Julius Marmingeandcodex 625f049017 Address Codex review feedback
Co-authored-by: codex <[email protected]>
2026-08-07 13:17:01 +02:00
Julius Marminge 46fb2a207d Switch Codex provider checks to app-server probe
- Use codex app-server snapshots for auth, models, and skills
- Remove legacy CLI/config discovery paths and related helpers
- Update tests for the new provider status flow
2026-08-07 13:17:01 +02:00
Julius Marminge 1fd0285160 Flush native logs on adapter shutdown
- Close the managed native event logger when the adapter layer tears down
- Make session runtime close idempotent with an atomic closed flag
- Add coverage for flushing thread native logs on shutdown
2026-08-07 13:17:01 +02:00
Julius Marminge 059aee3132 Scope Codex session runtime lifetimes
- Transfer session-owned scopes into adapter state
- Ensure runtime scopes close on stop and startup failure
- Add regression coverage for scoped lifecycle cleanup
2026-08-07 13:17:01 +02:00
Julius Marminge 0b6e778a54 Normalize Codex IDs and preserve streamed stdout decoding
- Use strict TurnId and ProviderItemId parsing in Codex session routing
- Decode in-memory stdio chunks in streaming mode to avoid split UTF-8 corruption
2026-08-07 13:17:01 +02:00
Julius Marminge 4d6492e788 Return Cursor ACP runtime with explicit scope
- Type the runtime effect with `Scope`
- Build the ACP session runtime without wrapping it in `Effect.scoped`
2026-08-07 13:17:01 +02:00
Julius Marminge b2155632ce Delay Codex provider availability until checked
- Initialize provider as unchecked in a pending state
- Update initial probe message to reflect session-local status
2026-08-07 13:17:01 +02:00
Julius Marminge 996506d3fa revert more 2026-08-07 13:17:00 +02:00
Julius Marminge 9e8109774a nit 2026-08-07 13:16:40 +02:00