Skip to content

refactor(runtime-ports): extract dialog and subagent contracts#924

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/latest-main-refactor-docs
May 28, 2026
Merged

refactor(runtime-ports): extract dialog and subagent contracts#924
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/latest-main-refactor-docs

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

Summary

  • Move portable dialog submission contracts into bitfun-runtime-ports: trigger source, queue priority, submission policy, and submit outcome.
  • Move portable subagent contracts into bitfun-runtime-ports: delegation policy and subagent context mode.
  • Keep core as the runtime owner through compatibility re-exports, while expanding boundary checks and docs for latest-main Task, tool, and MCP migration guardrails.

Behavior Boundaries

  • No scheduler, coordinator, session branch, prompt cache, background delivery, or tool execution ownership is moved in this PR.
  • Core import compatibility is preserved through re-exports.
  • Queue priority, skip-confirmation defaults, fork-context validation, background acknowledgement structure, prompt-cache clone, truncation recovery, and denial-message behavior are covered by tests or boundary checks.

Validation

  • node scripts\check-core-boundaries.mjs
  • git diff --check gcwing/main...HEAD
  • cargo check --workspace
  • cargo test --workspace

Follow-up Scope

  • HR-C: continue service/agent runtime migration only after adding equivalence coverage for scheduler/session restore, request-context assembly, prompt compression/cache, goal verification events, and background delivery timing.
  • HR-A: if tool runtime migration resumes, cover Write sanitizer, AskUserQuestion/TodoWrite truncation recovery, per-tool denial messages, tool-result flush, runtime artifact persistence, and concrete tool IO boundaries.
  • H5: evaluate feature/build benefit separately with CLI package workflow and mobile-web session operations in the product matrix; do not mix feature-set changes into runtime-owner migration.

@limityan limityan merged commit e97dec0 into GCWing:main May 28, 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