GeezerVison is showing github.com — deploy tool v1: target registry (deployTargets) + systemd generation activation · Issue #5766 · developing-today/code
deploy tool v1: target registry (deployTargets) + systemd generation activation #5766DescriptionPart of the deployment-architecture epic (design: PR #5764, doc/2026-11-04_deployment-architecture-services-layer.md §3–§4).
Build the deploy package in the code flake:
- A
deployTargets flake output: the merged registry of service definitions (this repo's + the forks', imported via their flake outputs). Each definition is the §3 option set (package, entryPoint, args, environment, secrets-by-name, user, ports, restart, healthCheck, targets).
- The
deploy CLI with list, deploy <target>, deploy <target> rollback, deploy <target> status, --dry-run.
- systemd activation (laptop class): per-service nix profile at
/nix/var/nix/profiles/per-service/<name>; activation = install generation into the profile, write the rendered unit pointing at the profile link, daemon-reload, restart only that unit, run the health check; any failure flips the profile back and restarts on the previous generation.
- Generation log per target (generation id, source rev, timestamp, actor), retained ≥2 generations.
- launchd rendering may land as a stub behind the same definition shape in v1; systemd + status/rollback must be real.
Acceptance: on the laptop, a harmless test service (or the M1 route-proxy) deploys, serves, rolls back, and reports status end-to-end with no nixos-rebuild and no home-manager activation in the loop; deploy list enumerates the registry; a deliberately broken generation fails its health check and auto-flips back.
Out of scope: Cloudflare/container target classes (separate issues), migrating production services beyond the acceptance test (M1–M4 issues). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · done
Triage findings (2026-11-05):
- Not started at main: fresh
gh api read of flake.nix at current main has no deployTargets output and no deploy package (only an unrelated comment mentions "deployed"). The design source (PR doc: deployment architecture — a services layer outside the system switch #5764) is merged.
- Size: the full v1 (registry, CLI with deploy/status/rollback, systemd generation activation with auto-flip-back, generation log, laptop end-to-end acceptance) is a multi-slice build, not one queue small_fix. Slicing, in dependency order: (1)
deployTargets registry + definition validation + deploy list — enqueued as task 10491; (2) unit rendering + --dry-run; (3) systemd generation activation + health-check flip-back; (4) generation log + status/rollback; (5) laptop acceptance run per the issue's criteria.
- Ordering: Migrations M1 (issue Migration M1: route-proxy from hand unit to services-layer deploy target #5768), M2 (issue Migration M2: one declaration for the fleet three (laptop-agent, secrets-broker, queue-broker) #5769), and M3 (issue Migration M3: sandbox quota-recorder as first sandbox deploy target + generic unit restorer #5770) all presuppose this v1 and stay blocked on it; the Cloudflare target class (issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767) is explicitly out of scope here. Epic tracking is on issue Epic: deployment architecture — services layer + deploy tool (tracking) #5765.
developing-today commented on Nov 5, 2026 developing-today commented on Nov 9, 2026 **Agent note — task 13787 parked awaiting CI (lane code-e, direct):** resumed per prior awaiting_ci checkpoint. Fresh check: issue #5766 OPEN, no hard-stop labels; PR #7886 OPEN, not draft, no hard-stop labels, no Codex review findings posted (only a CodeRabbit skip notice). Its 4 basic checks have been QUEUED, not started, since 2026-11-09T00:50:58Z — a runner backlog, not a failure. Parked task 13787 for 1200s. Resume condition: when PR #7886 checks complete green, merge it, then complete task 13787. Attempts 3/3 (at cap). Links: task 13787, issue #5766, PR #7886. dezren39 commented on Nov 9, 2026 dezren39 commented on Nov 9, 2026 🤖 Agent note · parked (CI pending)
- Agent: repo queue worker, lane code-v (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-v run 2026-11-09 01:09 CST; task 13787
- Found via: claimed task 13787 this shift (direct execution lane, lane row 5254); resumed from the prior
awaiting_ci checkpoint — no work redone.
- Task: task 13787 for issue deploy tool v1: target registry (deployTargets) + systemd generation activation #5766 (small_fix) — PR feat(deploy): slice 3 — real systemd activation with health-check flip-back (#5766) #7886. Fresh verification at 2026-11-09T07:32Z: PR feat(deploy): slice 3 — real systemd activation with health-check flip-back (#5766) #7886 OPEN, head 8261c08 (unchanged), no hard-stop labels on PR or issue deploy tool v1: target registry (deployTargets) + systemd generation activation #5766. The 4 basic checks (scripts-test 3.12/3.14, fleet-search parity, proxy port fallbacks) are still QUEUED — unchanged since 2026-11-09T00:50Z; fleet-wide CI stall, not a PR defect. CodeRabbit skipped. Prior verified evidence stands: slice2 21/21, slice3 7/7, laptop E2E deploy/rollback/flip-back verified; no Codex findings on PR feat(deploy): slice 3 — real systemd activation with health-check flip-back (#5766) #7886.
- Expectation: on resume, merge PR feat(deploy): slice 3 — real systemd activation with health-check flip-back (#5766) #7886 when the basic checks go green on head 8261c08, then complete task 13787 as fixed_merged. Attempts 3/3 — at cap; a further return needs a cap raise or Drew's call.
- Links: task 13787 · issue deploy tool v1: target registry (deployTargets) + systemd generation activation #5766 · PR feat(deploy): slice 3 — real systemd activation with health-check flip-back (#5766) #7886
dezren39 commented on Nov 9, 2026 agent-note:v1
task: 13787
lane: code-d
stage: awaiting_ci
state: parked
summary: Resumed task 13787 at checkpoint awaiting_ci; revalidated fresh — issue #5766 OPEN, PR #7886 OPEN at head 8261c08, no hard-stop labels, no Codex findings from chatgpt-codex-connector[bot] (0 reviews, 0 inline comments). The 4 basic checks have been queued since 2026-11-09T00:50:58Z (~8h, queue-wide CI stall). Parking 1200s per runbook §5; resume condition: basic checks green on head 8261c08, then merge PR #7886 and complete. dezren39 commented on Nov 9, 2026 🤖 Agent note · parked (CI pending)
dezren39 commented on Nov 9, 2026 🤖 Agent note · awaiting CI — lane code-d (repo-worker-code), task 13787 (small_fix, attempt 3/3, direct lane row 5254): resumed at stage awaiting_ci. Fresh check: PR #7886 OPEN, MERGEABLE, head 8261c08, no hard-stop labels, no Codex findings (0 reviews/comments from chatgpt-codex-connector). All 4 basic checks still QUEUED since 2026-11-09T00:50:58Z (queue-wide CI stall). Parked 1200s per runbook §5; resume = checks green on head 8261c08, then merge PR #7886 and complete task 13787. dezren39 commented on Nov 9, 2026 🤖 Agent note · parked (CI pending)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|