Skip to content

refactor(core): simplify session context epochs - #33378

Merged
kitlangton merged 5 commits into
devfrom
simplify/v2-context-replacement
Jun 22, 2026
Merged

kitlangton merged 5 commits into
devfrom
simplify/v2-context-replacement

Conversation

@kitlangton

@kitlangton kitlangton commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove Context Epoch replacement, agent ownership, and revision state
  • treat agent and model selection as provider-turn scoped while preserving chronological ContextUpdated messages
  • rebuild the cached system baseline directly after completed compaction
  • rely on the process-local Session execution lane instead of defending unsupported overlapping same-Session drains

Verification

  • bun run --cwd packages/core test test/session-runner.test.ts test/session-projector.test.ts test/session-runner-recorded.test.ts test/session-compaction.test.ts test/system-context/index.test.ts test/database-migration.test.ts (122 passed)
  • bun run --cwd packages/core typecheck
  • bun run --cwd packages/core migration --check
  • pre-push bun turbo typecheck (23 tasks passed)
  • full Core suite before final simplification: 1,033 passed; one unrelated watcher test consistently expects change but receives add for .git/HEAD

@kitlangton
kitlangton enabled auto-merge (squash) June 22, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant