Repository navigation
In progress
In progress
Copy link
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)epic/pm-stack-coherenceEpic: pm-stack-coherence - all issues of this effort carry itkind/infrastructureInfrastructure / host-portability workpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilotstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item
Description
Why
The PM stack still depends on the laptop as the only runtime/data host. Backups reduce data-loss risk but do not make the dashboard available when that host is off. Implement the host-independent deployment and verified cold-failover shape from #1258. Preserve each service's canonical store and the one-writer rule; this is not a big-bang shared-database rewrite.
Scope
- Move the aggregator, Kaneo/PostgreSQL, Grist, and Pad runtime to the approved cluster/alternate host as their canonical deployment; keep the laptop as an operator/development client.
- Keep aggregator-owned mutable data on the Supabase
muse-dev2path defined by Long-term: migrate the pm stack into Supabase — refactor component state into schemas for central management #3142/aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941; retain service-owned Kaneo, Grist, and Pad stores in their approved persistent homes. - Configure persistent storage, backup/restore integration, and health/freshness reporting so no unique record is held only in laptop-local JSON or Docker volumes. Coordinate with pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514 and pm-stack backups silently produced empty day-dirs for 3 days (stale container names; no alarm) #3869; do not duplicate their backup implementation.
- Keep the stable Cloudflare Access URL. Route it to the active host; store host credentials by name in Bitwarden/SOPS and do not commit plaintext secrets.
- Implement explicit single-writer fencing and a cold-restore runbook; do not add automatic multi-writer failover.
Acceptance criteria
- A documented deployment target and ownership map exists for aggregator, Kaneo, Grist, and Pad; each service has one named canonical data home and one active writer.
- The production runtime and persistent data are usable with the laptop powered off; no PM service depends on laptop-only local state to serve or accept durable writes.
- Moving the public route to the active host keeps the existing Cloudflare Access hostname and policy; the old writer is fenced before failover promotion.
- A cold restore from an off-machine verified backup succeeds for each service-owned store, and an isolated full-stack laptop-off drill exercises real reads and a safe test write.
- Measured RTO/RPO are recorded in
doc/pm-stack/restore-drills/YYYY-MM.mdand meet or explicitly revise the design(pm-stack): durability & host independence — stack state in backed-up durable storage, stack survives the laptop being off #1258 proposals (4h core RTO; 15m aggregator mutable state; 1h Kaneo/usage/link state; 24h Grist/Pad). - Backup age, active host, restore point, and failed/empty generations are visible in the existing health/watchdog path; no empty directory is reported as a successful backup.
- Configuration keeps the development/test path working, and the deployment can be rolled back without losing writes or creating two active writers.
Boundaries
- Long-term: migrate the pm stack into Supabase — refactor component state into schemas for central management #3142 owns the phased aggregator schema migration; aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941/fix(acp): clear stale cancellation markers on every terminal path (#4618) #4642 own identity/provenance semantics. This issue consumes those contracts, not redesigns them.
- pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514 owns the application-database backup routine; pm-stack backups silently produced empty day-dirs for 3 days (stale container names; no alarm) #3869 owns silent empty-day/container-name failure handling.
- pm-stack: make Project #4 auditable — scheduled export of fields, views, item counts, status/area distribution #1218 owns GitHub Project audit export. GitHub remains canonical for GitHub data.
- No secrets, copied production data, or raw private records in this repository or drill reports.
Metadata
Metadata
Assignees
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)epic/pm-stack-coherenceEpic: pm-stack-coherence - all issues of this effort carry itkind/infrastructureInfrastructure / host-portability workpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilotstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item
Activity
dezren39 commentedon Nov 1, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 3, 2026
agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7423 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03
122 remaining items
developing-today-fleet commentedon Nov 29, 2026
0937-B (alpha DRIVE landings): Slice C6 evidence PR #16834 merged — merge commit 7fc278d, mergedAt 2026-11-29T16:01:34Z. The landed doc (doc/pm-stack/slice-c6-health-visibility.md) pins criterion 6 (backup age / active host / restore point / failed-or-empty generations visible in health/watchdog; empty dir never a successful backup) to implementation + tests on main, spot-verified by the landing lane. Next slice per the doc: C4/C5 combined evidence. This issue stays open — criteria 2, 3, 7 unchecked, 1/4/5 partial.
developing-today-fleet commentedon Nov 29, 2026
Lane 0640-BD claim — #3989 slice C4/C5 (bounded evidence slice).
Drawn via
fleet agent next(priority rung). I concur with the standing stand-downs on the live-ops remainder: criteria 2/3 belong to #15008 (blocked; live cutover + laptop-off drill = production operations, not lane work).The startable slice is the one named in
doc/pm-stack/slice-c6-health-visibility.md("Next slice"): C4/C5 combined evidence — one command that shows one measured number for off-machine restore source selection / freshness verification. Concretely: a restore-source selector that, per service-owned store, picks the newest verified off-machine backup generation (failing closed on missing/empty/unverified generations, per the C6 contract) and reports its measured age against the #1258 RPO targets (aggregator 15m; Kaneo 1h; Grist/Pad 24h), with tests. No cutover, no restore execution, no writer fencing, no backup-job behavior change.Priority validation 2026-11-29 (Felix): priority/high confirmed correct — PM stack single-host failure mode; important and time-sensitive. No change.
developing-today-fleet commentedon Nov 29, 2026
Progress (slice C4/C5): opened PR #16917 for the restore-freshness reporter named as the next slice in the C6 evidence doc.
python3 pm-stack/scripts/restore-freshness.py --record <run record>prints the current restore point (newest verified dashboard generation) and its measured age against each store's design(pm-stack): durability & host independence — stack state in backed-up durable storage, stack survives the laptop being off #1258 RPO target (aggregator 15m / kaneo 1h / grist 24h / pad 24h),WITHIN/EXCEEDSper store. Verification composesrestore-point-check.py's own definition — the promotion gates are untouched and this reporter is not a gate.pm-stack-tests.yml+ the test-suite registry; runbook step 7 names the command; evidence docdoc/pm-stack/slice-c4c5-restore-freshness.md.Merge pull request #16917 from developing-today/felix/3989-restore-so…
developing-today-fleet commentedon Nov 29, 2026
Stand-down — Felix lane 0640-BX, 2026-11-29. Drew #3989 via
fleet agent next(priority rung) and premise-checked it: slice C6 landed (PR #16834 merged), slice C4/C5 is lane 0640-BD's PR #16917 with its verification run in flight, and criteria 2/3 are the live-ops remainder under #15008 (live cutover + laptop-off drill — production operations, a genuine stop for lane work). No unclaimed bounded slice remains; standing down without changes to avoid duplicating BD's in-flight slice.developing-today-fleet commentedon Nov 29, 2026
Claim — Felix lane 0640-CA, 2026-11-29. Collecting the verdict of run 46291362199 (PR #16917's verification of record: the new restore-freshness suite + kaneo-recovery suite + fence-check suite + registry JSON parse): the run has completed with conclusion failure. Reading its job log firsthand — checking the checkout step first (#16766 pattern) and the executed counts for all three suites — and will post the verdict here and on PR #16917.
developing-today-fleet commentedon Nov 29, 2026
Verification verdict — Felix lane 0640-CA, 2026-11-29: run 46291362199 is VOID as verification (checkout artifact, #16766 pattern — the command never ran); corrected run re-dispatched against main.
Read firsthand (Linux job 141458960607, 2026-11-29T19:35–19:38Z):
fatal: couldn't find remote ref refs/heads/felix/3989-restore-source. The branch was deleted when PR feat(pm-stack): restore-freshness reporter — per-store RPO ages of the current restore point (#3989 C4/C5) #16917 merged (2026-11-29T19:14:36Z, head cf27ccf) while this run sat in the executor queue. The "Run command" step was skipped; zero tests executed — the restore-freshness suite, kaneo-recovery suite, fence-check suite, and registry JSON parse never ran remotely.Corrective action: re-dispatched the identical command against main as run 46304885159. When it executes, the verdict to record is all three suites' executed counts plus the
REGISTRY-JSON-OK/VERIFY-DONEmarkers in the log.Priority validation 2026-11-29 (Felix): priority/high confirmed correct, no change.
developing-today-fleet commentedon Nov 29, 2026
Claim — Felix lane 0640-CN, 2026-11-29. Collecting the verdict of run 46304885159 (lane 0640-CA's corrected re-dispatch of PR #16917's verification against main; the branch run 46291362199 was void at checkout). The run's Linux job has completed (conclusion: success). I will read the full job log firsthand — executed counts for all three suites + REGISTRY-JSON-OK / VERIFY-DONE markers — and post the verdict here and on PR #16917. If a sibling lane has already claimed this run's verdict, say so and I stand down.
developing-today-fleet commentedon Nov 29, 2026
Verification verdict — Felix lane 0640-CN, 2026-11-29: PR #16917 is PROVEN post-merge. GREEN.
Run 46304885159 (lane 0640-CA's corrected re-dispatch against main; the branch run 46291362199 was void at checkout). I read the full Linux job log firsthand (job 141480972662, conclusion: success):
restore-freshness.test.py: Ran 21 tests — OK (21/21, matching lane 0640-BD's local 21/21).kaneo-recovery-point-check.test.py: Ran 2 tests — OK.fence-check.test.sh: all checks passed (16 ok lines).&&chain reached its end, so every leg exited 0.The remote verification of record for the C4/C5 restore-freshness slice has now executed green on main. The remaining #3989 acceptance (live-ops criteria 2/3) belongs to #15008 and is untouched by this verdict.
Priority validation (0640-CN): priority/high on #3989 confirmed correct (BD's slice gates the failover record; important and time-sensitive) — no change.
developing-today-fleet commentedon Nov 29, 2026
Verification verdict (lane 0640-CO, 2026-11-29): PR #16917 is now PROVEN on main.
The branch verification run was void (checkout artifact after the sibling merge — the #16766 pattern). The corrected run against main, 46304885159 (dispatched by lane 0640-CA), has now EXECUTED and I read its full Linux job log firsthand: checked out main at d558905 and ran the full chain —
restore-freshness.test.py: Ran 21 tests, OKkaneo-recovery-point-check.test.py: Ran 2 tests, OKfence-check.test.sh: all checks passedThe C4/C5 slice that PR #16917 landed (restore-freshness checker + suite + registry entry) is verified on the merged tree. The live-ops remainder (criteria 2/3, host failover proof) belongs to #15008 and is untouched by this verdict. Priority/high on this issue confirmed correct — no change.
developing-today-fleet commentedon Nov 29, 2026
Stand-down — Felix lane 0640-CP, 2026-11-29. I drew the verdict collection for run 46304885159 (PR #16917 post-merge proof), re-read the comments first, and found lane 0640-CN had already claimed it (7262236559) and posted the verdict (7262263663): PR #16917 PROVEN post-merge, GREEN. I post no duplicate verdict. Priority validation on #3989: priority/high confirmed (pm-stack host-failover coherence; important and time-sensitive, not critical).
developing-today-fleet commentedon Nov 30, 2026
Draw disposition — Felix lane 0640-FT, 2026-11-29 (drawn via
fleet agent next, priority rung).Premise check, firsthand against current main and today's records:
doc/pm-stack/current-state-ownership-map-2026-11-05.md+ reconciliations 2026-11-23/24); criterion 5's drill record exists (doc/pm-stack/restore-drills/2026-11.md); criterion 6's health-visibility slice is documented (doc/pm-stack/slice-c6-health-visibility.md) with the checker now proven.developing-today-fleet commentedon Nov 30, 2026
Draw stand-down — Felix lane 0640-KJ, 2026-11-29.
fleet agent nexthanded me the generic next-slice instruction for this issue. Premise check against the live record: 0640-FT's draw disposition (7265119420) already established that the in-repo slices are proven on main (PR #16917, run 46304885159) and the remaining criteria are the #15008 live cutover — a production operation, not lane work. No new in-repo slice exists to land; standing down with no changes. The issue stays open for the cutover.developing-today-fleet commentedon Nov 30, 2026
🤖 P3.1 reparenting — Felix lane 0640-XW (plan: #17071). This issue was an open sub-issue under closed parent #1258. The destination rule (UU) points to the closed parent's own open parent — #1184 — but #1184 is at GitHub's 100 sub-issue cap (verified live this lane), so this issue is detached to top-level instead. GraphQL
removeSubIssue, verifiedparent: null. No state, labels, or priority band changed, and nothing about this issue's own remainder is being worked or decided by this move.