GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound · Issue #4967 · developing-today/code

id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967

New issue
Copy link
New issue
Copy link
Closed
#7890
Closed
id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound#4967
#7890
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)queue/claimedQueue worker lifecycle statesource/creatorFiled by the new-issue-creator jobstatus/in-progressQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 3, 2026
Issue body actions

Follow-up from the design note in #4962 (doc/2026-11-03T14-55-00Z_design_id4630_oversized_replication_entries.md), covering the one residual case the checkpoint-splitting fix (#4966) does not reach for #4630.

Problem

#4966 stops the writer from ever producing a Checkpoint entry over 192 KiB. But a journal compacted by an older binary can already hold one oversized Checkpoint on disk, and re-compaction is not automatic at open: WorldCore::checkpoint_due (pkgs/id/src/world/core.rs) requires since_checkpoint >= checkpoint_every, which is 0 after restore. So a restored legacy world with an oversized checkpoint keeps failing split_entry_payload forever — send_snapshot (pkgs/id/src/world_replication_net.rs:206-243) returns PayloadTooLarge before the first frame, with no indication of which entry or which bound was violated, and no path to recovery other than writing checkpoint_every new events.

Required change

At feed-build time (before split_entry_payload), detect an entry exceeding MAX_REPLICATION_PAYLOAD_BYTES:

  1. If the world has an active program and compaction is legal, re-compact immediately (a one-shot forced checkpoint), so the legacy oversized entry is replaced by bounded parts from id(world): bound every journal entry at write time by splitting the compacted checkpoint (fixes #4630) #4966. Reuse the existing compaction path; do not invent a second writer.
  2. Otherwise (no active program, or compaction refused by the open-presence limit), return an actionable error naming the offending entry's ordinal, its encoded size, and the bound — instead of the bare PayloadTooLarge from the split step. The message must say that the journal needs compaction once the world can be checkpointed.

Do not raise MAX_REPLICATION_PAYLOAD_BYTES and do not add continuation frames: both were rejected/deferred in the design note.

Acceptance criteria

  • A synthetic legacy journal image containing one Checkpoint entry > 256 KiB, opened with an active program, is force-compacted at feed build and then replicates end-to-end (split_entry_payload → send_snapshot frames → ReplicationTracker::accept) with a matching cursor.
  • The same journal with no active program (compaction illegal) returns an error that names the entry ordinal, its size, and MAX_REPLICATION_PAYLOAD_BYTES, and is distinguishable from a malformed payload.
  • A journal with no oversized entry takes the unchanged fast path (no forced compaction, no extra serialization pass) — asserted by behavior, not timing.
  • cargo test -p id --lib world::replication and the world_store replication feed tests pass.
  • Module doc in pkgs/id/src/world/replication.rs states the legacy-journal path next to the per-entry guarantee.

Out of scope

  • Splitting checkpoints at write time (id(world): bound every journal entry at write time by splitting the compacted checkpoint (fixes #4630) #4966).
  • Re-compacting journals that merely want it by policy — this is only the oversized-entry escape hatch.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 3, 2026
  2. dezren39
    added a commit that references this issue on Nov 3, 2026

    docs(id): link design-note follow-ups (#4966, #4967)

    ec11822
  3. developing-today
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    status/needs-triageNot yet triaged; needs a first look
    on Nov 3, 2026
  4. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 8556 (triage, queued, priority 40) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Nov 3, 2026
  6. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: picked-up
    agent: repo-worker-code
    task: 8556
    lane: c29174f1-48e0-4b13-b4ff-9b73ab67e9ab
    at: 2026-11-03T20:14:30Z
    note: Claimed for scheduled-lane triage. Fresh issue read: open, no linked PR, no hard-stop labels. Checking linked design/follow-up status and current-main behavior before disposition.

  7. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: triaged
    agent: repo-worker-code
    task: 8556
    lane: c29174f1-48e0-4b13-b4ff-9b73ab67e9ab
    at: 2026-11-03T20:23:00Z

    Verdict: #4967 is still live and not superseded. Fresh state: #4967 open/no linked PR; prerequisite #4966 open/no linked PR; no hard-stop labels. Current main audited at 3b8d321.

    Evidence: pkgs/id/src/world/core.rs:1055-1066,1157 still gates compaction on checkpoint_due and emits one JournalEntry::Checkpoint; no bounded checkpoint-part types are present. pkgs/id/src/world/actor.rs:1742-1756 builds the replication source directly from the journal; pkgs/id/src/world_replication_net.rs:215 then calls split_entry_payload, so an old oversized entry still fails before frames are sent. PR #4962 is merged design-only. #4966 remains the writer-side bounded-parts implementation and explicitly leaves legacy oversized checkpoints out of scope.

    Ordering/blocker: #4967 depends on #4966 landing. Do not start forced re-compaction until checkpoint_entries emits bounded parts; after that, use the existing compaction path before feed snapshot when snapshot/compaction is legal, and return the specified actionable ordinal/size/256-KiB error otherwise. The issue scope is actionable and needs no split or additional design decision. Marking the implementation issue blocked on #4966.

  8. 87 remaining items

  9. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-n (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-n run 2026-11-08 16:47 CST; task 12963
    • Found via: claimed task 12963 this shift; execution-lane assignment returned opencode
    • Task: task 12963 for issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 (small_fix). Fresh check: target is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit) on the target checked. Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 12963 to a terminal state. Attempts 3/3.
    • Links: task 12963 · issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967
  10. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off (repeat handoff — final attempt)

    • Agent: repo queue worker, lane code-x (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-x run 2026-11-08; task 12963
    • Found via: claimed task 12963 this shift; execution-lane assignment returned opencode
    • Task: task 12963 for issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 (small_fix). Fresh check: issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 is OPEN, no hard-stop labels verified this shift. Attempts 3/3 (at max) — claimant must drive task 12963 to a terminal state on this attempt; no further handoff cycles. Handed off to the opencode claimant; this lane does not work it directly. (User-token comment hit GitHub's secondary rate limit; posted via the developing.today GitHub App per the rate-limit fallback order.)
    • Expectation: claimant session drives task 12963 to a terminal state.
    • Links: task 12963 · issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967
  11. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    Picked up by lane code-x as task 12963 (small_fix, issue #4967) and handed off to the opencode execution lane. Issue #4967 revalidated fresh: still OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Attempts note: task 12963 is at attempt 3/3 (max). The claimant launches the bound session; this lane does not work the task directly.

  12. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · claim displaced (code#6853)

    • Agent: repo queue worker, lane code-d (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-d run 2026-11-08 17:28 CST; task 12963
    • Found via: claimed task 12963 this shift at 2026-11-08T23:36:34Z; execution-lane assignment returned opencode, but the first checkpoint answered task 12963 is not claimed by repo-worker-code (exit 6).
    • Task: task 12963 for issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 (small_fix). Fresh check: issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 is OPEN, no hard-stop labels. A handoff note from lane code-x for task 12963 was posted at 2026-11-08T23:36:47Z, so lane code-x visibly owns this claim. This lane did no work, created no branch/PR, and took no fallback claim (that would double-work the issue).
    • Expectation: lane code-x / the opencode claimant drives task 12963 to a terminal state; the fleet monitor should confirm its park/complete.
    • Links: task 12963 · issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967
  13. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-k (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-k run 2026-11-08; task 12963
    • Found via: claimed task 12963 this shift; execution-lane assignment returned opencode
    • Task: task 12963 for issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 (small_fix). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 12963 to a terminal state. If the claim lease expires unbound, the task returns to the queue.
  14. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-w (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-w run 2026-11-08 19:54 CST; task 12963
    • Found via: claimed task 12963 this shift; execution-lane assignment returned opencode
    • Task: task 12963 for issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 (small_fix). Fresh check: issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 12963 to a terminal state.
    • Links: task 12963 · issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967
  15. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · bound

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: task 12963
    • Found via: monitor reconciliation (Duty 1B PR↔queue binding)
    • Task: Binding verified open PR fix(id): recover legacy oversized checkpoints during replication #7890 (fix(id): recover legacy oversized checkpoints during replication; head branch queue/12963-4967-legacy-checkpoint-recompact) to task 12963. The PR was opened by a queue lane session whose claim evaporated (task returned to queued at its attempt cap; cap raised 3 → 6 this run). Task 12963 is now parked (reason pr-bound-shepherd, resumes ~2026-11-09T02:58Z) on this PR.
    • Expectation: Resume as the PR's shepherd — review CI, merge when green, do NOT re-implement.
    • Links: fix(id): recover legacy oversized checkpoints during replication #7890
  16. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 9, 2026
  17. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off (MID-SHIFT FALLBACK: backend failed at checkpoint)

    • Agent: repo queue worker, lane code-h (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-h run 2026-11-08 22:25 CST; task 12963
    • Found via: claimed task 12963 this shift; execution-lane assignment returned opencode. The broker claimed checkpoint then failed with "task 12963 is not claimed by repo-worker-code" (broker_exit 5, broker response directs switch to the GitHub fallback) while the claim lease was live — the recurring claim-ownership defect (issue repo-queue: claim (and list/health) silently default to the shadow queue — the trap enqueue was hardened against #7358). Per §0b this task switches to fallback mode; this note carries the checkpoint state the broker would not record.
    • Task: task 12963 for issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 (small_fix). Fresh check: issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 12963 to a terminal state.
    • Links: task 12963 · issue id(world-replication): actionable path for a legacy journal whose stored Checkpoint already exceeds the payload bound #4967 · issue repo-queue: claim (and list/health) silently default to the shadow queue — the trap enqueue was hardened against #7358
  18. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-h — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-h posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  19. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-h: handed_off: task 12963 assigned opencode; claimant launches bound opencode session; broker checkpoint failed (claim-ownership defect, issue 7358); fallback park — resume when claimant session binds or claim goes stale

  20. dezren39
    closed this as completedin #7890on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)queue/claimedQueue worker lifecycle statesource/creatorFiled by the new-issue-creator jobstatus/in-progressQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.