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 — impl(pm-stack): E2 — TenantOpsDO provisioning state machine (#9083) · Issue #12797 · developing-today/code

impl(pm-stack): E2 — TenantOpsDO provisioning state machine (#9083) #12797

New issue
Copy link
New issue
Copy link
Done
#14392
Done
impl(pm-stack): E2 — TenantOpsDO provisioning state machine (#9083)#12797
#14392
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeepic/pm-stackReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

Description

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

Implementation slice E2 of #9083 (tenancy architecture, component E of epic #9078).

Design record: doc/2026-11-17T16-55-00Z_design_hosted-tenancy-architecture/2026-11-17T16-55-00Z_design_hosted-tenancy-architecture.md §3, §4, §11 item 2 (merged via PR #11325).

Work

Implement the TenantOpsDO provisioning state machine: the §4 lifecycle transitions (signup → tenancy row → Turso DB creation → credential issuance/rotation → suspension/deletion), with intent-first idempotent creation, retry, and compensation. One DO per tenant, keyed by binding_id (§3).

Invariant

Provisioning is race-safe and idempotent: concurrent sign-ups for one tenant create exactly one database, and a failed step compensates rather than leaving half-provisioned state.

Acceptance

  • §4 transitions implemented with intent-first idempotent creation, retry, and compensation.
  • Tests prove concurrent sign-ups create one database.
  • Only the actors §4 names can perform each step.

Sequencing (design §11)

Needs E1. E4 needs E1 + E2.

Filed by Lane BZ (archer) 2026-11-22 as the §11 follow-up pass for #9083.

Activity

  1. dezren39
    added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

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

    CODE-4694

  3. dezren39
    added
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 23, 2026
  4. dezren39
    added a parent issue on Nov 23, 2026
    • design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083
  5. dezren39
    marked this as blocked on Nov 23, 2026
    • impl(pm-stack): E1 — tenancy schema + migration baseline (#9083) #12796
  6. dezren39
    marked this as blocking on Nov 23, 2026
    • impl(pm-stack): E4 — credential issuance/revocation service (#9083) #12799
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Standing down on E2 for now: it needs E1 (#12796) landed first (design §11 sequencing), and E1 has not landed on main yet — its implementation PR #13042 (branch xaltha/12796-tenancy-schema) is still open/in review. Will re-take E2 once #13042 merges. — xaltha lane

  8. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    Triage verdict — not resolved; sequencing gate has cleared (2026-11-24)

    Fresh verification by the triage lane for queue task 22245:

    • E2 is not implemented. No TenantOpsDO provisioning state machine exists yet; this issue's acceptance boxes are all unchecked and no implementation PR for E2 has landed.
    • The blocker named in the 2026-11-23 stand-down note is gone. E1 (impl(pm-stack): E1 — tenancy schema + migration baseline (#9083) #12796) landed: PR feat(id): tenancy schema + migration baseline (E1 of #9083) #13042 ("feat(id): tenancy schema + migration baseline (E1 of design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083)") merged 2026-11-24T05:24:20Z, merge commit 32d964d7e1253169a2f35734f8cf75df5db30831; impl(pm-stack): E1 — tenancy schema + migration baseline (#9083) #12796 is closed completed. E1 delivered the tenancy schema baseline this slice builds on (pkgs/id/hosted-worker/tenancy/migrations/0001_tenancy_baseline.sql + schema test).
    • Per design §11 sequencing, E2 needed only E1 — so E2 is now unblocked and ready to implement. (E4 in turn needs E1 + E2.)

    Routing: a feature_slice implementation packet for this issue has been enqueued on the repo-health-code-pilot queue (slice 1: the §4 TenantOpsDO provisioning state machine with intent-first idempotent creation, retry, and compensation, plus the concurrency test proving one database per tenant). This issue stays open as the slice's home.

    — ITEM-WORK-49 lane (archer), 2026-11-24

  9. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Lane code-h (task 23126, 2026-11-24): E2 is unimplemented; E1 (#12796) gate checked. Implementation needs build and tests via remote dispatch, and this lane has no shell route in this run. Parked; no code changed here.

  10. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Picked up by felix lane (queue task 23126, repo-health-code-pilot). Done-check: E2 is not on main — no TenantOpsDO exists in the tree; E1 (#12796, PR #13042) has landed, so the §11 gate is clear. Implementing the §4 provisioning state machine in pkgs/id/hosted-worker/src/tenant-ops.ts with tests in test/tenant-ops.test.ts; branch felix/12797-tenantops-provisioning, PR to follow unmerged for review.

  11. dezren39
    added 2 commits that reference this issue on Nov 24, 2026

    feat(id): TenantOpsDO provisioning state machine (E2 of #9083, #12797)

    972ae2e

    docs(id): book + package docs for the TenantOpsDO slice (#12797)

    71356ec
  12. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    E2 implemented — PR #14392 (unmerged, for Felix's review/merge).

    What landed (branch felix/12797-tenantops-provisioning, head 71356ecd2):

    • pkgs/id/hosted-worker/src/tenant-ops.ts — TenantOpsDO: one object per tenant keyed by binding_id, serialised transitions on the E1 tenant_db row, intent-first idempotent creation under a deterministic request id, bounded retry with adoption-as-compensation, permanent-refusal → failed, actor checks per §4 on internal headers, two-phase deletion (revoke → cooling-off → drop → tombstone). Provider seam for the Turso management API; unconfigured fails closed. No new migration needed — the baseline row carries every field the machine writes.
    • test/tenant-ops.test.ts — 14 tests against the real E1 migrations; wired into wrangler.toml (TENANT_OPS, migration tag v2), worker.ts exports, and the package test script.
    • Book live update in-slice: id book reference/hosted-worker.md (binding row, TenantOpsDO routes section, unrouted-surface row) and concepts/hosted.md (package enumeration); design/hosted-editions.md checked — no statement moves (its tenancy claims are about a running service). Package READMEs updated for the same facts.

    Verification (remote, run 45405972563 on the PR head; execute step completed — the run shows cancelled because I cancelled it during the known Post Execute hang to release the log): executor image has no node/npm (fleet#111 family), so the command used the runner toolcache's Node — v24.22.3 / npm 11.19.1. tsc --noEmit clean; full package suite 171/171 pass, 0 fail, including by name: "concurrent sign-ups create exactly one database (§11 item 2)" (provider create called exactly once under racing duplicate sign-ups, and again nothing from a restarted second instance), "intent-first: a crash after creation adopts the existing database", the actor-matrix test (every step attempted by every actor §4 does not name; state unmoved; 403), and the two-phase deletion test (revocation recorded at initiation, drop only after the window).

    Acceptance mapping: §4 transitions with intent-first creation, retry, compensation — implemented + tested; concurrent sign-ups → one database — proven; only §4's actors per step — proven; book updated in-slice — done (render check rides the post-merge Pages verification; no SUMMARY/H1/link structure changed). New dependencies: none.

  13. developing-today-fleet
    closed this as completedin #14392on Nov 24, 2026
  14. developing-today
    added
    status:done
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeepic/pm-stackReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

    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.