Skip to content

Questions, what needs you, and sessions: readable and answerable with no machine #13491

In progress

Description

@dezren39

Today. Four sections of the app are a machine's report: sessions, questions (and their count), what needs you (the census), and the dashboard's pages. With the laptop away they are as old as its last report, and an answer to a question is held until it is back. Machines (More, Machines) lists exactly these under "Only it reports".

What done looks like. For each, either the edge reads it from where it lives, or the screen says plainly that it is a machine's and why.

  • What needs you: these are GitHub issues by label in the repositories the config names (needsRepos). The edge can read them with the token it has, like the owner's prompts. need.comment is already done at the edge.
  • Questions: decision sets live with the aggregator on the laptop and their events already go to the decision-events Worker. Reading open questions and recording an answer at the edge needs that Worker (or its store) to be the place they are read from. See the one-platform plan (pm-stack/platform/README.md).
  • Sessions: what each lane is doing is only known to the machine running it. Each machine reports its own; with more than one machine the screen shows them by machine.
  • Tests with the machine away for each section the edge takes over.

Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.


Generated by Claude Code

Implemented slices

  • Questions document assembly — the edge-owned questionSets section is part of the Questions document and reads Worker-discovered sets/state while the laptop is away (PR #16085, merged as 64d27a696de400c4f9bc09220e9edb96ddf350b2). Focused remote verification on head 955885eda9504d6720678032be98684d80cdc562: 89 tests passed; typecheck and formatter-only checks passed.

Still open

  • Move question definitions and answer writes to the edge.
  • Report Sessions across machines.

Acceptance criteria

  • Delivered: Questions, what needs you, and sessions: readable and answerable with no machine — the outcome named in the title is demonstrably in place.
  • The implementation matches the scope, design record, and constraints stated in this issue body; no stated scope is silently dropped.
  • Verification evidence is recorded on this issue (tests run, commands executed, or measurement output), naming what was checked.
  • Any follow-on gaps found during the work are filed as their own issues and linked from this issue.

Activity

  1. added
    next
    app/pm-stack
    source/agent
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    First part merged as #14112 (58bbda7407bf, in service): what is labelled as needing the owner is read by Cloudflare itself, from each repository's own list of open issues carrying user/review or user/escalated. With the laptop away the three lists under Needs are current, and a new thing only the owner can do is told to his devices by the edge's own wake.

    • One function makes the three lists for both readings (pm-stack/console/src/needs.ts), and a test holds the list read at the edge to the list the dashboard makes of the same issues.
    • Asked for by tag: eight lists that have not changed cost nothing.
    • A repository the token cannot see is named on the screen; the screen now says when the list is not whole (it used to read as "Nothing needs your hands").
    • A laptop that has not said which repositories to look in goes on reporting the list itself.

    Not seen yet: whether the edge's token can see all four repositories. The edge's hourly check of its own reads next runs about 06:45Z; /console/health then has selfCheck.kinds.census, and github.kept rises by one for each list that answered (eight if all four repositories are readable).

    Found on the way: #14103. The dashboard's census asks GitHub's search in a form it answers 422 to. If the laptop's token is answered as mine is, the laptop's list has been empty.

    Still open here:

    • Questions. Decision sets live in the aggregator's file on the laptop and are answered through the dashboard's endpoint. Reading open questions and recording an answer with no machine needs them to live somewhere Cloudflare can read (the decision-events Worker or its store).
    • Sessions. What each lane is doing is only known to the machine running it; and what a session is waiting on the owner for comes from the dashboard's own tiers, not from labels.

    Generated by Claude Code

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Seen in service (06:55Z, /console/health): the edge's own hourly check ran at 06:45:48Z with the new read in it, and selfCheck.kinds.census is ok. refused is empty. github.kept went from 3 to 11, one for each of the eight lists, so all four repositories are readable by the edge's token: the list the app shows is whole.


    Generated by Claude Code

  5. added
    epic/pm-stack-maintenance
    primary-parent/pm-stack-maintenance
    on Nov 24, 2026
  6. 18 remaining items

  7. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Claim — lane 0647-L01 (Xaltha seat, 2026-11-29). Taking the next slice of the remainder: question definitions at the edge (the decision-events Worker serves set definitions so the edge Questions section carries question text/options, not just state), with the answer write path to follow in the same PR if it composes cleanly; Sessions-across-machines remains named as the surviving remainder if it does not fit this slice. Queue broker tunnel is down from this seat (EAGAIN on claim), so claiming by agent note per the no-queue fallback.

  8. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Progress (lane 0647-L01): the question definitions slice of the remainder landed in PR #16778 (merged 2026-11-29T13:21:04Z, merge commit 7d65a28cc).

    What changed:

    • The decision-events Worker stores a per-set definitions document (PUT/GET /sets/<id>/definitions, D1 table decision_set_definitions) — the DecisionSet projection with the page token and answer free text provably absent (regression-tested); a set's resolution is carried as a summary only.
    • The aggregator projects and publishes definitions from the stored sets on every sync (idempotent; unchanged sets are byte-identical no-ops).
    • The console's Questions document now reads definitions per set at the edge: the Questions section renders each set's questions (options, recommended lean, chosen option) with no laptop involved, and the definitions section marker reports "worker".

    Surviving remainder of this issue (named, still open):

    1. Answer write path at the edge — submitting an answer from the console still requires the laptop (the note in the Questions document says so).
    2. Report Sessions across machines — the Sessions section still reads one machine's session store.

    agent=xaltha lane=0647-L01 state=progress

  9. added
    priority/normal
    on Nov 29, 2026
  10. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census note — CEN-C13, 2026-11-29

    Full body + comments re-read firsthand for the 2026-11-29 census. (Re-delivered: the original posting pass was lost to GitHub's addComment secondary rate limit; labels below were applied live by the census.)

    Verdict: ready — actively progressing; the remainder is exactly two named items.

    Blocker: none external. Remainder: (1) the answer write path at the edge (submitting an answer still needs the laptop); (2) Sessions reporting across machines. Lane 0647-L01 claimed the remainder today (2026-11-29T12:47Z) and landed the definitions slice — PR #16778 merged today 2026-11-29T13:21Z.

    Gaps: no priority label; no status label (minor — the claim lives in comments).
    Strengths: the body carries a maintained "Implemented slices / Still open" section — rare, and exactly what a picker needs; every slice landed with remote-run evidence (PRs #14112, #14616, #15804, #16085, #16778).

    Labels (applied by the census): added priority/normal.

  11. added
    effort/l
    status/needs-triage
    on Nov 29, 2026
  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Audited live on 2026-11-29 against the house label taxonomy: details, labels, blockers, priority.

    Gaps found: missing labels at census time: status/needs-triage; no ## Acceptance criteria section in the body
    Strengths found: detailed body with scope and context a picker-up can start from; links a parent issue and/or design record; active discussion: 15 recent comment(s) skimmed
    Comment skim: comments show claim/progress (15 comments in the latest page).
    Actions taken by the census: labels added: status/needs-triage; appended ## Acceptance criteria section to the body (original text unchanged).

    Priority checked: the current priority label matches the census priority bands; no reprioritization made.

  13. dezren39 commented on Nov 30, 2026

    @dezren39
    MemberAuthor

    Claim (lane 2347-R-F, agent=xaltha): working the named remainder (a) — the answer write path at the edge. Bounded slice: the decision-events Worker accepts an answer for a set/question at the edge and the console Questions document submits answers there instead of requiring the laptop. Sessions-across-machines remains open after this slice.

    agent=xaltha lane=2347-R-F state=claimed

  14. dezren39 commented on Nov 30, 2026

    @dezren39
    MemberAuthor

    Progress (lane 2347-R-F): remainder (a), the answer write path at the edge, is implemented in PR #17083 (head d7885d3).

    • The decision-events Worker gains POST /sets/<setId>/answers: submissions are judged against the set's stored definitions with the laptop's own rules; an applied ruling joins the stored definitions as its resolution summary and is appended to the set's D1 event log with Durable Object fan-out, so the laptop reads the answer back from the event log when it returns.
    • The console edge gains submitQuestionAnswers, and the Questions discovery note now distinguishes the two cases (definitions read → answered at the edge; none → still needs the laptop).
    • Verification: fleet-run dispatches 46363330264 (Worker suite + typecheck) and 46363360768 (console questions tests) against the PR head; conclusions to follow here.

    Follow-on filed: #17084 (aggregator applying edge-recorded answers on return, so a republish cannot revert an edge ruling's summary). Surviving remainder of this issue: (b) Sessions reporting across machines.

    agent=xaltha lane=2347-R-F state=progress

  15. added 2 commits that reference this issue on Nov 30, 2026
  16. dezren39 commented on Nov 30, 2026

    @dezren39
    MemberAuthor

    Landed (lane 2347-R-F): PR #17083 merged 2026-11-30T06:11:48Z, merge commit c20e2c716d — remainder (a), the answer write path at the edge, is done.

    Verification of record: fleet-run 46363330264 (decision-events Worker suite + typecheck) SUCCESS; fleet-run 46364088088 (console questions tests, at final head 0331b37) SUCCESS. First console run 46363360768 failed on a single expectation in the new submit test (expected a redacted placeholder rather than the fixture secret); fixed and re-run green — recorded on the PR.

    Surviving remainder of this issue (named, still open):

    1. Report Sessions across machines — the Sessions section still reads one machine's session store.
    2. Follow-on Aggregator: apply edge-recorded decision answers on return (#13491 follow-on) #17084 — the aggregator applying edge-recorded answers on return.

    agent=xaltha lane=2347-R-F state=landed

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/lepic/pm-stack-maintenancekind/enhancementnextprimary-parent/pm-stack-maintenancepriority/normalsource/agentstatus/needs-triagestray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions