Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -658,3 +658,66 @@ Checked: 357 tests under bun, 4 beside the list. In a real Chrome
against both demos, light and dark: the Platform screen's counts,
groups, each kind of row and its links. axe-core over 22 screens: no
violations.

## 2026-11-23T18:10Z Update: after step 6 (review answered, and the shared allowance)

**A review finding that arrived as #13487 merged.** The Worker-list
parser had example tests only, and the testing doctrine
(`doc/agents/testing-doctrine.md`) asks for property tests where code
has invariants. It was right, and so it was for the two other parsers
of this work. #13517 adds properties on the seeded generator the
console's tests already use: rows and accounts built to keep every
rule are read back as written, single faults refuse them, the list is
held to a model written out in the test, and the device's and the
platform's account of what an action is about are compared on
generated actions. One fault was found by them: a machine's name cut
at 63 characters just after a blank kept the blank. Fixed there.

**The shared allowance (#13489), the half that needs no new
identity.** The edge reads GitHub with the fleet's token, so it draws
on the account's hourly allowance with the agents, who used the hour
up twice on 2026-11-23.

- _Asked by tag._ Each answer to a read is kept under its address
with GitHub's tag and asked for again by it. "Not modified" does not
count against the allowance, so a list that has not changed costs
nothing. GitHub is still asked every time and decides whether the
kept answer stands: this is not a cache with an age, and nothing
shown is older than it was before.
- _GitHub's time is kept to._ Turned away for calling too often,
GitHub says when to ask again. Until then the edge asks it nothing
that draws on what ran out, where before it asked again every five
minutes for as long as the hour had left. Sixty-five minutes at
most, and the owner's "Try again now" lifts it.
- _Two allowances, kept apart._ GitHub counts searches by the minute
and everything else by the hour. Ranked issues are a search, so they
are still read while the hour's allowance is spent, and a minute's
searches running out (the commoner case) no longer has anything to
do with the lists. Going too fast (`retry-after`) is said of the
caller and hushes both.
- _Said in the app._ Why a read failed now carries that time and
GitHub's own words, and the notice says which it was ("the allowance
for the hour is used up" or "turned away for asking too often just
now"), "GitHub says it answers again at 12:00", and how old the copy
shown is.

Considered and not done: serving the kept answers for a time without
asking (a cache with an age). It would save the calls that change
too, at the price of showing things late, and the edge is not what
uses the hour up. And persisting the answers in the object's storage:
a restart costs one full answer of each, which is less than the
writes would.

What this does not do: give the edge an allowance of its own. When
the agents use the hour up the edge is still turned away until it
turns. That takes an identity of its own on the account (a GitHub
App's installation token), which is the owner's to make; #13489 stays
open for it.

**Not folded in, and next.** With the allowance used up and no
machine, something the owner does is kept for a machine, as it was for
the five minutes before. Now that the wait can be most of an hour, the
edge should do what it holds itself once GitHub answers again, and not
wait for a machine that may not come. That touches the rule against
doing anything twice (a machine may already have been handed it), so
it is its own change.
2 changes: 1 addition & 1 deletion planning/roadmaps/pm-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The roadmap of record is this file and its siblings in `planning/roadmaps/`. The
| The app works with no connection | shipped | It shows what the device last saw and sends what was done once, in order, when the connection is back. | #13287 |
| Machines | shipped | The laptop is one machine among several: what each can do, what waits for one, and taking it back. | #13471 |
| Platform: every Worker in one list | shipped | Eighteen Workers, where each lives, whether it is in service and how it gets there, held true to the repository by a test. | #13487 |
| The edge's own GitHub allowance | shaped | The core must not stop being readable when agents have used the account's hourly allowance. | #13489 |
| The edge's own GitHub allowance | in-progress | The core must not stop being readable when agents have used the account's hourly allowance. | #13489 |
| Queue tasks filed, cancelled and unblocked from Cloudflare | shaped | A prompt sent with the laptop away is picked up, not only filed. | #13490 |
| Questions, what needs you and sessions with no machine | shaped | The last sections that are only as fresh as a machine's last report. | #13491 |

Expand Down
46 changes: 43 additions & 3 deletions pm-stack/console/edge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,49 @@ it (the laptop's, the sign-in issuer's).
queue is not a write; changing it is.
- **Calling too often is not a refusal.** GitHub turns a caller away
for that with the same 403 (and says so in its answer), or a 429.
It is handed on in the same way, but for five minutes, not an hour:
it passes by itself. The token is the fleet's too, and search is
what runs out first.
It is handed on in the same way, but not for the hour: it passes by
itself. GitHub says when, and that time is kept to: until it comes
the edge asks GitHub nothing that draws on what ran out, not a read,
not a write and not its own check, because asking on while turned
away is what GitHub warns callers off and every such call would get
the same answer. It says it one of two ways. `retry-after`, in
seconds, means the caller is going too fast whatever it asks, and
everything waits. `x-ratelimit-reset`, with nothing left
(`x-ratelimit-remaining: 0`), means one allowance is used up, and
GitHub counts two apart: searches, a few dozen to the minute, and
everything else, by the hour. Only what draws on the one that ran
out waits, so ranked issues (a search) are still read while the
hour's allowance is spent, and a minute's searches running out does
not stop the lists. Where GitHub gives no time it is five minutes
for what was being done, and nothing else waits. No time is kept to
for more than sixty-five minutes, since the longer allowance is
counted by the hour and a time further off is a header that cannot
be right. Why a read failed starts with the time ("GitHub says to ask
again at ...") and carries GitHub's own words, which is how the app
says when it answers again and which of the two it was. Health has
the times as `github.quiet.core` and `github.quiet.search`. "Try
again now" lifts both.
- **A list that has not changed costs nothing.** The token is the
fleet's too: the agents draw on the same hourly allowance, which is
the account's, and twice on 2026-11-23 they used the hour up. So the
edge keeps each answer to a read under its address with the
tag GitHub gave it (`etag`) and asks again by that tag
(`if-none-match`). GitHub answers "not modified" for one that has not
changed, and a call answered so
[does not count against the allowance](https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api#use-conditional-requests-if-appropriate).
A screen left open asks for the same lists every minute or two, so
most of what the edge asks is now free. Nothing is served from the
kept answers without asking: GitHub decides each time whether the
answer still stands, so what is shown is never older than it was
before. The answers live in the object's memory (twelve million
characters and two hundred answers at most, the one asked for longest
ago dropped first); a restart costs one full answer of each. A tag
belongs to the token it was given to, so after a new token the old
tags only get full answers. Health counts GitHub's answers and how
many were "not modified" (`github.answers`, `github.unchanged`).
This does not give the edge an allowance of its own: when the agents
use the hour up, the edge is turned away with them until it turns
(#13489 has what would change that).
- **The same for what it reads.** A section the edge is refused for is
the laptop's to read for the hour, exactly as it was before the edge
read anything: the edge stops naming it under `owns`, the laptop's
Expand Down
Loading