githubnext/chopinPublic

Let's compose rich plans together

Jev 2: validate and replay bounded conversation events #253

MergedMaggieAppletonmerged 2 commits intomainfromrefs/pull/253/head
  1. MA

    This second slice of #241 adds validated conversation events and deterministic state replay on top of the Jev foundation. Events check source attribution, thread versions, and capacity before changing state. Repeated event IDs are idempotent; corrections and contribution moves retain replayable history.

    Replay copies only the changed thread and, for a move, its destination. Later transitions leave earlier states unchanged while avoiding repeated copies of the full event history. A review fix clears pending settlement and scoped-choice proposals when a resolution candidate closes a thread, matching direct decision replay. This layer contains no database writes or active chat workflow.

    **Review scope:** 30 files; 2,257 source lines and 1,726 test lines. Merge after the foundation PR. Decision records and interpretation are the next layers.

    **Validation:** 71 focused foundation and replay tests pass on the local fix, full workspace/E2E types and repository CI pass locally. All three required GitHub checks pass on the rebased head. Tests cover replay, corrections, invalid stored state, source provenance, and capacity.

    ![Jev event replay: validate an event, copy affected threads, and derive a new bounded conversation state](https://github.com/user-attachments/assets/3e381ef1-df96-4040-9c56-7250071462f7)

    ### Review fix: close pending choices

    ![Resolution confirmation clears pending settlement and scoped-choice proposals](https://github.com/user-attachments/assets/10a7f1dc-ab72-4242-8131-6069c5c2b56d)

  2. MaggieAppletonadded-to-stacklast month on GitHub

  3. MaggieAppletonrenamed Add pure Jev event replay and validation to Jev 2: validate and replay bounded conversation eventslast month on GitHub

  4. MaggieAppletonreferenced this in Jev conversation-to-document workflow #241last month on GitHub

  5. MaggieAppletonready-for-reviewlast month on GitHub

  6. MaggieAppletonautomatic-base-change-succeededlast month on GitHub

  7. MaggieAppletonhead-ref-force-pushed 25614f450676last month on GitHub

  8. MaggieAppletonmerged 0f9e291e60edlast month on GitHub

  9. MaggieAppletonclosedlast month on GitHub

  10. MaggieAppletonhead-ref-deletedlast month on GitHub