Repository navigation
Description
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
developing-today commentedon Nov 25, 2026
CODE-5450
CF-5a: owner-gated read-only decision activity pages off D1 decision-…
dezren39 commentedon Nov 25, 2026
CF-5a implementation slice is staged in draft PR #15011: owner-gated
/decisionsHTML index and?set=activity detail page read through the authenticated decision-events Worker binding; pages default off (DECISION_PAGES=onrequired), links canonical tohttps://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.tsoncf5a/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.dezren39 commentedon Nov 25, 2026
CF-5a verification update:
cf5a/pm-hosted-read-surfaces-14967ref. Its command wasbun test test/decision-pages.test.tsfrompm-stack/console: 8 pass, 0 fail.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.
developing-today-fleet commentedon Nov 25, 2026
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
dezren39 commentedon Nov 25, 2026
CF-5a gate update (lane IW-332, task 23745): the #14865 write-amplification gate is now fully cleared.
1f7c0f0ed89885690ecc78ab550a564b6b7252ee.ea3857653f: 25 pass / 1 fail — run 45607168278. The failure wasevents.test.ts"fans out exactly once on retry".main: suite green — run 45608280041. So the failure was introduced by the PR, not pre-existing.storage.getwith an array of keys (expecting a Map back, per the real DO contract),putwith a record, anddelete/list— the mock returnedundefinedfor the multi-key get and ingest threw on retry. Production semantics were not at fault; the PR's ownseen-store.test.tsFakeStorage already mirrors the real contract.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):
DECISION_EVENTS_SECRETpresent on thepm-console-edgeWorker (value never printed; it is the decision-events shared secret, held server-side only), andDECISION_PAGES=on.DECISION_EVENTSservice binding.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.
dezren39 commentedon Nov 26, 2026
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 asfp_eba4f9d57018294e9dd711080cd66421forbun test test/decision-pages.test.ts test/edge.test.tsoncf5a/pm-hosted-read-surfaces-14967, but all execution surfaces currently lack capacity and it is still queued (no run ID/result). Fleet secret inventory listscloudflare.decision-events.webhook-secret, but that does not prove theDECISION_EVENTS_SECRETbinding is present onpm-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.dezren39 commentedon Nov 26, 2026
CF-5a conflict-resolution update (task 23745, lane xaltha):
origin/main(2bd436c) intocf5a/pm-hosted-read-surfaces-14967as merge commite58033df6and pushed it to PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011. The conflicts inpm-stack/console/edge/src/edge.tsandpm-stack/console/edge/src/worker.ts(edge-shared.ts auto-merged) were additive: main added the hosted ledger/dns surfaces (CF-5b (#14945): M4 ledger surfaces hosted — /alerts, /notifications, /dns, /comments #14968) plus owner-settings/quota wiring, this branch adds the owner-gated decision pages. Resolution keeps both — decision routing runs first, then ledger, then dns; worker env and EdgeOptions wiring keep both sets of bindings/flags. No decision-page behaviour was changed.fleet queue dispatchstill fails with the TLS defect (fleet: repo-queue dispatch fails with TLS UnknownIssuer behind the egress proxy (Rust TLS ignores SSL_CERT_FILE) #13185, UnknownIssuer), so verification went through the fleet-command workflow fallback: run 45879075530 —cd pm-stack/console && bun test test/decision-pages.test.ts test/edge.test.tson the merged head. It is queued at the time of this note (runner capacity); its terminal result is the next gate.DECISION_EVENTS_SECRETbinding presence onpm-console-edgeand the authenticated GET probe through theDECISION_EVENTSbinding. No upload, promotion, flag enablement, secret change, or route flip was performed.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.
dezren39 commentedon Nov 26, 2026
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.
22 remaining items
developing-today-fleet commentedon Nov 27, 2026
Lane code-f, task 23745: remote verification result consumed, lockfile drift fixed, re-dispatched.
bun install --frozen-lockfilerefused because rootpackage.jsonmovedprettier-plugin-toml^2.0.1 → ^4.1.0 (main commit ab946b4) while rootbun.lockstill pinned 2.0.1. No tests executed. Same failure reproduces on unmodified main.bun installin the slice worktree, committed rootbun.lock(51+/5-,[email protected]), verifiedbun install --frozen-lockfilepasses locally. Pushed95c6d1937f6tocf5a/pm-hosted-read-surfaces-14967; PR CF-5a: stage owner-gated D1 decision activity pages (default off) #15011 still draft, mergeable.developing-today-fleet commentedon Nov 27, 2026
Lane code-f, task 23745: remote verification on the lockfile-fix head is GREEN. Parking for the Cloudflare-write lane.
95c6d1937f6) completedsuccess: rootbun install --frozen-lockfileclean, edgetscclean, consolebun test869 pass / 0 fail, edge build clean, bothwrangler deploy --dry-run(default +init/) clean.95c6d1937f6, mergeable clean. Slice diff vs main intact (6 files in pm-stack/console/edge +159, plus root bun.lock refresh).developing-today-fleet commentedon Nov 28, 2026
Lane code-i, task 23745: merged current main into the slice branch and pushed.
developing-today-fleet commentedon Nov 28, 2026
Lane code-i, task 23745: remote verification on the merged head is GREEN. Parking for the Cloudflare-write lane.
developing-today-fleet commentedon Nov 28, 2026
🤖 Agent note · handed off
verify_remote_greenat 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 theverify_remote_greencheckpoint (remaining: Cloudflare-write lane — binding/secret proof, authenticated GET, staged deployment/health/rollback evidence); do NOT re-implement.dezren39 commentedon Nov 29, 2026
🤖 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.)
developing-today-fleet commentedon Nov 29, 2026
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.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found
## Acceptance criteriasection present.Strengths
Actions taken by this census