GeezerVison is showing github.com — id: implement #3870 phase 2 — program transfer contract + source export/fence · Issue #3901 · developing-today/code
id: implement #3870 phase 2 — program transfer contract + source export/fence #3901DescriptionPhase 2 of #3870 (journaled region-seam export/import, design #2818, doc doc/2026-11-01_design_id2818.md in PR #3875, §8 packet 2). GATED on Phase 1 (journal/schema foundation phase issue) landing.
Scope: Program transfer contract + source export/fence — no external route exposes it yet.
- Pure
WorldProgram::prepare_entity_transfer hook (typed Export/Import variants; default returns unsupported) alongside the current trait at pkgs/id/src/world/mod.rs:871-925.
- Region-sharded mode gate: state-changing commands in sharded mode must be entity-addressed; legacy unscoped
Input rejected in that mode only.
- Complete bounded entity payload: 16 KiB v1 cap, oversize refused BEFORE the source is fenced.
- Source path order is prepare/validate → persist
EntityExported → apply in-memory → acknowledge (persist-before-apply precedent pkgs/id/src/world/actor.rs:882-900; do NOT route through WorldActor::deliver, actor.rs:401-440). No receipt until apply/replay succeeds.
- Source-side stale-write rejection: after the export entry is durable, the actor rejects entity-targeted input for that
entity_ref.
Acceptance: tests prove deterministic replay, persist-before-apply, durable fence, oversize-before-fence refusal, and no receipt on apply failure (recovery by replay).
Parent: #3870. Design: #2818. Activitydezren39 commented on Nov 1, 2026 agent-note:v1 — task 5864 picked up by OpenChamber scheduled lane (2026-11-01). Revalidated that #3901 is open. The packet gate requires #3900 to land first; it is still open and actively owned by queue task 5863 on queue/5863-3900-journal-foundation. No files changed; parking this task for 30 minutes until #3900 lands. dezren39 commented on Nov 1, 2026 agent-note:v1 — task 5864 parked (2026-11-01). Blocker: gated predecessor #3900 has not landed; it remains open and actively owned by task 5863 on queue/5863-3900-journal-foundation (#3900 (comment)). Queue task 5864 parked for 30 minutes; resume only after fresh verification that #3900 is closed / its fix is merged. No branch or worktree created; no files changed. dezren39 commented on Nov 1, 2026 agent-note:v1 — task 5864 picked up again by OpenChamber scheduled lane (2026-11-01). Freshly verified #3901 is open and gated predecessor #3900 is still open with active task 5863 on queue/5863-3900-journal-foundation (#3900 (comment)). No files changed; checking in and parking again until the predecessor lands. dezren39 commented on Nov 11, 2026 🤖 Agent note · picked up (resumed)
- Agent: repo queue worker, lane code-f (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-f run 2026-11-10; task 8542
- Found via: queue claim; the legacy opencode assignment (row 1508) was flipped to
direct per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 (exclusion reason recorded)
- Task: task 8542 (pr_shepherd) for issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 — port of PR feat(id): add region-seam source export (#3901) #3931 (now CLOSED) onto current main. Fresh state, verified this shift: the port exists as PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 (OPEN, branch queue/8542-3901-program-transfer-port, head c8ab72c, 5 world files +721/-4). The task worktree (~/git/fleet/queue-8542-3901-program-transfer-port) carries UNCOMMITTED changes to world/actor.rs, world/core.rs, world/tests.rs — the Codex fixes of record for PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375's four Codex P1 findings (comments 4532679168, 4532679174, 4532679181, 4532679187), never committed or pushed.
- Plan: verify the uncommitted fixes against each P1, run the world test suite, commit + push, reply on the four Codex threads, then merge-or-park on PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 checks (currently 1 pass / 10 pending / 2 skipping in the runner stall).
- Links: task 8542 · issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 · PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 · PR feat(id): add region-seam source export (#3901) #3931 (closed, salvage reference)
dezren39 commented on Nov 11, 2026 🤖 Agent note · parked (CI wait)
- Agent: repo queue worker, lane code-f (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-f run 2026-11-10; task 8542
- Task: task 8542 (pr_shepherd, issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 phase-2 port) — PARKED as a broker CI wait on PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 (ready-condition ci, PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375; releases 2026-11-11T04:34Z at the earliest, or on wake when checks complete).
- Done this shift: the four Codex P1 findings on PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 (review of c8ab72c) were fixed and pushed as de9299b: (1) bound-author check preserved for entity input (comment 4532679168), (2) region-sharded gate applied to signed inputs too (4532679174), (3) replica entity inputs refused via check_writable before the program runs (4532679181), (4) exact export retry returns the stored receipt (4532679187). Each fix has a regression test, and each Codex thread has a reply naming the fix (4533643804, 4533644398, 4533644861, 4533645267). The fixes were found uncommitted in the task worktree, verified, and only then committed — no prior work was discarded.
- Tests (laptop):
cargo test -p id --lib world::tests::tests:: — 147/147 pass; cargo check -p id clean.
- State: PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 head de9299b, MERGEABLE; checks on the new head 6 pending / 1 skipping (fleet runner stall, no failures); Codex has not yet re-reviewed the new head. PR feat(id): add region-seam source export (#3901) #3931 is CLOSED (salvage reference only). Overlap probe for the earlier task 14779 concern: no other live task surfaces for issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 in any queue list; PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 (bound to task 8542) is the canonical port.
- Resume: checks green on de9299b + no new Codex findings on the new head → merge PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 → verify issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 closed → complete task 8542 as fixed_merged.
- Links: task 8542 · issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 · PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 · PR feat(id): add region-seam source export (#3901) #3931
dezren39 commented on Nov 11, 2026 agent-note:v1
state: done
task: 8542
lane: tmp-code-j
Resumed the existing port: PR #8375 (PR #3931's commit cherry-picked onto current main, conflicts resolved) merged as a6579e4; issue #3901 closed by the merge. PR #3931 was already CLOSED and carries the salvage comparison on PR #8375.
Codex gate: all four P1 findings on PR #8375 were fixed in head de9299b with replies on each thread; I verified the four regression tests and the fix code are present in the worktree at that head. Test evidence for the head is recorded on the PR (world suite 147/147, cargo check clean). My own re-run of cargo test --lib world:: was blocked by the laptop /home disk being 100% full (ENOSPC compiling in the worktree target dir; tracked on #6797) — an infra failure, not a test failure. GitHub checks were queued (CI saturation) at merge time; merge proceeded under the standing merge authority.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|