Repository navigation
Done
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeepic/pm-stack-maintenancePer-project maintenance for pm-stackkind/enhancementnextOrg Project gate: queued next — orchestrator adds to the boardprimary-parent/pm-stack-maintenancePrimary parent epic pm-stack-maintenance (design §3)priority/lowNice to have; do when convenientsource/agentCreated by an agent workerstatus/needs-triageNot yet triaged; needs a first lookstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)
Description
Today. The edge reads pull requests, ranked issues and the owner's prompts from GitHub with the repository automation token, which is the fleet's token on the owner's account. GitHub's hourly allowance is per account. On 2026-11-23 at about 16:22Z the edge's read of pull requests failed with "API rate limit exceeded for user ID 11225574": the fleet had used the hour. The edge treats that as "one too many just now", hands the read to a machine for five minutes (whose token is the same account, so it fails too), and asks again. Nothing is lost, but the core is not readable until the hour turns.
What done looks like.
- The edge's reads and writes of GitHub do not draw on the allowance agents draw on. Two ways, not exclusive:
- Conditional requests. The edge keeps each list's
ETagand sendsIf-None-Match; an unchanged list answers 304 and costs nothing against the allowance. This needs no new identity and can be done now inghApi(pm-stack/console/edge/src/direct.ts), with the kept answer per address held in the Durable Object. - An installation token of a GitHub App of its own, which has its own allowance. This is a new identity on the account and wants the owner's say-so before it is made.
- Conditional requests. The edge keeps each list's
- When the allowance is used up all the same, the app says so in those words on the screens it affects ("GitHub's hourly allowance for the account is used up; this is as of HH:MM"), not "could not be read".
- A test in
test/direct.test.tsfor the conditional read (200 then 304 returns the kept answer; a changed list replaces it), and one intest/edge.test.tsthat a limited read shows the last good copy with its age.
Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.
Generated by Claude Code
Acceptance criteria
- Delivered: Pm-console edge: its own GitHub allowance, so the core does not stop when the fleet is busy — 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.
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeepic/pm-stack-maintenancePer-project maintenance for pm-stackkind/enhancementnextOrg Project gate: queued next — orchestrator adds to the boardprimary-parent/pm-stack-maintenancePrimary parent epic pm-stack-maintenance (design §3)priority/lowNice to have; do when convenientsource/agentCreated by an agent workerstatus/needs-triageNot yet triaged; needs a first lookstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)
Activity
developing-today commentedon Nov 23, 2026
CODE-4918
docs(planning): the edge's GitHub allowance is under way (#13489)
Merge pull request #13570 from developing-today/claude/pm-etags
dezren39 commentedon Nov 23, 2026
The half that needs no new identity is merged (#13570):
github: { answers, unchanged, kept, quiet }.Still open here: the edge has no allowance of its own. When the agents use the hour up it is turned away with them until the hour turns. That takes its own identity on the account (a GitHub App's installation token), which is the owner's to create.
Also left, and its own change: with the allowance used up and no machine, something the owner does is kept for a machine. The edge should do what it holds itself once GitHub answers again.
Generated by Claude Code
dezren39 commentedon Nov 24, 2026
Correction to what was said here on 2026-11-23. The first half of this (#13570: lists asked for by their tags, so that one that has not changed costs nothing) did not work in service. The answers were kept in the Worker object's memory, and Cloudflare puts an idle object away after about ten seconds; every read was made by an object that had kept nothing, so every read was a full one. Health on the live Worker showed it at 00:45Z on 2026-11-24:
github: {answers: 0, unchanged: 0, kept: 0}seven minutes after a self-check that had made four reads.#14000 (merged 02:08Z, deployed as
fbbba7f607e9) keeps the answers, GitHub's ask-again times and the count in the object's storage, and the real-runtime check now leaves the Worker alone until another object answers before it asks whether a list is still asked for by its tag. With the answers in memory, as first built, that check fails.What the live Worker has shown since the deploy:
woke(when the object answering started) was different on eight of nine.answers: 0), and its hourly check of its own reads is next due at 02:39Z. So GitHub's "not modified" to the deployed Worker is not shown yet. I will read health after that check and say here what it shows.Still open here, unchanged: the edge has no allowance of its own. When the agents use the hour up it is turned away with them. That takes an identity of its own on the account, which is the owner's to make.
What else in the object rests on the same wrong assumption is listed in #14001.
Generated by Claude Code
dezren39 commentedon Nov 24, 2026
What the live Worker showed at 02:39Z (version
fbbba7f607e9, #14000):answers: 5, unchanged: 0, kept: 3, and said exactly the same from two objects that started after it (woke02:39:58 and 02:40:28), withsincestill 02:39:26. What is kept of GitHub, and the count, now outlive the object in service. That is the part that was broken.etag,search/issuesdoes not). Ranked issues are a search, so they are a full answer every time; they draw on the search allowance, not the hour's.Not yet seen: GitHub answering the deployed Worker "not modified". Nothing has asked for a kept list a second time: nobody has had the app open, and the next check of its own reads is at 03:39Z. I will read health after that and add what it shows here.
#14022 (merged 02:42Z) is the first of #14001: the released build's ten-minute gate stored, a deadline for the queue store, and
clockin health, which says whether the object wakes itself each minute and when it next will.Generated by Claude Code
dezren39 commentedon Nov 24, 2026
Seen in service at 03:42Z: GitHub answers the deployed Worker's tagged reads "not modified".
answers: 5, unchanged: 0, kept: 3, counted since 02:39:26, when an object stored the answers.answers: 9, unchanged: 2, kept: 3. A minute later:answers: 11, unchanged: 3, kept: 3.92e3463a139d). The tags it asked by were put in storage an hour earlier by another object, two deploys back.So the saving that was claimed on 2026-11-23 and was not real is real now: a tagged list that has not changed is answered "not modified", which GitHub does not count against the hourly allowance. Two things bound it, both said above: searches carry no tag, so ranked issues are a full answer each time (on the search allowance), and a list that has changed is a full answer.
What is left on this issue is unchanged: the edge has no allowance of its own, and is turned away with the agents when they use the hour up. That takes an identity of its own on the account, which is the owner's to make.
Generated by Claude Code
dezren39 commentedon Nov 24, 2026
Triage verdict — oc-code-01, 2026-11-24 (queue task 22325)
Fresh check against origin/main:
No new packet is filed in this pass. No code changed in this pass.
dezren39 commentedon Nov 24, 2026
Triage by oc-code-02 (queue task 23148), 2026-11-24. Fresh check: option 1 (conditional requests) and the 'used up' wording are landed (#13570, #14000, #13511). Remaining: confirm kept answers hold across objects in service, which is the open check in the 03:46Z note. Option 2 (a GitHub App with its own allowance) is not built and is not pursued now. Decision recorded here: keep option 1 and create no App; revisit only if the allowance is still exhausted after the kept-answer check. Issue stays open for that verification; no code changed in this pass.
dezren39 commentedon Nov 24, 2026
Triage verdict — oc-code-04, 2026-11-24 (queue task 23148)
Fresh check (issue state OPEN, no activity since the 12:44Z triage note; no commits or PRs referencing #13489 since then):
answers: 9->11, unchanged: 2->3, kept: 3), with tags surviving across objects and deploys. docs(pm-console): GitHub's "not modified" to the deployed Worker, seen in service #14057 merged to record that observation in docs.No follow-on packet filed: there is nothing actionable left to route — option 1 is done and verified, option 2 is a declined-by-default owner hands item. Issue stays open as the record for option 2. No code changed in this pass.
developing-today-fleet commentedon Nov 26, 2026
Triage verdict (oc-code-01, 2026-11-26): core remediation remains implemented and verified; no new evidence changes the prior disposition. Fresh PR search confirms #13570, #14000, #13511 and #14057 are all MERGED; issue notes document live 304 responses surviving across objects/deploys and the allowance-exhausted wording. The separate GitHub App identity is not pursued: default remains no new account identity; revisit only if logs show the edge still exhausting its allowance after the conditional-read/storage fix. No current exhaustion evidence or scoped code work warrants a new packet. Keep this issue open as the decision/monitoring record.
developing-today-fleet commentedon Nov 27, 2026
🤖 Triage verdict — oc-code-05, task 25529 (2026-11-27)
Fresh verification: #13489 OPEN, no hard-stop labels. Conditional reads and durable ETag cache (#13570, #14000) are merged and verified in service; allowance-exhausted wording (#13511) is merged; #14057 records the cross-object observation. Recent comments contain no evidence the edge is still exhausting the allowance after these fixes.
Disposition: no new implementation packet. The only remaining option is a distinct GitHub App identity with its own allowance; prior triage records the default decision as not to create that identity, and revisit only if live evidence shows exhaustion persists. Keep this issue open as the decision/monitoring record. No code or account identity changed.
dezren39 commentedon Nov 29, 2026
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: stale — as a work item: implementation complete and verified; the issue survives as a decision record.
Blocker: none. The remainder is option 2 (the edge's own GitHub App identity) — an owner-created identity with a standing recorded default of NOT creating it; the revisit trigger is live evidence of allowance exhaustion after the fix (none since).
Gaps: no priority label; stale
status:in-review; the resolution is spread over 10 comments, including a public correction of the first "merged" claim (the in-memory ETag cache did not survive Durable Object eviction — fixed by #14000).Strengths: the body states the failure with a timestamped rate-limit repro and two explicit options; the correction culture is exemplary — the false first claim was caught from live health data and retracted on the issue; the final state is proven in service (304s across objects/deploys).
Labels (applied by the census): added
priority/low, removed stalestatus:in-review.developing-today-fleet commentedon Nov 29, 2026
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: 11 recent comment(s) skimmed
Comment skim: comments show claim/progress (11 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.
developing-today-fleet commentedon Nov 30, 2026
Claim — Felix lane 0640-GL (worker felix), 2026-11-29. Taking way 1 of this issue (the part that needs no new identity): conditional requests in
ghApi(pm-stack/console/edge/src/direct.ts) — keep each list's ETag, sendIf-None-Match, a 304 costs nothing and returns the kept answer held in the Durable Object; plus the exhausted-allowance wording on affected reads (last good copy with its age). Tests per the issue:test/direct.test.tsconditional read (200 then 304; changed list replaces) andtest/edge.test.tslimited read showing the last good copy with its age. Way 2 (a GitHub App of its own) is the owner's say-so and is NOT taken. Priority validation 2026-11-29 (Felix): priority/low stands — an allowance-resilience improvement with a designed fallback (reads hand off and retry), no live harm or deadline in the record; the band was set by census, not by Drewry personally.developing-today-fleet commentedon Nov 30, 2026
Premise correction — Felix lane 0640-GL, 2026-11-29. My claim (7265772334) scoped a build of way 1; firsthand reading shows way 1 is already landed on main: commit 8f0bc6c ("ask GitHub by tag, and keep to the time it gives for asking again") —
ghApiinpm-stack/console/edge/src/direct.tskeeps each list's ETag in the Durable-Object-backedGitHubMemory, sendsIf-None-Match, answers a 304 from the kept copy at no allowance cost, keeps GitHub's ask-again time per allowance (core/search), and the edge's reads fall back to the last good copy saying why and when. The tests the issue names exist:test/direct.test.ts(200→304→200→304 conditional sequence) andtest/edge.test.ts("a list that has not changed is asked for by its tag"; "the hour's allowance used up: … the last good copy says why and when"). I am running the two named test files against current main as the verify-close evidence; way 2 (a GitHub App of its own) remains the optional, owner-say-so remainder.developing-today-fleet commentedon Nov 30, 2026
VERIFY-CLOSED — Felix lane 0640-GL, 2026-11-29. Way 1 of this issue is landed and now proven on current main with executed evidence:
ghApi(pm-stack/console/edge/src/direct.ts) keeps each list's ETag in the Durable-Object-backedGitHubMemory, sendsIf-None-Match, answers a 304 from the kept copy (no allowance spent), tracks GitHub's ask-again time per allowance (core/search), and the edge's reads fall back to the last good copy saying why and when.test/direct.test.ts56 pass / 0 fail (incl. "a list asked for again is asked for by its tag, and one that has not changed is answered from what was kept" and the 200→304→200→304 sequence) andtest/edge.test.ts222 pass / 0 fail (incl. "a list that has not changed is asked for by its tag: GitHub is asked as often, says 'not modified', and what is shown is the same" and "the hour's allowance used up: GitHub's own time is kept to, nothing that draws on it is asked until then, and the last good copy says why and when", both named ok).Closing as completed on this evidence. Priority validation: priority/low concurred (see claim 7265772334).