GeezerVison is showing github.com — id: persist signed-move bindings/frontiers in the world journal + ingest signed moves into the event store (#2814 follow-up) · Issue #4346 · developing-today/code
id: persist signed-move bindings/frontiers in the world journal + ingest signed moves into the event store (#2814 follow-up) #4346DescriptionProblem
PR #4345 implements #2814 v1: player-signed move capture with key binding, strict chain verification at the world input seam, and cross-referenced accepted-move records — all as runtime state in WorldCore. Two pieces of the #2814 design are deliberately not in v1:
- Journal/checkpoint persistence of signed play. Author-key bindings, per-author move frontiers (next seq + frontier event id), and accepted
SignedMoveRecords do not survive a world restart or journal compaction. After a restart, a bound participant's chain position is lost; signed play would need to re-anchor, which the strict seq/backlink verification refuses by design.
- Event-store ingestion of signed move bytes. The design (issue id: player-signed move capture for world games — prerequisite for match attestation (#2037/#2039) #2814, 2026-11-01 lane F note) has the signed bytes go to the event store so equivocation at one author sequence produces the existing fork-proof behavior in
event_store/ingest.rs. In v1 the world keeps the bytes in SignedMoveRecords and itself refuses a rival at an accepted sequence, but nothing ingests them into the store, so no fork proof is produced.
Scope
- Persist bindings + frontiers + signed-move records through the world journal and checkpoints (new journal entries and/or checkpoint fields, with the journal-version contract in
world/mod.rs honored; replay must re-verify chain continuity, as WorldCore::restore does for other state).
- On signed-move acceptance, ingest the signed event bytes into the event store (or provide the documented hand-off), so two distinct signed events at one author sequence yield a fork proof under existing ingest rules.
- Tests: signed game → world restore from journal (incl. a compacted journal) → chains continue at the right seq/frontier; equivocation across a restart still produces a fork proof.
Context
Acceptance criteria
- Author-key bindings, per-author move frontiers, and accepted
SignedMoveRecords persist through the world journal/checkpoint path and are restored on world restart, so a bound participant's chain position survives a restart without re-anchoring.
- Signed move bytes are ingested into the event store so a rival move at an already-accepted author sequence produces the existing fork-proof behavior in
event_store/ingest.rs.
- Tests cover: restart persistence of bindings/frontiers/records, journal compaction not losing signed-play state, and equivocation at one author sequence yielding a fork proof after ingestion.
- Existing signed-move verification behavior (strict seq/backlink checks at the world input seam) is unchanged for the runtime path.
Activityadded app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/mMedium: expected under 1 day of work meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 2, 2026dezren39 commented on Nov 2, 2026 Intake review
🤖 Agent note · filed
Related: issue #2814 (design/origin), PR #4345 (v1, explicitly leaves this scope out — so this issue is still live, not resolved by that PR).
Notes: Unlabelled at filing; now carries kind/enhancement, app/id, priority/normal, effort/m. Two separable pieces (journal persistence, event-store ingestion) — a worker may checkpoint them independently.
Risks: Restart/compaction semantics are the subtle part; equivocation must produce a fork proof, not just a local refusal, after ingestion.
Suggested approach: Persist bindings/frontiers/records alongside the existing journal checkpoint format first, then wire ingestion of the stored signed bytes into event_store/ingest.rs and test equivocation end-to-end. developing-today commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 12, 2026 🤖 Agent note · triaged — REAL and current; fix packet enqueued
- Agent: queue worker lane code-c (task 12154, triage re-queue under code#7016 doctrine)
- Verdict: issue id: persist signed-move bindings/frontiers in the world journal + ingest signed moves into the event store (#2814 follow-up) #4346 is real and current on fresh main (3273254). Nothing has landed: no merged PR or commit references id: persist signed-move bindings/frontiers in the world journal + ingest signed moves into the event store (#2814 follow-up) #4346 since the done-task-only audit.
- Evidence (verified this shift on the laptop clone):
pkgs/id/crates/id-worlds/src/world/signed.rs module doc still states: "Journal persistence of the binding and the move frontiers (so signed play survives a restart without re-anchoring) is a follow-up."
WorldCore in pkgs/id/crates/id-worlds/src/world/core.rs: author_keys, move_chains, and signed_moves are runtime-only fields, initialized empty in new(); restore_inner contains no signed-state handling, so bindings/frontiers/records are lost on restart.
- No event-store ingestion exists on the world path:
grep ingest over pkgs/id/crates/id-worlds/src/ finds only doc comments; the fork-proof ingest rules live in pkgs/id/crates/id-events/src/event_store/ingest.rs and are never called with signed move bytes.
- Prior escalation of this task rested on the issue being assigned to dezren39; per Drew's 2026-11-11 ruling that is the fleet working identity, not a hold. The issue carries no
held, user/owned, do-not-merge, or do-not-auto-edit label. Stale user/escalated / queue/blocked / status/blocked labels from that escalation are removed by this note's label sync.
- Triage: work kind
task/small-fix (implementation packet), priority priority/normal (unchanged), effort effort/m (unchanged), kind kind/enhancement (unchanged).
- First concrete step for the fix: add journal/checkpoint persistence for
author_keys + move_chains frontiers + signed_moves in id-worlds (honoring the journal-version contract in world/mod.rs), restore them in restore_inner with chain-continuity re-verification, then ingest accepted signed bytes into the event store on acceptance.
- Acceptance check: the issue's own criteria — restart persistence incl. a compacted journal, chain continuation at the right seq/frontier after restore, and an equivocation at one author sequence yielding a fork proof after ingestion; existing strict seq/backlink verification unchanged.
- Routing: the implementation is a self-contained medium feature, so per the triage packet's acceptance it is converted to a fix packet (dedupe
repo-health:v1:fix:developing-today/code:issue:4346) and returned to the queue as follow-on task 15310. Issue id: persist signed-move bindings/frontiers in the world journal + ingest signed moves into the event store (#2814 follow-up) #4346 stays OPEN.
dezren39 commented on Nov 12, 2026 🤖 Agent note · implemented, PR opened
- Agent: queue worker (repo-worker-code), lane code-a
- Session / ID: task 15310 (small_fix)
- Outcome: PR feat(id-worlds): journal signed-move bindings/frontiers + event-store ingest hand-off (#4346) #9037 — journal persistence of signed play + event-store ingest hand-off, commit e5f9ffd on branch queue/15310-4346-signed-journal.
- What landed: journal entries
AuthorKeyBound / SignedMoveAccepted (new journal version 8, JOURNAL_VERSION_SIGNED_PLAY); actor journals bindings and accepted moves; restore re-verifies chains (full payload-commitment verify when the committed input is retained, header checks when it aged out under compaction); checkpoint_entries carries bindings + records through compaction; WorldCore::ingest_signed_moves hands accepted bytes to the event store.
- Tests:
cargo test -p id-worlds — 735 passed, 0 failed, including 4 new tests (restart persistence + compaction, tampered-journal refusal, fork proof after ingest, version-8 contract). rustfmt clean. Clippy is not installed on the laptop, so the clippy gate is CI's.
- Remaining: CI + Codex review on PR feat(id-worlds): journal signed-move bindings/frontiers + event-store ingest hand-off (#4346) #9037, then merge (the PR closes this issue on merge).
- Links: task 15310 · PR feat(id-worlds): journal signed-move bindings/frontiers + event-store ingest hand-off (#4346) #9037
dezren39 commented on Nov 14, 2026
Agent: repo-worker-code (lane any-a)
State: done — PR #9037 landed; this issue closed by the merge
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|