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): PM tenant store — schema + migrations (component A slice 1, from #9079) · Issue #12825 · developing-today/code

impl(pm-stack): PM tenant store — schema + migrations (component A slice 1, from #9079) #12825

New issue
Copy link
New issue
Copy link
Done
#13054
Done
impl(pm-stack): PM tenant store — schema + migrations (component A slice 1, from #9079)#12825
#13054
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codestatus:done

Description

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

Design: doc/2026-11-23T03-22-03Z_design_pm-service-workers-edition/2026-11-23T03-22-03Z_design_pm-service-workers-edition.md (PR #12823, merged) — component A of epic #9078, under #9079.

Slice 1 — PM tenant store: schema + migrations

Per design §3: one schema in the tenant's Turso DB (component E tenant plane) holding the PM store — board registry rows (#9060 BoardDef shape, stored as data), the merged item pool, hierarchy/link records (#9060 §11 shape: relation, status, provenance), Metadata copies (#9060 §12), roadmap rows, release-milestone snapshots (#9060 §4), reconcile findings, and the writer-of-record lease row (§5 of the design).

Acceptance

  • Migrations create the full PM store schema in a tenant Turso DB; schema version recorded.
  • Registry/pool/link-record shapes match pm stack: multi-board hierarchy + full task genealogy #9060 exactly (conformance-checked against laptop collector output shapes).
  • No PM content in the central tenancy DB; no tokens/keys in any table (E §2.3).

Activity

  1. dezren39
    added
    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-4713

  3. dezren39
    added a parent issue on Nov 23, 2026
    • design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079
  4. dezren39
    marked this as blocking 4 issues on Nov 23, 2026
    • impl(pm-stack): hosted collector — registry-driven multi-board ingest on Cron Triggers + IngestDO (component A slice 2, from #9079) #12826
    • impl(pm-stack): hosted read API parity — projects/item/roadmap/releases per #9060 §6 (component A slice 3, from #9079) #12828
    • impl(pm-stack): BoardDO live board state + presence (component A slice 5, from #9079) #12830
    • impl(pm-stack): ReconcileDO + writer-of-record lease, laptop lease guard, flip runbook (component A slice 6, from #9079) #12831
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Pickup (xaltha lane): starting slice 1 — PM tenant store schema + migrations, per the merged design (PR #12823) §3/§5. Branch xaltha/12825-tenant-store pushed from current main. Scope strictly #12825; siblings #12796/#12803 untouched. Will post one progress note with evidence when the PR is up.

  6. dezren39
    added 2 commits that reference this issue on Nov 23, 2026

    feat(id-hosted-worker): reference record schema + access check (compo…

    1f56742

    feat(pm-service): PM tenant store schema + migrations (component A sl…

    3d8f9d0
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Progress (xaltha lane): slice 1 landed as PR #13054 — #13054 (OPEN, MERGEABLE, 13 files, +1237/−0, head 3d8f9d086).

    What was built — new package pm-stack/pm-service (component A's home), src/tenant-store/:

    • migrations/0001_pm_tenant_store.sql: the full PM store schema for one tenant Turso DB — pm_boards (pm stack: multi-board hierarchy + full task genealogy #9060 §1 BoardDef as data), pm_snapshots, pm_items (merged pool; full collector JSON + extracted keys, the §15 pattern), pm_links (§11 relation/status/provenance, historical⇒until+reason and removed⇒reason fenced by CHECKs), pm_item_metadata (§12 copies), pm_roadmap_rows, pm_milestones + pm_release_snapshots (§4 two kinds + close-out accounting), pm_reconcile_findings, pm_writer_leases (design §5 row: board_id, writer laptop|hosted, epoch, heartbeat_at).
    • migrate.ts: version-ordered runner, one transaction per migration, recorded in pm_schema_migrations (schema-version record); recorded-name drift fails loudly.
    • schema.ts: wire shapes + validators mirrored field-for-field from pm stack: multi-board hierarchy + full task genealogy #9060 and the collector's landed types (aggregator model.ts/board-registry.ts).

    Evidence

    • bun test (pm-stack/pm-service, sandbox, bun:sqlite): 15 pass / 0 fail / 45 assertions — migration idempotence + drift, landed board registry round-trip, pool-item byte-faithful JSON, §11/§12 conformance fixtures, lease fencing, §4 accounting checks, and the E §2.3 guard (no token/key/secret/credential column in any table).
    • bun run typecheck: clean.
    • Suite wired into nightly pm-stack-tests.yml (assert-exists style, as decision-events-worker) and registered in .github/test-suite-registry.json as pm-service.tenant-store.

    Sequencing: no dependency on #12796 (E1) — that is the central tenancy DB, a different plane; these migrations target a per-tenant DB only and neither read nor write the tenancy DB. Siblings #12796/#12803 untouched. PR says Closes #12825 (the slice is the issue's whole scope).

  8. developing-today
    added
    status:in-review
    on Nov 23, 2026
  9. dezren39
    added a commit that references this issue on Nov 24, 2026

    Merge pull request #13054 from developing-today/xaltha/12825-tenant-s…

    cdbdd6d
  10. dezren39
    closed this as completedin #13054on Nov 24, 2026
  11. developing-today
    added
    status:done
    and removed
    status:in-review
    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/codestatus: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.