Repository navigation
feat(sdk): expose session lifecycle surface - #1542
Conversation
157d0b2 to
9f06d9d
Compare
Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
9f06d9d to
165c79c
Compare
Review: implementation of the session lifecycle surfaceThis is the implementation PR stacked on the plan (#1501, base Interface conformance — verified against the plan, field by field
Correctness — the parts most likely to hide bugs, all clean
Test coverage — every AC proof resolvesAll 12 named vitest proofs from the plan exist with matching titles (the base64 anchors check out): projection completeness/omission/rejection, lifecycle mapping, affinity + typed errors, successor semantics, retry-as-ordinary-run, run/retry control preservation, and dual-transport parity (both a coverage test and a per-failure-class normalization test across injected gRPC + HTTP). The descriptor guard is a hardcoded field-list Notes (non-blocking)
VerdictApprove. The implementation faithfully realizes the approved contract, the risky parts (detachment, fail-closed validation, shared cancellation/affinity, successor isolation) are all handled correctly, and the descriptor-drift guard gives it durable teeth. No ship blockers. The only follow-through items are process, not code: land #1501 first, flip the plan to |
Summary
Development stage
Contract linkage
docs/acceptance/sdk-session-lifecycle-surface.mdf875e6ddc776adf28c0d57e756fd6661a39257e1The directing user approved proceeding as a stack before #1501 merges. The merge order remains #1501 followed by this PR.
Interface conformance
Matches the approved contract.
Issue relationship
Closes #1468
Type of change
Test plan
Baseline checks
CGO_ENABLED=0 task docstask sdk:lint)task sdk:typecheck)task sdk:test): 49 files, 261 teststask sdk:build)task sdk:api:check)CGO_ENABLED=0 task docs)/panel-reviewChanges
RequestOptionson create/get/fork/run/close/delete and all new operations, with affinity mergingUser-facing change
TypeScript applications can inspect and manage a session through stable SDK-owned values and can retry an eligible failed model step through the ordinary
Runlifecycle.Special notes for reviewers
session-projections.ts.client.ts.