Repository navigation
Description
Triage record — queue task 17637 (Lane BJ, 2026-11-22)
Queue task 17637 arrived titled "Triage #1395: deploy-pm-stack — flake deploy app for aggregator/projector/tunnel/ready-for-agent (epic #973)". Both references are a packet defect: #1395 is the id planted-bug validation gap (closed 2026-11-08, PR #4754 merged) and #973 is the usage-snapshot-writers issue (closed). The deploy program's real tracking epic is #5765. This issue is the triage record for the deploy ask itself, and the home of its one genuine remainder.
Per-part verdict (verified 2026-11-22 via gh API + current main)
- Flake deploy tool ("deploy app") — LANDED. deploy tool v1: target registry (deployTargets) + systemd generation activation #5766 (closed 2026-11-09):
pkgs/deploy/on main holdsdeploy.py,services.nix,default.nix+ the deploy test suites; thedeployTargetsflake output exists (lib/default.nix,pkgs/deploy/default.nix); CLI covers list / deploy / rollback / status / --dry-run. - M1 route-proxy (Migration M1: route-proxy from hand unit to services-layer deploy target #5768) — LANDED, closed 2026-11-08;
route-proxyis a registered target androute-proxy.nixis inpkgs/deploy/. - M2 secrets-broker (Migration M2: one declaration for the fleet three (laptop-agent, secrets-broker, queue-broker) #5769) — LANDED, closed 2026-11-23T00:38:40Z after the supervised deploy cutover;
secrets-brokeris a registered target. - M3 sandbox quota-recorder + generic restorer (Migration M3: sandbox quota-recorder as first sandbox deploy target + generic unit restorer #5770) — LANDED, closed with status:done; deliverables on main:
pkgs/deploy/quota-recorder.nix,quota-recorder.py,restore.py, and thequota-recordertarget inservices.nix. - Registry today (
pkgs/deploy/services.nix, 15 targets): queue-broker, secrets-broker, laptop-agent, quota-recorder, session-proxy, mcpx, id-mail, pkarr, cold-store-rehydrator, lab-ops-hub, cf-container-hello, queue-transport-alert, message-bridge, developing-today-backup, route-proxy. - aggregator as a deploy target — STILL OPEN. No pm-stack entry exists in
services.nix(grep for aggregator/projector/tunnel/ready-for-agent/cloudflared/pm- returns zero hits). The aggregator still deploys through its own install.sh / checkout flow (history: aggregator deploy tooling: install.sh + shipped units + feed push still target ~/pm-stack (git-checkout deploy done live) #1498, fix(aggregator): deploy from checkout with stable state dir #4050, pm-stack(aggregator): install.sh ignores unaccounted CLI arguments while performing install/deploy work #10515). - projector as a deploy target — STILL OPEN. Same evidence.
- tunnel as a deploy target — STILL OPEN. No tunnel/cloudflared definition in the registry.
- ready-for-agent as a deploy target — STILL OPEN here; separately tracked under a different mechanism. nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752 (open) brings ready-for-agent in as a NixOS flake service. Whether it should also/instead be a
pkgs/deploytarget needs one explicit reconciliation line, not silent duplication.
Next slice (lane-sized, ready to enqueue)
Register the four PM-stack services as deploy targets: add pm-aggregator, pm-projector, pm-tunnel, and ready-for-agent definitions to pkgs/deploy/services.nix in the design §3 option shape (package, entryPoint, args, environment, secrets-by-name only, user, ports, restart, healthCheck, targets, class), each pointing at the service's existing package/build, plus a recorded deploy list run showing all four. Definitions + list verification only — per-service activation cutover is a separate later slice each, and ready-for-agent's definition either defers to #1752 in a comment or supersedes it explicitly.
Parent: #5765. Related: #5766, #5767 (Cloudflare target class), #5770, #1752, #10304 (PM-stack backup/DR audit).
Activity
developing-today commentedon Nov 23, 2026
CODE-4680
dezren39 commentedon Nov 23, 2026
Cutover shape ruled — Drew, 2026-11-22 ~20:27 CST
Asked whether the PM-stack services' cutovers should stay separate approvals or bundle once they become deploy targets under this issue, Drew answered: bundle them.
Effect: when the four targets (aggregator, projector, tunnel, ready-for-agent) are registered and verified, their deploy cutovers proceed as one bundled operation rather than four separate approval rounds. Registration + verification records still land per-service on this issue before the bundle executes.
dezren39 commentedon Nov 23, 2026
Claim — Lane FB (archer), 2026-11-22
Taking the registration slice named on this issue: add deploy-target definitions to
pkgs/deploy/services.nixfor the PM-stack services, with a recordeddeploy listrun.Scope notes from a fresh premise check against current main:
pm-aggregatorandpm-projectorhave existing Nix packages (pkgs/pm-aggregator,pkgs/pm-projector);pm-tunnelrunspkgs.cloudflaredin the pm-stack module. All three get full §3-shape definitions.ready-for-agenthas NO Nix derivation: it is an npm-pinned (1.1.0) install into~/.localbypm-stack/ready-for-agent/install.sh, deployed as a NixOS flake service by the pm-apps module under nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752. Per this issue's own terms, its registry entry defers to nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752 in an explicit comment until a packaging slice gives it a derivation; that packaging slice is being filed as its own issue in this pass rather than manufactured hastily here.Definitions + list verification only; no activation cutover (cutovers are bundled per Drew's 2026-11-22 ruling recorded above).
dezren39 commentedon Nov 23, 2026
Progress — Lane FB: registration slice landed as PR #12944
PR: #12944 — commit
2bbf3c5fba7, 3 files (+111/−0):pkgs/deploy/services.nix,pkgs/deploy/default.nix,lib/default.nix.Registered (design §3 shape, pointing at each service's existing package, mirroring the NixOS pm-stack module's own values):
pm-aggregator— pkgs/pm-aggregator; ports 4870/4871; healthhttp://127.0.0.1:4870/health;PM_PROJECTOR_URL+ bundledPM_KANEO_PROJECTS_FILEpins.pm-projector— pkgs/pm-projector; port 7801; healthhttp://127.0.0.1:7801/health.pm-tunnel— pkgs.cloudflared (the module's package); the module's exact ExecStart shape (--protocol http2per pm-dispatch: POST /v1/sessions and /v1/tasks return HTTP 502 (2026-11-04) #5647, metrics127.0.0.1:20242,--token-fileper nixos: keep Cloudflare tunnel credentials out of argv and recover degraded lab tunnels #8933); health = cloudflared's/ready.ready-for-agent: not registered — no Nix derivation exists (npm-pinned 1.1.0 install into
~/.local), deployment of record is the pm-apps module under #1752.services.nixcarries the explicit deferral comment this issue prescribed; the packaging slice is filed as #12909.Recorded
deploy listrun (registry evaluated from the PR'sservices.nix, validated bydeploy.py, rc 0 — 18 targets):Verification:
nixfmt --checkclean; thedeploy-listflake check now greps for all three new targets;nix build .#checks.x86_64-linux.deploy-listinstantiated the registry with real derivations (fleet built green under it) — its unrelated mcpx test closure was still running under load ~49 at post time, and per fleet doctrine the main-branch CI run after merge is the verdict of record.Remainder on this issue: ready-for-agent registration (rides #12909), then the bundled activation cutover per Drew's 2026-11-22 ruling.
Merge pull request #12944 from developing-today/lane-fb/12768-pm-depl…
dezren39 commentedon Nov 23, 2026
Completion — Lane FB: registration slice merged
PR #12944 merged — merge commit
6ba5762b3a2d0cb9f1caf7e5aaadc5211a2e4eba(head2bbf3c5fba7, SHA-guarded). Verified present on main post-merge:pm-aggregator,pm-projector,pm-tunneldefinitions and the ready-for-agent deferral comment inpkgs/deploy/services.nix; worktree and branches cleaned up.This issue stays open on its two named remainders:
This item arrived via the shortlist rung (queue store was down at draw time), so there is no queue task to complete; the record lives here.
dezren39 commentedon Nov 23, 2026
Pointer from Lane GS: the packaging remainder this issue was waiting on is landed. #12909 is closed via PR #12984 (merged
f9135339a9):pkgs/ready-for-agent/package.nixpackages the pinned 1.1.0 npm launcher + linux-x64 platform binary, andpkgs/deploy/services.nixnow carries theready-for-agentdefinition (bin/ready-for-agent,start --no-open, port 6056, healthhttp://127.0.0.1:6056/) in place of the deferral comment —deploy listshows all four PM-stack targets (19 registry targets total). What remains on #12768 is the bundled activation cutover itself (the pm-apps unit's ExecStart switch, with #1752), per your 2026-11-22 ruling.