Title: pm stack: centralize all service data as shared tables in one database schema · Issue #1744 · developing-today/code · GitHub
Open Graph Title: pm stack: centralize all service data as shared tables in one database schema · Issue #1744 · developing-today/code
X Title: pm stack: centralize all service data as shared tables in one database schema · Issue #1744 · developing-today/code
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/st...
Open Graph 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/) pro...
X 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/) pro...
Opengraph URL: https://github.com/developing-today/code/issues/1744
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pm stack: centralize all service data as shared tables in one database schema","articleBody":"## Problem\n\nEvery PM-stack service keeps its own private data store today:\n\n- aggregator: JSON files in ~/.local/state/pm-aggregator/ (actions, comments, registry, fleet feed, quota state, snapshots/)\n- 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)\n- Grist: its own document storage for the roadmap table and the registers\n- Kaneo, Pad, ready-for-agent: their own stores again\n\nConsequences: 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.\n\n## Proposal\n\nMove the stack's service data into ONE database with a shared schema of namespaced table groups:\n\n- 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.\n- 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).\n- 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.\n- 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.\n- The event log (code#1739) and roadmap file integration (code#1738) should be designed against this schema, not against per-service files.\n\n## Acceptance\n\n- An inventory + schema map: every current store (file, table, owner service, rebuildable or not) and its target table group.\n- 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.\n- 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.\n\nRaised 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.\n\n## Acceptance criteria\n\n- [x] An inventory + schema map exists: every current store (file, table, owner service, rebuildable or not) and its target table group.\n- [x] 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 #4881, merged 612ac376.)\n- [ ] 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.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T17:13:43Z","url":"https://github.com/developing-today/code/issues/1744"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4c6741a6-d27c-6e8e-cf30-aaf7b75acebb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C87A:7BB45:186E3C:203E1E:6B060A01 |
| html-safe-nonce | ad9904c4bcfbc8d08e907e746685aad27ff3ea0c18aff3623234d9c447918a0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODdBOjdCQjQ1OjE4NkUzQzoyMDNFMUU6NkIwNjBBMDEiLCJ2aXNpdG9yX2lkIjoiNDM1NzE1MDIyNTE0OTA2OTgyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 49081eb06a5dea0e3db08a02d729a6c7dd1b07fec4e568096fdb7348bca412b5 |
| hovercard-subject-tag | issue:6083861528 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/386649f3980baded4ad8e01d49fd1bbc09cb89c87f30fc4290de1d5dc3073fc5/developing-today/code/issues/1744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/386649f3980baded4ad8e01d49fd1bbc09cb89c87f30fc4290de1d5dc3073fc5/developing-today/code/issues/1744 |
| og:image:alt | 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/) pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 47127d2f2009e000f3401193f8b4163109ac669adad0804de1ee0e6333ca7b9e |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0760ea46a027ba5099cdef7abd54f27865eb4f44 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width