Repository navigation
feat(deploy): register pm-aggregator, pm-projector, pm-tunnel as deploy targets (#12768) - #12944
Merged
Merged
Conversation
…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.
|
Caution Review failedThe pull request is closed.
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Registers the PM-stack services as deploy targets in
pkgs/deploy/services.nix(#12768's named slice):pkgs/pm-aggregator, ports 4870/4871, healthhttp://127.0.0.1:4870/health, projector-URL + bundled kaneo-projects pins mirroring the NixOS pm-stack module.pkgs/pm-projector, port 7801, healthhttp://127.0.0.1:7801/health.pkgs.cloudflared(the package the pm-stack module runs), the module's exact ExecStart shape:--protocol http2(pm-dispatch: POST /v1/sessions and /v1/tasks return HTTP 502 (2026-11-04) #5647), metrics127.0.0.1:20242, token via--token-file(nixos: keep Cloudflare tunnel credentials out of argv and recover degraded lab tunnels #8933); health is cloudflared's own/ready.~/.local), and its deployment of record is the pm-apps module under nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752. A deferral comment inservices.nixrecords this on deploy: register the PM-stack services (aggregator, projector, tunnel, ready-for-agent) as deploy targets #12768's own terms; the packaging slice is package ready-for-agent as a Nix derivation for deploy-target registration (#12768 remainder) #12909.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-listflake check now greps for all three new targets.Verification
services.nixevaluates standalone;deploy.py listvalidates 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 --checkclean on all three files.nix build .#checks.x86_64-linux.deploy-listinstantiated 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).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.