You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pm-console edge: limit the report endpoint, keep the Android build at the edge, deploy by the repo's cf flow #12521
Three smaller things left from putting the console on the edge (pm-stack/console/edge):
/console/edge/sync bypasses sign-in at Cloudflare because the laptop cannot sign in; the Worker checks the report's signature itself. A body with a bad signature is refused, but every one still wakes the Durable Object and is read. Add a limit per address before the body is read (the device paths already have one, Limiter in src/devices.ts).
The signed Android build is downloaded from the laptop (/console/pm-console.apk). With the laptop away the download fails. Keep a copy at the edge (R2 or the Worker's assets, uploaded by the sign step) and say in the app when the copy is older than the newest build.
The Worker is deployed by .github/workflows/pm-console-edge-deploy.yml with plain wrangler deploy. The repo's standard is the cf versions flow (see pkgs/queue-transport-alert/worker). Move it, keeping the health check and the rollback input.
Separately worth doing in the Android project (pm-stack/console/android): androidbrowserhelper 2.5.0 -> 2.7.4 and target SDK 36, which is what current Bubblewrap generates.
Filed from the session that put the console on the edge (code#12505, #12511, #12515, #12517).
Claimed queue task 21032. Fresh verification: #12521 is OPEN with no hold labels; related cutover PRs #12505, #12511, #12515, #12517 are MERGED. I am validating the remaining requested scope for triage and routing.
Triage verdict: real and current; not satisfied by the merged edge cutover work. Four independently testable scopes remain: (1) apply per-address limiting before reading /console/edge/sync request bodies; (2) keep signed APK artifacts at the edge and surface staleness versus newest build; (3) migrate deployment from plain wrangler deploy to the repo cf versions flow while retaining health check and rollback input; (4) update androidbrowserhelper 2.5.0→2.7.4 and target SDK 36. These are beyond a small fix and should be split/sized as implementation work. Related PRs #12505, #12511, #12515, #12517 are MERGED.
Queue triage task completed as triaged. Issue remains OPEN with status/ready and triage/real-and-current, routed to appropriately scoped implementation follow-ups.
Follow-on task 21035 is materially malformed: it is labeled small_fix, but its body and acceptance still only request triage. Issue #12521 has four separate implementation outcomes (pre-body API rate limiting; edge APK publishing and stale-build UX; cf versions deployment conversion; Android dependency/target SDK updates). The packet does not select one bounded change or provide its implementation test oracle. No implementation was started. Please replace/split it into scoped implementation tasks with explicit acceptance and tests.
Limit on the report endpoint: done (fix(pm-console): refuse bad reports unread, and say which commit the laptop runs #12715). A report that says it is too large or is not shaped like one is refused unread; an address with twenty refused reports in a minute is refused unread until the minute is out; a report the laptop signed that is merely wrong is not counted.
Android build at the edge: in feat(pm-console): keep the signed Android build at the edge #12723. The laptop's report describes its build, the edge asks for one it lacks and keeps it only if it matches its fingerprint, and serves it when it is the newest or the laptop is away. The app says when the copy is older.
cf release flow: staged, not live.deploy(pm-console): stage protected cf release #12561 (draft) adds the workflow. It needs two protected GitHub environments, each with its own Cloudflare token, before it can be dispatched. Creating those is a settings and credentials decision that was not taken here. The current wrangler deploy workflow keeps working, with its health check and rollback input.
androidbrowserhelper 2.7.4 and SDK 36: not done. It needs a build-tooling upgrade tried in CI and a signed build tried on a phone.
Parts 3 and 4 are each one outcome with their own test, so they can be taken separately from here.
Agent note — triage (task 21140, lane agent-next-13-local, 2026-11-23)
State: transient CI incident; no reproducible code defect or fix packet warranted.
Failed run 45121364544 at dec4e883b8b6 successfully stood up pm-console-edge-scratch, uploaded version a9a63432-13c9-4716-921c-a0c1fea9f74c, and promoted it to 100%. The only failure was the health readback: it stayed silent through about 4m05s of retries. Rollback to the empty version and scratch Worker removal both succeeded.
Later run 45122274288 passed the scratch stand-up, upload, promotion, health check, cleanup, production deploy, and production health check. Its scratch path completed in about 18s.
The only release-path change between the two commits is diagnostic logging in pm-stack/console/edge/release.mjs and its test; retry count, timeout, cache-control header, deployment order, and rollback behavior were unchanged.
Current code already uses 40 health attempts at 6s intervals with a 10s fetch timeout and cache-control: no-cache. The isolated silent response followed by a clean immediate rerun is consistent with transient workers.dev propagation or edge routing, not a confirmed defect.
No fix packet was enqueued. #12521 remains open for its separately tracked console-edge work.
Recurrence (main-ci-watch 2026-11-23T12:00Z): run 45167997167 (push, head 3ac8e1a) failed at step 11 "Stand a scratch Worker up from nothing, deploy this commit to it, and remove it": after uploading scratch OK, a follow-up Cloudflare API call failed with "This Worker does not exist on your account. [code: 10007]", exit 1 (gh run view 45167997167 --repo developing-today/code --log-failed). Manual dispatch run 26 (45168562340) on newer head 36b25a0 succeeded 11:49Z, so the tracked fix effort stands; deduped, no duplicate task/session. Relevant only if the scratch-stand-up race recurs.
Claim — Lane WN (archer), 2026-11-23. Taking item 1 of #12521 only: add a per-address limit on the /console/edge/sync path before the body is read, mirroring the Limiter the device paths already use in src/devices.ts.
Premise check (fresh reads): issue open, no live claim — the two newest comments are a CI triage note and a main-ci-watch recurrence note, neither a claim. Items 2 (edge copy of the signed Android build) and 3 (cf versions deploy flow) are not in this slice; the issue stays open on them.
Lane WN — item 1 verified ALREADY LANDED on current main; claim released, no code change.
Premise verdict: item 1's ask ("add a limit per address before the body is read" on /console/edge/sync) is implemented and tested on main today (bcc8043b59a):
pm-stack/console/edge/src/edge.ts, sync() (line ~996): the handler opens with a per-address KeyedLimiter (syncRefused, SYNC_REFUSALS = 20 failed reports per 60 s window, keyed on cf-connecting-ip). A blocked address gets 429 before anything is read — the code comment states the design in the issue's own terms ("refused here, before its body is read"). Every pre-signature refusal (oversize by header, unshaped signature, unknown key, oversize body, bad signature) counts against the address; reports the host actually signed are never held against it.
Tests: pm-stack/console/test/edge.test.ts — "an address whose reports keep failing is refused unread, and nobody else is" pins the behaviour literally (a body whose stream errors the moment it is touched is never touched once the address is blocked; other addresses and the host's own signed reports are unaffected; the address may retry after the window). Full edge suite run first-hand on the laptop at current main: 88 pass / 0 fail, 1,240 expect() calls.
So item 1 needs no slice. #12521 stays open on item 2 (edge copy of the signed Android build + staleness notice), item 3 (move the deploy to the cf versions flow), and the Android bumps (androidbrowserhelper 2.7.4, target SDK 36). No claim held by this lane.
agent-note:v1 — claim: Lane AU7 (archer), 2026-11-23. Taking item 3 of #12521 only: move the pm-console edge Worker deploy from plain wrangler deploy in .github/workflows/pm-console-edge-deploy.yml to the repo's cf versions flow (the pkgs/queue-transport-alert/worker pattern), keeping the health check and the rollback input.
Premise + ownership check (fresh, 2026-11-23): issue open; comments count-confirmed at 10. Item 1 verified already landed by Lane WN (c.7101816572, claim released). Items 2 (edge copy of the signed Android build) and the Android bumps (androidbrowserhelper 2.7.4, target SDK 36) are NOT in this slice and are not claimed here; no live claim on item 3, no user/* label, no design/ratification gate, no recorded flag hold. fleet agent next returned no claimable task (queue rung down), so this was picked directly from GitHub.
The issue stays open on items 2 and the Android bumps regardless of this slice.
Lane AU7 — claim on item 3 RELEASED; premise found already staged, remainder is a settings/credentials decision.
Premise verdict on re-check (fresh reads, 2026-11-23): item 3's code side already exists. Draft PR #12561 (codex/pm-console-cf-versions, open, draft, +379/−0) stages the complete cf release flow for this Worker: .github/workflows/pm-console-edge-cf-release.yml (dispatch-only, upload/release stages, no-secret parity job first), pm-stack/console/edge/cloudflare.config.ts, and pm-stack/console/edge/wrangler.config.ts. It deliberately leaves the current wrangler workflow as the production path.
What remains is not code: the staged workflow needs two protected GitHub environments (pm-console-edge-upload, pm-console-edge-production), each with its own scoped Cloudflare token (CF_PM_EDGE_UPLOAD_*, CF_PM_EDGE_PROMOTE_*), before it can be dispatched — per the status record on this issue (c.7088052897): "Creating those is a settings and credentials decision that was not taken here." That decision, plus bringing #12561 out of draft once the environments exist, is the whole remainder of item 3. A fix lane does not mint production Cloudflare tokens or create protected environments on its own authority, so I am recording it here for the coordinator to surface rather than landing anything.
Also noting for the record: item 2 is recorded as done in #12723 (same status comment), so #12521's open remainder is item 3 (above) and item 4 (androidbrowserhelper 2.7.4 + target SDK 36 — needs a build-tooling upgrade tried in CI and a signed build tried on a phone). No code changed by this lane; no claim held.
Activity
developing-today commentedon Nov 22, 2026
CODE-4618
dezren39 commentedon Nov 22, 2026
agent-note:v1
state: picked_up
task: 21032
lane: oc-code-04
stage: claimed
Claimed queue task 21032. Fresh verification: #12521 is OPEN with no hold labels; related cutover PRs #12505, #12511, #12515, #12517 are MERGED. I am validating the remaining requested scope for triage and routing.
dezren39 commentedon Nov 22, 2026
agent-note:v1
state: triaged
task: 21032
lane: oc-code-04
stage: verified
Triage verdict: real and current; not satisfied by the merged edge cutover work. Four independently testable scopes remain: (1) apply per-address limiting before reading
/console/edge/syncrequest bodies; (2) keep signed APK artifacts at the edge and surface staleness versus newest build; (3) migrate deployment from plainwrangler deployto the repocfversions flow while retaining health check and rollback input; (4) update androidbrowserhelper 2.5.0→2.7.4 and target SDK 36. These are beyond a small fix and should be split/sized as implementation work. Related PRs #12505, #12511, #12515, #12517 are MERGED.dezren39 commentedon Nov 22, 2026
agent-note:v1
state: done
task: 21032
lane: oc-code-04
stage: triaged
Queue triage task completed as triaged. Issue remains OPEN with status/ready and triage/real-and-current, routed to appropriately scoped implementation follow-ups.
1 remaining item
dezren39 commentedon Nov 22, 2026
agent-note:v1
state: blocked
task: 21035
lane: oc-code-04
stage: packet_defect
Follow-on task 21035 is materially malformed: it is labeled
small_fix, but its body and acceptance still only request triage. Issue #12521 has four separate implementation outcomes (pre-body API rate limiting; edge APK publishing and stale-build UX; cf versions deployment conversion; Android dependency/target SDK updates). The packet does not select one bounded change or provide its implementation test oracle. No implementation was started. Please replace/split it into scoped implementation tasks with explicit acceptance and tests.dezren39 commentedon Nov 23, 2026
Status of the four parts.
cfrelease flow: staged, not live. deploy(pm-console): stage protected cf release #12561 (draft) adds the workflow. It needs two protected GitHub environments, each with its own Cloudflare token, before it can be dispatched. Creating those is a settings and credentials decision that was not taken here. The currentwrangler deployworkflow keeps working, with its health check and rollback input.Parts 3 and 4 are each one outcome with their own test, so they can be taken separately from here.
Generated by Claude Code
dezren39 commentedon Nov 23, 2026
Agent note — triage (task 21140, lane agent-next-13-local, 2026-11-23)
State: transient CI incident; no reproducible code defect or fix packet warranted.
dec4e883b8b6successfully stood uppm-console-edge-scratch, uploaded versiona9a63432-13c9-4716-921c-a0c1fea9f74c, and promoted it to 100%. The only failure was the health readback: it stayed silent through about 4m05s of retries. Rollback to the empty version and scratch Worker removal both succeeded.pm-stack/console/edge/release.mjsand its test; retry count, timeout, cache-control header, deployment order, and rollback behavior were unchanged.cache-control: no-cache. The isolated silent response followed by a clean immediate rerun is consistent with transient workers.dev propagation or edge routing, not a confirmed defect.No fix packet was enqueued. #12521 remains open for its separately tracked console-edge work.
dezren39 commentedon Nov 23, 2026
Recurrence (main-ci-watch 2026-11-23T12:00Z): run 45167997167 (push, head 3ac8e1a) failed at step 11 "Stand a scratch Worker up from nothing, deploy this commit to it, and remove it": after uploading scratch OK, a follow-up Cloudflare API call failed with "This Worker does not exist on your account. [code: 10007]", exit 1 (
gh run view 45167997167 --repo developing-today/code --log-failed). Manual dispatch run 26 (45168562340) on newer head 36b25a0 succeeded 11:49Z, so the tracked fix effort stands; deduped, no duplicate task/session. Relevant only if the scratch-stand-up race recurs.dezren39 commentedon Nov 23, 2026
Claim — Lane WN (archer), 2026-11-23. Taking item 1 of #12521 only: add a per-address limit on the
/console/edge/syncpath before the body is read, mirroring theLimiterthe device paths already use insrc/devices.ts.Premise check (fresh reads): issue open, no live claim — the two newest comments are a CI triage note and a main-ci-watch recurrence note, neither a claim. Items 2 (edge copy of the signed Android build) and 3 (cf versions deploy flow) are not in this slice; the issue stays open on them.
dezren39 commentedon Nov 23, 2026
Lane WN — item 1 verified ALREADY LANDED on current main; claim released, no code change.
Premise verdict: item 1's ask ("add a limit per address before the body is read" on
/console/edge/sync) is implemented and tested on main today (bcc8043b59a):pm-stack/console/edge/src/edge.ts,sync()(line ~996): the handler opens with a per-addressKeyedLimiter(syncRefused,SYNC_REFUSALS = 20failed reports per 60 s window, keyed oncf-connecting-ip). A blocked address gets 429 before anything is read — the code comment states the design in the issue's own terms ("refused here, before its body is read"). Every pre-signature refusal (oversize by header, unshaped signature, unknown key, oversize body, bad signature) counts against the address; reports the host actually signed are never held against it.8a1a0fbbe5f6(feat(pm-console): a Sign-in screen that turns Google sign-in on #12517, the console-on-the-edge body of work this issue was filed as leftovers from).pm-stack/console/test/edge.test.ts— "an address whose reports keep failing is refused unread, and nobody else is" pins the behaviour literally (a body whose stream errors the moment it is touched is never touched once the address is blocked; other addresses and the host's own signed reports are unaffected; the address may retry after the window). Full edge suite run first-hand on the laptop at current main: 88 pass / 0 fail, 1,240 expect() calls.So item 1 needs no slice. #12521 stays open on item 2 (edge copy of the signed Android build + staleness notice), item 3 (move the deploy to the
cfversions flow), and the Android bumps (androidbrowserhelper 2.7.4, target SDK 36). No claim held by this lane.dezren39 commentedon Nov 23, 2026
agent-note:v1 — claim: Lane AU7 (archer), 2026-11-23. Taking item 3 of #12521 only: move the pm-console edge Worker deploy from plain
wrangler deployin.github/workflows/pm-console-edge-deploy.ymlto the repo'scfversions flow (the pkgs/queue-transport-alert/worker pattern), keeping the health check and the rollback input.Premise + ownership check (fresh, 2026-11-23): issue open; comments count-confirmed at 10. Item 1 verified already landed by Lane WN (c.7101816572, claim released). Items 2 (edge copy of the signed Android build) and the Android bumps (androidbrowserhelper 2.7.4, target SDK 36) are NOT in this slice and are not claimed here; no live claim on item 3, no user/* label, no design/ratification gate, no recorded flag hold.
fleet agent nextreturned no claimable task (queue rung down), so this was picked directly from GitHub.The issue stays open on items 2 and the Android bumps regardless of this slice.
dezren39 commentedon Nov 23, 2026
Lane AU7 — claim on item 3 RELEASED; premise found already staged, remainder is a settings/credentials decision.
Premise verdict on re-check (fresh reads, 2026-11-23): item 3's code side already exists. Draft PR #12561 (
codex/pm-console-cf-versions, open, draft, +379/−0) stages the complete cf release flow for this Worker:.github/workflows/pm-console-edge-cf-release.yml(dispatch-only, upload/release stages, no-secret parity job first),pm-stack/console/edge/cloudflare.config.ts, andpm-stack/console/edge/wrangler.config.ts. It deliberately leaves the current wrangler workflow as the production path.What remains is not code: the staged workflow needs two protected GitHub environments (
pm-console-edge-upload,pm-console-edge-production), each with its own scoped Cloudflare token (CF_PM_EDGE_UPLOAD_*,CF_PM_EDGE_PROMOTE_*), before it can be dispatched — per the status record on this issue (c.7088052897): "Creating those is a settings and credentials decision that was not taken here." That decision, plus bringing #12561 out of draft once the environments exist, is the whole remainder of item 3. A fix lane does not mint production Cloudflare tokens or create protected environments on its own authority, so I am recording it here for the coordinator to surface rather than landing anything.Also noting for the record: item 2 is recorded as done in #12723 (same status comment), so #12521's open remainder is item 3 (above) and item 4 (androidbrowserhelper 2.7.4 + target SDK 36 — needs a build-tooling upgrade tried in CI and a signed build tried on a phone). No code changed by this lane; no claim held.