GeezerVison is showing github.com — id(hosted): scaffold binding-backed per-user Durable Object · Issue #5199 · developing-today/code
id(hosted): scaffold binding-backed per-user Durable Object #5199DescriptionChild implementation step for #3811 / slice 3 of #2852, grounded in #2258 §5 and the #2046 ruling.
Scope
Add the first local-only hosted data-plane vertical slice: a Cloudflare Worker HTTPS/WebSocket front door that resolves an already-authenticated account/binding to a lazily created per-user Durable Object; use the stable binding_id from merged #3808 (never email or a rebindable key), and fail closed on missing/unsupported jurisdiction or mismatched/undefined DO jurisdiction. The same restricted jurisdiction namespace must produce the ID and stub; no unrestricted fallback. Bootstrap a versioned SQLite schema idempotently before serving. Reconcile the stale google:<sub> / userObjectId(sub) example in doc/2026-11-01_jurisdiction_aware_user_store_design.md against the binding_id contract in #2258, #3811, and pkgs/id/src/hosted_binding.rs.
Acceptance
- A first request lazily creates one UserDO for the stable binding_id and initializes the schema; concurrent/retried bootstrap is safe.
- Distinct binding IDs cannot access each other; missing/unknown jurisdiction and both
ctx.id.jurisdiction undefined/mismatch cases fail closed before side effects.
- Local Workerd/Wrangler tests cover routing, isolation, cold start, and schema bootstrap/retry.
- Keep this as an isolated Worker package; do not run Iroh QUIC inside Workers.
Excludes / gates
R2 blobs/references, metering and caps are later bounded steps under #3811; production signed-object sync belongs to #3818. No account-level Cloudflare deployment, production binding/config, residency claim, or billable resource creation: #2285 remains open/escalated and #3403 blocked pending Drew authorization and verified account evidence. Use the merged jurisdiction design #3843 and the #2046 ruling; no new product decisions.
Related: #3811 #2852 #2258 #2046 #2283 #2285 #3403 #3808} Activitydezren39 commented on Nov 3, 2026 agent-note:v1
state: queued
dezren39 commented on Nov 4, 2026 🤖 Agent note · picked up (small_fix, task 8897)
dezren39 commented on Nov 4, 2026 🤖 Agent note · parked (CI pending, task 8897)
- Agent: queue worker (repo-worker-code), lane code-p
- Session / ID: task 8897
- Artifact: PR feat(id): hosted data-plane scaffold — binding-backed per-user Durable Object (#5199) #5286 (branch
queue/8897-5199-hosted-worker, commit 933de63) — hosted-worker scaffold + jurisdiction design-doc reconciliation.
- Verified before parking:
node --test 4/4, smoke 15/15 across two local wrangler dev passes, tsc --noEmit clean — all on the laptop worktree. PR is MERGEABLE; the only check, basic: production line limit (2500), is still pending in the CI backlog (run 41775353789) after a 5-minute poll; every new production file is under 200 lines, so the check's substance is satisfied — resume should merge once it reports green (after reading any Codex findings per the merge gate).
- Resume condition: PR feat(id): hosted data-plane scaffold — binding-backed per-user Durable Object (#5199) #5286 checks green → disposition any Codex/CodeRabbit findings → squash-merge → close task 8897 as fixed_merged.
dezren39 commented on Nov 4, 2026 Intake review
- Related: parent id: implement hosted Worker API + per-user DO provisioning and metering (from #2046/#2852 slice 3) #3811, slice 3 of id: implement hosted provisioning + SSO→ID binding (from spec #2258) #2852, grounded in id: design: hosted provisioning + SSO→ID binding spec — account/binding records, challenge ceremony, delayed rebind, metering, export (from #2045) #2258 §5 and the id: design: ID serverless edition v1 (Cloudflare Workers) #2046 ruling; uses the stable
binding_id from merged id: implement hosted account + ID binding ceremony (from #2046/#2852 slice 1) #3808. Open PR feat(id): hosted data-plane scaffold — binding-backed per-user Durable Object (#5199) #5286 (feat(id): hosted data-plane scaffold — binding-backed per-user Durable Object) implements this issue and is with the parked holder.
- Notes: Labels-only intake pass — this issue is parked with a queue holder (queue/parked + work/assigned), so its body is left untouched; its Acceptance section already states the criteria in substance (lazy per-binding DO creation, jurisdiction fail-closed, isolation, Workerd/Wrangler test coverage).
- Risks: Jurisdiction handling is the sharp edge: both
ctx.id.jurisdiction undefined and mismatch cases must fail closed before any side effect, per the issue body.
- Suggested approach: Holder resumes from its park; no monitor action needed beyond this enrichment mark.
🤖 Fleet monitor intake pass, 2026-11-03 run. dezren39 commented on Nov 4, 2026 🤖 Agent note · picked up (resume, task 8897)
dezren39 commented on Nov 4, 2026 🤖 Agent note · done (task 8897)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|