Skip to content

fix(account, relay): the fixes the signed-list staging QA asked for - #4723

Closed
devswha wants to merge 74 commits into
mainfrom
fix/list-qa-fixes-1
Closed

devswha wants to merge 74 commits into
mainfrom
fix/list-qa-fixes-1

Conversation

@devswha

@devswha devswha commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

The fixes that the staging QA of the signed member list (release 0.5.10) asked for, in one pull request. Each was opened, checked and reviewed as a pull request of its own; they are merged together here because twelve separate CI runs and twelve merges, each waiting for Fast checks on a new base, had filled the self-hosted runners for every session. This branch is origin/main with those branches merged in, nothing else: the only hand edit is keeping both new entries where two of them added a line at the same place in src/lib/i18n/devices.{ja,ko,zh}.ts.

Was What it fixes Reviewed in
#4692 The PC's own window could not add the PC to an account that keeps a signed list: Add this PC to my account now starts the add by the list first, as ovis add does (QA failure B5) CodeRabbit (3 findings, fixed) and the lead
#4693 Not me was refused by the account service (403 unknown_target) where a PC numbers its admissions apart from the account: the block claims the account's number (QA failure F6; old, same in v0.5.9) the lead (comment on #4693)
#4711 No shipped app drew the invite screen: it is drawn wherever the page holds the account's list, and a PC's own page says where an invite is made (QA failure 3) the lead (comment on #4711)
#4713 The move of an account that was in use onto its list never started while a PC's page was open: the device asks its PCs from any page, on a timer while it waits, and only once the directory is read (QA failure F9) independent reviewer: clear (comment on #4713)
#4712 What a PC answers and logs: a key the PC has not read yet is told to wait (catching_up, 3 minutes at most, never where no read can come) instead of being refused; carrier_lost for a carrier that went away; another PC reads "Switched off" only on the relay's own word independent reviewer: 3 findings, all fixed, closure check passed (comments on #4712)
#4704 The CLI's words: ovis add says what to press only once the PC said how its account adds it; the --approve prompt; invite_not_in_list in words; no ovis approve hint on a PC that joined by an invite the lead (comment on #4704)
#4710 A device's pages and cards: "removed" only for a PC the device had been in, Ask again that asks, "cannot take this device yet", the PC's name on the Allow card, an SSH add that asks for the fresh sign-in first the lead (comment on #4710)
#4715 The sentence for a block the account service refused for good; the test fake ties a block's signer to the caller's sign-in as the service does the lead (comment on #4715)
#4716 ovis approve approves nothing for a join that a PC pinned to its list cannot open (an Ovis older than 0.5.10) and says to update that app the lead (comment on #4716)
#4717 Manage account offers Remove for a PC the list holds whether it is on or off; the hint for a PC that posted no keys names both cases the lead (comment on #4717)
#4719 The "Sign out every device" question says that this device keeps its place in the list, and how to take it out too the lead (comment on #4719)
#4714 A PC names the list's devices in its own rows by the names the list seals for them, instead of "Device"; the names are opened outside the follower's turn, so a removal is never read late independent reviewer: 1 blocking finding and 1 more, both fixed, closure check passed (comments on #4714)
#4720 A join that reaches a PC whose account service cannot be reached is refused account_unreachable after 8 s (to apps that can hear it) instead of a silent 30 s and "Machine offline"; older apps and PC-to-PC joins wait as before independent reviewer: 1 finding and 1 ruling, fixed, closure check passed (comments on #4720)
(branch fix/move-name-account-way) After a device moved its account onto its list, it names that list to each of its PCs over a session through the account, on the asker's timer, until the PC follows it; and the asker stops at sign-out (QA failure 5: a PC the device is also paired with was never told of the list) independent reviewer: clear, then 1 finding on the last commit, fixed (report in the lead's notes; summary in a comment below)

Each of those pull requests carries its own description, tests and review; they are closed in favour of this one.

