Skip to content

CF-5a (#14945): M4 decision surfaces hosted at pm.security.cab #14967

Backlog

Description

@developing-today-fleet

CF-5a — M4 decision surfaces hosted (child of #14945, programme #14866).

Serve the decision surfaces at the canonical name off already-hosted data: the decision index + decision-set pages rendered from the decision-events pipeline (D1 decision-events + per-set Durable Objects, via the decision-events Worker's read routes), hosted at pm.security.cab. Decision links everywhere they are generated are re-pointed to the canonical name; no credentials in URLs (the Worker's shared-secret read routes are server-side only — pages are rendered by a Worker holding the secret by name, never by embedding it in a link).

Data plane stays D1 (design §2). #14865 gate: record the write-amplification check for the decision-events path on this issue before cutover; an open finding in this path is carried as this slice's first step or waits, saying which.

Acceptance: decision index + set pages serve hosted at pm.security.cab with data-plane freshness visible; per-surface record on this issue (what moved, what stayed, deploy/rollback via versions + route flip per design §4). Secrets by name only.

Design of record: doc/2026-11-25_design_cloudflare-first-migration.md (PR #14940), §3 CF-5 row + §8. Premise evidence: #14945 comment 7157705797.

{
  "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:58:33Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "c11f41086f57d626be7eb582763b721f8f557408"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • The decision index and decision-set pages render from the decision-events pipeline (D1 + per-set Durable Objects) and are hosted at the canonical pm.security.cab name.
  • Every generated decision link points at the canonical name, and no credential appears in any URL (shared-secret read routes stay server-side only).
  • The issue sweep: eliminate write amplification (whole-table rewrites) in PM Stack, queues, bridge #14865 write-amplification gate measurement is recorded on this issue before or alongside launch.

Activity

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

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

    @dezren39
    Member

    CF-5a implementation slice is staged in draft PR #15011: owner-gated /decisions HTML index and ?set= activity detail page read through the authenticated decision-events Worker binding; pages default off (DECISION_PAGES=on required), links canonical to https://pm.security.cab/decisions?set=…, freshness is displayed, and upstream errors fail visibly. Secret is server-side by binding name only. No deploy or cutover was performed. #14865 remains the enable/cutover gate; #14871 is still open, and secret readiness is unverified. Focused remote verification is running at https://github.com/dezren39/fleet/actions/runs/45591957521 (bun test test/decision-pages.test.ts test/edge.test.ts on cf5a/pm-hosted-read-surfaces-14967); prior broader run had 187/188 pass, with the remaining failure an unrelated worker-inventory assertion against advanced main. I will attach the focused run outcome when terminal.

  4. dezren39 commented on Nov 25, 2026

    @dezren39
    Member

    CF-5a verification update:

    Resume when #14871 is merged or the gate is otherwise resolved, then verify the server-side secret by name and authenticated GET read before following the design's versions upload, commit-stamped health gate, versions deploy, and rollback-by-version-promotion sequence.

  5. added
    app/pm-stack
    effort/m
    meta/enriched
    status/needs-triage
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    Related: parent issue #14945, programme issue #14866; gate on issue #14865.

    Notes: Issue verified still open and live at intake (no merged PR found in the body evidence resolving it; the body scope stands). Acceptance criteria appended to the body by the fleet monitor (original body preserved verbatim above the new section); labels normalised per the taxonomy.

    Risks: Scope creep beyond the slice as written; dependencies named in the body (parent/design/gate issues) may gate the start. For claimed slices, the holding lane's own plan governs sequencing.

    Suggested approach: Work the slice exactly as scoped in the body, prove each acceptance bullet with a test, drill record or live read-back as its wording requires, and post the evidence on the issue before closing.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 05:14 CST
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: intake pass — acceptance criteria, label normalisation, related links
    • Expectation: enriched item is ready for triage/queue routing
    • Links: this issue
  7. dezren39 commented on Nov 25, 2026

    @dezren39
    Member

    CF-5a gate update (lane IW-332, task 23745): the #14865 write-amplification gate is now fully cleared.

    • sweep: eliminate write amplification (whole-table rewrites) in PM Stack, queues, bridge #14865 is closed and its fix, PR fix(decision-events): per-id seen keys stop whole-array rewrite per ingest (#14865) #14871 (per-id seen keys in the decision-events Durable Object), is merged — merge commit 1f7c0f0ed89885690ecc78ab550a564b6b7252ee.
    • Before merging, I verified the PR head remotely (fleet queue dispatch, never compiled locally):
      • At the original head ea3857653f: 25 pass / 1 fail — run 45607168278. The failure was events.test.ts "fans out exactly once on retry".
      • Control at main: suite green — run 45608280041. So the failure was introduced by the PR, not pre-existing.
      • Root cause: the fan-out retry test's mock Durable Object storage implemented only single-key get/put. The new per-id seen store calls storage.get with an array of keys (expecting a Map back, per the real DO contract), put with a record, and delete/list — the mock returned undefined for the multi-key get and ingest threw on retry. Production semantics were not at fault; the PR's own seen-store.test.ts FakeStorage already mirrors the real contract.
      • Fix pushed to the PR branch as commit 39cc7200b81 (test-only: give the events.test.ts mock the real storage contract). Re-run at the fixed head: all green — run 45610685197.

    Remaining sequence for this slice (unchanged from the 11:14Z resume note, now unblocked):

    1. Merge PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011 (draft; focused decision-pages tests passed remotely, run 45598681906 — re-check the broader console suite against current main first).
    2. Verify the server-side secret by name: DECISION_EVENTS_SECRET present on the pm-console-edge Worker (value never printed; it is the decision-events shared secret, held server-side only), and DECISION_PAGES=on.
    3. Authenticated GET probe through the DECISION_EVENTS service binding.
    4. Deploy per design §4: versions upload, commit-stamped health gate, versions deploy; rollback by version promotion. Record the per-surface outcome on this issue.

    Task 23745 is parked as a timed recheck with this sequence as its resume brief; the slice is not complete until step 4's record lands here.

  8. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    CF-5a resume verification update (task 23745): #14871 is confirmed merged at 1f7c0f0ed89885690ecc78ab550a564b6b7252ee, clearing the write-amplification gate. PR #15011 remains OPEN and draft; GitHub reports only the proof check as skipped, so it is not merge-ready from this verification. Focused merged-base verification has been submitted through Fleet as fp_eba4f9d57018294e9dd711080cd66421 for bun test test/decision-pages.test.ts test/edge.test.ts on cf5a/pm-hosted-read-surfaces-14967, but all execution surfaces currently lack capacity and it is still queued (no run ID/result). Fleet secret inventory lists cloudflare.decision-events.webhook-secret, but that does not prove the DECISION_EVENTS_SECRET binding is present on pm-console-edge; no Cloudflare read-back or authenticated service-binding GET was performed. No upload, promotion, flag enablement, secret change, or route flip was performed. Next: await Fleet run terminal status, then verify the live Worker secret/config and authenticated GET; only after all gates pass proceed with versions upload, commit-stamped health gate, deploy, and rollback rehearsal. #14967 remains incomplete.

  9. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    CF-5a conflict-resolution update (task 23745, lane xaltha):

    Next: when run 45879075530 is terminal and green, PR #15011 is merge-ready; then verify the secret by name + authenticated GET before the design §4 versions upload / health gate / deploy sequence. #14967 remains incomplete until that deploy record lands.

  10. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    CF-5a lane code-j resume check: PR #15011 remains an open draft. The hosted decision-pages focused + edge suite completed successfully through Fleet command workflow run 45879075530 (8 + suite result per run artifact; terminal succeeded). #14865 write-amplification gate is cleared via merged #14871. Read-only live Worker inventory using the fleet Cloudflare credential shows is absent on pm-console-edge; the required source secret name exists in Fleet, but was not installed. is absent/off in deployed Wrangler vars. No secret write, upload, promotion, flag enablement, route flip, or deployment was performed. The read-path is still default-off and no authenticated GET through the service binding was possible before deployment. Also, the review found legacy aggregator decision-link producers still emit token-bearing URLs (, ), so the issue's broad every-generated-link acceptance is not met by this partial PR. Resume only after a reviewed path addresses these gaps: align the CF release config's service binding with wrangler.jsonc, verify/put the shared secret through the approved release procedure, prove the authenticated GET, complete canonical-link coverage, then follow design §4 versions upload/health gate/promotion and record rollback evidence. No person/owner decision is being awaited.

  11. 22 remaining items

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

    @developing-today-fleet
    ContributorAuthor

    Lane code-f, task 23745: remote verification result consumed, lockfile drift fixed, re-dispatched.

    • Run 46079282583 (head ca7e094) completed failure — root cause is main drift, not the slice: bun install --frozen-lockfile refused because root package.json moved prettier-plugin-toml ^2.0.1 → ^4.1.0 (main commit ab946b4) while root bun.lock still pinned 2.0.1. No tests executed. Same failure reproduces on unmodified main.
    • Fix in this lane (lockfile only, no code): ran bun install in the slice worktree, committed root bun.lock (51+/5-, [email protected]), verified bun install --frozen-lockfile passes locally. Pushed 95c6d1937f6 to cf5a/pm-hosted-read-surfaces-14967; PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011 still draft, mergeable.
    • Re-dispatched remote verification on the new head via fleet-org surface: https://github.com/developing-today/fleet/actions/runs/46083224426 (handle fp_d0aa1d9c) — same command as before (root frozen install, edge tsc, console bun test, edge build, wrangler dry-run ×2).
    • Still outstanding, unchanged (Cloudflare-write lane only): live DECISION_EVENTS binding + secret-by-name proof, authenticated service-binding GET, PR merge, design §4 versioned release + health gate + promotion + rollback evidence.
  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane code-f, task 23745: remote verification on the lockfile-fix head is GREEN. Parking for the Cloudflare-write lane.

    • Run https://github.com/developing-today/fleet/actions/runs/46083224426 (head 95c6d1937f6) completed success: root bun install --frozen-lockfile clean, edge tsc clean, console bun test 869 pass / 0 fail, edge build clean, both wrangler deploy --dry-run (default + init/) clean.
    • PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011 still draft at 95c6d1937f6, mergeable clean. Slice diff vs main intact (6 files in pm-stack/console/edge +159, plus root bun.lock refresh).
    • Code-lane work is done. Remaining is Cloudflare-write-lane only: live DECISION_EVENTS binding + secret-by-name proof, authenticated service-binding GET, PR merge, design §4 versioned release + health gate + promotion + rollback evidence. No production changes; flag off.
  14. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane code-i, task 23745: merged current main into the slice branch and pushed.

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

    @developing-today-fleet
    ContributorAuthor

    Lane code-i, task 23745: remote verification on the merged head is GREEN. Parking for the Cloudflare-write lane.

    • Run https://github.com/developing-today/fleet/actions/runs/46088677403 (head 1afa65b) completed success: root bun install --frozen-lockfile clean, edge tsc clean, console bun test 869 pass / 0 fail, edge build clean, both wrangler deploy --dry-run (default + init/) clean.
    • PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011 still draft at 1afa65b, MERGEABLE/CLEAN. Slice diff vs origin/main intact (16 files: aggregator canonical-link coverage + console/edge decision pages, config, worker, wrangler + root bun.lock refresh).
    • Code-lane work is done. Remaining is Cloudflare-write-lane only: live DECISION_EVENTS binding + secret-by-name proof, authenticated service-binding GET, PR merge, design section 4 versioned release + health gate + promotion + rollback evidence. No production changes; flag off.
  16. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: task 23745 · cron repo-fleet-monitor run 2026-11-28 06:14 CST
    • Found via: monitor reconciliation
    • Task: Claim evaporation repair — task 23745 (slice-1 for this issue) has been claimed and parked repeatedly, its last checkpoint is stage verify_remote_green at 2026-11-28T01:49:52Z, and it was claimed again at 2026-11-28T08:00:26Z, but the lease expired and the task is now queued unclaimed in repo-health-code-pilot while this issue still carried queue/claimed + work/assigned. Labels reset to the truth: queue/queued + status/needs-triage. PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011 is already bound in the task's progress record — the next claimant resumes as its shepherd from the verify_remote_green checkpoint (remaining: Cloudflare-write lane — binding/secret proof, authenticated GET, staged deployment/health/rollback evidence); do NOT re-implement.
    • Expectation: m — resume from the checkpoint; the code side is verified green remotely, the deploy stage is what remains.
    • Links: task 23745 · PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011
  17. added
    queue/queued
    status/needs-triage
    and removed
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 28, 2026
  18. added
    queue/claimed
    and removed
    queue/claimed
    on Nov 28, 2026
  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: ready. Claim-evaporation churn (task 23745) obscured the checkpoint; the monitor's repair note is the key record. The no-credentials-in-URLs rule and server-side-secret shape are stated in the body.

    State: no blocker for the deploy stage. Code verified green remotely (PR #15011, checkpoint verify_remote_green). Remainder: binding/secret proof, authenticated GET, staged deploy/health/rollback evidence, #14865 check recorded pre-cutover. Next claimant: shepherd PR #15011 — do not re-implement.

    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 security shape is specified correctly (pages rendered by a Worker holding the shared secret by name; links re-pointed to the canonical name; no credentials in URLs), the #14865 write-amplification gate is named as a precondition — and that gate is now CLEARED (#14865 closed; fix PR #14871 merged). kind/infrastructure + priority/high already set.

    GAPS: The implementation slice is done and verified: PR #15011 (owner-gated /decisions index + ?set= detail over the decision-events binding, DECISION_PAGES default off) was merged up to current main and its remote verification is GREEN (run 46088677403: console tests 869 pass / 0 fail, edge tsc + build clean). It sits parked for the Cloudflare-write step: mark the PR ready, merge, deploy, and flip DECISION_PAGES on with a live readback at pm.security.cab.

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

    REMAINS: The deploy/flip step (Felix programme work; authenticated verification at pm.security.cab shares the Access question already pending with Drewry for the CF-5 family). Nothing else blocks.

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

    @developing-today-fleet
    ContributorAuthor

    Issue census — 2026-11-29

    Gaps found

    • None in metadata: kind/infrastructure, priority/high, effort/m, app/pm-stack, status/needs-triage + queue/queued present; ## Acceptance criteria section present.

    Strengths

    Actions taken by this census

    • Verified complete — no changes needed.
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/highqueue/queuedstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions