Skip to content

refactor(agent-runtime): move lifecycle decisions out of core#1073

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/agent-runtime-lifecycle-m3
Jun 5, 2026
Merged

refactor(agent-runtime): move lifecycle decisions out of core#1073
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/agent-runtime-lifecycle-m3

Conversation

@limityan

@limityan limityan commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Move turn outcome lifecycle planning into bitfun-agent-runtime; the core scheduler now executes the returned plan instead of owning the branching policy.
  • Move SessionControl input validation, defaults, tool-use rendering, result text, and cancel-route decisions into bitfun-agent-runtime; core keeps workspace resolution, session manager calls, scheduler/coordinator cancellation, and ToolResult wrapping.
  • Update the M3 plan/completed docs and the agent-runtime module guide to reflect the migrated owner boundary.

Risk / compatibility

  • No intended changes to tool schema, permissions, /goal, continuation wire shape, session execution, or queue semantics.
  • No Cargo dependency changes; bitfun-agent-runtime still does not depend on bitfun-core or platform/concrete service crates.
  • Concrete session lifecycle, metadata/persistence IO, event emitter wiring, permission UI/channel waits, concrete prompt assembly, and product tool execution remain in core/Product Assembly adapters.

Verification

  • cargo test -p bitfun-agent-runtime
  • cargo test -p bitfun-core session_control --features product-full -- --nocapture
  • cargo test -p bitfun-core scheduler --features product-full -- --nocapture
  • cargo check -p bitfun-core --features product-full
  • cargo check --workspace
  • node scripts/check-core-boundaries.mjs
  • pnpm run check:repo-hygiene

@limityan
limityan merged commit 8cbbec3 into GCWing:main Jun 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant