GeezerVison is showing github.com — id(hosted): durable UserDO source-freeze fence (#3404) by dezren39 · Pull Request #15128 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Slice of #3404: durable per-user source migration fence in the hosted data plane.
- migration_fence table keyed by (migration_id, source binding/jurisdiction, epoch), one-fence-per-source unique index, durable op_seq watermark.
- freezeSource/freezeAckFor are internal RPC methods, not HTTP routes (front door forwards every path, so an HTTP freeze route would be publicly reachable). Server computes watermark/drain; caller supplies identity/epoch only.
- Freeze inserts the fence row synchronously, drains tracked in-flight mutations (streamed KV, R2 head/put, proof verification, WS batch decode), then acks with watermark + drained=1. Stale epoch / other-migration / wrong-jurisdiction / unbound-identity all fail closed.
- Every mutation path rechecks at commit: KV put/delete, blob put/delete (no R2 reference commit after freeze; shared bytes untouched), bridge HTTPS push, WS batches (source_frozen error code). Reads, export, authenticated pull, and challenge stay available.
- No unfreeze in this slice by design; abort/release is coordinator-owned (id: implement verified resumable user-store migration and safe cleanup #3402 scope).
Verification: npm run typecheck clean; hosted-worker suite 261 pass / 0 fail. Remote dispatch: developing-today-forks/fleet#45626306855.
Closes #3404? No — this is one slice; closes when coordinator/export wiring lands. See design note doc/2026-11-25T13-21-00Z_feature_source-freeze-fence/.
{
"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-25T13:42:47Z",
"session_id": "ses_e5ded8f13c6ffeP5lCaYeHW0og",
"lane": null,
"host": "amd",
"worktree": "/home/user/.local/share/opencode/worktree/7c7733/oc-code-06-3404",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/.local/share/opencode/worktree/7c7733/oc-code-06-3404",
"repo": "developing-today/code",
"branch": "oc-code-06/3404-durable-source-fence",
"sha": "9a011c033031f1993161c3b02e1d2306edd3282c"
},
"auth_subject": "agent-next-22-local",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Per-user migration_fence table keyed by (migration_id, source
binding/jurisdiction, epoch) with a server-computed op-sequence
watermark. freezeSource/freezeAckFor are internal RPC methods (not
HTTP routes); freeze drains in-flight mutations before acking, and
every mutation path (KV, blobs, bridge push/WS) rechecks the fence
at commit. Reads, export, and authenticated pull stay available.
Tests: migration-fence.test.ts (watermark/idempotence/restart,
streamed-KV and pending-R2 drain races, transactional rollback),
frozen HTTP/WS coverage in bridge-do.test.ts. Schema v3 -> v5.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 11 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a3e92b28-32a7-4f5d-9374-99d9ac38b7d9
Commits
-
Reviewing files that changed from the base of the PR and between 65d20a9 and 9a011c0.
Files selected for processing: 7
-
doc/2026-11-25T13-21-00Z_feature_source-freeze-fence/2026-11-25T13-21-00Z_feature_source-freeze-fence.md
pkgs/id/hosted-worker/package.json
pkgs/id/hosted-worker/src/bridge-session.ts
pkgs/id/hosted-worker/src/user-do.ts
pkgs/id/hosted-worker/test/blobs.test.ts
pkgs/id/hosted-worker/test/bridge-do.test.ts
pkgs/id/hosted-worker/test/migration-fence.test.ts
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
|
Closed as superseded. Superseded by merged PR #15605 (d19842f), the canonical durable UserDO source-fence slice for #3404. Full diff comparison and salvage disposition recorded on #15605 (comment 7196553319): no unique required behavior lost. #3404 stays open for coordinator work. This PR was not merged.
Successor: 15605
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|