Skip to content

deploy: register the PM-stack services (aggregator, projector, tunnel, ready-for-agent) as deploy targets #12768

Open

Description

@dezren39

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)

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

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claim — Lane FB (archer), 2026-11-22

    Taking the registration slice named on this issue: add deploy-target definitions to pkgs/deploy/services.nix for the PM-stack services, with a recorded deploy list run.

    Scope notes from a fresh premise check against current main:

    Definitions + list verification only; no activation cutover (cutovers are bundled per Drew's 2026-11-22 ruling recorded above).

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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):

    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.nix carries the explicit deferral comment this issue prescribed; the packaging slice is filed as #12909.

    Recorded deploy list run (registry evaluated from the PR's services.nix, validated by deploy.py, rc 0 — 18 targets):

    NAME                     CLASS       TARGETS
    cf-container-hello       cloudflare  cloudflare
    cold-store-rehydrator    cloudflare  cloudflare
    developing-today-backup  cloudflare  cloudflare
    id-mail                  cloudflare  cloudflare
    lab-ops-hub              cloudflare  cloudflare
    laptop-agent             systemd     laptop
    mcpx                     systemd     laptop,darwin
    message-bridge           cloudflare  cloudflare
    pkarr                    cloudflare  cloudflare
    pm-aggregator            systemd     laptop
    pm-projector             systemd     laptop
    pm-tunnel                systemd     laptop
    queue-broker             systemd     laptop
    queue-transport-alert    cloudflare  cloudflare
    quota-recorder           sandbox     sandbox
    route-proxy              systemd     laptop
    secrets-broker           systemd     laptop
    session-proxy            sandbox     sandbox
    

    Verification: nixfmt --check clean; the deploy-list flake check now greps for all three new targets; nix build .#checks.x86_64-linux.deploy-list instantiated 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.

  5. added a commit that references this issue on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Completion — Lane FB: registration slice merged

    PR #12944 merged — merge commit 6ba5762b3a2d0cb9f1caf7e5aaadc5211a2e4eba (head 2bbf3c5fba7, SHA-guarded). Verified present on main post-merge: pm-aggregator, pm-projector, pm-tunnel definitions and the ready-for-agent deferral comment in pkgs/deploy/services.nix; worktree and branches cleaned up.

    This issue stays open on its two named remainders:

    1. ready-for-agent registration — rides the packaging slice package ready-for-agent as a Nix derivation for deploy-target registration (#12768 remainder) #12909 (give it a Nix derivation, then its definition replaces the deferral comment).
    2. Bundled activation cutover for the four targets, per Drew's 2026-11-22 ruling — must port the pm-stack module's full Environment/EnvironmentFile set before any target activates through the deploy CLI.

    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.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.nix packages the pinned 1.1.0 npm launcher + linux-x64 platform binary, and pkgs/deploy/services.nix now carries the ready-for-agent definition (bin/ready-for-agent, start --no-open, port 6056, health http://127.0.0.1:6056/) in place of the deferral comment — deploy list shows 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions