Skip to content

CF-4 (#14866): PM front door + tunnel tier (M1+M3) #14944

Backlog

Description

@developing-today-fleet

CF-4 — PM front door + tunnel tier (#14107 M1 + M3).

Generalise the pm-console-edge pattern into the PM front door at pm.security.cab (one front door — settled by Drew's 2026-11-24 ruling): per-surface route state (hosted | tunnel) in edge config, automatic read fallback with the fall always visible (writes never auto-fall), the client-fallback layer in the served shell (the page's own JS walks the tier chain for dynamic reads, per the amendment), and the /health surface rendering per-surface tier + deployed commit + age. Formalise the PM cloudflared tunnel as repo config + NixOS declaration, with Cloudflare Access applications per the #14107 posture (human door, machine paths, beside-products as separate name classes).

M1's shell work is already packetised as queue task 21686; this issue is the programme-level slice that carries M1+M3 to done.

Acceptance: front door routes every PM surface by route state; a surface can be flipped hosted↔tunnel and the flip is visible on /health; the tunnel is declared in repo + NixOS; Access posture live for the PM names.

Child of #14866 (Cloudflare-first migration programme). Design of record: doc/2026-11-25_design_cloudflare-first-migration.md (PR #14940). Secrets by name only. Deploys follow the versions standard in design §4 unless this issue says otherwise.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-25T08:48:17Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • The PM front door serves through the tunnel tier: the public entry reaches the PM surface via the tunnel with no direct origin exposure.
  • Authentication/authorization behaviour at the front door matches the existing PM surface (no anonymous access to authenticated surfaces).
  • The routing is verified end-to-end once and the verification is recorded here.

Activity

  1. added
    priority/high
    kind/infrastructure
    on Nov 25, 2026
  2. developing-today commented on Nov 25, 2026

    @developing-today
    Contributor
  3. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1 — claimed by felix lane (queue task 23736), premise check done 2026-11-25.

    Premise verdict: NOT already done, and the live acceptance is blocked by two in-flight prerequisites:

    1. M1 acceptance is incomplete. Issue CF-4 (#14866): PM front door + tunnel tier (M1+M3) #14944 itself records that M1's shell work is packetised as queue task 21686; that task is parked at stage acceptance-pending — its own checkpoint states "staged upload/health-gate/route-flip not yet implemented and deployed". CF-4's front-door route flip depends on that pipeline existing. (M1's PR feat(pm): expose decision worker deploy version #14155, deploy-version stamping, is merged; the route-flip pipeline is not.)
    2. The tunnel/Access live tier is currently failing its own config check. The pm-cloudflare config workflow is in a live fix track (main CI failure: pm-console-cloudflare config (run 45534453946) #14806 / queue task 23690): its runs fail with "expected one tunnel named amd-6-pm-stack, found 0" and missing Google client credentials for the Access posture. Until that track lands, "Access posture live for the PM names" and a live hosted↔tunnel flip cannot be verified from any seat.
    3. Verified on main (21b06b5): no per-surface route state exists in pm-stack/console/edge (no route-state/tier code in the edge sources); infra/pm-cloudflare/state.json declares the single tunnel + one Access application for the hostname, not the per-name-class posture (human door / machine paths / beside-products) the PM stack: migrate fully to Cloudflare hosting (fallbacks: CF Tunnel, then Tailscale DNS) #14107 amendment requires.

    Disposition: task 23736 parked with a non-person resume condition — resume when #14806 closes (tunnel + Access config green) AND task 21686's M1 acceptance completes (route-flip pipeline deployed). The repo-side route-state work should be built on top of the M1 pipeline rather than as a competing partial implementation against the parked M1 lane's branch/worktree.

  4. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1 — ITEM-WORK-305 lane (queue task 23736): premise re-check, 2026-11-25.

    Task 23736 was re-served by fleet agent next although its recorded resume condition is still unmet (the known re-serve pattern for parked tasks). Fresh verification from this lane:

    1. main CI failure: pm-console-cloudflare config (run 45534453946) #14806 leg — NOW MET. main CI failure: pm-console-cloudflare config (run 45534453946) #14806 is CLOSED/completed (closed 2026-11-25T03:23:04Z; its fix landed via PR fix(pm-cloudflare): preserve Google sign-in when credentials are absent #14828 and was independently verified). The earlier premise note's "live fix track" wording rested on queue task 23690's record — a claimed task sitting on a closed issue, which is a reconcile item for that task's holder, not evidence the pm-cloudflare config is still failing.

    2. M1 leg — STILL UNMET. Queue task 21686 (PM stack: migrate fully to Cloudflare hosting (fallbacks: CF Tunnel, then Tailscale DNS) #14107 M1) is parked at stage acceptance-pending, not_before 2026-11-25T10:36:10Z. Its own checkpoint states the staged upload / health-gate / route-flip pipeline is "not yet implemented and deployed". CF-4's acceptance — flip a surface hosted↔tunnel and see the flip on /health, Access posture live for the PM names — cannot be verified until that pipeline exists.

    3. CF-4 itself — not done. Verified on origin/main bf90140c91d4: no per-surface route state exists in pm-stack/console/edge/src (edge.ts mentions the tunnel only in comments); infra/pm-cloudflare/state.json still declares the single tunnel plus one Access application for the hostname, not the per-name-class posture (human door / machine paths / beside-products).

    Disposition: task 23736 re-parked from this lane. Wake condition (duplicated here, in the park reason, and in progress.next, per the park-record protocol): resume when queue task 21686 completes (M1 acceptance verified). The #14806 leg of the original condition is already satisfied; it is kept in the recorded condition for completeness. No code was written in this pass: building the route-state layer now would compete with the M1 lane's front-door work in the same owned paths (pm-stack/console/) before its deploy pipeline exists — the split the filing lane recorded on this issue stands.

  5. dezren39 commented on Nov 25, 2026

    @dezren39
    Member

    agent-note:v1 — oc-code-07 re-check, 2026-11-25.

    Task 23736 was re-served. Fresh dependency check: queue task 21686 remains claimed (lane any-o; M1 checkpoint acceptance-pending; M1 acceptance explicitly incomplete: staged upload/health-gate/route-flip not implemented and deployed). Issue #14107 remains OPEN. The #14806 issue leg is already closed, but the M1 prerequisite remains unmet. No code changed in this pass; working in pm-stack/console/ before M1 acceptance would overlap the active front-door/deploy-pipeline work.

    Disposition: park task 23736 until queue task 21686 completes. Resume only after that task completes and M1 acceptance is verified.

  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1 — felix lane (queue task 23736), 2026-11-25: re-drawn by fleet agent next; premise re-checked fresh. Issue #14806 leg remains satisfied (closed, fix PR #14828). Queue task 21686 (M1, #14107) is still claimed by repo-worker-code at stage acceptance-pending — the staged upload/health-gate/route-flip pipeline is not yet implemented and deployed, so CF-4's premise is still unmet. Re-parking task 23736 behind task 21686 terminal with an hourly recheck. Refs #14944

  7. added
    effort/m
    meta/enriched
    on Nov 25, 2026
  8. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 07:14 CST
    • Found via: monitor reconciliation — Duty 2 intake enrichment
    • Task: Intake pass (protocol §5): verified the issue is still live, appended acceptance criteria where missing, normalized labels, added meta/enriched
    • Expectation: A worker or sweep can pick this up from the acceptance criteria without re-deriving scope
    • Links: related merged PRs explicitly referencing this issue: none found

    Notes: Still live — no merged PR explicitly resolves this issue (checked this run). Acceptance criteria were appended to the body (original text preserved verbatim above the new section).

    Risks: Scope is as stated in the body; if the underlying surface has moved since filing, the picker should re-validate against current main before implementing.

    Suggested approach: Work from the acceptance criteria top-down; verify each criterion with the cheapest decisive check (test, run, or read-back) and record the evidence on the closing PR.

  9. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    agent-note:v1 — xaltha lane, 2026-11-26: premise re-checked fresh and a non-competing slice landed.

    Claim check: this issue is Felix-claimed (queue task 23736) and parked behind queue task 21686 (M1, #14107, still acceptance-pending: staged upload/health-gate/route-flip not yet implemented and deployed); #14806 leg remains satisfied (closed, PR #14828). No open PR referenced #14944. The park's stated reason for no code was competing with the M1 lane in pm-stack/console/ before its deploy pipeline exists.

    What changed this pass: PR #15519 lands the route-state layer in the edge's own paths only — per-surface hosted | tunnel state in the PmEdge DO storage, a flip on the trusted /internal/route channel, the read-only automatic-fall model of design §5.1 + amendment D2 (writes never auto-fall), and per-surface tier/serving/fall on /console/health. It flips no surface, changes no request path, and touches no deploy-pipeline files, so it does not compete with the M1 lane; it is the layer the M1 route-flip pipeline will set.

    Verification (remote, fleet-command.yml fallback, queue/shell down + #13185): run 45795427996, command bun test test/route-state.test.ts test/edge.test.ts — Execute step completed/success (no CI logs read).

    Still open on CF-4 (unchanged, gated on 21686/M1 acceptance): live hosted↔tunnel flip verification, tunnel NixOS declaration, live Access posture for the PM names, and the client-fallback shell layer. Refs #14944

  10. 4 remaining items

  11. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1 — felix lane (CF-4), 2026-11-26: progress record for the rollback note above (comment 7190090064).

    • PR pm-console-edge: owner route-flip endpoint for the front door (CF-4, #14944) #15546 opened (unmerged, for Felix): owner-authenticated POST /console/api/route on the edge, delegating to the same flip logic as /internal/route, + one test beside the internal-channel test in pm-stack/console/test/edge.test.ts. Branch felix/cf4-route-flip-endpoint, head d363c82.
    • Remote verification dispatched (never compiled on this seat): fleet-command run 45806464283 on developing-today/fleet — bun test test/route-state.test.ts test/edge.test.ts in pm-stack/console at the PR head. At the time of this note the run is still QUEUED behind a fleet-wide backlog (every recent fleet-command run is queued; some were cancelled by their owners). The terminal result will be recorded here when it lands; the PR is not verified until it does.
    • Post-merge live verification (unchanged from the rollback note): merge → pm-console-edge-deploy green at the merge commit → flip board to hosted, read /console/health, flip back, read again, record both reads here.
    • Remaining on CF-4 after that: the client-fallback shell layer (M1 shell work, task 21686 — still parked, acceptance-pending, not_before 2026-11-27) and request-path consultation of route state (lands with CF-5's hosted surfaces). Task 21686's holder is another worker; this lane does not complete it.
  12. added a commit that references this issue on Nov 26, 2026
  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Disposition — lane 2137-L, 2026-11-26 ~21:42 CST (fallback-list premise check)

    Fresh evidence not yet recorded on this issue: PR #15546 is MERGED — merged 2026-11-26T13:07:07Z, merge commit 398910895686dd208017f9f84091cdc8e36f460a, head d363c8243a19c03ab9a3b18d5886f66d6c8b3d87 (the owner route-flip endpoint the felix lane opened in comment 7190314289; the last PR-side note at 11:12Z still had it open/pending verification). PR #15519 (route-state layer) merged earlier today was already recorded here by shepherd lane AO.

    Remaining gates verified live this pass — no slice taken by this lane:

    Disposition: stand down — workable remainder is owned by the Felix lane and gated on M1 acceptance; wake when queue task 21686 completes / #14107 unclaims.

  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Shortlist premise re-check — code-h, 2026-11-27 ~13:55Z (no slice taken, no PR)

    Code on origin/main (verified, not trusted from prior notes): route-state layer (#15519, ae3967f) and owner flip endpoint (#15546, 3989108) are both merged and in main; tunnel declared in repo (infra/pm-cloudflare/state.json + apply.py) and NixOS (nixos/services/pm-stack/default.nix); /console/health renders per-surface routes (edge.ts healthRoutes).

    Live read-only checks (no production action taken):

    Why no slice from this lane: the remaining CF-4 items are (a) the live hosted↔tunnel flip + record — a supervised production action sequenced for the Felix lane, not an unattended scheduled lane; (b) the client-fallback shell layer — owned by parked task 21686 (code-j); (c) request-path consultation — sequenced to CF-5. No unblocked, unowned code slice exists, so per feature-slice I stand down without a PR rather than manufacture one. Wake when 21686 completes or the supervised flip is scheduled.

  15. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Disposition — lane 0937-N, 2026-11-27 09:37 CST alpha DRIVE (fallback-list rank 12, PRIMARY; sibling 0937-M bench)

    Premise + ownership check firsthand: read the issue and ALL comments, plus a fresh second read of the latest comments and open PRs referencing #14944 (none open).

    Stand down — live claim + gate, no claim made by this lane, no code written:

    Wake: queue task 21686 completes / M1 acceptance verified, or the supervised flip is scheduled by its owner lane.

  16. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · shortlist re-verify — lane oc-code-04, 2026-11-27 (no slice taken, no PR).

    Fresh verification, not trusted from prior notes:

    Remaining acceptance is (a) the live hosted↔tunnel flip + record — supervised production action for the Felix lane; (b) the client-fallback shell layer — owned by parked task 21686; (c) request-path consultation — sequenced to CF-5. No unblocked, unowned code slice exists, so per feature-slice this lane stands down without a PR. Wake when 21686 completes / M1 acceptance verified, or the supervised flip is scheduled.

  17. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane oc-code-05 shortlist-draw stand-down on #14944 (~2026-11-28T04:50Z): no slice taken.

    Fresh premise + ownership check: issue OPEN, no open PRs referencing it, no comments since 00:16Z (oc-code-04 re-verify). Concurs: route-state layer + owner flip endpoint merged on main, but client-fallback shell layer still absent and owned by parked task 21686 (M1, not_before 2026-12-04, m1_acceptance incomplete — deploy/DNS, remaining pipelines, front-door/client-fallback, live drill sequenced as supervised run). CF-4 task 23736 parked behind 21686. Remaining acceptance (live hosted<->tunnel flip, client-fallback layer) is blocked/owned elsewhere; no unblocked, unowned code slice exists. Standing by on 21686 completion / supervised flip scheduling.

  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 2022-H premise check (delta PRESS AUTHOR, 2026-11-28 20:22 CST) — stand down, live claim + gate, no claim made, no code written.

    Read issue + all 15 comments firsthand (gh CLI only, no clones). Concurs with lanes 2137-L, 0937-N, oc-code-04 and oc-code-05:

    Wake: queue task 21686 completes / M1 acceptance verified, or the supervised flip is scheduled by its owner lane.

    Key: 2022-H

  19. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    🤖 Census — lane CEN-C15, 2026-11-29 (full-census pass: body + all comments re-read firsthand; this comment is the current-state record for a cold pickup).

    Verdict: blocked. Landed vs remaining is recorded precisely by prior stand-downs. The one-front-door ruling (Drew, 2026-11-24) is cited in the body; the writes-never-auto-fall rule is explicit. Landed: PRs #15519, #15546.

    Blockers / ownership: Felix-claimed (task 23736). Remainder = the supervised live flip + the client-fallback layer owned by M1 task 21686 (parked, not_before 2026-12-04) + CF-5-sequenced request-path consultation.

    Labels/priorities were verified correct in the census — no label changes were needed. (priority high confirmed.)

  20. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The front-door shape follows Drew's 2026-11-24 one-front-door ruling, with the safety properties stated (route state per surface, reads may fall back visibly, writes never auto-fall) and the tunnel formalised as repo config + NixOS declaration with the Access posture per name class. kind/infrastructure + priority/high already set.

    GAPS: Two of three layers exist: the route-state layer (PR #15519) is merged AND deployed, the tunnel amd-6-pm-stack is healthy, the Access posture is live, and the flip endpoint itself merged (PR #15546, owner-authenticated POST /console/api/route). What remains: (1) the live flip verification (procedure recorded on this issue, comment 7190314289) — a supervised live operation; (2) the client-fallback shell layer does not exist yet (queue task 21686, parked acceptance-pending; CF-4's own task 23736 is parked on it in proper form).

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry. The flip verification is Felix-supervised programme work; the shell layer is a normal implementation slice when unparked.

  21. added
    status/in-progress
    app/pm-stack
    on Nov 29, 2026
  22. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Issue census — 2026-11-29

    Gaps found

    • No status/* lifecycle label and no app//area/ label at census time — added status/in-progress and app/pm-stack.

    Strengths

    Actions taken by this census

    • Labels added: status/in-progress, app/pm-stack.
  23. developing-today-backup commented on Nov 30, 2026

    @developing-today-backup

    Gate verdict — lane 0337-G, 2026-11-30 (alpha DRIVE programmes)

    The carried record conflict on this issue (Side A: unblocked, a gate not gated — vs Side B: "#14944/#14947 blocked", evidence unquoted) is now settled firsthand:

    • Transport wake met firsthand: two consecutive gh api rate_limit rc=0 with body, then two agreeing live reads of this issue (REST, this lane).
    • Labels (the first conflict test): NO queue/blocked, status/blocked, queue/parked, or status/parked label exists. Live label set: status/in-progress, priority/high, effort/m, meta/enriched, kind/infrastructure, app/pm-stack — identical to the stored record. On labels, Side A is correct.
    • Substance (body + all 19 comments read): the remainder is genuinely gated, but not by a label. Per the newest substantive records (lane 2022-H stand-down 2026-11-29T02:35Z; CEN-C15 census 2026-11-29T15:08Z "Verdict: blocked"; Felix census 2026-11-29T15:18Z), what remains is: (1) the live hosted↔tunnel flip verification — a supervised live production operation, owned by the Felix lane (task 23736); (2) the client-fallback shell layer — owned by queue task 21686 (M1, PM stack: migrate fully to Cloudflare hosting (fallbacks: CF Tunnel, then Tailscale DNS) #14107), parked not_before 2026-12-04T12:00:00Z, acceptance-pending; task 23736 is parked on it in proper form; (3) request-path consultation, sequenced to CF-5.
    • Already landed: route-state layer PR feat(pm-edge): per-surface route state for the PM front door (#14944) #15519, owner flip endpoint PR pm-console-edge: owner route-flip endpoint for the front door (CF-4, #14944) #15546, tunnel declared in repo + NixOS, /console/health per-surface rendering.

    Disposition: no unblocked, unowned code slice exists on CF-4 today. This lane takes no claim (the Felix claim + parked M1 task are live ownership in proper form, and the flip is a live production operation = genuine stop for an unattended lane). Priority validation 0337-G: priority/high concurred.

    Wake (machine-checkable): queue task 21686 completes / unparks (not_before 2026-12-04T12:00:00Z) → the client-fallback shell layer becomes a normal implementation slice; or the Felix lane records the supervised flip verification here.

    Key: 0337-G

  24. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Gate verdict — CONFIRMED independently — lane 0437-H, 2026-11-30 (alpha DRIVE programmes)

    Second-lane confirmation of lane 0337-G's settlement (comment 7274591541, 2026-11-30T09:43:10Z), from this lane's own two agreeing live reads (REST, minutes apart, after two consecutive gh api rate_limit rc=0):

    • Read 1 and read 2 agree on every field: state OPEN, comments 20, updated_at 2026-11-30T09:43:10Z, label set identical: status/in-progress, priority/high, effort/m, meta/enriched, kind/infrastructure, app/pm-stack.
    • No queue/blocked, status/blocked, queue/parked, or status/parked label exists. On labels, Side A (unblocked) is correct — confirmed.
    • On substance, 0337-G's reading stands: the remainder is gated by ownership/sequencing, not by a label — (1) the supervised live flip verification (Felix lane, queue task 23736; a live production operation = genuine stop for an unattended lane), (2) the client-fallback shell layer (queue task 21686, parked not_before 2026-12-04T12:00:00Z, acceptance-pending), (3) request-path consultation sequenced to CF-5. Already landed: PR feat(pm-edge): per-surface route state for the PM front door (#14944) #15519 (route-state layer), PR pm-console-edge: owner route-flip endpoint for the front door (CF-4, #14944) #15546 (owner flip endpoint), tunnel declared in repo + NixOS.

    Verdict (two lanes, two agreeing read-pairs): the blocked-vs-unblocked record conflict is SETTLED — #14944 carries no blocked/parked label and no unblocked, unowned code slice exists today. No claim taken by this lane. Wake unchanged: task 21686 completes/unparks (2026-12-04T12:00:00Z) or the Felix lane records the supervised flip verification here. Priority validation 0437-H: priority/high concurred.

    Key: 0437-H

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

    app/pm-stackeffort/mkind/infrastructuremeta/enrichedpriority/highstatus/in-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions