Repository navigation
fix(account, relay): the signed-list staging QA's fixes, part 2 - #4735
Conversation
…s a signed list Add this PC to my account in the PC's own window only ever did the old listing and one press, so on an account with a signed list the PC posted no keys and no card, the phone's row offered no Add, and the window waited with no end. It now asks the PC to start its add by the list first, as `ovis add` does: after the listing the PC is named the account, then POST /api/account/list/add. - `no_list` (or 403/404/405: a PC that follows no list, a window that is not its own) goes on to the one press exactly as before. - A running add keeps the usual wait, with the add's run kept in the tab's wait mark; the number and its confirm come from the own-window prompt (#4644). The wait reads the add by its run: an add that ended says why and ends the wait, one whose ten minutes ran out is started again while the 30-minute wait runs, and Stop waiting cancels it by its run. - 503 account_unavailable says the account service could not be reached and tries no one press; account_mismatch, list_removed and other ends have their own sentences (ko/ja/zh added). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ccount adds it
ovis add printed its one-press step ("2/2 Press Add on a device of your account / Open Ovis on your
phone or another PC and press Add for <PC>") as its wait began, before the PC's first answer to
POST /api/account/list/add said whether the account keeps a signed list. That answer waits for the
PC's round trips to the account service, one after another (whether the account keeps a list, its
card, the device's first message), so on a list account the person read for seconds a step that
would add nothing, then the list line.
The wait now begins with the listing and "Asking your account how it adds this PC…"; step 2 comes
with the PC's answer: "Compare a number with a device of your account" with the list's reason
where the account keeps a list, the one-press step where it keeps none. ovis join, which knows its
way from its invite, says what it said before.
Co-Authored-By: Claude Opus <[email protected]>
…ice shows it The device that adds a PC from its add screen (AddPcSheet) shows an input for the PC's number, not digits of its own, so "Approve it only if its screen shows 941 190" read as the opposite direction. A request taken under the PC's own add screen (local_only in GET /api/relay/pairings) is now asked as the PC's own window already asks it: type the number on that device, or check that it shows the same number, then type its last three here. Other requests are asked as before. Co-Authored-By: Claude Opus <[email protected]>
…ld its invite A redeem the account service refuses with 409 invite_not_in_list (the account's signed list holds no open invite of that key: revoked, used, run out, or a line made before the account had its list) printed "The account service did not take this PC (invite_not_in_list)". It is now invite_invalid (exit 3), the error an agent already reads as "ask for a new invite", with words of its own. Co-Authored-By: Claude Opus <[email protected]>
…a PC numbers the device apart (F6, red) A device presses Not me on a PC's notice for the account's fourth device, in an account with no list on the migrate switch. The PC numbers its own admissions (admit_no), so its notice says 5; the block claims target_no 5 and the account service refuses it 403 unknown_target, while the PC takes it. Red: the page shows the account's refusal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cks (F6) A PC's admit notice carries the PC's own admission number (admit_no), which counts every device that PC ever let in. The account service holds a block's target_no to its own number of the key and refused the block (403 unknown_target) whenever the two ran apart, so a PC that was off never got the block and the device's sign-in stayed. The press now asks the account service for the target's number (GET /v1/devices, five seconds) and signs that. Who may sign is unchanged (canBlockAdmission), the PCs still judge by their own order, and a lookup that fails or names nothing signs as before, with the notice's number. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…approve After a join by an invite that names the account's list, the PC said "If your phone asks for six digits when you open <PC>, run ovis approve on this PC", and at a terminal asked for them. Such a PC signs nobody into the list (ovis approve answers not_signer), so it now says to allow the device on another device of the account, and watches for no first join (PressWords.allowsNobody, set by ovis join when the line names the list). Co-Authored-By: Claude Opus <[email protected]>
… and make Ask again ask A page that opens a PC of the account by the device's registered key, refused outright by the PC (a bare auth_failed: it holds no row for that key, as for a key the account service does not count yet, such as a sign-in without two-step), read the refusal as a removal: "This device was removed from <PC>". It now goes to the PC's join sheet, as a press on a new PC's sheet already did, unless this device held a session with that PC under the account before (its own record of its PCs); only then is it told it was removed. Ask again on that line sent the front page's launch, which opened the same PC by the same key and came back to the same line, so no join was ever sent. It now asks that PC to let the device join at once, as a launch does (joinAtOnce, shared with the launch). The join a launch asked, refused by the PC before anybody was asked (pair-unavailable: a PC in no account yet, one paused after too many tries), drew "Not allowed. Ask again, then press [Allow]", though nobody declined it. It now says "<PC> cannot take this device yet", the card's own words. Co-Authored-By: Claude Opus <[email protected]>
…pointed to another device A PC that joined its account's signed list by an invite signs nobody into the list. Approved at that PC (its window, ovis approve), a join with the device's card ended with the generic cause list_refused, and the device said only "<PC> could not add it. Ask to join again.", with nothing about where it can be approved. The PC now names that cause (list_not_signer), and the device says "<PC> cannot add this device itself: it joined your account by an invite, so it lets nobody into your account's list itself. Ask to join again, and approve it on another device of your account." (en, ko, ja, zh). What the PC lets in does not change; only the refusal's word. Co-Authored-By: Claude Opus <[email protected]>
…ot its id start The card a member approves a new device on said "Through 57011c1f · joins your 6 PCs": it named the PC by this device's pairing with it, and by the start of its id where there is none, which is every PC a device opens through its account or its signed list. The account's own name for the PC, which the same effect already read to count the PCs, now comes before the id. Co-Authored-By: Claude Opus <[email protected]>
…ndow's is too old Adding a PC over SSH from a PC's own window lists and admits it with the window's sign-in. One more than PC_ADD_FRESH_MS old, with no registered key to prove it by, is refused (session_not_fresh), and the dialog offered "Sign in again" only after that refusal: the account's PCs, the listing and the admission were each asked first, under "Adding it to your account…" (about two minutes in the signed-list staging QA). AccountService.addAsksSignIn tells that case from the sign-in itself, and the add asks for the fresh sign-in before it sends anything. A sign-in whose age is not known goes on as before, and the service still decides. Co-Authored-By: Claude Opus <[email protected]>
… good A final refusal of a Not me block was not logged at all, so the staging QA saw a bare 403. The device's log now names the refusal's code (unknown_target, signer_not_older, ...). Co-Authored-By: Claude Opus 5.5 <[email protected]>
… list (F6) Pins what the staging QA asked: a block the account service refused for good stays in unsent_blocks marked refused and its target in own_blocks, the birth goes at once and leaves the blocked key out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, and a repeating plan never asks again (F9, red) Staging F9: the phone sat in the app of the PC it paired with; the shell opened that session before the device waited on its PCs, so onPcSession asked nothing, and the background asker runs only on the shell's front page and only when the list view changes. The PC was never asked, and the move never started. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ls for them A PC pinned to its account's signed list made its account rows for the list's devices with the placeholder label "Device" (listCommit, LIST_DEVICE_LABEL) and no system, so its Devices list showed each as "Device · Browser". The names are sealed in the list's entries under the epoch key, which a PC is given a wrap of when a member adds it (and which it already uses to seal names it writes). ListFollow now opens, once per entry and in its own turn, the name the list sealed for each of its devices with the epoch key it holds (epochKey, quietly: a service that does not answer leaves the rows unnamed and sets no error), and writes the rows again when one opened. listCommit takes those names; AccountDevices.commit replaces only the "Device" placeholder of a row, never a name a person gave it at the PC. An entry it cannot open keeps "Device". Names decide nothing: whom the PC lets in is still the list's alone, and no name leaves the PC that did not before. Co-Authored-By: Claude Opus <[email protected]>
…n a PC's app too, and again on a clock (F9) The background asker ran only on the shell's front page (view.active) and only when the list view changed. A device sitting in the app of the PC it paired with, whose session opened before the device waited on its PCs, therefore never asked that PC, and a plan that came out the same every round (`no_witness`, `too_new` on an answer heard earlier) never asked again: the move never started. It now runs whatever the shell shows, and on a timer while the device waits on its PCs: after the re-ask gap, or after the wait the plan told where that is longer, and not while the page is hidden. Each PC is still asked at most once per gap. The QA twin's factor turns the gap down with its other waits, to 30 seconds at the least. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d bound the naming From CodeRabbit's review of #4692: - An add the wait started again while Stop waiting ran is given up when it answers, unless a newer listing or a kept wait goes on with it (the same rule as a given-up press). - Stop waiting gives up the run the tab keeps for the same wait (another copy may have started it again), and the copy's own run only where the tab keeps none. - The naming of the account before the add gets NAMING_MS (10 s); without an answer the add is asked for all the same, so a PC that never answers it holds neither the add nor the one press. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…count's list The invite section of Add PC > Ovis relay was drawn only where the page was the Mac app's (`OvisMac/` in the user agent) and held the account's list. No shipped app has both: the Mac app and the Electron app show the PC's own page, which never mounts the hosted shell or holds a page list, and the phone apps and the hosted app hold a list but are not the Mac app. So no invite could be made for `ovis join`. - AccountRelayPanel now draws InvitePc wherever the page holds the account's list. InvitePc keeps its own rule and draws nothing for a device that may not write the list. The switch and its warning line are unchanged. - A PC's own page (Mac and desktop apps, a browser on the PC's address), signed in to the account whose signed list the PC follows, says in Add a connection > Ovis relay where an invite is made. The PC itself signs no invites. - docs/account-list.md "Invites" says where the section is; a changelog fragment. This widens where an invite can be made (any device that may already write the list); it changes nothing about what an invite can do or who may write the list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… internal_error A relay session nobody ended, whose channel closed under it (a device's check whether the PC is on, which completes the handshake and goes, once a minute while My PCs is up; the app reloaded or was put away; the network went), was logged relay.session.closed with reason internal_error: the code the mux stands in with when its carrier is lost (MuxEngine.carrierLost). It read as a failure of the PC's own, and in the signed-list QA it was taken for one. The session now notes that its channel closed and logs carrier_lost; internal_error is left to a session the PC itself could not go on with (its sign-in work threw). Nothing else changes: what the device is sent, and what it shows, are as before. Co-Authored-By: Claude Opus <[email protected]>
On a PC in an account that follows no signed list, a sign-in by a key it holds no row for starts a read of the account and waits for it 5 seconds at most, and such a read starts at most once a minute. A read slower than that (or one that could not start) left the key unknown, and it was refused (auth_failed) until the PC's next read, up to about two minutes: a device the account had just let in was told on its first open that it was removed. The PC now notes when such a key first asked (AccountMailbox.askedFirst, bounded) and when the last whole read began (readBegan). While no read that began after that ask has finished, a client that knows the account codes is answered held/catching_up, which it already waits on and asks again after; it gets in only by the row a read brings. It stays auth_failed for every other client, once a read that began after the key first asked finished without it, and on a PC in no account. Nothing else changes: the same 5 s wait, the same pacing of reads. What the PC answers changes; whom it lets in does not. Co-Authored-By: Claude Opus <[email protected]>
…relay's word Through a PC's page, the account's other PCs take their state from that PC's own probe of each (POST /api/machines/relay/account/check, vouchedSupport), which answered offline for every failure that was not the PC's WELCOME: the relay unreachable from that PC or turning it away, a PC that began and did not finish, any error of the probe. The page drew all of them "Switched off", and a page whose check call failed did too. In the signed-list staging QA three PCs that ran read so. vouchedSupport now answers offline only for RelayPcOfflineError (the relay assigned the connection and no PC answered in time), and unreachable for anything else; a failed check call is unreachable too. The page draws unreachable "Can't reach the PC" (an existing string). The PC serves its own page, so the two always match. An Add of an unreachable PC is refused as an offline one was. Co-Authored-By: Claude Opus <[email protected]>
…ng before the directory is read (F9, red) The list's first round on a page runs inside refresh(), before the directory and the sign-in's key are set, so a PC the device also paired with is asked over the pairing, which a PC answers 403 account_required, and is then not asked again for the gap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, and runs when it is read (F9) The list's first round on a page runs inside refresh(), before the sign-in's directory is read. A PC the device also paired with was then asked over the pairing, which a PC answers 403 account_required (the witness is for its account's sessions alone), and was not asked again for the gap. While this sign-in's directory read is under way the ask now waits, and refresh() asks once the read has ended. With no read under way (it failed) a saved pairing is still the way, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e account; the service only from the one that registered its key (red) A block kept by one sign-in and sent by a later sign-in of the same account (S32-1) is refused 403 signer_not_member by the account service (ownSigner: the key's row must be this sign-in's). The fake took it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ign-in that registered its key As the service's ownSigner does, and before the freeze check, as there: a key another sign-in registered (registerSessionKey) signs nothing on this one, a record kept already included. A key registerDevice made, which no sign-in registered, stands for the posting sign-in's, so the tests that need no sign-in of their own keep working. One contract test posted its block with a fresh token; it now posts with the sign-in that registered the phone's key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…not to block again from this device The account service's refusal of a block is final: the same device signs the same claims again. The line now says a PC that was off may still let that device in, and to block it from an older device or use Sign out every device. English, Korean, Japanese and Chinese; both places it is shown. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ays to update that app On a PC pinned to its account's signed list, an app that knows no join into a list (an Ovis older than 0.5.10: it offers no account-list-allow-1, so it brings no card) can still ask to join. ovis approve took its digits and said "<device> is let in; it opens this PC in a moment.", then the PC closed that device auth_failed (no list entry lets it in), and the old app said nobody approved it. The session now marks such a join (list_unknown, in GET /api/relay/joins): a join into the account, on a pinned PC, from a client that did not offer account-list-allow-1. ovis approve, and ovis add's wait for a first device, ask nothing for it and say that this PC lets devices in by its signed list, that the device asked without its part of it as an Ovis older than 0.5.10 does, and to update Ovis there and ask again. Nothing is approved for it. What the PC lets in does not change. The PC's own window does not say "let in" for it (it only closes its card), so it is left as it is. Co-Authored-By: Claude Opus <[email protected]>
…only to update Ovis In Manage account, a PC the account names that its signed list does not hold yet, and that posted no keys for the list, read "Not in your account's list yet · Update Ovis on this PC". A PC that runs a build with lists posts its keys only once it is added from itself, so the same words stood on a PC of the same build that was simply not added yet (the Mac in the signed-list staging QA, and a PC the list had put out). The row now says both cases: "Add it from that PC (ovis add, or Add this PC to my account there); update an Ovis older than 0.5.10 first" (en, ko, ja, zh). Co-Authored-By: Claude Opus <[email protected]>
Manage account offered Remove only for a PC that reads as off: on an account with no list a PC in use lists itself again on its next pull, so removing it would not last. A PC the account's signed list holds does not come back by itself once its removal is in the list, and the only way to take a running one out was the "Not me" notice of its first day, which signs the same removal. Such a PC (by_list) now has Remove whether it is on or off, through the same confirm and the same fresh sign-in; the confirm says in plain words that it leaves the list on every device, that a device paired with it itself still opens it, and that it comes back only as a new PC, added again on it (en, ko, ja, zh). An account with no list is unchanged. This offers a removal this device could already sign; it changes no rule of who may write the list. Co-Authored-By: Claude Opus <[email protected]>
…hen no read can come, and lasts 3 minutes From the independent review of the catching_up answer for a key this PC has not read: - F1: it was given only to an id with no row, so an unauthenticated peer could tell an id with a row (a bad proof: auth_failed) from one without (catching_up), against the rule that a refusal tells nobody which ids have a row. An id with a row and a proof that does not hold now waits the same way, and is refused once a read has begun after it first asked. A bad proof never gets in. - F2: it was given for ever where no read can succeed (the account service off or not a URL, the waiting records unreadable). It is given only while a read can come, as readComing() reasons, and for 3 minutes from the id's FIRST ask at most: past them the key is refused as before, and stays so until a read brings its row or the 10-minute memory of it runs out. - N1: a full memory (512 ids) no longer drops the oldest: only ids the memory let go of make room, and a new id past that is answered as before. - N2: the comment on readBegan says what a pull that ended with no error stands for. - N4: tests with a real 503 for a failed read, the unstarted read asserted, a known id with a bad proof, the service off, the 3 minutes, the flood, and the PC in no account, pinned or failing closed. Co-Authored-By: Claude Opus <[email protected]>
From CodeRabbit's review of #4735 (U2): ListAdd.stop() called off the steps the PC takes by itself, but a step already in its turn still handed the join a `live` that did not read the stop. The bind was guarded in ListFollow all the same; the add now says so itself: `live` is false once the server stopped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… was opened for From CodeRabbit's review of #4735 (U6): an Allow's selection was kept when another account was signed in to on the page (another tab), so the number dialog could show for the new account with the old account's post (its first check refused it, so nothing was added). The selection now records its account, and the dialog shows only while that account is the one signed in to and the list read is that account's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ok them in, by its list CodeRabbit U1 on #4735: the keys run's last look counted a status with no list as keys taken, so a PC that left its account meanwhile (no account, no list) was told Done. Done now needs the account the run was for and a list that no longer says needs_keys; a PC in another account or none is told where it stands, exit 1. Co-Authored-By: Claude Opus <[email protected]>
…f its own offers its keys, never Added CodeRabbit U7 on #4735: the wait for this PC's add, its reload, its relist, the settling read and the press itself read the PC's membership and dropped needs_keys, so a PC that came into the account by its list's move with no key of its own was said to be added. Every membership read now carries needsKeys to joinedAs, which offers the add for its keys; a PC that holds its key ends as before. Co-Authored-By: Claude Opus <[email protected]>
… often the button is pressed CodeRabbit U8 on #4735: while the first start of the add was on its way the button stayed enabled; a second press joined the same run on the PC, and the first one's end, no longer the current attempt, gave that shared run up. The start is now guarded and the button disabled until it answers; a failed start frees it for another press. Co-Authored-By: Claude Opus <[email protected]>
…is unread From CodeRabbit's review of #4735 (U9): My PCs read the account's list for its account PCs, and while that read was out, or after it failed, it treated the account as one with no list: an account PC's row kept the link to its own page, whose join is the directory's admission alone. "Not read yet" is now its own state, never "no list". Until a read of the signed-in account's list settled, an account PC's row opens no page of its own; a tap reads the list first and then opens what it would (the number card for a PC that posted for the list, the PC's page for one that posted nothing or on an account with no list), and says the account service could not be reached where the read fails again. A page that holds no list at all keeps no list for sure and keeps its links from the first draw. The account is the one signed in to (the stored sign-in), not what the page's list read last. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…now after a sign-in again CodeRabbit U10 on #4735: the sidebar's account source admitted under the sign-in it bound at its last read of the list, so after a sign-out and a sign-in to the same account the retry failed with SignedOutError before any request, and the row kept a failure that did not ask to sign in again. - signedInAccount().admit uses the sign-in stored now while it is of the account the list was read for; another account, or none, admits nothing (SignedOutError). - useAccountPcs marks a SignedOutError as the row's Sign in again, which the recovery tries again once the page is signed in to that account; a retry right as such a failure comes is made once per sign-in written or return of the window, so a sign-in that keeps failing cannot loop. Co-Authored-By: Claude Opus <[email protected]>
…omes, with no restart From QA on staging: a PC added to the list by its own window kept the list's devices as "Device" until it was restarted. It gets its wrap of the names' key a moment after its first naming round; that round found no wrap for the epoch, counted the entries as decided, and never asked again. An entry whose epoch the account service holds no wrap of for this PC yet is now kept apart (unwrapped), not decided: it is asked again after the next read of the log, at most once a minute (NAMES_RETRY_MS), outside the follower's turn as before. A wrap that does not open still counts as decided. A PC with no key of its own in the list (carried in as an endpoint, needsKeys) asks for no wrap at all: none can be its, and asking at every read ran a migrated PC's `ovis add` into the service's rate limit (list-migrate's test). Test: the wraps route answers no wrap at first; once it does, a pull a minute later names the row, the list not having moved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying ovis with
|
| Latest commit: |
813399a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://682bc638.ovis.pages.dev |
| Branch Preview URL: | https://fix-list-qa-fixes-2.ovis.pages.dev |
…d for again From QA on the pinned Mac (added to L1 at 19:57): two of the list's devices stay "Device" also after a restart, so the cause there is not a late wrap. A newcomer to the list is given the key of the epoch it comes in at and of later ones only (signedNamed wraps the current epoch, and the account service takes wraps of the current epoch alone), so names sealed in earlier epochs never open on that PC. With the last commit such entries counted as "unwrapped" and were asked for again once a minute for good. An epoch with no wrap for this PC is now "unwrapped" only while the PC holds no wrap at all yet (just added) or the epoch is past every wrap it holds; one before its own wraps is final. Test: the service holds this PC's wrap of a later epoch only; the row stays "Device" and no second wraps call is made a minute later. docs/account-list.md says the limit: a PC added later shows devices named before it came as "Device" until newcomers are given earlier epochs' keys, which the service does not take today. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Independent reviewer's results for the server-side fixes of this round (an agent's review standing in where CodeRabbit had not yet read the new head). Both: closed, nothing new. The other fixes of the round ( qa2-cr-1 closure (73060d5)Diff Ran at 73060d5:
Probe: the head's two test files run against the base e1b3402, kept as
So each finding was real on the base and is fixed at the head.
qa2-cr-1 names (a8f582a)Diff
|
Reverts 73060d5. Counting reads and first asks in one order made a key the PC had just read as removed wait ("held") where the fixed-clock contract tests expect its refusal at once (catch-up-staleness.contract.test.ts, observed-use-session.contract.test.ts), and the follow-up that refused a known key at once locked out a key the account had registered and then let in after the PC's last read (an independent reviewer's probe). The tie the commit closed is one millisecond wide; the rule goes back to what the staging QA passed on, and the tie is on the follow-up list. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Merged through
This pull request holds all the fixes the staging QA of the signed member list (0.5.10) asked for; #4723, the first combined pull request, was closed into it. First set (was #4723): the fixes the staging QA of the signed member list asked for, merged as one pull request to spare the self-hosted runners: this branch is origin/main with twelve branches merged in, each of which was a pull request of its own with its own tests and review (#4692, #4693, #4711, #4713, #4712, #4704, #4710, #4715, #4716, #4717, #4719, #4714; closed in favour of this one). Reviews that ran: CodeRabbit on #4692 (three findings, fixed); an independent reviewer on #4712 (three findings, fixed, closure check passed), #4714 (one blocking finding and one more, fixed, closure check passed) and #4713 (clear); the lead on the others, each with a PR comment (CodeRabbit was rate limited on them). Nothing lets a key in that was refused before: #4712 answers a key the PC has not read yet with a bounded wait instead of a refusal and admits only by the row a read brings; #4716 stops Second set, four more branches merged in. (1) fix/own-window-list-add-2: the PC's own window no longer leaves the old pairing window open beside the list add, a wait begun by the list never falls back to the old way, and on a list account a device's join card and My PCs' row open the number card instead of the old admission (QA failure B5, second part). (2) fix/moved-account-pc: a PC carried into the list by a move says that it holds no key of its own, CodeRabbit then reviewed this pull request's head e1b3402: twelve findings, all real; eleven fixed with tests (four branches fix/qa2-cr-1..4, one commit per finding) and one fixed and then reverted (the same-millisecond tie between a read and an unread key's first ask: its fix turned two contract tests red in CI and its follow-up locked out a key the account had let in, by the independent reviewer's probe; the tie lets nobody in and is on the follow-up list); each answered in its thread, every thread is resolved. Of the fixes, the server-side ones (a decline of an older app's join that is not a first join ends it; a member's approval of such a join is refused before the digits are compared, 409 list_unknown) were read by the independent reviewer: closed, nothing new, and the approval refusal removes a way in. Also added: the last step of QA failure F17 (the number card keeps a number the PC confirmed when Add is pressed again), which the staging QA then passed end to end on real devices, and device names on a pinned PC whose wrap arrives after the first try (independent reviewer's result in the PR comment). The staging QA passed all six of its failures on builds of these branches. Checked on the final merged head: the typecheck and the touched and related test files, one file per process; CI ran the unit, integration and browser suites. |
… contract test (red main) (#4743) ## Summary Fixes the red `Integration and browser` check on main since e897294 (#4735): `src/lib/account/listMigrate.contract.test.ts` failed with `429 rate_limited` at the last `allowDevice` of `carriedPcGetsKeys`. It is a flake in the new test, not a product regression. The fake account service allows one proven PC 30 list calls per minute (`listLimits.pcCallsPerMinute`). The test stands the clock still and sets `accountListAddPollMs: 0`, so how many PC list calls fall into that "minute" depends only on how the PC and the phone interleave. Counted with a temporary probe: 24 to 32 calls per run (`/v2/pc/list/log` 10-17, `/v2/pc/list/attempt` 7-11, ...); every run that failed had 32. The budget is not what this test measures, so the test lifts it (`listLimits` is the instance knob tests already use). No skip, retry or timing change. ## Validation - Before (origin/main 5832729): the file alone 20 times: 18 pass, 2 fail, both `429 rate_limited`. - After: the file alone 20 times: 20 pass; 48 runs with 24 at a time (load average ~70 on 128 cores): 48 pass. - `bun run typecheck`: clean. `bun run check fast`: every step ok (unit 28137 pass, 0 fail); the run then reported "source changed during the check" only because the commit was made while it ran (the tree it checked is this commit's). - Not run locally: the full integration suite and browser batteries (CI runs them). Test-only change: no changelog fragment.
… only the client (#4747) Skips three non-required, server-side CI jobs on a pull request that changes only the client. Every other event keeps the full suite. ## What is skipped, and when | Job (none is a required check) | pull_request, only client paths changed | any other pull_request | push to main | workflow_call (Release, Pages) | workflow_dispatch | |---|---|---|---|---|---| | herdr-core live contract | skipped | runs | runs | runs | runs | | Rust PTY host | skipped | runs | runs | runs | runs | | Native macOS session identity | skipped | runs | runs | runs | runs | | Fast checks, Integration and browser, Native Windows install, Hook kill tests (container) | unchanged | unchanged | unchanged | unchanged | unchanged | "Only client paths" (`scripts/ci-server-reach.sh`): every changed path is under `src/`, `public/` or `changelog.d/`, or is `index.html`, except the client code the `ovis` command shares (`src/lib/account/`, `src/lib/relay/`, `src/lib/nativeApp.ts`, `src/lib/shellMode.ts`). Any other path, a path the script cannot read, or no path at all prints `server=true`. Every event but a pull request exits Detect changes before the script and leaves `server` unset, and the jobs run on `server != 'false'`. ## Why it is safe - The three jobs build `crates/` and run bun tests of `server/`, `shared/`, `tui/` and `scripts/`. They do not build the client; Fast checks, Integration tests and the Browser regression jobs keep testing it. - `scripts/ci-server-reach.test.ts` reads the jobs' `bun test` paths from ci.yml, follows every import, and also follows files read beside a file (`new URL("…", import.meta.url)`, `join/resolve(import.meta.dir, …)`). The test fails if any file reached that way is in a skipped path. That is how it found the account and relay code `scripts/plugin.ts` loads, which `tui/fidelity.live.test.ts` starts. Mutation checked: making an ACP test read `public/manifest.webmanifest` fails it. - The Rust job's `bun test` paths now start with `./`. A bare `server/acp` filter also selects `src/lib/server/acp-view.test.ts`; the test pins that every path is anchored. - `scripts/release-ci-reuse.test.ts`: the new condition is one a push run always meets (main's run still runs the jobs, so Release can take it), and the filter step's end-to-end case asserts `server=false` only for the client-only pull requests and no `server` line for push and dispatch. ## Expected saving 4 of the last 100 merged PRs (#4556 to #4735) changed only these client paths; the lead's earlier count was 5%. Each such PR run skips herdr-core live (about 5 min), Rust PTY host (about 1.7 min, hosted when the Rust runners are busy) and the macOS job (self-hosted Mac or macos-15). This is a small saving; it frees the Rust/Linux pool for the PRs that need it. ## Not changed (pre-existing, out of scope) Detect changes' `code=false` (paths that are all docs-like: `docs/`, `*.md`, `*.txt`, LICENSE, issue templates) already skips these jobs, and Integration tests too, for e.g. `plugins/new/fixture.txt` alone. Both reviewers noted it. This PR does not change that rule; it applies to the required Integration job the same way. ## Revert Revert this commit, or drop ` && needs.changes.outputs.server != 'false'` from the three jobs' `if:`. ## Validation - `bun run check fast` (TMPDIR under ~/.cache/ovis-tmp): passed (unit: 28148 pass, 0 fail; typecheck, build, workflow syntax ok) - Guard tests: ci-server-reach, release-ci-reuse, pty-sidecar-workflow, light-runner-workflow, privileged-jobs-workflow, workflow-needs, ci-browser-reach, ci-runner-route, hook-kill-tests-workflow, workflow-expression: 437 pass, 0 fail. - Reviews: one gate reviewer and one Codex adversarial review (gpt-6.2-sol-fast, xhigh) on bf9775f, both BLOCK on the same two findings. Fixed: unanchored `bun test` paths, and the guard now follows runtime reads (which found the shared client code). Not changed: the pre-existing docs-only rule above. Hold: this narrows checks, so it waits for the maintainer.
… instead of four (#4748) Remote PC bundles (non-required) ran four GitHub-hosted jobs for every pull request that touched `server/**` and similar paths: bundle-linux, bundle-windows (both ubuntu-24.04), smoke-windows (windows-latest) and ssh (ubuntu-24.04). bundle-windows and ssh each rebuilt the client and a bundle that bundle-linux had just built. A pull request now runs the same checks on two hosted runners. A tag or a manual run is unchanged. ## What runs, by event | Job | pull_request (before) | pull_request (now) | push tag remote-v* | workflow_dispatch | |---|---|---|---|---| | bundle (4-platform matrix) | skipped | skipped | runs | runs | | bundle-linux | Linux bundle + smoke | Windows bundle (uploaded first), Linux bundle + smoke, then a Node-only Linux bundle and the SSH checks | skipped | skipped | | bundle-windows | runs | **skipped** (bundle-linux uploads the same artifact) | runs | runs | | smoke-windows | runs | runs, on the uploaded artifact | runs | runs | | ssh | runs | **skipped** (same three steps in bundle-linux) | runs | runs | | release | - | - | runs, now with an explicit condition | - | Every check still runs on a pull request: the Linux and Windows smokes, `ssh-integration.ts`, `ssh-password-docker.ts` and `server/windows-native.test.ts`. Each part runs whatever became of the others, as before. The Windows artifact goes up before any Linux check, and smoke-windows starts on its upload (`needs.bundle-linux.outputs.windows`), not on bundle-linux's result. The SSH steps run after a failed Linux smoke, on a Linux bundle without the Rust PTY host, as the ssh job builds it (so the Node PTY host stays covered end to end). Trigger: a pull request that changes only `server/**/*.test.ts`, `shared/**/*.test.ts` or `server/**/*.md` no longer starts the workflow (no bundle carries them). `server/windows-native.test.ts`, which smoke-windows runs, still does. `scripts/ci-ssh-checks.sh` is added to the paths. The SSH steps' shell moved verbatim into `scripts/ci-ssh-checks.sh` (parts `server`, `integration`, `password`), which both jobs call. `release` needs `smoke-windows`, which now also needs bundle-linux, and a tag skips bundle-linux. GitHub's implicit `success()` would then skip `release` (`scripts/workflow-needs.test.ts` caught it). Its condition now says outright: not cancelled, a remote-v tag, and bundle, smoke-windows and ssh all succeeded. ## Evidence - Today (2026-11-25 from 02:57 UTC) Remote PC bundles was the largest non-required hosted user: about 570 pull_request jobs (146 bundle-linux, 144 bundle-windows, 143 ssh, 136 smoke-windows on windows-latest), with an average queue wait of about 8 minutes on the Linux ones. Hook kill tests (container), a required check, waited in the same hosted queue (average 7.6 min). Native Windows install falls back to windows-latest when winvm is busy. - 69 of the last 100 merged PRs (#4556 to #4735) start this workflow; 2 of them changed only server unit tests or notes. - In about 300 recent pull_request runs, the only failures were `typecheck` failures in bundle-linux and bundle-windows together, which Fast checks catches too. smoke-windows and ssh never failed alone. ## Expected saving Two hosted jobs per pull request run: at today's rate about 280 fewer hosted jobs a day (about 340 job-minutes of bundle-windows and ssh, minus about 1.5 min more in bundle-linux), and two fewer queue waits per run. smoke-windows now starts after bundle-linux's Windows build instead of bundle-windows', at about the same point. ## Not changed (pre-existing, out of scope) - The pull_request `paths` list is an allowlist: a path outside it (e.g. `scripts/server-manifest.ts`) never started this workflow. Codex noted it; this PR keeps the list as it was, apart from the test-only exclusions. - `ci-ssh-checks.sh password` probes Docker twice, as the inline step did. - A PR that changes only a server `*.contract.test.ts` no longer starts the bundles; that file is an integration test, and no bundle carries it. ## Revert Revert both commits. Or, minimally: drop `if: github.event_name != 'pull_request'` from bundle-windows and ssh, and remove the four lines after `'shared/**'` in the paths. ## Validation - `bun run check fast` (TMPDIR under ~/.cache/ovis-tmp): passed (unit: 28136 pass, 0 fail; typecheck, build, workflow syntax ok) - `scripts/remote-bundles-workflow.test.ts` (new): which jobs run per event and which checks they run, the upload order, the artifact names and paths of both producers against the downloader, the Node-only SSH bundle, the release condition, the trigger events and the paths filter. Mutation checked: removing the tag trigger, renaming the download artifact, or making an SSH step unconditional each fails it. It does not use `scripts/workflow-expression.ts`; that helper's guard keeps other callers off it. - Guard tests: workflow-needs, privileged-jobs-workflow, release-ci-reuse, light-runner-workflow, ci-runner-route, ci-browser-reach, pty-sidecar-workflow, ci-setup, hook-kill-tests-workflow, desktop-workflow, workflow-expression: 448 pass, 0 fail. - Not run: a hosted run of the changed jobs. This pull request's own run of Remote PC bundles is the first. - Reviews: one gate reviewer and one Codex adversarial review (gpt-6.2-sol-fast, xhigh) on a94124c, both BLOCK. Fixed: the new test no longer uses the restricted evaluator; the Windows artifact and smoke no longer depend on the Linux checks passing; SSH runs on a Node-only bundle again; tests cover triggers and artifact handoff. Not changed: the items above. Hold: this narrows where checks run, so it waits for the maintainer.
Summary
All the fixes the staging QA of the signed member list (release 0.5.10) asked for, in one pull request to spare the self-hosted runners. It holds everything of #4723 (the first combined pull request, closed into this one; its description and comments list the twelve branches of the first set, their reviews and CodeRabbit's nine findings there), four more branches from the QA's second round (the table below), and the fixes for CodeRabbit's review of this pull request (next section). The only hand edit of the merges keeps both new entries where two branches added a line at the same place in
src/lib/i18n/devices.{ja,ko,zh}.ts.fix/own-window-list-add-2no_listreopened the old window), fixed, closure check passed; the last two commits (the PC's own timer, the number in the dialog) are being read now and the result is added as a commentfix/moved-account-pcovis addon it stopped at "already in an account", and no app offered an Add for it. Now it says what it is (needs_keys),ovis addand the PC's own window start the list add for its keys, and a device that may write the list is offered the Add with the number once the PC has posted. Also F18's words: a device the list holds that a PC keeps out because of a block there hears that (list_held_here) instead of "not added to your account"ovis addsaid Done for a keys add whose entry never came), fixed, closure check passedfix/account-pc-check-wordsfix/account-pc-row(was #4722)CodeRabbit's review of this pull request (head e1b3402)
Twelve findings, all real. Eleven are fixed, one commit per finding, each with a test (all but one shown failing first). One (the same-millisecond tie between a read and an unread key's first ask) was fixed and then reverted: its fix made a key the PC had just read as removed wait where two contract tests expect its refusal at once, and the follow-up locked out a key the account had let in after the PC's last read (the independent reviewer's probe). The tie is one millisecond wide and lets nobody in; it is on the follow-up list. Each thread carries its answer and is resolved.
fix/qa2-cr-1list_unknown; a decline still works), and the member's card says to update Ovis on that device. Read by the independent reviewer: both closed, nothing new; the approval refusal removes a way in. (The third fix of this branch, the read/ask order, is reverted: see above)fix/qa2-cr-2fix/qa2-cr-3fix/qa2-cr-4ovis addsays Done for a keys add only for the run's own account and a list that no longer saysneeds_keys. The own window carriesneedsKeysthrough every membership read. The keys start is guarded against a second press. The sidebar admits under the sign-in stored now (a lost one shows "Sign in again" and is retried once signed in). Posted PCs are classified on the list read after the posts come backAlso added after that head: the last step of QA failure F17 (the number card is keyed by the post's value, so a second Add or a re-read keeps a number the PC confirmed), and device names on a pinned PC whose wrap arrives after the first try (asked again after the next read of the log, at most once a minute; names only).
What changes for who can open a PC
Nothing lets a key in that was refused before.
fix/moved-account-pcopens a way for a PC that is already in the account's list (carried in by a move, with no key of its own) to get its own key in the list: the entry is signed only by a device that may already write the list, after the number shown on that device and on the PC was compared, exactly as for any PC added to a list; the independent reviewer checked that a device with less than full power, a removed device, a device of another account or the PC by itself cannot do it, and that the newovis addmode runs only on such a PC.fix/own-window-list-add-2removes a way in (the old directory admission for a PC of a list account).Validation
unknown-key-signin.contractandpairing-approvals, again).bun run check fastand the browser batteries were not run locally; CI runs them here.🤖 Generated with Claude Code