Repository navigation
feat(id-worlds): journal append stamps — writer/epoch/op-id on every mutation path (#13938 item 1) - #17155
Merged
Conversation
…mutation path (#13938 item 1) New JournalEntry::AppendStamp (journal version 19, MAX raised to it), emitted by the actor persist funnel (persist / persist_batch / persist_transaction) from the write lease in force, so authenticated writer / epoch / operation-id metadata exists on every mutation path without growing per-variant fields across the enum. Design (funnel, per the refined spec on #13938): the stamp names the lease holder in force (the DO authority when no holder stands) at the current epoch; the operation ID is sourced at the lease boundary as {writer}:{epoch}:{seq}, seq counting the journal's stamps in append order — client op-ids reach the journal only through the lease rejection audit until native transport lands. Replay validation in WorldCore::restore: a stamp must name the holder at its epoch and carry the next sequence operation ID; in a stamped journal every mutation entry must be covered by the latest stamp, and lease transitions / checkpoints end coverage — a stale writer appending after a handoff boundary fails the restore whole. Entries before a journal's first stamp are the legacy prefix and restore exactly as before; unstamped journals are untouched. Tests: version pin + wire shape, stamp coverage across a handoff, foreign/stale/replayed stamp refusal, legacy unstamped restore, and a funnel test asserting persist/persist_batch stamp sequences and that the funnel's own output replays clean. Lane 0352-E (bravo SUSTAIN 2026-11-30), dedicated AUTHOR lane for #13938 item 1 per 0307-AJ's v19 spec (comment 7274702777).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
5 tasks done
This was referenced Nov 30, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Acceptance item 1 of #13938: authenticated writer / epoch / op-id metadata on every mutation path of the pkgs/id world journal.
New
JournalEntry::AppendStamp(journal version 19;MAX_JOURNAL_VERSIONraised to it), emitted by the world actor's persist funnel —persist,persist_batch,persist_transaction— from the write lease in force, so every mutation path carries the metadata without growing per-variant fields across the enum, the checkpoint serializers, or replication.Design decision (the one the refined spec on #13938 left to the implementing lane)
Funnel-level stamp entry, per 0107-G's steps (2)–(3) wording, over per-variant optional stamp fields:
{writer}:{epoch}:{seq},seqcounting the journal's stamps in append order. Client operation IDs reach the journal only through the lease rejection audit until the native-transport item of [audit7] #3805 Phase 3 remainder: lease-handoff acceptance items not in PR #10641 #13938 lands; the funnel's own sequence is the operation identity available at this boundary. The sequence is derived state (WorldCore::append_stamp_seq): rebuilt by replay, advanced live only once the stamp is durable, and restarted by compaction, whose checkpoint stands in for the stamps it compacted — operation IDs are unique within a journal, scoped by (writer, epoch).Replay validation (
WorldCore::restore)Forkedis a boundary (it is appended byfork_world, outside the funnel).Tests
persist/persist_batchemit the exact stamp sequence, and the funnel's own output replays clean through restore validation.Verification: full
id-worldssuite on this branch via fleet queue dispatch (run developing-today-forks/fleet#46400648256); result recorded on #13938.Lane 0352-E (bravo SUSTAIN 2026-11-30), dedicated AUTHOR lane for #13938 item 1, implementing 0307-AJ's refined v19 spec (issue comment 7274702777). Claim: issue comment 7274930222.
Refs #13938 (item 1 of its acceptance list; the issue stays open for items 2–4).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T10:31:00Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.