Repository navigation
Conversation
GET /api/devices/pending?member=<member id>. No id, or the caller's own, answers as today. Another member's id is an admin's: the Registry checks the caller with current(you, 'admin') (403 not-admin otherwise, before the id is looked up), answers 404 no-member for an id the head doesn't list, and otherwise returns that member's entries as stored, MAC unchecked, for the admin's app to judge. Posting stays the member's own. The other-member read is its own Registry method, pendingDevicesOf, not an argument of pendingDevices: a Registry still on the code before it (a deploy's first minutes) would drop the argument and answer the caller's own entries for another member's id. Lacking the method, it throws, and the Worker answers 503 hub-updating. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
…ending devices); O11's route table; the desk-web phone flake row Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.
O8's H1 (
docs/doperpowers/plans/2026-10-28-p5-o8-org-interface.md, M4's "H1, the shape the desk track builds" and Interfaces §I), so O8's M4 can have an admin enroll a member's first device.GET /api/devices/pending?member=<member id>:member, or the caller's own id: the caller's entries, as today, through today'spendingDevices;pendingDevicesOfchecks the caller withcurrent(you, 'admin')(403 not-adminotherwise, checked before the id is looked up, so a member's refusal says nothing about who is listed), answers404 no-memberfor an id the head's members table doesn't list (a removed member's entries, which stay stored until they expire, included), and otherwise returns that member'sPendingDevicesas stored, MAC unchecked;The deploy window. A Worker on this code can reach a Registry still on the old code for minutes after a deploy. An extra argument to
pendingDeviceswould be dropped there, and the old Registry would answer the caller's own entries for another member's id. So the other-member read is a method of its own: an old Registry lacks it, and the Worker's existingfailure()handling answers503 hub-updating. An own-id read stays onpendingDevicesand still answers during the window.Tests (written first; all four new cases failed on the old code, where the admin's read of another member came back as the admin's own
[]):test/org-members.test.ts, the pairing exchange: a member with no device posts an entry, and an admin reads it as the member does; with no id the admin still gets only its own entries; own id, for an admin and for a non-admin, answers as no id does; a non-admin asking for another member, or for an unknown id, gets403 not-admin; an admin asking for an unknown id gets404 no-member, and for a removed member whose entry is still stored, also404 no-member.test/org-boundaries.test.ts:pendingDevicesOfjoins the admin-only calls a member resolved before a demotion or a removal is refused (not-admin,not-a-member); and under "a route this code added", a Registry lackingpendingDevicesOfanswers another member's id503 hub-updatingwhile the own-id read answers 200.test/support/worker-under-test.ts: the suites' Registry can be armed to lackpendingDevicesOf.Review:
doperpowers:reviewer-highon the range, no material findings.Gate at
29847c5d4d1021c65aec9461b8e8810b9f1a1efc(--runner macos --class1a pool --lane hosted; the first run's warning addede2e:desk-web):apps/desk-web/e2e/phone.spec.ts:315(the launch turn's.transcript-subagentrow count was 0).flaky:line in any run.dist/is byte-identical to master's (checked locally). The specs reach only a comment inidentity.ts. Master passed the group on the pool in 40736930383.src/engine-host/ipc.test.tsartifactScope flake (docs/tech-debt-tracker.md, the "Unit flakes" row), which passed on the next run.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)