Skip to content

deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767

Open

Description

@dezren39

Part 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).

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 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.
  4. added
    status/triagedTriaged and routed (see agent note)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  5. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    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.

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 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.

  7. 69 remaining items

  8. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 18, 2026
  9. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — task 20789 picked up → blocked (escalated to user), lane oc-code-06

    • State: blocked, reason-class escalated-to-user.
    • Fresh revalidation (2026-11-18 12:30 UTC): issue deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 OPEN; source verdict comment 6974159268 verified against dezren39/hatch-personal live — workspace/agent-inbox/ (worker/) and workspace/webhook-gateway/ (wrangler.toml, src/, sink/) both present. No new comments since the 10:45 UTC park note; no epic-owner ruling exists on where deploy definitions for the out-of-repo Workers belong.

    What is done (this task + its parents): the per-Worker source-location verdict required by the acceptance is complete — all three Workers (agent-inbox, webhook-gateway, webhook-gateway sink) live in dezren39/hatch-personal; none needs creating.

    What is genuinely Drew's and why escalation instead of another park: the registration follow-on for Workers whose source is NOT in developing-today/code requires choosing the deploy-definition home: (a) register them as deploy targets in developing-today/code's deploy tool (cross-repo source pinning from hatch-personal), or (b) keep their deploy definitions in dezren39/hatch-personal. Task 20789 was parked twice on this (10:45 UTC and again at claim) and nothing on the issue triggers that ruling — a park loop cannot converge. The choice changes which repo the registration small_fix is enqueued against, so it is an epic-owner decision, not a worker assumption.

    My read, for the ruling: option (a) keeps all deploy targets in the one deploy tool that #5767 generalizes, matching the phase-2 pattern of PR #11252; option (b) keeps deploy definitions next to Drew's personal sources but splits the deploy estate across two repos, which #5767's acceptance ("every Worker in the design doc section 0 table is a deploy target") does not obviously support. On balance I'd recommend (a), with the code-repo deploy apps pinning hatch-personal sources explicitly.

    Once ruled, the registration small_fix will be enqueued against the named repo and this task's acceptance closes.

  10. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 18, 2026
  11. removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#6231, #7592, #11252) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions