Skip to content

Note what the journal already settles for the resume endpoint - #218

Merged
BunsDev merged 4 commits into
mainfrom
journal-resume-notes
Oct 15, 2026
Merged

BunsDev merged 4 commits into
mainfrom
journal-resume-notes

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Adds "Notes for the resume endpoint" to docs/event-journal.md. These are four facts the next slice (the resume endpoint) can build on, each checked against event-journal.ts:

  • The cursor excludes what the client has. Rows are insert-only. Merging happens only in the pending batch, and since() flushes that batch before reading. So since(lastAppliedSeq) misses nothing and repeats nothing.
  • A snapshot needs a matching cursor. Take latest() and the snapshot in one synchronous step.
  • Applying an event twice must change nothing. item_update patches carry whole field values. item events must be upserted by id, because replayItems appends and only works from an empty transcript.
  • Retention needs a reload answer for a cursor below the oldest row kept.

Docs only; no code changes.

Rows are insert-only and since() flushes the pending batch first, so an
exclusive cursor is exact. A snapshot pairs with latest() taken in the
same synchronous step; re-applied events must be harmless (item_update
patches are whole values, item events upsert by id); pruned cursors
need a reload answer.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 15, 2026 12:34pm UTC

Request Review

@BunsDev BunsDev left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks lovely

@BunsDev
BunsDev merged commit 2ebd614 into main Oct 15, 2026
12 checks passed
@BunsDev
BunsDev deleted the journal-resume-notes branch October 15, 2026 15:41

This branch was successfully deployed

1 active deployment
Preview — d8875b4a Deployed Oct 15, 2026 by vercel[bot]
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