GeezerVison is showing github.com — nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers · Issue #1752 · developing-today/code
nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752DescriptionStatus quo (verified 2026-10-28)
The flake's nixos/services/ defines cloudflared, flatpak, id-mail, and pm-stack (aggregator, projector, git-sync, projector-reconcile). Four PM-stack servers are NOT in the flake at all (zero mentions in nixos/ or home/): they run as hand-made units/containers on the laptop, are not enabled as boot services, and would not come back on their own after a reboot:
- Grist (:8484) — roadmap table + registers; its own document storage.
- Kaneo (:5173) — task board; Postgres-backed (see code#1514: its database has no backup routine, docker volume is the only copy).
- Pad (:7777) — notes; token expires 2027-01-22.
- ready-for-agent (:6056) — agent intake endpoint.
What to build
- One nixos/services module per server (or one pm-apps module) in this flake, following the pm-stack module's shape: service runs from the primary checkout or a pinned package, state under ~/.local/state// (or the server's existing data home — do NOT orphan Kaneo's Postgres data or Grist's docs; migrate or bind the existing data in place).
- Enabled at switch like the rest of the fleet; hand units retired in the same change that proves the NixOS unit serves.
- Backup coverage for each server's data lands with or before the move (code#1514, code#1516).
Acceptance
- After a NixOS switch, all four answer on their ports with their existing data intact.
- A laptop reboot brings all four back with no hand step.
- The hand-made units/containers are removed; 'systemctl --user is-enabled' is no longer the thing standing between the stack and a reboot.
Raised by Drew 2026-10-28 ('what is status for implementing nixos services for all the servers?'). Related: code#1199 (projector deploy — done interim, NixOS at the switch), code#1514, code#1516, code#1744 (shared-schema direction for these servers' data).
Acceptance criteria
- Each of Grist (:8484), Kaneo (:5173), Pad (:7777), and ready-for-agent (:6056) is defined as a NixOS/flake service in this repo, following the pm-stack module shape, with state under
~/.local/state/<name>/ or its existing data home bound/migrated in place — Kaneo's Postgres data and Grist's documents are not orphaned.
- After a NixOS switch, all four servers answer on their existing ports with their existing data intact.
- A laptop reboot brings all four back with no hand step.
- The hand-made units/containers are retired in the same change that proves the NixOS units serve.
- Backup coverage for each server's data lands with or before the move (see pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514, audit(backups): 2026-10-27 coverage audit — aggregator offsite unproven, Kaneo/atlas gaps, NixOS backup service directive #1516).
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 Intake review
- Related: Projector: deploy-or-retire decision + tracking home — deploy it and re-enable, or remove it from the live story #1199 (projector deploy — interim done, NixOS at the switch), pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514 and audit(backups): 2026-10-27 coverage audit — aggregator offsite unproven, Kaneo/atlas gaps, NixOS backup service directive #1516 (backup coverage that must land with or before the move), pm stack: centralize all service data as shared tables in one database schema #1744 (shared-schema direction for these servers' data).
- Notes: Verified still live — the status quo was verified 2026-10-28 in the issue itself (zero mentions of the four servers in
nixos/ or home/), and a search this run found no PR or duplicate issue implementing flake services for them. Filed by Drew directly, so source/human. The body's Acceptance bullets are formalized as ## Acceptance criteria appended to the body. Labels normalized: kind/feature, status/needs-triage, priority/normal, effort/l (four services plus data migration), area/nixos; pre-existing enhancement/next kept.
- Risks: Kaneo's Postgres lives only in a docker volume (pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514) and Grist holds its own documents — a careless module conversion could orphan the only copies. Pad's token expires 2027-01-22, so a long delay adds a credential step.
- Suggested approach: One module per server following the pm-stack shape, data homes bound in place first and proven serving before the hand units are retired; land pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514/audit(backups): 2026-10-27 coverage audit — aggregator offsite unproven, Kaneo/atlas gaps, NixOS backup service directive #1516 backup coverage in the same pass, server by server.
— fleet monitor intake pass, 2026-10-28 dezren39 commented on Nov 11, 2026 🤖 Agent note · triage verdict — remainder decision-gated, already tracked (task 14896)
- Agent: queue worker (repo-worker-code), lane any-b
- Session / ID: task 14896 (small_fix remainder packet, revived from task 5041 via task 11961's triage line)
- Found via: queue claim
- Verdict (verified fresh 2026-11-11): Issue nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752 is NOT fully satisfied and has NO un-gated worker-executable remainder this shift:
- Landed: Grist, Pad, and ready-for-agent are flake-declared pm-apps services (verified live today by task 11961, lane code-a: ports 8484/7777/6056 answer, units active).
- Prepared but not landed: PR feat(nixos): Kaneo + PostgreSQL as pm-apps oci-containers (code#1752) #7926 (OPEN) carries the Kaneo + PostgreSQL pm-apps cutover under Drew's 2026-11-08 ruling (Option A, provisional NixOS unification). Its own record says do not merge ahead of a coordinated cutover sitting (compose units must be disabled in the same switch that proves the NixOS units serve, on the only copy of Kaneo's data); the 2026-11-09 cutover attempt was blocked by unrelated red main.
- Re-escalated today: task 11961 (lane code-a, 2026-11-11T07:18Z) re-framed the end-state as a fresh Drew decision (leave Kaneo/Postgres compose-managed vs migrate into the flake) and escalated; this issue carries
user/escalated for that gate. The pending-questions ledger item kaneo-postgres-endstate-1752 stands answered for the 2026-11-08 framing (Q1 Option A cutover, Q2 reboot proof skipped).
- Disposition: task 14896 completes as
triaged. No new small_fix packet is enqueued: the only remainder (execute the feat(nixos): Kaneo + PostgreSQL as pm-apps oci-containers (code#1752) #7926 cutover sitting, or stand it down) is gated on the decision already escalated by task 11961 — a duplicate packet would just re-queue the same gate. When Drew confirms the end-state, the follow-on is PR feat(nixos): Kaneo + PostgreSQL as pm-apps oci-containers (code#1752) #7926's cutover sitting (if migrating) or closing PR feat(nixos): Kaneo + PostgreSQL as pm-apps oci-containers (code#1752) #7926 + amending this issue's acceptance (if leaving compose-managed).
dezren39 commented on Nov 13, 2026
Agent note — cross-reference from #7610 (orchestrator decision, task 14319, lane any-d, 2026-11-13)
Under Drew's recorded deferral (ledger bot-autoclose-7610), the orchestrator decided the #7610 bot auto-close bug is fixed in the Kaneo GitHub integration NOW, not folded into this issue as a blocker: close + status:done only on a genuine closing-keyword signal; Refs-only merges leave issue state untouched; regression fixtures are the false closes of #5866, #5767, #1831. Because the integration's deployment/config work for Kaneo is tracked here, the implementation item rides this issue's Kaneo scope as its venue — the decision itself is already made and recorded on #7610, so nothing here waits on the end-state question.
dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged
task 18131 (repo-health-code-pilot, lane code-e)
Bulk-intake re-triage verification, 2026-11-17.
Fresh state checked this run: issue #1752 is OPEN, labels kind/feature, priority/normal, effort/l, area/nixos, user/escalated, epic/pm-stack. No status/needs-triage and no held, user/owned, do-not-merge, or do-not-auto-edit label. PR #7926 (Kaneo + PostgreSQL as pm-apps oci-containers) re-checked fresh this run: OPEN, not a draft.
Record, re-read this run: 3 of 4 servers landed and live-verified (task 11961, 2026-11-11): Grist, Pad, and ready-for-agent are flake-declared pm-apps services with units active and ports answering. The end-state decision is ANSWERED, verified this run in the pending-decisions ledger (item kaneo-postgres-endstate-1752, answered 2026-11-08): Drew chose Option A - NixOS cutover now, unify first, explicitly not a permanent compose-vs-NixOS ruling - and SKIP for the reboot proof. The cutover was dispatched the same day and is carried by PR #7926.
Remainder (task 14896's record, unchanged): PR #7926 is prepared but must not merge ahead of a coordinated cutover sitting - compose units disabled first, then the cutover, with Kaneo's data copy verified. That sitting is an operational event, not work a triage pass can substitute for, and merging the PR outside it would violate the PR's own record. The Kaneo GitHub-integration item from issue #7610 rides this issue's Kaneo scope as its venue (decision already made there, per the 2026-11-13 cross-reference).
Completing task 18131 as triaged. Issue #1752 stays OPEN until the cutover sitting lands PR #7926; the user/escalated label predates the answer and the gate it named is answered - this note is the record of that. dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged
task 19553 (repo-health-code-pilot, OpenChamber scheduled lane)
Fresh repeat-triage verification, 2026-11-17: #1752 remains OPEN. PR #7926 remains OPEN/non-draft at 8c057ead0b11d5e82b802cb933606252ec2a63bf; backup issue #1514 is CLOSED. The prior same-day triage (task 18131, #1752 (comment)) already records the live remainder and gate: the Kaneo/Postgres cutover PR is prepared but needs the coordinated operational sitting; do not merge outside the switch sequence. Drew’s end-state ruling is recorded and reboot proof was explicitly skipped. No fresh code-fix packet is appropriate; this task repeats the existing decision/operation gate and should not duplicate task 18131 or the PR work.
Completing task 19553 as triaged; issue remains open pending the coordinated cutover. dezren39 commented on Nov 21, 2026
Decided: next is removed; this is kept in the plan's Later list with its trigger, and keeps its priority label.
Why: Next now holds only what starts when a Now track finishes (plan). Nothing here is dropped.
Undo: put next back.
By: Claude, in the 2026-11-21 priorities session, under FDR-0013. Nothing here waits on anyone.
Generated by Claude Code dezren39 commented on Nov 22, 2026
Decided: Treat the existing NixOS-managed pm-stack compose service as satisfying #1752's Kaneo/PostgreSQL NixOS/flake-service requirement, and close PR #7926 as superseded; do not enact its OCI cutover.
Why: #1752 asks for a NixOS/flake service following the pm-stack module shape. On current main, pm-kaneo.service and its timer are declared by nixos/services/pm-stack/default.nix, while nixos/services/pm-apps/default.nix documents why duplicate OCI declarations caused two managers and two PostgreSQL postmasters on the same volume. PR #3847 removed those duplicate declarations. PR #7926 is now conflicting with main and has failing checks; merging it would reintroduce the documented dual-manager hazard.
Undo: If a concrete OCI end-state is again required, open a new planned cutover task from current main with the compose shutdown, verified backup/snapshot, switch, and post-switch checks as one coordinated operation.
By: repo-worker-code, task 17267. dezren39 commented on Nov 22, 2026
Decided: The escalation is discharged. The four-service build (Grist, Kaneo, Pad, ready-for-agent as flake services) proceeds as ordinary fleet work on the terms already recorded on this issue — including the 2026-11-22 decision that the existing NixOS-managed pm-stack compose service satisfies the Kaneo/PostgreSQL requirement and PR #7926 stays closed as superseded (no OCI cutover).
Why: This issue already carries its governing decisions (the 2026-11-21 priorities-session record and today's task-17267 record, both decision:v1 under FDR-0013), and the build direction matches Drew's standing rule that every deployed service is built from its repo into a Nix package and run from the store (2026-11-10). No question on the thread is addressed to Drew; the remaining work is implementation and the coordinated laptop switch, which is fleet work.
Undo: A new decision record here or a PR changing the service shape supersedes the affected part.
By: archer (lane S, #12234 owner-parks sweep, under FDR-0013)
user/escalated is removed.
dezren39 commented on Nov 23, 2026
Agent note — acceptance verification pass (lane DR, 2026-11-22)
state: verified — 4 of 5 criteria evidenced live; issue stays open on one named remainder (post-switch reboot proof)
Fresh evidence gathered this pass (laptop probe + current main cb4c54ced4f):
Criterion 1 — all four defined as flake services, data in place: MET
- Grist + Pad + ready-for-agent:
nixos/services/pm-apps/default.nix, enabled via services.pm-apps.enable = true in nixos/hosts/default.nix.
- Kaneo + PostgreSQL: per the 2026-11-22 decision record on this issue, satisfied by the NixOS-managed pm-stack compose service (
pm-kaneo.service/pm-kaneo.timer, user units enabled, timer active); PR feat(nixos): Kaneo + PostgreSQL as pm-apps oci-containers (code#1752) #7926 stays closed as superseded.
- Data carried in place: live containers mount the original compose-created named volumes —
pm-grist: grist_grist_data->/persist, pm-pad: pad_pad_data->/data. Kaneo/Postgres remain on their original compose volume.
- Module tests pass on current main:
pm-apps-units.test.sh all checks passed; pm-apps-health.test.sh all checks passed (readiness probe, code#8940).
Criterion 2 — after a switch, all four answer with data intact: MET
- Live probe 2026-11-22 ~21:55 CST: Grist :8484 → 302 (login redirect), Pad :7777 → 200, ready-for-agent :6056 → 200, Kaneo :5173 → 200.
docker-pm-grist / docker-pm-pad system units active; containers up 6 days on the NixOS units. pm-apps-health.timer enabled + active; pm-apps-health.service not failed.
Criterion 3 — a reboot brings all four back with no hand step: NOT YET EVIDENCED (the remainder)
- Every unit is
enabled (docker-pm-grist, docker-pm-pad, ready-for-agent user unit, pm-kaneo timer), so the static precondition holds. But the laptop's only boot on record (2026-11-16 05:37 CST) predates the pm-apps containers' start (~16 h later, at the switch) — no post-switch reboot has occurred yet, so the dynamic proof is still owed.
- Named next slice: fold the reboot proof into the already-planned coordinated drill — the impl(pm-stack): Kaneo/Grist/Pad canonical stores to Supabase-backed homes + cold-restore runbook and first laptop-off drill (#3989 slice) #6816 first laptop-off drill / the deploy: register the PM-stack services (aggregator, projector, tunnel, ready-for-agent) as deploy targets #12768-bundled cutover pass: reboot the laptop once, then re-run this probe (four ports + unit states) and record the result here. This issue closes when that record lands.
Criterion 4 — hand-made units/containers retired: MET
docker compose ls shows only pm-stack (Kaneo/Postgres, the decided end-state) and the unrelated crd-container; the Grist/Pad compose projects are gone.
- The hand-written ready-for-agent unit survives only as the retired
ready-for-agent.service.bak-20261025-loopback; the live unit is the home-manager one from pm-apps, enabled + active, with its tailnet socket units.
Criterion 5 — backup coverage lands with or before the move: MET
No code change was warranted this pass — the build half of this issue is landed and live; the only remainder is the reboot proof above, deliberately not forced here (an unplanned reboot would disrupt the running fleet lanes and belongs in the coordinated drill). dezren39 commented on Nov 24, 2026 🤖 Agent note · verify-and-route pass (queue 21755, lane code-f, 2026-11-24)
developing-today-fleet commented on Nov 27, 2026 Triage (lane any-n, task 25822, 2026-11-27): **substantially resolved; one named remainder, parking the triage packet.** Fresh state: #1752 OPEN; `nixos/services/pm-apps/default.nix` + `pm-stack/default.nix` both present on `origin/main`; linked PR #7926 closed unmerged (superseded per the 2026-11-22 decision records). Agrees with the 2026-11-23 acceptance pass and 2026-11-24 verify-and-route: criteria 1, 2, 4, 5 met; remainder is criterion 3 (post-switch reboot proof), which rides on the planned laptop-off drill in OPEN #6816 and cannot be forced from a triage packet. No new fix packet. Task 25822 parked until the reboot record lands via #6816. dezren39 commented on Nov 27, 2026 🤖 Agent note · triage concurrence (queue task 26091, lane 2233-A-F, 2026-11-26)
Duplicate draw of task 25822's triage (lane any-n, 2026-11-27T01:43Z) — re-verified fresh and concurring: criteria 1, 2, 4, 5 are met on current main (pm-apps + pm-stack modules present; PR #7926 closed superseded per the 2026-11-22 decision records). The sole remainder is criterion 3, the post-switch reboot proof, which rides on the planned laptop-off drill in #6816 and cannot be forced from a triage packet. No new fix packet; this task completes as triaged and the lane moves to implementation work.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|