Skip to content

fix(session): synchronize authoritative state projections - #456

Open
beruro wants to merge 2 commits into
developfrom
fix/issue-454-session-state-sync
Open

fix(session): synchronize authoritative state projections#456
beruro wants to merge 2 commits into
developfrom
fix/issue-454-session-state-sync

Conversation

@beruro

@beruro beruro commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Problem

Session state projections can diverge from authoritative runtime and persistence state across todo synchronization, pending-plan rehydration, permission recovery, and replay conversion. Empty or late authoritative snapshots can leave stale frontend state or incomplete replay data.

Solution

  • Synchronize same-ID todo updates, including authoritative empty snapshots.
  • Persist and rehydrate pending-plan edits through the Rust approval manager.
  • Replace one-shot permission events with recoverable session-scoped state.
  • Normalize replay shell/delete data and process reconciliation against current EventStore APIs.
  • Validation: 73 focused Vitest tests, TypeScript typecheck, scoped ESLint, diff check, and GitHub frontend/Rust CI.

Potential risks

  • This is a cross-layer session-state sweep, so regressions could appear at Rust/TypeScript ownership boundaries or during late-event reconciliation.
  • The PR intentionally keeps todo, plan, permission, and replay projections together because they enforce the same authoritative-state invariant; reviewers should verify each projection independently.

@beruro
beruro force-pushed the fix/issue-454-session-state-sync branch 3 times, most recently from 248d1f5 to 7a36f81 Compare July 30, 2026 08:03
@beruro
beruro force-pushed the fix/issue-454-session-state-sync branch from 7a36f81 to 8cb6d0e Compare July 30, 2026 15:08
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