Repository navigation
arch(ws-16): wire live planned runtime composition - #3652
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements the WS-16 workstream, establishing the Reborn runtime composition and integrating real host adapters. It introduces a centralized build_default_planned_runtime helper to coordinate the driver registry, run profile resolver, turn coordinator, and runner worker. Significant updates were made to RebornLoopDriverHostFactory to support profiled capabilities and driver-specific requirements. The PR also adds extensive integration tests and updates the workstream documentation for WS-14, WS-16, and WS-17. I have no feedback to provide.
Review notes — WS16 live runtime wiringComposition-only (good — no edits to Production readiness gate from #3602 not invoked
The WS17 brief pushes readiness-check ownership to WS17 (#3653), which adds
|
SummaryReviewed WS16 PR #3652 only. Live planned runtime helper leaves route and safety/policy/budget invariants optional/no-op. Validation:
Findings
Security/data-flow notes
Missing tests
|
Address PR #3652 review feedback that lands within WS16 scope: - Require `identity_context_source` in `DefaultPlannedRuntimeParts`. The WS-14 planned-driver brief states `identity_source = None` is only valid for helper-level WS-14 tests, not the WS-16 runtime smoke or WS-17 cutover. Compile-time enforcement now matches the written contract, and the smoke test supplies a static source. - Add `From` impls on `DefaultPlannedRuntimeBuildError` so the builder uses plain `?` instead of `.map_err` for each variant. - Document the `LEGACY_TEXT_ONLY_DRIVER_ID` allowlist with its origin and end-of-life condition. - Replace `.is_ok()` swallow in the Reborn CLI runtime-shell snapshot with a `ComponentStatus` that surfaces registration errors so a failed text-only or planned driver registration is distinguishable from a successful one in the shell output. Out of scope for WS16 (deferred to WS17 per PR description): production readiness gate invocation, model route resolver requirement, model policy/budget/safety wiring. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# Conflicts: # crates/ironclaw_reborn/src/loop_driver_host.rs
Review feedback resolutionAddressed the in-scope items from @zmanian and @serrrfirat in 5c2b265:
Then merged `origin/reborn-integration` in 3f9f1c9 (ws-13 cancellation fixes #3684, #3685): resolved import conflict in `loop_driver_host.rs` (dropped unused `AlwaysAliveRunCancellationFactory`, kept `CapabilityResolveError`, picked up `TurnStateRunCancellationFactory`); updated `RebornLoopDriverHostFactory::new` + `ThreadCheckpointLoopExitEvidencePort::new` callers for new signatures. Deferred to WS-17 (#3653) — comment posted therePer this PR's stated non-goals, the following remain out of scope here and are tracked on #3653:
Subjective items not applied
Validation
|
# Conflicts: # crates/ironclaw_reborn/src/lib.rs
Squash of nearai#3652 (4 commits) onto reborn-integration stack. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Address PR nearai#3652 review feedback that lands within WS16 scope: - Require `identity_context_source` in `DefaultPlannedRuntimeParts`. The WS-14 planned-driver brief states `identity_source = None` is only valid for helper-level WS-14 tests, not the WS-16 runtime smoke or WS-17 cutover. Compile-time enforcement now matches the written contract, and the smoke test supplies a static source. - Add `From` impls on `DefaultPlannedRuntimeBuildError` so the builder uses plain `?` instead of `.map_err` for each variant. - Document the `LEGACY_TEXT_ONLY_DRIVER_ID` allowlist with its origin and end-of-life condition. - Replace `.is_ok()` swallow in the Reborn CLI runtime-shell snapshot with a `ComponentStatus` that surfaces registration errors so a failed text-only or planned driver registration is distinguishable from a successful one in the shell output. Out of scope for WS16 (deferred to WS17 per PR description): production readiness gate invocation, model route resolver requirement, model policy/budget/safety wiring. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
arch(ws-16): wire live planned runtime composition
Context
Live runtime wiring branch. It composes the planned driver, registry, resolver, coordinator, runner, host factory, and real host-port adapters into a production runtime builder.
Master spec:
docs/reborn/agent-loop-skeleton.mdWorkstream brief:
docs/reborn/agent-loop-briefs/live-runtime-wiring.mdStack base:
arch/ws-14Latest stack maintenance on 2026-05-14:
origin/reborn-integrationthrough WS17 before publishing the PR descriptions.What landed
RebornRuntimeLoopCompositionandbuild_default_planned_runtime(...).DefaultTurnCoordinator,TurnRunnerWorker, host factory, and profiled capability port creation.RebornLoopDriverHostFactory::create_host(...)now requires profiled capabilities for planned runs instead of silently falling back toEmptyLoopCapabilityPort.Reviewer focus
Non-goals / deferred work
Validation
git diff --checkcargo fmt --checkcargo test -p ironclaw_reborn --test loop_driver_host default_planned_runtime -- --nocapturecargo test -p ironclaw_reborn --test loop_driver_host turn_runner_worker_drives_script_capability_through_real_host_runtime -- --nocapturecargo test -p ironclaw_reborn --test loop_driver_host planned_host_factory -- --nocaptureStack position