Skip to content

design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079

Open
0 of 8 issues completed

Description

@dezren39

Component A of epic #9078 (hosted editions program). Design first (design mill, under #9078); implementation issues are spawned by the design.

What

A workable equivalent of the PM service that runs on Cloudflare Workers: the aggregator, dashboard, and project-reconcile capabilities re-implemented in TypeScript as ONE hosted service, using Durable Objects where stateful coordination (single-writer reconcile, live board state) needs them. It consumes the SAME data model as the laptop stack — the board registry, hierarchy edges, primary-parent rule, and Metadata model from #9060's merged design (doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy) — so the hosted and laptop editions read the same world.

Builds on / relations

Open design questions (the design must answer or batch to Drew)

  1. Service shape: one Worker with route modules vs several Workers behind one hostname — and which parts are Durable Objects (reconcile writer, presence/live state) vs stateless request handlers?
  2. Where does board data live for the hosted edition — the tenancy/public Turso DBs (component E), D1, or both — and how does the hosted collector ingest GitHub (scheduled Workers / cron triggers vs the laptop collector feeding the DB)?
  3. Parity bar: which laptop-stack surfaces are V1 must-haves (board views, genealogy header/sentence, needs-attention, quota views) and which are explicitly deferred?
  4. Reconcile as a hosted single writer: how do laptop reconcile and hosted reconcile avoid double-writing during transition (one writer of record at a time — what flips it)?

Acceptance

Activity

  1. added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  2. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    Amendment applied (Drew 2026-11-12 17:03, epic #9078): TIER-1 PARITY. The Workers edition of the PM service is a primary edition alongside the Rust/native stack — parity + deliberate divergence framing throughout the design; no 'reduced sibling' scope assumptions.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triaged, task 18829 for issue #9079 (lane any-e)

  5. added
    status/triagedTriaged and routed (see agent note)
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 17, 2026
  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claim — Lane CY (archer), 2026-11-22. Taking the landable slice of #9079: the component-A design itself, following the pattern components E (#9083, design merged PR #11325) and F (#9084, design merged PR #12811) just used.

    Premise check (fresh, this pass): issue OPEN, no live claim (last activity 2026-11-17 triage, task 18829); no component-A design exists on main (only the #9078 intake scaffold doc/2026-11-12T23-04-00Z_design_hosted-editions-workers/note.md); the design's substantive inputs have since landed — #9060's model (merged), E's tenancy architecture (merged), F's content plane (merged today). The four open questions on this issue are answerable from those records; recommendations that are Drew's/mill's call will be marked PROPOSED, not decided (the F precedent).

    Deliverable: design doc under doc/ via PR (service shape + DO inventory, data homes, ingest path, V1 parity list, model-compatibility statement vs #9060, writer-of-record reconcile rule), then granular implementation issues filed under #9079 per its acceptance. #9079 stays open for ratification.

  8. added a commit that references this issue on Nov 23, 2026
  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane CY — component-A design landed (2026-11-22). #9079 stays open for one thing only: ratification of the two recommendations marked PROPOSED in the design (mill/Drew call, per the component-F precedent).

    Design merged — PR #12823, merge commit 311c4a83ab75bd37a5eeb2544f3c6a4dd3b348e1: doc/2026-11-23T03-22-03Z_design_pm-service-workers-edition/ (single file, 124 lines / 17,452 bytes, verified read back on main at exactly that size). It covers all of #9079's acceptance items:

    • Service shape (Q1): one Worker, one hostname, route modules (front-door / collector / read-api / dashboard / reconcile / live); DO inventory per board — BoardDO (live state + presence), IngestDO (collector serialization + cursors), ReconcileDO (hosted reconcile + lease enforcement). Several-Workers split rejected with reasons. PROPOSED, not decided.
    • Data homes + ingest (Q2): board data in the tenant's Turso DB on component E's planes — D1 rejected with the reason named (the laptop edition already standardized on Turso, impl(pm-stack): move the aggregator laptop-local JSON stores to Supabase muse-dev2 (#3989 slice) #6815; a D1 copy would be a divergence factory). Hosted collector on Cron Triggers, same GraphQL pool query as the laptop collector, fail-soft per board, per-org App installation tokens minted per run and never stored.
    • V1 parity list (Q3): board views, item detail + genealogy header/sentence (impl(pm-stack): genealogy read model — ancestors, spawned-by, sentence renderer, API #9070 port), roadmap + priorities, releases/close-out, needs-attention, quota views, reconcile findings. Deferrals named, not silent: Kaneo/Pad/Grist (separate products), dispatch intake, console gate (H's sign-in consumed directly), push, AA extras. Live presence is hosted-only and additive.
    • Reconcile single writer (Q4): writer-of-record lease per board in the tenant DB {board_id, writer, epoch, heartbeat_at} mechanizing pm stack: multi-board hierarchy + full task genealogy #9060's single-writer rule — epoch fencing checked before every mutation batch, laptop project-reconcile.sh gains a startup lease guard (read-only verifier when hosted holds the lease), flip/rollback as a per-board procedure. The GitHub-has-no-fencing limitation is stated in the design, with Metadata-provenance detection as the monitor surface. PROPOSED, not decided.
    • Model-compatibility statement vs pm stack: multi-board hierarchy + full task genealogy #9060: full element-by-element table; three divergences named (link/Metadata store location — PM tenant DB vs fleet metadata DB impl(fleet): metadata database + fleet Metadata query surface #9074, same shape, pinned by slice 8's conformance suite; additive live presence; the operational writer lease), everything else: none.

    Eight granular implementation issues filed as sub-issues of #9079 (blocked-by sequencing set: 2←1, 3←1, 4←3, 5←1, 6←1, 8←3): #12825 (tenant store schema), #12826 (hosted collector), #12828 (read API parity), #12829 (dashboard surfaces), #12830 (BoardDO live/presence), #12831 (ReconcileDO + lease + flip runbook), #12832 (identity wiring), #12833 (dual-edition conformance suite). Slices do not depend on ratification except #12831, which says so in its body.

    Acceptance mapping: design merged under doc/ ✓ · compatibility statement with divergences named ✓ · granular implementation issues filed under this issue ✓. Remaining on #9079: ratification only.

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/codeeffort/lLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)status/triagedTriaged and routed (see agent note)status:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions