Skip to content

Extract Runtime Kernel read model boundary - #16

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:runtime-kernel-readmodel-store-boundary
Jun 15, 2026
Merged

Extract Runtime Kernel read model boundary#16
likun666661 merged 1 commit into
apache:mainfrom
likun666661:runtime-kernel-readmodel-store-boundary

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

  • Introduce RuntimeEventStore, RuntimeReadModel, and RuntimeKernel as first-class runtime boundaries.
  • Make RuntimeEvent the semantic read/model-history source for messages, turns, retry/regenerate/branch, recovery, and next-turn context.
  • Demote AgentRunStore to run headers and operational lifecycle events; remove the legacy SessionStore semantic read fallback / env rollback path.
  • Preserve public SessionEvent/UI/gateway contracts while making cache-only StoredMessage rows unable to drive semantic reads.
  • Clone parent RuntimeEvents into branch child sessions so branch reads and model context remain RuntimeEvent-backed.

Verification

  • npm run typecheck --workspace packages/runtime
  • npm run build --workspace packages/runtime
  • node --test packages/runtime/dist/__tests__/session-manager.test.js
  • git diff --check

A full workspace npm run test --workspaces --if-present passed before rebasing this same commit onto the now-merged PR #14 base; the rebase was clean and the focused runtime checks above passed after rebase.

@likun666661
likun666661 merged commit a2c01b1 into apache:mainJun 15, 2026
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…e-boundary
Extract Runtime Kernel read model boundary
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…e-boundary
Extract Runtime Kernel read model boundary
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…e-boundary
Extract Runtime Kernel read model boundary
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…e-boundary
Extract Runtime Kernel read model boundary
Sign up for freeto 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

@likun666661