Skip to content

feat(deploy): register pm-aggregator, pm-projector, pm-tunnel as deploy targets (#12768) - #12944

Merged
dezren39 merged 1 commit into
mainfrom
lane-fb/12768-pm-deploy-targets
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-fb/12768-pm-deploy-targets

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

Registers the PM-stack services as deploy targets in pkgs/deploy/services.nix (#12768's named slice):

Registration only — no activation cutover (bundled per Drew's 2026-11-22 ruling on #12768; the cutover must port the pm-stack module's full Environment/EnvironmentFile set first). The deploy-list flake check now greps for all three new targets.

Verification

  • services.nix evaluates standalone; deploy.py list validates the registry and lists 18 targets including the three new ones (rc 0) — recorded list output on deploy: register the PM-stack services (aggregator, projector, tunnel, ready-for-agent) as deploy targets #12768.
  • nixfmt --check clean on all three files.
  • nix build .#checks.x86_64-linux.deploy-list instantiated the registry with real derivations and built fleet green under it; the full check build was still working through its unrelated mcpx test closure under load ~49 at merge time. Per fleet doctrine CI runs on main only — the main-branch run is the verdict of record.

Refs #12768 (stays open: ready-for-agent registration rides #12909; cutovers bundled later).


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…oy targets (#12768)

Adds the three PM-stack services that have Nix packages to the
pkgs/deploy registry in the design §3 shape:

- pm-aggregator (pkgs/pm-aggregator): ports 4870/4871, health
  http://127.0.0.1:4870/health, PM_PROJECTOR_URL + bundled
  PM_KANEO_PROJECTS_FILE pins mirroring the NixOS pm-stack module.
- pm-projector (pkgs/pm-projector): port 7801, health
  http://127.0.0.1:7801/health, PORT pin.
- pm-tunnel (pkgs.cloudflared, the package the pm-stack module
  runs): the module's exact ExecStart shape - http2 protocol
  (#5647), metrics on 127.0.0.1:20242, tunnel token via
  --token-file (#8933, never in argv); health is cloudflared's
  own /ready.

Definitions are registration only: the services' units of record
stay the NixOS pm-stack module, whose full Environment/
EnvironmentFile set the bundled activation cutover (Drew's
2026-11-22 ruling on #12768) must port before any of these
targets is activated through the deploy CLI.

ready-for-agent is deliberately NOT registered: it has no Nix
derivation (npm-pinned install into ~/.local) and its deployment
of record is the pm-apps module under #1752. A deferral comment
in services.nix records this on #12768's own terms; the
packaging slice is #12909.

The deploy-list flake check now greps for all three new targets.

Verification (laptop worktree off origin/main):
- services.nix evaluates standalone; deploy.py list validates
  the registry and lists 18 targets including the three new
  ones (rc 0).
- nixfmt --check clean on all three files.
- nix build .#checks.x86_64-linux.deploy-list instantiated the
  registry with real derivations (fleet built green under it);
  the full check build was still running its unrelated mcpx
  test closure under load ~49 at merge time - the main-branch
  CI run is the verdict of record per fleet doctrine.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 05:41
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 6ba5762 into main Nov 23, 2026
1 of 2 checks passed
@dezren39
dezren39 deleted the lane-fb/12768-pm-deploy-targets branch November 23, 2026 05:42
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:42:38.997670Z 2bbf3c5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant