Repository navigation
Conversation
V3RON
added this pull request to stack #921
October 23, 2026 12:54
…d Inbox page reads (#915)
Contributor
Author
Decision takenQuestion. #915's Tests line says the keys observed on "Overview's Needs you" include no Options.
Taken: A. It is what the code does, and B would contradict #905's non-goal. Folded into #915's Tests line, marked pending the maintainer; the fix run pins the panel's reads in a test. To revert: a new task to move the tiles onto Written by an agent. |
…you reads only the inbox (#915)
Contributor
Author
Review ledgerRound 1: 55c5789 Fix-check: both hunks (a manual line, one model test) verified by coordinator, no lens. {"findings":[
{"id":"R1","role":"claims","class":"manual states stale protocol version","outcome":"fixed","path":"src/daemon/AGENTS.md","round":"1","fix":"0153b165e"},
{"id":"R2","role":"spec","class":"acceptance: Overview Needs you reads untested","outcome":"fixed","path":"ui/src/model/overview.test.ts","round":"1","fix":"0153b165e"}
]}Written by an agent. |
V3RON
marked this pull request as ready for review
October 23, 2026 13:34
Merged
7 tasks done
Contributor
Author
V3RON
added a commit
that referenced
this pull request
Oct 23, 2026
…quests a minute (#918) (#940) Closes #918 ### Status Implement: done (1/1 green) Review: round 1 passed, no blocking findings Hardware: n/a Gate: waiting for the stack - [x] The console browser lane passes with `big-fleet.spec.ts`: audit ran it with `long-lists.spec.ts` on Chromium, 24 green; CI console lane. - [x] Setting the intervals in `ui/src/state/queries.ts` back to 1 s makes it fail: audit set all six to 1 s, every page failed the ceiling (Overview 295, Queue 237, Activity 239, Leases 182, Inbox 120, Fleet 118, Usage 120 in 60 s). #905 Completion conditions: - [x] Idle tab ≤ 40 `/v1` requests in 60 s on each of the seven pages, 50 workers / 500 devices: `big-fleet.spec.ts` (this PR). - [x] A lease granted through the gateway shows on Leases within about a second: event map and burst window, #926 (#914) `ui/src/state/queries.test.ts`. - [x] Leaving a page stops its reads; coming back within a minute shows kept data: #926 (#914) polling and drop tests. - [x] A second read of an unchanged list answers 304: #920 (#919) `src/http/app.test.ts`; the console sends the tag, #927 (#916). - [x] Sidebar count reads only `GET /v1/inbox`; Inbox and Needs you read it plus `/v1/workers`: #937 (#915) `e2e/console/shell.spec.ts` and `ui/src/model/overview.test.ts`. ## Assumptions - Assumption: the stub builder is typed by `WorkerView`, derived in `big-fleet.spec.ts` as `z.infer<typeof workerViewSchema>` from the contract's exported schema; `src/contract/` is unchanged. - Assumption: `leases` and `pad` builders moved to `stub-answers.ts` with `answer`, so both specs share them. ## Review Spec review: 0 blocking, 0 fixed, 1 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes. Rounds: 1. Tokens: 23.5M. Runs: 7. Cost USD: 1.8082. Agent seconds: 2527. Assessment: complete *Written by an agent.*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #915
Status
Implement: done (3/3 green) Review: round 1 + fix-check passed, 2 fixed Hardware: n/a Gate: waiting for the stack
Done when
pnpm vitest run src/contract src/http ui/srcpasses;ui/src/model/inbox.tshas noinboxItems: audit ran them and probed 24/24 tests red. Rules:src/contract/inbox.ts(testsrc/contract/inbox.test.ts); route:src/http/admin-declarations.tsinboxRoute+app.ts(testsrc/http/app.test.ts"GET /v1/inbox"); dispatchers:src/gateway/dispatcher.tsandsrc/daemon/dispatcher.ts#inboxGet(their dispatcher tests); console:ui/src/model/inbox.ts,ui/src/state/{inbox,shell,overview}.ts(testsui/src/model/inbox.test.ts,ui/src/state/queries.test.ts)..dependency-cruiser.mjslets the console importsrc/contract/inbox.tsby path; protocol 58 to 59.GET /v1/inbox(e2e/console/inbox-stub.ts) and the "Could not check" cases removed; the one red test, "a worker is drained from Fleet with no dialog, and Undo undrains it", fails the same on the base branch and is Console e2e: a worker is drained from Fleet with no dialog, and Undo undrains it fails on the row's drained text #886.Assumptions
src/gateway/dispatcher.test.ts,src/daemon/dispatcher.test.ts) and the agent 403 ine2e/single-host-fleet.test.ts, becausesrc/http/app.test.tsuses a fake dispatcher that cannot answer by mode or role;app.test.tsproves the route dispatchesinbox.get.requestedDevice(spec)helper is nameddescribeRequestedDevice— the contract index already exports arequestedDevicefor lease requests./v1/lease-requestsand/v1/leasesfor its Waiting and Ending soon tiles; only Needs you and the sidebar count come from/v1/inbox. A refused/v1/inboxshows the page's refusal.e2e/console/shell.spec.ts, requests on Usage), since the unit lane has no DOM to mount pages in.catalog,devices,downloadsandleases, as the spec says, so it still carrieswaiting,warmPoolandinstalls.Review
Spec review: 1 blocking, 1 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 1. Tokens: 17.4M.
Runs: 9. Cost USD: 11.6148. Agent seconds: 5408.
Assessment: complete
Written by an agent.