Title: pm-stack Phase 3: consolidation — merge aggregator, quota gatherer, fleet-feed collector and projector into one pm-core service (dispatch stays separate) · Issue #8570 · developing-today/code · GitHub
Open Graph Title: pm-stack Phase 3: consolidation — merge aggregator, quota gatherer, fleet-feed collector and projector into one pm-core service (dispatch stays separate) · Issue #8570 · developing-today/code
X Title: pm-stack Phase 3: consolidation — merge aggregator, quota gatherer, fleet-feed collector and projector into one pm-core service (dispatch stays separate) · Issue #8570 · developing-today/code
Description: Phase 3 — consolidation: the glued-together tools become one core service Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Siblings: #8568 (Phase 1, producers), #8569 (Phase 2, edge relay). ...
Open Graph Description: Phase 3 — consolidation: the glued-together tools become one core service Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Siblings: #8568 (Phase 1, p...
X Description: Phase 3 — consolidation: the glued-together tools become one core service Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Siblings: #8568 (Phase 1, p...
Opengraph URL: https://github.com/developing-today/code/issues/8570
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pm-stack Phase 3: consolidation — merge aggregator, quota gatherer, fleet-feed collector and projector into one pm-core service (dispatch stays separate)","articleBody":"## Phase 3 — consolidation: the glued-together tools become one core service\n\nDesign: `pm-stack-notifications-design-2026-11-11.md` (goal keep-the-four-repos-healthy, files/). Siblings: #8568 (Phase 1, producers), #8569 (Phase 2, edge relay). Context: #5082 (board dies with empty replies while siblings struggle), the pending pm-projector socket-activation work.\n\n### What recon established\n\nThe \"five tools\" are already ONE Bun/TypeScript monorepo (`pm-stack/` in this repo) deployed as separate laptop processes from one checkout:\n\n| Process today | Reality |\n|---|---|\n| pm-aggregator (:4870) | `bun run aggregator/src/server.ts` — board, quota views, attention, alert throat + push engine |\n| quota-gatherer (timer) | `bun run aggregator/scripts/gather-quota.ts` — a script in the aggregator package, writes `quota-current.json` |\n| fleet-feed-collector (timer) | `bun run aggregator/scripts/collect-fleet-feed.ts` — same package, writes `fleet-feed.json` |\n| pm-projector (:7801) | `bun run projector/src/index.ts` — GitHub webhook intake + reconcile; disposable projection DB; aggregator reads it over HTTP (`PM_PROJECTOR_URL`) |\n| pm-dispatch (:4879) | separate Bun app, public via tunnel (`dispatch.security.cab`), holds session-launch authority |\n\nState passes between them as files in `~/.local/state/pm-aggregator/` and one HTTP hop — which is how the board 503s when a sibling is unhealthy, and why every deploy/restart story is five stories.\n\n### The merged shape\n\n- **pm-core** (one process): the aggregator server with the gatherer and feed collector folded in as in-process schedulers (same code, no file-polling handoff — freshness becomes in-memory, the JSON files remain as audit/debug artifacts written by the process, not read by it), the notification engine (already in-process), and the projector as a module: its webhook listener keeps its own port (public intake is a different trust surface) but runs in the same process, and the board reads projections in-process instead of over HTTP. The pending projector socket-activation work is absorbed into the core's listener story instead of being solved a second time.\n- **pm-dispatch stays separate**: public ingress + session-launch authority is a different security posture, and it was just rebuilt under the item-5 work.\n- **Kaneo + the Cloudflare Tunnel stay as they are** (upstream container; ingress).\n\nNet: 5 laptop processes in the pm family → 2 (pm-core, pm-dispatch), one restart story, one deploy story.\n\n### Acceptance (Drew's terms)\n\n- One service restart moves board + quota + feed + projections together; there is no sibling process left whose bad day makes /board return 503.\n- `systemctl --user` shows pm-core + pm-dispatch (+ tunnel) as the whole pm family; the two timer units are gone, replaced by in-process schedules with the same cadences (quota ~15 min ticks, feed ~5 min).\n- Killing the projection module's GitHub intake degrades board link data visibly (provenance chips say so) — it does not take the board down.\n- All pre-existing machine surfaces keep their shapes: /api/board.json, /api/quota.json, /api/attention.json, /api/alerts.json, /api/needs-drew.json byte-compatible for current consumers (fleet minder, steward, globalping watch).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-11T07:17:31Z","url":"https://github.com/developing-today/code/issues/8570"}
| 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:77c3bcb1-7b12-f2f2-17a6-f85e8a7bdef7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 945C:23514F:3655EE:4756B2:6B0618D1 |
| html-safe-nonce | 91f9226b7019ffa2d08435a01b84e33ae67912b3eab8202e8b3fd09011e289f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDVDOjIzNTE0RjozNjU1RUU6NDc1NkIyOjZCMDYxOEQxIiwidmlzaXRvcl9pZCI6IjUxMTg2MTI4NzU1MDE3NzA5NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d6a318323fe57341a3b6c5129a61846a3b62e1ad2a54d628a408a4e99843b097 |
| hovercard-subject-tag | issue:6323629591 |
| 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/8570/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e33cfa45c63b7a19cf7b14cb21d629c4020a7ef8d2b8ed7cd62fbbcf8c23f0f7/developing-today/code/issues/8570 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e33cfa45c63b7a19cf7b14cb21d629c4020a7ef8d2b8ed7cd62fbbcf8c23f0f7/developing-today/code/issues/8570 |
| og:image:alt | Phase 3 — consolidation: the glued-together tools become one core service Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Siblings: #8568 (Phase 1, p... |
| 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 | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| 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 | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| 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