From eb7a96b74aa4ec9268b2e9887e1b9b061878ce33 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 23:55:05 -0600 Subject: [PATCH 1/2] feat(pm-console): the edge reads what is labelled as needing the owner itself "What needs you" came from the laptop's dashboard, which censuses two GitHub labels across the configured repositories. With the laptop away the list was as old as its last report, and nothing told the owner of a new thing only he could do. The edge now reads it from GitHub itself: each repository's own list of open issues carrying each label (the list has pull requests too), asked for by its tag like any other list, so eight lists that have not changed cost nothing. The three lists the app shows are made by one function for both readings (src/needs.ts). The dashboard's two readers of an item's body are copied there, since the dashboard's module needs a machine's files; a test holds each copy to the original for any body, and another holds the list read here to the list the dashboard makes of the same issues. A repository the token cannot see is named and the rest is shown. Any other failure (called too often, out of reach) ends the read at once and nothing more is asked. No repository readable at all is a failed read, never an empty list. A new thing only the owner can do is told to his devices by the edge's own wake, with no machine reporting. Found on the way and fixed here: - The screen never said a list was incomplete: an empty, incomplete census read as "Nothing needs your hands." It says so now, and names what could not be read where the reader says. - Each card's "updated" time was shortened like a title, with a mark at the cut, which made it no time at all: every card said "updated" and nothing after. It is cut to the second. Found on the way and filed (#14103): the dashboard's census asks the search in a form GitHub answers 422 to (neither is:issue nor is:pull-request). The edge's reading does not use the search. Tests: 458 pass (21 new). Real runtime: 47 checks. 38 planted faults, all caught. Refs #13491, #13504, #14103. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF --- ...rchitecture_pm_platform_cloudflare_core.md | 75 ++++ planning/roadmaps/pm-stack.md | 2 +- pm-stack/console/edge/README.md | 34 +- pm-stack/console/edge/src/direct.ts | 5 +- pm-stack/console/edge/src/edge.ts | 2 +- pm-stack/console/public/app.js | 20 +- pm-stack/console/scripts/edge-smoke.ts | 39 +- pm-stack/console/src/needs.ts | 278 +++++++++++++ pm-stack/console/src/work.ts | 57 ++- pm-stack/console/test/app.test.ts | 26 +- pm-stack/console/test/direct.test.ts | 1 + pm-stack/console/test/edge.test.ts | 293 ++++++++++++- pm-stack/console/test/needs.test.ts | 385 ++++++++++++++++++ pm-stack/console/test/work.test.ts | 75 ++++ 14 files changed, 1224 insertions(+), 68 deletions(-) create mode 100644 pm-stack/console/src/needs.ts create mode 100644 pm-stack/console/test/needs.test.ts diff --git a/doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core.md b/doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core.md index 108810bd14..8c93c81429 100644 --- a/doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core.md +++ b/doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core.md @@ -1162,3 +1162,78 @@ action still out at the host does not hold back a newer one about the same thing that the edge can do at once (a rank sent to the host, then another the edge makes directly within the minute): the edge does not keep track of askings that are out by what they are about. + +## 2026-11-24T05:55Z Update: what is labelled as needing the owner, read at the edge (#13491, first part) + +**What it was.** "What needs you" came from the laptop's dashboard, +which censuses two GitHub labels (`user/review`, `user/escalated`) +across the four repositories. With the laptop away the list was as old +as its last report, and nothing told the owner of a new thing only he +could do. + +**What it does now.** The edge reads it from GitHub itself, like the +owner's prompts: each repository's own list of open issues carrying +each label. The three lists the app shows (what only he can do, +reviews, the rest) are made by one function, used for both readings, +so the app shows the same thing whoever read it. The dashboard's two +readers of an item's body (a stated reason, the hands mark of +FDR-0013) are copied into `src/needs.ts`, because the dashboard's +module needs a machine's files and cannot be part of the Worker; a +test holds each copy to the original for any body, and another holds +the whole list read here to the list the dashboard makes of the same +issues. + +**Why the lists and not the search.** The lists are on the hour's +allowance and answer "not modified" by their tags, so eight lists that +have not changed cost nothing; the search is counted by the minute, +gives no tags, and lags. And the search no longer takes the question +the way the dashboard asks it: see below. + +**How it fails.** A repository the token cannot see is named and the +rest is shown, with the app saying the list is not whole. Called too +often, out of reach, or GitHub in trouble: the read ends at the first +such answer and nothing more is asked. No repository readable at all +is a failed read, so the last good copy stays and says why. Refused +for all of it, the list is left to a machine for the hour, as with +anything else the edge reads. + +**Three faults found on the way, none of them in this change.** + +- The dashboard's census asks the search for + `repo: state:open label:"