Skip to content

[Slice 1.3] SDK session lifecycle & reconciliation - #3351

Merged
Yeachan-Heo merged 3 commits into
mainfrom
lane/cc-issue-3322
Oct 13, 2026
Merged

Yeachan-Heo merged 3 commits into
mainfrom
lane/cc-issue-3322

Conversation

@Yeachan-Heo

@Yeachan-Heo Yeachan-Heo commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3322

Summary

  • Add sdk::session::SessionRouter for durable turn.create, turn.prompt, turn.steer, turn.abort_and_prompt, and paginated turn.list dispatch.
  • Bridge runtime conversation lifecycle and shared steering/abort control to serialized SDK event streams.
  • Persist invocation state, terminal events, monotonic terminal-scope revisions, and restart reconciliation; block correlation-key routing while outcomes are unresolved.
  • Add focused lifecycle, concurrency ordering, terminal persistence, recovery, and correlation routing tests; update the compatibility gap matrix.

Verification

  • cargo fmt --all -- --check — passed
  • cargo test --workspace — 1,796 passed, 1 ignored
  • cargo clippy --workspace — passed; existing workspace warnings remain
  • cargo clippy -p sdk --no-deps --all-targets -- -D warnings — passed
  • python3 .github/scripts/check_doc_source_of_truth.py — passed
  • scripts/roadmap-check-ids.sh — passed

—
[repo owner's gaebal-gajae (clawdbot) 🦞]

@XinwangTao

Copy link
Copy Markdown

Session lifecycle and reconciliation looks solid — persisting terminal-scope revisions and blocking correlation-key routing until outcomes resolve directly addresses the restart-consistency gap in #3322. The added recovery/concurrency tests cover the tricky parts.

@Yeachan-Heo
Yeachan-Heo merged commit 01e9fc3 into main Oct 13, 2026
10 of 11 checks passed
@XinwangTao

Copy link
Copy Markdown

Agree with the approach — merging this closes #3322 and unblocks the next SDK slices. One thing to keep an eye on: correlation-key routing now blocks dispatch while outcomes are unresolved, which could add latency in recovery-heavy workloads. The concurrency-ordering tests cover the tricky parts well.

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.

[Slice 1.3] SDK: Session Lifecycle & Reconciliation

2 participants