CodeRabbit reviewed this pull request at its first head and left nine findings: eight are fixed here with a test that failed first (the PC's own window no longer approves a join it cannot open; Stop waiting cancels the list add that actually runs; a restart of the add checks which PC answers; a list-held PC is removed by the list or not at all; a snapshot read that did not commit does not end the wait of an unread key; an opened name is told apart from a failed lookup; a disposed page asks no PC; the wait a PC told is kept on every path), and one is answered in its thread (a read that begins in the millisecond of the ask reads after it).

What changes for who can open a PC

Nothing lets a key in that was refused before. The two changes that touch what a PC answers at sign-in (#4712: catching_up for a key it has not read yet; #4716: no approval for a join it cannot open) admit nobody new, and an independent reviewer tried both paths of #4712, and the one way #4714 could have let a removed key keep a session a little longer (a late read of a removal) is closed and pinned by a test. #4717 offers a removal the device could already sign. #4711 widens where an invite can be made, to devices that may already write the list.

Validation

  • Every branch was checked on its own before it was pushed (the typecheck, the convention tests and its touched test files; fix(cli): ovis add and ovis join say what the person can do, as the signed-list QA found it #4704 a full bun run check fast), with tests written first for each fix.
  • On this merged head: the typecheck (clean) and, each file in a process of its own, the three convention test files, the i18n test and the 25 non-contract test files the merged branches touch (29 files, 1,659 tests, 0 failures; after the review fixes and the two added branches, the typecheck again and the 11 touched files, 551 tests, 0 failures). bun run check fast, the contract tests (the integration suite) and the browser batteries were not run locally (the PC that carries the CI runners was saturated); CI runs them here.
  • The staging QA re-checks every item on a build of these same branches.

🤖 Generated with Claude Code

devswha and others added 30 commits November 25, 2026 15:17
…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]>
devswha and others added 18 commits November 25, 2026 18:02
From CodeRabbit's review of #4723 (T7): a copy of the screen whose own run was older (another copy
had started the add by the list again) wrote that older run back to the tab when it listed the PC
anew, so Stop waiting then gave up the old run and left the new one running. The relist now keeps
the run the tab holds for the same wait, and this copy follows it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an told (#4723 review T9)

The told wait held only for the asker's timer: on the front page each refresh (every minute) asks too,
and its filter let a PC be asked again at the ten-minute gap although the plan said fifteen. The wait
is now part of the due filter itself (toldMs), so every path keeps it; the first ask stays immediate.
Test first (red without it): a front page refreshing every minute asks again only after the told 900 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…den page (#4713 review M2 red, M3)

M2 (red): a sign-out leaves the asker's clock running, so it can ask the old account's PCs over saved
pairings until the list's view says the sign-in is gone. M3: a dispose stops the clock; a hidden page
asks nothing, and a page shown again asks at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… M2)

invalidate() (sign-out, a removal, another sign-in's read) now stops the asker's clock, and the asker
and its clock act only for a signed-in page: the list may still show the move until it reads that the
sign-in is gone, and meanwhile nothing goes to the old account's PCs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the list where the PC takes it (F10, red)

The shell opens a PC the device is paired with by that pairing, and a PC takes a naming only over a
session signed in with a key it let in through the account; the one account-way session came before
the birth. Red: nothing names the list over the account way after the move. Pinned: a PC with no way
through the account is named nothing over its pairing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e account to PCs it is paired with (F10)

After its move the asker names the list to each PC the device knows by its own record that has not
said it follows the list: over a session it opens through the account with this sign-in's key, the
one way a PC takes a naming (docs/account-list.md, "Naming the list to a PC"), never over a pairing;
each PC once per gap, on the asker's clock, until its witness says it follows the list. The naming is
signed before any session opens, so a list this device may not name opens none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wait and stops where no wait helps (naming review L1)

A PC that never said it follows the list was named again every gap for as long as the page was up,
because the naming's answer was ignored. nameListTo now reads it. A refusal with a wait is named
again only once that wait is over. One no wait changes (named_here, first_signer_removed or
_unknown, lists_full, removed, session_unknown, not_member, other_list, stopped, ...), a PC that
follows another list, or one that answers no witness, is named nothing more in this run of the page.
first_signer_new and session_new carry a wait and are named again after it. Tests first (red without
it): the final refusals, a wait longer than the gap, a PC pinned to another list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…no route or no account ends the naming (naming review closure)

askWitness gave null for any answer that was not OK or a throw, and the naming then stopped for the
run, so a PC's 503 witness_unavailable as it starts, its 429 or a carrier lost on the way left the list
unnamed until a reload: F10 again. witnessOf now says "final" only for a 404 (an Ovis without the
route) or a 403 account_required; anything else is asked again on the gap. session_unknown is no longer
final (it turns into session_new with a wait), and a PC that answers the naming that it follows a list
is done with. Tests first (red without it): 503, 429 and a lost carrier are named on the next gap; a
404 and a 403 account_required are named nothing more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CodeRabbit on #4723 (T4). A join from an app that knows no join into a
signed list is marked list_unknown on a pinned PC, and `ovis approve`
skips it, but the PC's own window still offered Allow (a first join) or
the number field, and decideOwn / decideTyped resolved it as approved,
which wrote a pairing that opens nothing.

decideOwn (an Allow) and decideTyped now answer list_unknown and leave
the join waiting; a decline still ends it. POST /api/relay/join answers
409 list_unknown. The own window shows such a join with the words the
terminal says (update Ovis on that device, then ask again) and no Allow
or number field, in four languages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CodeRabbit on #4723 (T1). nameAt returned a name it opened as a plain
string beside the string "failed" it returns when the account service
could not be asked, so a device the list names "failed" was taken for a
service failure: its row stayed "Device" and every later round asked
again. A name it opened now comes as { label }.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nknown key

CodeRabbit on #4723 (T2). When a pull read the mailbox but the account's
snapshot page failed, readSnapshot answered committed: false without
throwing, so the pull's error stayed null and it moved the read marker
on. An unknown key that asked before that pull was then refused
auth_failed, though no read of the account's rows had happened.

readSnapshotNow now says whether the rows were read whole: a committed
snapshot, nothing to read, or a service that reads none by its own word
(step2_off). Only such a pull moves the marker. Tests: a failed snapshot
page keeps the key waiting until a whole read; step2_off still refuses
at once; and the read a sign-in starts in the millisecond it first asked
refuses it (the strict compare stays: see the reply to T3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tory

CodeRabbit on #4723 (T5). Manage account draws a PC's row as the list's
(by_list) only while this device follows its account's list. When the
list stopped being followed before Remove was pressed, the press found
no list row, and the removal fell back to the account service's
directory: the PC left the account's PCs and stayed in the list, which
the confirm had said it leaves on every device.

A removal asked on a row drawn as the list's now goes by the list or
not at all: with no list row at the press it removes nothing and fails
with ListPcRemovalError("not_following"), whose words say the list
cannot be used on this device right now and to try again (4 languages).
Rows the list does not hold keep the directory path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Deploying ovis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3ab5876
Status: ✅  Deploy successful!
Preview URL: https://a3133a5f.ovis.pages.dev
Branch Preview URL: https://fix-list-qa-fixes-1.ovis.pages.dev

View logs

@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Independent review of the branch added after the first head (fix/move-name-account-way)

The branch that makes a device name its list to its PCs over the account way after a move had no pull request of its own, so its review is recorded here. A reviewer who was given the code and not the author's conclusions read it at 2d93ac3 (clear; two notes), then looked again at the commit that built the first note and at the rebase (one finding: a witness ask that read nothing was treated as final; fixed in 08aee00 with the reviewer's probe as a test).

Review fix/move-name-account-way at 2d93ac3

Diff: origin/fix/list-qa-fixes-1...origin/fix/move-name-account-way (base 8f5761b, commits 93fc1c1, 54c06de,
562ab7f, 2d93ac3). Read in a fresh detached worktree, since removed.
Ran:

  • accountController.migrate.test.ts: 131 pass;
  • one probe block (fake timers), kept as ~/.cache/ovis-tmp/rvfix/probes/zz-rv-naming.probe-block.ts.

I also read the PC side: routes.ts /api/account/list/name, ListFollow.nameList, heldNaming and pinVerdict.

Verdict: CLEAR (notes only; no BLOCKS MERGE, no SHOULD FIX)

NOTE L1. PROVED: a PC that never says it follows the list is asked for as long as the page is up.
armAsk now keeps the clock running while unnamed() is not empty (accountController.ts:~406). unnamed() drops
a PC only when its witness says pinned === status.list. The answer to the naming ({ pinned, why, wait }) is
ignored, because nameListTo discards it. Probe: a PC that answers each naming session_new, wait: 60. Over about
7 h of fake time the device opened 41 sessions through the account and posted 41 namings, one per about 10 minutes,
and it would go on.

The same holds for a PC that refuses for good:

  • named_here, first_signer_unknown or first_signer_removed, lists_full, removed;
  • a PC pinned to another list;
  • an older PC whose witness answers nothing, which gets a session only.

The rate is bounded (one session per PC per askGap(), only while the page is visible and signed in). The PC's
namedRead is cached for NAMED_READ_MS, and each naming costs it a signature check and a witness. Suggestion: read
the naming's answer, honour wait, and stop naming that PC for this run on a permanent refusal. Before this branch the
clock stopped with the move (waitsOnPcs false); this is the price of F10, and the docs say "once in ten minutes at
most".

NOTE L2. Information only. A naming that succeeds makes the PC pin after NAMED_PIN_DELAY_MS, and the pin ends
every session of the account's rows (auth_changed, list-follow.ts:1066-1070). Background naming can now cause this
while the person is in the PC's app.

  • The page's own pairing session is not an account row and stays.
  • An account-way session (this or another tab) reconnects with the list key, as for any pin.

This is the intended effect, and it was already reachable through onPcSession.

Questions checked

  1. Can a PC be made to pin a list it should not? No. Every gate that decides is on the PC, whatever the client sends:
    • heldNaming checks the signature over (account, list, key, session, endpoint) against this PC's own account and
      relay key, and session must equal the AUTH key of the session the POST came on (routes.ts:439-447).
    • pinVerdict checks:
      • the session key is one the PC has let in through the account for a day (session_unknown, session_new);
      • it is the naming device's own key or a vouch (session_other_device);
      • the naming device is a full-power member (not_member);
      • nothing is removed, the first signer can be placed, and the list is this account's (other_account,
        other_list).
    • A pairing key is no account row, so a naming over a pairing fails session_unknown.
    • Client side:
      • lists.naming returns null for any list but a moved list this device follows, is in with full power, with no
        trouble or doubt, for this very account, so no session opens for it;
      • in naming mode a pairing-only PC has no way, so it is skipped;
      • the POST goes only when opened.deviceKey === openKey.key.public_spki, so a fallback to the list key names
        nothing;
      • it also needs said.account === session.account && said.pinned === null.
    • A PC of another account is not in this sign-in's directory, so it has no way.
    • After sign-out, the M2 gates in armAsk and askDuePcs and the invalidate → armAsk clear stop it; after an
      account change, lists.naming checks the account and the PC checks its own.
    • Replay: a naming is bound to the session key and the PC's endpoint, so only that device's own authenticated
      session can carry it. Sending it again is idempotent.
  2. Loop or hammer: one asker run at a time, each PC once per askGap() (10 min), and one timer.
    • A hidden page re-arms without asking (M3 test).
    • dispose clears the timer (M3 test).
    • Sign-out stops it (M2 test).
    • No hammering, but no end either for a PC that never pins (L1).
  3. The page's own session: the account-way session's id is accountDeviceId(serverId, signInKey), not the
    pairing row's id. So SignedInSessions' per-device cap of 4 (server/relay/admissions.ts:27) counts it apart from
    the page's pairing session, which it cannot evict. With the PC full (8), a new id is refused, not evicting anyone.
    • There is no take-over and no focus: a fresh transport makes one GET and one POST, then closes.
    • M1 (several tabs on the same account way) is unchanged, and remains a concern only.
  4. M2/M3:
    • M2 CLOSED: armAsk and askDuePcs require accountView.kind === "signed-in", invalidate() calls
      armAsk(), which clears the timer, and the test signs out with the list still showing the move.
    • M3 CLOSED: tests for dispose, sign-out and a hidden page are added.

Closure check fix/move-name-account-way at 165d3aa

Commits on top of 4f4d27d (= origin/fix/qa-fixes-cr-3): aa1831a, a60af4d, 750b17a, 7d5eeac, 165d3aa.
Read in a fresh detached worktree, since removed.
Ran:

  • accountController.migrate.test.ts: 136 pass;
  • one probe block, kept as ~/.cache/ovis-tmp/rvfix/probes/zz-rv-l1.probe-block.ts.
  1. The rebase kept both sides: OK.
    • askPcs has lists === null || askingPcs || disposed (CodeRabbit) (accountController.ts:429).
    • askDuePcs and armAsk have the signed-in gate (M2) (:462, :412); armAsk also checks disposed.
    • invalidate() calls armAsk() (:631).
    • The due filter keeps Math.max(askGap(), toldMs(status)) (CodeRabbit's told wait) and adds
      naming === null || now >= namingNotBefore (:479-480).
  2. L1 stops naming a PC that could still pin within the same page run.
    • SHOULD FIX (PROVED): a witness ask that reads nothing is taken as final.
      • namingAnswered sets Infinity when said === null (never = said === null || …). askWitness returns null for
        any answer that is not OK and for any throw.
      • So the PC's own "ask again later" counts as final: 503 witness_unavailable (its rows cannot be read now: a
        witness not loaded yet after a start, say, routes.ts:202-203), 429 from peerBudget, a 5xx, and a carrier
        lost between the open and the GET.
      • Probe: the first session's witness reads nothing, later ones would answer and accept. Result: 1 session, 0
        namings, and nothing more over 2 h of fake time. Before L1 it was asked again on the gap.
      • This brings F10's symptom back (the PC never pins) for a transient error, until a reload. An installed app can
        stay open for days.
      • Fix: have askWitness report the status. Only a 404 (an older PC with no witness route) or a
        403 account_required is final; anything else is asked again on the gap.
    • NOTE: session_unknown is transient for a few minutes. The witness counts a key only after its next step()
      (WITNESS_INTERVAL_MS = 4 min, witness.ts:129-145). A sign-in key whose row began to stand within the last
      step therefore answers session_unknown, then session_new with a wait of about a day. In practice that needs a
      fresh sign-in key, which would wait about a day either way, so a reload the next day is enough. Moving
      session_unknown out of NAMING_FINAL (asking again on the gap) costs nothing.
    • The other final causes are fine for this run:
      • other_account, other_list, carried_off_curve, naming_invalid, removed, session_other_device and
        not_member do not change on their own;
      • named_here and lists_full need a person or a pin at the PC;
      • first_signer_unknown is reachable only for a carried device (the starter naming knows itself), and clears
        only if the starter later signs in at that PC, so a reload suffices.
    • session_new and first_signer_new keep their wait. not_read, unavailable, run_open and unknown codes
      fall back to the gap.
  3. No witness ask the device still owes is skipped. namingNotBefore is read only in naming mode (unnamed(),
    and the filter's naming === null || branch). While the device waits on its PCs (waitsOnPcs), due comes from
    pcsToAsk with no naming filter, and armAsk keeps the clock for it. namingAnswered runs only when named !== null, which is naming mode, and the shell's onPcSession asks are untouched.

@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Closed in favour of #4735. That pull request is this branch plus the second set of the staging QA's fixes, so everything here is in it (the nine review threads here are answered and resolved; their fixes are in #4735 too). Two pull requests of this size could not both keep up with main: each time one finished its checks main had moved, and the merge tool had to merge main in and start again. One pull request is merged instead.

@devswha devswha closed this Nov 25, 2026
devswha added a commit that referenced this pull request Nov 25, 2026
## 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`.

| Branch | What it fixes | Reviewed by |
|---|---|---|
| `fix/own-window-list-add-2` | QA failure B5, second part. The PC's own
window started the add by the list (#4692) but left the old pairing
window open and rang devices with the old join card, whose Allow ended
in the old directory admission with the PC **not** in the list. Now the
window closes what its listing opened once the list add runs and opens
nothing while it waits, a wait begun by the list never falls back to the
old way, and on an account that keeps a list a device's join card and My
PCs' row open the number card (number, confirm at the PC, Add), never
the PC's page. A third run on the real Mac app showed the number prompt
hidden behind the window's own open dialog (so the number ran out), and
that a PC whose page is hidden never took the device's entry: the number
and **The numbers match** are now drawn in the wait's own place inside
the dialog, and the PC steps its running add by itself every 3 s |
independent reviewer: one finding (a restart answered `no_list` reopened
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 comment |
| `fix/moved-account-pc` | QA failure F17. A PC carried into the list
when its account was moved holds no key of its own, so it cannot allow a
device. It said "joined by an invite", `ovis add` on it stopped at
"already in an account", and no app offered an Add for it. Now it says
what it is (`needs_keys`), `ovis add` and 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" |
independent reviewer: one finding (`ovis add` said Done for a keys add
whose entry never came), fixed, closure check passed |
| `fix/account-pc-check-words` | The check of another PC of the account
cannot know that a PC is off (its "offline" is its own timer), so the
row no longer says "Switched off": it says the PC cannot be reached and
may be off; the check waits 15 s as a device does | the lead |
| `fix/account-pc-row` (was #4722) | The row for another PC of the
account said "check that it is in your account, then try again" for a
refusal that is the documented rule (a PC lets another PC in only on
Allow by a device paired with it; the same in v0.5.9); it now says that,
in four languages, and a stale "Sign in again" clears when the page is
signed in again | the lead |

## 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.

| Branch | Findings fixed |
|---|---|
| `fix/qa2-cr-1` | A decline of an older app's join that is not a first
join now ends it (Allow and typed digits still approve nothing). A
member's approval of such a join from another device is refused before
the digits are compared (409 `list_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-2` | A list add's step binds nothing once the server
stopped. An Allow selection is tied to the account it was made under. My
PCs keeps "unread" as a state of its own: until the signed-in account's
list is read, an account PC's row opens no page of its own, and a tap
reads the list first |
| `fix/qa2-cr-3` | The asker's run checks after each wait that it is
still the run that stands |
| `fix/qa2-cr-4` | `ovis add` says Done for a keys add only for the
run's own account and a list that no longer says `needs_keys`. The own
window carries `needsKeys` through 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
back |

Also 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-pc`
opens 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 new `ovis add`
mode runs only on such a PC. `fix/own-window-list-add-2` removes a way
in (the old directory admission for a PC of a list account).

## Validation

- Each branch was checked on its own (the typecheck, the convention
tests and its touched test files, one file per process), with tests
written first; the two reviewed branches carry the reviewer's probes as
tests.
- On the final merged head (with main merged in): the typecheck (clean)
and every touched or related test file, one file per process, with the
convention, i18n and changelog tests (30 files, 1,246 tests, 0 failures;
the list contract files among them; after the revert the typecheck and
the two contract files CI had failed, with `unknown-key-signin.contract`
and `pairing-approvals`, again). `bun run check fast` and the browser
batteries were not run locally; CI runs them here.
- The staging QA passed all six of its failures on real devices on
builds of these same branches (the last, F17, on this head's content
without the names commit).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@devswha
devswha deleted the fix/list-qa-fixes-1 branch November 25, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant