Repository navigation
Open
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codedesign/pm-data-migrationsDesign: pm-data-migrations - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)epic/pm-stack-coherenceEpic: pm-stack-coherence - all issues of this effort carry itkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/humanFiled directly by a humanstatus/needs-reviewReady for reviewtask/triageQueue packet kind: verify, reproduce, and route this item
Description
Problem
Every PM-stack service keeps its own private data store today:
- aggregator: JSON files in ~/.local/state/pm-aggregator/ (actions, comments, registry, fleet feed, quota state, snapshots/)
- projector: its own SQLite file (~/.local/state/pm-projector/projector.db) — even though its design already namespaces its tables pmp_ precisely so they can live in a shared database (see pm-stack/projector/README.md: the registry fields are name-spaced so they can live in the fleet's existing database rather than requiring a dedicated one)
- Grist: its own document storage for the roadmap table and the registers
- Kaneo, Pad, ready-for-agent: their own stores again
Consequences: cross-service questions (links between projects, issues, roadmap rows; one event stream) need bespoke joins per pair; freshness depends on each service's own polling/restart behavior (see code#1288 for the Grist live-apply problem); backups and restarts are per-service crafts.
Proposal
Move the stack's service data into ONE database with a shared schema of namespaced table groups:
- One database (libSQL/Turso-shaped, matching the projector's existing storage choice; local file on the laptop with the fleet's existing backup legs) as the single home.
- Table groups per service with clear prefixes (pmp_ projector/link registry, agg_ aggregator stores, plus shared entity tables for items, links, comments, events that more than one service uses).
- Shared entities (items, links, comments, events) are written once and read by every service — no private copies. The projector's disposable-projection principle is preserved: its tables rebuild from GitHub; the registry (link writes) is the only non-rebuildable part and gets the backup legs.
- Services pick up data changes live (subscription or short-interval change polling with lag surfaced per code#1734) instead of on restart — this issue provides the data layer code#1288 needs.
- The event log (code#1739) and roadmap file integration (code#1738) should be designed against this schema, not against per-service files.
Acceptance
- An inventory + schema map: every current store (file, table, owner service, rebuildable or not) and its target table group.
- A migration plan per service, ordered so each step is independently shippable and reversible, with the aggregator's JSON stores and the projector DB as the first two moves.
- After migration: no service holds a private copy of items/links/comments; one backup target covers the stack's data; a data change made through one service is visible to the others without restarting any of them.
Raised by Drew 2026-10-28 (centralized management of all these services' data using shared tables in a db schema). Related: code#1288, code#1734, code#1738, code#1739, code#1199.
Acceptance criteria
- An inventory + schema map exists: every current store (file, table, owner service, rebuildable or not) and its target table group.
- A migration plan per service exists, ordered so each step is independently shippable and reversible, with the aggregator's JSON stores and the projector DB as the first two moves. (Plan: pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md, PR pm-stack: per-service migration plan for the shared schema (#1744 slice 2) #4881, merged 612ac37.)
- After migration: no service holds a private copy of items/links/comments; one backup target covers the stack's data; a data change made through one service is visible to the others without restarting any of them.
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codedesign/pm-data-migrationsDesign: pm-data-migrations - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)epic/pm-stack-coherenceEpic: pm-stack-coherence - all issues of this effort carry itkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/humanFiled directly by a humanstatus/needs-reviewReady for reviewtask/triageQueue packet kind: verify, reproduce, and route this item
Activity
developing-today commentedon Oct 28, 2026
CODE-704
dezren39 commentedon Oct 28, 2026
Intake review
Related: #1288 (Grist live-apply — needs this data layer), #1734 (per-source lag on /health), #1738 (roadmap files integration), #1739 (cross-stack event log), #1199 (projector deployment). Sibling set filed the same day; this is the foundational piece the others should be designed against.
Notes: Verified still live at intake (2026-10-28T17:45Z): no PR or issue implements a shared PM-stack schema; the body's store inventory (aggregator JSON files, projector SQLite, Grist/Kaneo/Pad stores) is the current state. Acceptance criteria section appended formalizing the body's
## Acceptancelist; original body preserved above it.Risks: Largest item in the PM-stack set (effort/l). Migration touches every service's persistence; the registry is the only non-rebuildable part, so backup legs must be proven before any service moves. Scope creep risk if the shared-entity design tries to absorb service-private state too.
Suggested approach: Inventory + schema map first as its own slice, then one service at a time (aggregator JSON, then projector DB), each independently shippable/reversible per the acceptance criteria. Do not start #1738/#1739 storage design against per-service files once this lands.
🤖 Fleet monitor intake enrichment · 2026-10-28
428 remaining items
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
developing-today-fleet commentedon Nov 30, 2026
Progress (slice 2) — lane 0640-HN (Felix, 2026-11-29). Identity-registry P1 contract slice (claimed in 7266588540) is open as PR #17045: migration
20261129_0008_agg_identity_registry(public.agg_identity_sessions, paired down refuses non-empty), Turso golden generated by the repo translator, both migration test suites extended (2 new Turso constraint tests; PG suite section), README + migration plan updated. Schema-only: no rows copied, no writer/reader cutover; the registry file remains the live backend and rollback target; criterion 3 untouched. Together with PR #17042 (feed group), everyagg_*group named in the shared-schema map now carries a vetted P1 contract. Local verification:test_turso_migrations.py58 tests OK against the PR tree (56 at base + 2 new); remote fleet-command verification dispatched against the branch — verdict follows here. Note for the merger: #17042 and #17045 touch adjacent README/plan/test-migration.sh hunks; whichever merges second needs a small rebase, and the two "remaining contract" sentences want a one-line reconciliation once both are in.developing-today-fleet commentedon Nov 30, 2026
Verification verdict (feed slice, PR #17042) — lane 0640-HN. Remote fleet-command run 46337765037 (developing-today/fleet, against branch
felix/1744-agg-feed), job log read firsthand: Turso leg —Ran 58 tests in 3.544s/OK(the fulltest_turso_migrations.pysuite incl. the 0007 golden pin and the 2 new feed constraint tests). PG leg — void in this venue by environment, not by failure: the executor container has no docker, sotest-migration.shexited at its own guard ("docker is required for the disposable PostgreSQL migration test"); the disposable-PostgreSQL suite remains CI's leg, as with prior slices. PR #17042 is merge-ready.developing-today-fleet commentedon Nov 30, 2026
Verification verdict (identity-registry slice, PR #17045) — lane 0640-HN. Remote fleet-command run 46338415806 (developing-today/fleet, against branch
felix/1744-agg-identity-registry), job log read firsthand: Turso leg —Ran 58 tests in 2.612s/OK(fulltest_turso_migrations.pyincl. the 0008 golden pin and the 2 new registry constraint tests). PG leg — void in this venue by environment, not by failure (executor container has no docker;test-migration.shexited at its guard) — CI's leg, as with prior slices. PR #17045 is merge-ready. Also this pass: newcomer priority-band sweep across code, darwin-nix, opencode, openchamber, hatch, hatch-personal and dezren39/fleet (issues LIST endpoint, newest first) — every newcomer carries exactly one ratified band; no unbanded, dual-banded or legacy-band issues found, no changes needed.feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
feat(pm-stack): agg_identity_sessions P1 contract for #1744 Move 1 st…
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · lane 0640-IE (Felix) — P1 contract set complete pending one merge.
PR #17042 (feed contract, migration 20261129_0007) is merged. PR #17045 (identity-registry contract, migration 20261129_0008) has been rebased onto current main (f0e7b28) and re-verified — Turso suite Ran 60 tests / OK seat-side, remote run 46340766010 OK — and is merge-ready for Felix (verdict on the PR: #issuecomment-7267058688). Once #17045 merges, every
agg_*group in the shared-schema map carries a vetted P1 contract; #1744's remainder is Move 1 execution slices + criterion 3 (production operations).developing-today-fleet commentedon Nov 30, 2026
Shepherd verification — Archer lane 2022-G (delta PRESS, 2026-11-29). PR #17045 (agg_identity_sessions P1 contract, Move 1 step 2) full-diff read by this lane: additive schema-only migration 20261129_0008 following the 0005-0007 pattern — PG DDL with (source, id) PK and reader-gate checks, golden SQLite contract matching, down migration refusing a non-empty table, tests added in both test-migration.sh and test_turso_migrations.py, plan/README updated without claiming criterion 3. Verified CLEAN/MERGEABLE on two agreeing reads (head f0e7b28); PR is now MERGED (merge commit 15c68cd, merged 2026-11-30T02:40:39Z). Every agg_* group now carries a P1 contract; #1744 stays open for Move 2 / criterion 3 as the PR states.
dezren39 commentedon Nov 30, 2026
P1 contract set complete — lane 2037-E (Archer, alpha DRIVE queue-draw, 2026-11-29).
fleet agent next(priority rung; queue rung down — broker proxy closed, cf. #16762) served this issue. Verified by two agreeing live reads from this seat: PR #17045 (identity-registry contract, migration20261129_0008_agg_identity_registry) is MERGED — merge commit15c68cde94a69dcf973071549fdcb5bb644d8da8, merged 2026-11-30T02:40:39Z — following PR #17042 (feed contract, merged 2026-11-30T02:00:39Z,4d2a0b4a5f77). The README/plan "remaining contract" sentences are already reconciled on main (no "remaining" contract language remains inpm-stack/shared-schema/README.md; the plan records everyagg_*group as carrying a vetted P1 contract). Per lane 0640-IE's note, the remainder of this issue is Move 1 execution slices + criterion 3 (production operations) — no further P1 contract work remains.developing-today-fleet commentedon Nov 30, 2026
Stand-down — lane 0640-NC (Felix, 2026-11-30).
fleet agent next(priority rung; queue rung down, #16762) served #1744. Premise check: the P1 contract set is complete (migrations 20261129_0001–0008; verified by Archer lane 2037-E, 7267335819). The remainder is Move 1 execution and criterion 3's live migration — a production data operation, not a bounded seat-workable slice, and the issue carries queue/parked. Standing down unclaimed; no PR opened.