GeezerVison is showing github.com — deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers · Issue #5767 · developing-today/code
deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767DescriptionPart of the deployment-architecture epic (design: PR #5764, doc/2026-11-04_deployment-architecture-services-layer.md §4.3, Track C).
Generalize the 2026-10-31 Cloudflare deploy standard (doc/2026-10-31T23-00-00Z_design_cloudflare_worker_deployment_standard.md) from its current 3 workers to the whole estate, behind the deploy CLI:
- Absorb the existing flake deploy apps (
id-mail-deploy, pkarr-deploy, developing-today-backup-deploy) as target renderers — no behavior change for those three.
- New targets: lab-ops-hub (worker deploy + its container image push become one
deploy lab-ops-hub), cf-container-hello, cold-store-rehydrator (today: manual REST PUT of a committed bundle — becomes a built artifact + versions flow), agent-inbox, webhook-gateway + sink.
- Worker bundles become flake packages (pinned deps from the lockfile; no deploy-time
npm install against the network).
- id-mail gains
--deploy-version rollback parity with pkarr/developing-today-backup (today it has no rollback path at all); rollback-to-version verifies required secret bindings first (the github-backup check, standardized).
- Secrets gathered impurely at deploy time by name (SOPS account id, Bitwarden token) exactly as the current standard does.
Acceptance: every Worker in the design doc's §0 table is a deploy target with working status; one full deploy + rollback cycle demonstrated on a low-risk worker (cf-container-hello) with the version/deployment ids recorded in the generation log; no Worker remains whose only deploy path is a raw npm run deploy in a README.
Out of scope: Workers Builds / GitHub-Actions deploys (the design keeps deploys operator/agent-invoked via the flake). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · done
Triage findings (verified fresh 2026-11-05)
- State: issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 is OPEN, no hard-stop labels, no open PR references it, no substantive comments yet. Its parent design is settled: PR doc: deployment architecture — a services layer outside the system switch #5764 is MERGED and the deployment-architecture doc is on main, so there is no open design question blocking this work.
- Starting point verified on main: the three existing deploy apps named in the body exist (
id-mail-deploy surfaces in nixos/services/id-mail/worker/deploy.nix, lib/default.nix, root.just), and the new-target packages exist too (e.g. pkgs/cf-container-hello/ with README, wrangler config, and its own workflow). The generalization has NOT been done: deploy lab-ops-hub appears only in the design doc, not in any CLI/code path.
- Scope assessment: this is a large, phased implementation (effort l/xl), not a single small fix. Sensible phasing, in dependency order: (1) absorb the 3 existing apps as target renderers with no behavior change (regression-safe, verifiable by
deploy <name> status parity); (2) bundle-as-flake-package conversion (pinned lockfile deps, no deploy-time network install); (3) add the new targets one at a time (lab-ops-hub incl. its container image push, cf-container-hello, cold-store-rehydrator, agent-inbox, webhook-gateway + sink); (4) id-mail --deploy-version rollback parity with secret-binding verification before rollback.
- Acceptance risk noted: the final acceptance step — one full deploy + rollback cycle on cf-container-hello with ids recorded in the generation log — is a live Cloudflare deploy. Per the design, deploys are operator/agent-invoked via the flake with secrets gathered impurely by name (SOPS account id, Bitwarden token); that step needs a live deploy window and working Cloudflare credentials at execution time, so it should be its own final phase, not bundled into the renderer work where a credential failure would strand finished code.
- Routing: issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 stays OPEN as the implementation ticket, ready to enqueue as phased implementation tasks (phase 1 first). No part of it is blocked on a design decision.
dezren39 commented on Nov 8, 2026 Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).
Queue task(s) [10173] were marked done, and some work did land:
No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11749. dezren39 commented on Nov 8, 2026 🤖 Agent note · done
Triage verdict (re-verified fresh 2026-11-08, laptop main @d2584db76d)
Issue #5767 is OPEN, no hard-stop labels. The remainder is real and confirmed against current code:
- Landed: PR feat(deploy): deployTargets registry + deploy list CLI (#5766 slice 1) #6231 (merged 2026-11-05) delivered only the
deployTargets registry + deploy list CLI scaffolding for issue deploy tool v1: target registry (deployTargets) + systemd generation activation #5766 slice 1.
- Not landed — registry has zero Cloudflare targets:
pkgs/deploy/services.nix defines only queue-broker, secrets-broker, session-proxy, and mcpx; cloudflare appears only in a comment there and in pkgs/deploy/deploy.py's CLASSES set. deploy.py itself states activation/status/rollback are later slices.
- Not landed — the 3 existing apps are not absorbed: id-mail-deploy, pkarr-deploy, and developing-today-backup-deploy still exist only as standalone flake apps (root.just lines 243–264), not as registry targets/renderers.
- Not landed — new targets: lab-ops-hub, cf-container-hello, cold-store-rehydrator, agent-inbox, webhook-gateway + sink are not deploy targets.
- Not landed — id-mail rollback parity: root.just documents
--deploy-version rollback for pkarr and developing-today-backup only; id-mail has no rollback path noted.
Routing: converted the first phased slice to a fix packet — task 12785 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:5767): register the 3 existing Workers as class=cloudflare deploy targets with no behavior change. Remaining phases (new targets, bundle-as-flake-package, id-mail --deploy-version parity with secret-binding verification, and the live cf-container-hello deploy+rollback cycle, which needs a live Cloudflare credential window) stay on issue #5767 for later packets. Issue #5767 stays OPEN. dezren39 commented on Nov 22, 2026
Agent note — task 20789 (repo-health-code-pilot, lane oc-code-01) revalidated and packet-blocked
Fresh verification: #5767 is OPEN and unassigned; no open PR references it. Source verdict comment 6974159268 identifies agent-inbox at dezren39/hatch-personal/workspace/agent-inbox, webhook-gateway at workspace/webhook-gateway, and its sink at workspace/webhook-gateway/sink. None needs creating.
I chose to keep deploy definitions in the central developing-today/code deploy tool, sourcing pinned revisions from hatch-personal; this matches the purpose of #5767 and the pattern in merged PR #11252. I validated a registration follow-on packet, but enqueue deduped to task 20789 itself, so I did not create a duplicate. Task 20789 is blocked as packet_defect: it needs a distinct registration-task identity/dedupe route. This is not waiting on a Drew decision; removed stale user/escalated while retaining the queue/status blocked labels.
Resume brief: create a distinct valid follow-on packet for registering the three external Workers in the central deploy tool, with pinned hatch-personal sources and no live deployment. dezren39 commented on Nov 24, 2026
Second-pass verdict (2026-11-24, task 21846, lane oc-code-06)
Status: PARTIALLY SATISFIED — in-repo targets done, external registration remains. Follow-on routed.
Fresh check 2026-11-24:
- Issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 OPEN, labels task/triage + status/blocked + queue/blocked + epic/turso-cloudflare.
- pkgs/deploy/services.nix has lab-ops-hub, cf-container-hello, cold-store-rehydrator, id-mail, pkarr, developing-today-backup. No agent-inbox / webhook-gateway entries.
- Source verdict (comment 6974159268) stands: agent-inbox at dezren39/hatch-personal/workspace/agent-inbox, webhook-gateway at workspace/webhook-gateway (+sink). None needs creating; deploy-definition home = central code deploy tool with pinned sources.
- PRs feat(deploy): deployTargets registry + deploy list CLI (#5766 slice 1) #6231, feat(deploy): register the 3 Cloudflare deploy apps as deploy targets (#5767 phase 1) #7592, deploy: register lab-ops-hub, cf-container-hello, cold-store-rehydrator as Cloudflare targets (#5767 phase 2) #11252 merged (in-repo slice).
Routing: enqueued fix task 22894 (register agent-inbox + webhook-gateway +sink with pinned hatch-personal sources, status wiring, no live deploy). developing-today-fleet commented on Nov 26, 2026
Agent note — triage (lane oc-code-02, task 24846)
State: triaged — reconciliation pass. Registration work has materially advanced since the last triage; close-out decision left to the owning lane.
Fresh evidence (checked 2026-11-26T23:52Z, origin/main ce1d9d0):
- Issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 OPEN, labels task/triage + status/blocked + queue/blocked + work/assigned + epic/turso-cloudflare. No held / user/owned / do-not-merge / do-not-auto-edit labels. Blocked labels belong to live routed work — left untouched.
- External registration LANDED: PR deploy: external Workers agent-inbox, webhook-gateway, webhook-gateway-sink (#5767) #14244 (task 22894) MERGED 2026-11-24T18:37Z. At origin/main, pkgs/deploy/services.nix carries agent-inbox + webhook-gateway + webhook-gateway-sink as deploy targets with pinned hatch-personal sources (HATCH_WORKER_PATH workspace/agent-inbox/worker, workspace/webhook-gateway, workspace/webhook-gateway/sink) — 11 mentions incl. the deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 slice comment. This resolves the deploy-definition-home question toward option (a) central tool, matching PR #11252s pattern.
- In-repo slice earlier landed: PRs feat(deploy): deployTargets registry + deploy list CLI (#5766 slice 1) #6231, feat(deploy): register the 3 Cloudflare deploy apps as deploy targets (#5767 phase 1) #7592, deploy: register lab-ops-hub, cf-container-hello, cold-store-rehydrator as Cloudflare targets (#5767 phase 2) #11252 merged.
- Still open / not verified this pass: the acceptance demo — full deploy + rollback cycle on a low-risk worker (cf-container-hello) with version/deployment ids in the generation log — and draft PR ci(cold-store-rehydrator): upload with cf, gate promotion on private staging #12569 (cold-store-rehydrator CI, still OPEN, adjacent). The 2026-11-22 flow-review note already routed the done-check-or-close to the owning lane.
Triage verdict:
- No new packet from triage; the remaining close-out (done-check incl. the demo criterion, then close or remainder-list) belongs to the lane holding the blocked labels. Task 24846 completes as triaged.
- Priority/labels unchanged. No code change (registration already merged).
developing-today-fleet commented on Nov 27, 2026 🤖 Agent note (lane oc-code-02, 2026-11-27, triage task 25332): triaged — registration landed, close-out stays with owning lane, no packet.
Fresh verification (this run, origin/main dde2235):
- Issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 OPEN, labels task/triage + status/blocked + queue/blocked + work/assigned + epic/turso-cloudflare. No held / user/owned / do-not-merge labels. Blocked labels belong to live routed work — left untouched.
- External registration LANDED: PR deploy: external Workers agent-inbox, webhook-gateway, webhook-gateway-sink (#5767) #14244 MERGED 2026-11-24. pkgs/deploy/services.nix carries agent-inbox + webhook-gateway + webhook-gateway-sink with pinned hatch-personal sources, plus the deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 phase comments. In-repo slice earlier landed (feat(deploy): deployTargets registry + deploy list CLI (#5766 slice 1) #6231, feat(deploy): register the 3 Cloudflare deploy apps as deploy targets (#5767 phase 1) #7592, deploy: register lab-ops-hub, cf-container-hello, cold-store-rehydrator as Cloudflare targets (#5767 phase 2) #11252 merged).
- Adjacent open PR ci(cold-store-rehydrator): upload with cf, gate promotion on private staging #12569 (draft, cold-store-rehydrator CI) explicitly scopes itself outside deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767's deploy-tool work — not a competing implementation.
- Still open / not verified this pass: the acceptance demo (full deploy + rollback on cf-container-hello with ids in the generation log). The done-check-or-close belongs to the lane holding the blocked labels, per the 2026-11-22 flow-review routing.
Verdict: no new packet from triage. Concurs with tasks 21846 (2026-11-24) and 24846 (2026-11-26).
developing-today-fleet commented on Nov 27, 2026 🤖 Agent note — triage follow-up (task 25332)
Fresh review of #5767 confirms the in-repo deploy targets and registration work have landed. CF-1 (#14941) records the Actions deploy of cf-container-hello and a rollback demonstration on github-ci. #5767 still requires one full deploy and rollback through the flake deploy CLI on cf-container-hello, with version and deployment ids in the generation log.
Queued task 26136 in repo-health-code-pilot for that specific acceptance demonstration. It asks the worker to verify the serving version first, use only the low-risk target, record status and generation-log evidence, and recheck the remaining #5767 acceptance. PR #12569 remains adjacent and outside this deploy-tool scope. No code or deployment settings changed in this triage.
Links: task 26136 · #5767 · #14941 · PR #14244 developing-today-fleet commented on Nov 27, 2026
Operational proof blocked by missing CLI capability (lane code-f, task 26136). Fresh check: #5767 remains OPEN and unheld. Read-only generic CLI status on the available local Fleet host reports cf-container-hello: class=cloudflare, current: none recorded, previous: none recorded; it does not query Cloudflare for the serving version. nix run .#deploy -- cf-container-hello --dry-run exits 2: activation for class cloudflare is not implemented in the generic CLI; ACTIVATION_CLASSES excludes it. The existing cf-container-hello-deploy wrapper supports deploy / dry-run only, with no status or rollback. No live deploy/rollback was attempted and no version was changed. Routed the prerequisite as live code task 26138 (generic Cloudflare CLI status/deploy/rollback with fake-provider tests, target-limited to cf-container-hello). Resume this operational proof after task 26138 is terminal and the generic CLI can query current state and roll back. dezren39 commented on Nov 27, 2026 🤖 Agent note · in progress
- Agent: xaltha (lane 0437-A-D, alpha DRIVE)
- Task: queue task 26138 — Cloudflare lifecycle in the generic deploy CLI for cf-container-hello
- PR: feat(deploy): Cloudflare lifecycle in the generic deploy CLI for cf-container-hello (#5767) #16095 (branch
xaltha/5767-cf-deploy-cli, head 9e8f00f)
- What:
cloudflare activation class in pkgs/deploy/deploy.py — provider-reported serving status, deploy that records provider version/deployment ids in the generation log only after success, binding-verified rollback with no rebuild/re-upload — plus the status/deploy/activate/version-bindings verbs on the cf-container-hello deploy app. Fake-provider tests only; no live deploy (that stays task 26136).
- Verification: remote dispatch run 45985342499 (developing-today/fleet, fleet-command.yml) on the PR head — test_deploy_cloudflare.py + full pkgs/deploy discover +
nix run .#deploy -- cf-container-hello --dry-run.
dezren39 commented on Nov 27, 2026 🤖 Agent note · parked (lane 0437-A-D, task 26138)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|