GeezerVison is showing github.com — design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service · Issue #9079 · developing-today/code
design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079Todo 5 / 85 of 8 issues completedTodo 5 / 85 of 8 issues completed DescriptionComponent 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
- pm stack: multi-board hierarchy + full task genealogy #9060 (multi-board hierarchy + genealogy design), pm-stack collector: multi-project pool (forks + lab boards) and App-bucket identity #9062 (collector board registry + multi-board pool), impl(pm-stack): genealogy read model — ancestors, spawned-by, sentence renderer, API #9070 (genealogy read model + sentence renderer), impl(pm-stack): dashboard surfaces — genealogy header, per-project roadmap, overall priorities, releases #9071 (dashboard surfaces), impl(fleet): metadata database + fleet Metadata query surface #9074 (metadata DB).
- Data unification background: Long-term: migrate the pm stack into Supabase — refactor component state into schemas for central management #3142 (PM stack into a central DB), pm stack: centralize all service data as shared tables in one database schema #1744 (one schema for PM service data). Turso + Cloudflare epic: epic: Turso + Cloudflare integration — databases, edge, gateway, and DNS #8987.
- Tenancy + content plane it will sit on: components E and F under epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078. Identity: component H / SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077.
Open design questions (the design must answer or batch to Drew)
- 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?
- 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)?
- Parity bar: which laptop-stack surfaces are V1 must-haves (board views, genealogy header/sentence, needs-attention, quota views) and which are explicitly deferred?
- 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
Sub-issuesCollapse Sub-issuesSub-issues5 of 85 of 8 Issues completedLoading 8 sub-issues Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 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. dezren39 commented on Nov 17, 2026
Agent note — triaged, task 18829 for issue #9079 (lane any-e)
- State: triaged (inline, 2026-11-17). Verdict: real and current — a design-mill item, not a lane fix. Work kind: design (kind/design). Priority: priority/normal (epic program work under epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078; not fleet-stalling, not in Drew's expedite set). Effort: effort/l.
- Fresh verification: issue design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 is OPEN, no hard-stop labels; parent epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 (hosted editions) is OPEN. Step-1 premise holds: it consumes pm stack: multi-board hierarchy + full task genealogy #9060's merged design (doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy). Drew's amendment of 2026-11-12 is on the issue and binds the design: TIER-1 PARITY — the Workers edition is a primary edition alongside the Rust/native stack, no reduced-sibling scope assumptions.
- Route (design mill, per the epic's own terms): ONE summit design session owns this item under epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 and produces the merged design under doc/ — service shape (one Worker + route modules vs several Workers; Durable Object inventory for the reconcile writer and live board state), data homes (tenancy/public Turso vs D1), the hosted ingest path, the V1 parity list against the laptop stack, the model-compatibility statement vs pm stack: multi-board hierarchy + full task genealogy #9060, and the single-writer reconcile transition rule. The design then files the granular implementation issues under design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079, per its acceptance.
- First concrete step: design-mill intake for component A — open the summit design session with pm stack: multi-board hierarchy + full task genealogy #9060's merged design, pm-stack collector: multi-project pool (forks + lab boards) and App-bucket identity #9062/impl(pm-stack): genealogy read model — ancestors, spawned-by, sentence renderer, API #9070/impl(pm-stack): dashboard surfaces — genealogy header, per-project roadmap, overall priorities, releases #9071/impl(fleet): metadata database + fleet Metadata query surface #9074 states, and the four open questions on this issue as its brief; questions the design cannot answer from the record get batched to Drew, not guessed.
- Acceptance check (from the issue): design merged under doc/ as part of epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078's build-out; model-compatibility statement vs pm stack: multi-board hierarchy + full task genealogy #9060 with divergences named; granular implementation issues filed under design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079.
- Why no queue packet from this triage: the queue validator has no design packet kind, and a fix/triage packet would mislabel the work; the tracked next action is the design-mill intake named above, owned by epic design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079's parent epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078. Labels: status/triaged + priority/normal + effort/l + kind/design added.
added 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, 2026dezren39 commented on Nov 23, 2026
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. dezren39 commented on Nov 23, 2026
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. dezren39 commented on Nov 24, 2026
Lane code-j — 9-point conformance supplement (queue task 21561, slice 1).
Premise (fresh, this pass): the component-A design already landed via PR #12823 (lane CY) and all 8 implementation slices are filed under this issue (#12825 CLOSED, #12826, #12828–#12833 OPEN) — so the slice work was the missing explicit 9-point mapping, not a new design.
PR #14086 adds §10 to `doc/2026-11-23T03-22-03Z_design_pm-service-workers-edition/` (supplement only, no technical decisions changed): explicit goals/non-goals, alternatives incl. do-nothing with rejection reasons, dependency-ordered slice table with per-slice acceptance + filing numbers, verification plan (slice-8 conformance suite, verify-only first flip, findings-report monitor), and open questions each naming a decider. Done-check for the slice: read the doc; all 9 standard sections present.
#9079 stays open for ratification of the two PROPOSED recommendations, as before. dezren39 commented on Nov 24, 2026 Refs #12831: slice 6 (ReconcileDO + writer-of-record lease) is blocked only on ratification of design §5. Slice 1 (#13054) has merged, so the schema dependency is cleared. Launch the feature-slice for #12831 once §5 is ratified. developing-today-fleet commented on Nov 25, 2026 agent-note:v1
Agent: felix (Muse lane, 2026-11-25)
State: label correction (comment-only) — #14863 hygiene audit slice 9
This issue carries status:in-review and status/triaged at the same time. The live state is in-review (the design is the ratified record the CF programme and #12831 slice 6 key off); status/triaged is the stale member of the pair. Flagged for the holder to drop the stale label — this lane does not edit labels. Refs #14863 developing-today-fleet commented on Nov 26, 2026 Owner ruling 2026-11-26 (recorded in full on #14866): the board-data placement in tenant Turso is superseded — all fleet state moves to Cloudflare with D1 as the database, cutover authorized once data is copied and verified. Recorded by Felix. developing-today-fleet commented on Nov 26, 2026 Triage re-check (code-i, 2026-11-26): design PR #12823 merged, 8 slices filed (#12825 CLOSED, rest open), conformance supplement #14086 merged 2026-11-24. NEW since last design note: owner ruling 2026-11-26 (full record on #14866, program OPEN) supersedes the design Q2 data-home decision — tenant Turso placement is out, all fleet state moves to Cloudflare with D1, cutover on copy+verify. This touches the merged design §Q2 rationale, closed slice #12825 (tenant store schema), and pending slices #12826/#12831/#12833. Reconciliation belongs to the #14866 program + design mill, not this triage lane; no new packet filed. Issue stays open (ratification of the two PROPOSED items + D1 reconciliation). developing-today-fleet commented on Nov 27, 2026
Lane 1922-B triage (queue task 25691): fresh-verified — all acceptance items on #9079 are already satisfied; the remainder is not lane-workable.
Evidence (second-source, this run):
- Design merged: PR design(pm-stack): component A — PM service, Workers edition (#9079) #12823 MERGED 2026-11-23T03:23:27Z, merge commit 311c4a8 (component-A design, doc/2026-11-23T03-22-03Z_design_pm-service-workers-edition/).
- Model-compatibility statement vs pm stack: multi-board hierarchy + full task genealogy #9060 in that design, divergences named; 8 granular implementation issues filed under design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 (impl(pm-stack): PM tenant store — schema + migrations (component A slice 1, from #9079) #12825 CLOSED, 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): dual-edition conformance suite — laptop vs hosted API equivalence (component A slice 8, from #9079) #12833 open); 9-point supplement PR docs(9079): nine-point conformance supplement for Workers PM-service design #14086 merged 2026-11-24.
- Remaining, per the issue's own record: (1) ratification of the two PROPOSED recommendations (service shape, reconcile writer-of-record) — a Drew/design-mill decision, issue carries status:in-review; (2) the 2026-11-26 owner ruling recorded on program: move PM Stack, queues, and all unblocked services to Workers + D1 (Cloudflare-first) #14866 (OPEN program, verified this run) supersedes the design's Q2 Turso data-home — reconciliation belongs to the program: move PM Stack, queues, and all unblocked services to Workers + D1 (Cloudflare-first) #14866 program + design mill, not a triage lane (per code-i re-check 2026-11-26).
Disposition: queue task 25691 parked with a non-person ready condition on #14866 closing (the D1 reconciliation program), at which point #9079's remaining ratification/reconciliation can be re-triaged. No new packet filed — slices already exist. developing-today-fleet commented on Nov 27, 2026
Triage recheck (code-h, 2026-11-27 ~02:36Z): the issue body and acceptance are unchanged; #9079 remains open, with the component-A design merged in #12823, conformance supplement #14086 merged, and eight implementation slices already filed. The only remaining disposition remains program/design reconciliation: two recommendations are explicitly PROPOSED, and the 2026-11-26 D1 ruling is tracked by still-open program #14866. This is not lane-sized code work, and no new packet is appropriate while the slices and program track the work. Verdict: triage complete; leave #9079 open for its existing program/design follow-up.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|