Skip to content

feat(account): the PC trusts the account's device list behind OVIS_ACCOUNT_OPENS_ALL (S2-24..S2-29) - #4324

Merged
devswha merged 354 commits into
mainfrom
feat/s2-26-account-row-rights
Nov 20, 2026
Merged

devswha merged 354 commits into
mainfrom
feat/s2-26-account-row-rights

Conversation

@devswha

@devswha devswha commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Track D of step 2 (S2-24..S2-29): a PC trusts its account's device list. Everything is behind OVIS_ACCOUNT_OPENS_ALL (off by default); with the flag off, nothing changes.

Layers (one branch each, stacked; this PR carries the whole stack, as ruled for one combined review):

Layer What it adds Head
S2-24 whole snapshot read and commit after each pull; lift causes; refusal receipts scoped to the account b25ba2c2
S2-25 account-joined row store, list admission through admitListedRows (stage then commit), Revoke-all intent and recovery, unknown snapshot fields ignored, two_step/provider 9bad6f14
S2-29 10-second join hold, notices with a 64-slot cap and one ownership check, Not me bound to the notice's key, It's me route answers not_supported until its UI ships 3bc14b17
S2-28 expiry by this PC's clock on every use, readmission of a proved key as a new admission 756c0da3
S2-27 catch-up wait after start and on a stale read (monotonic deadline), lift hook, ovis recover --release through S2-15 a694a4d6
S2-26 rights of account-joined rows: default-deny dispatch, local-only machine scope, promotion through the one owner 017f7104

Design rows: device-row-states rev 8 (P5-P24, R1-R10, S19-S27, T19-T73, G1-G15, H1-H2). Every behaviour change landed red first; each red commit names its rows.

Flag off

With OVIS_ACCOUNT_OPENS_ALL off, behaviour is byte-identical to main, with TWO accepted differences:

  • shared/relay-mux.ts parseSessionError is stricter: a SESSION_ERROR that carries a hold on a code other than held, or receipts on a code that may not carry them, is refused as protocol_error instead of the extra field being ignored. Only a flag-on PC ever sends those fields, and this is the shared wire decoder with no flag in reach. Test: shared/relay-mux.test.ts "S25: a held refusal carries its hold state, and only a held refusal does". (Lead's decision.)
  • A devices.json row that a flag-on run left held (its join hold or notice undecided, a device the owner has not yet had the chance to refuse) is not admitted with the flag off: its sign-in is refused like an unpaired key, it stays listed, Revoke all ends it, and it is never deleted, so turning the flag back on restores it held. The same rule covers a merge: with the flag off, when a sibling's copy of a row is held on a new key K2, the merge keeps the row on the key this PC admitted (K1) instead of moving it to K2 as main would, so the owner's unconfirmed key stays out until the flag is back on (security-triage's ruling). Test: server/state-merge-held.contract.test.ts "flag off: a held twin on a new key leaves the row on its admitted key". Main never writes held, and the flag is also the owner's rollback switch (security-triage's ruling). Test: server/account/carried-hold.contract.test.ts "flag off: a held member survives rollback listed but cannot sign in or sign records".

Gated so flag off matches main, each with a flag-off test: the socket's It's me answer (only when notices exist), a null session row at sign-in (closes auth_failed only with the flag on; flag off unwatches as before), and the refusal of data frames on a closed relay session (flag on only).

Moves that look broad but run only with the flag on:

  • server/dispatch.ts localRoster / machine events and withoutHiddenTokens: R7, a listed account row's /ws gets only this PC's roster with hidden tokens removed; reached only when the caller is a listed account row.
  • server/index.ts safetyLog.fold(): runs only when the safety log exists (flag on), and now after the snapshot lifts are journalled (8dcac5c), since folding drops whole records.

Review checklist

  1. List admission, readmission and promotion write inside DeviceStore.admitListedRows (server/devices.ts:1117, callers server/account/account-devices.ts:218, :293); freshness, access and notices go out only for returned ids. Reds: server/account/waiting-block-list.contract.test.ts, readmitted and promoted cases.
  2. Notice cap: one ownership check frees slots on every admission end; Not me only from another eligible row of the same account, and only when an applied block targets that notice's key (DeviceStore.mayAnswerNotice, server/devices.ts:2531).
  3. Snapshot parser ignores unknown device and envelope fields; two_step missing or unrecognised means unknown (not confirmed). No PC-side signature covers snapshot device entries; nested signed records stay strict.
  4. It's me: server/core/socket.ts:203 answers not_supported before the store.
  5. receiptsBySigner(key, account) (server/devices.ts:2355), lift subscription (server/account/account-catch-up.ts:30), recovery release wiring (account-catch-up.ts:25, :27, server/index.ts:332, server/devices.ts:1371).
  6. Flag off: new paths are reached only through flag-gated wiring.

Access-test fixture changes (assertions unchanged): R1/T19 twins, T51, T36, T47 now complete a whole read first (P7/T42: a member still waiting for its first whole read has no approver or signer standing). G3 and T70 were fixed in code; B's T70 fixture is unchanged.

New exported functions and their production callers

Export Production caller
AccountCatchUp server/index.ts:614
ACCOUNT_DEVICES_FILE server/account/account-devices.ts:40
ACCOUNT_DEVICES_MAX server/account/account-devices.ts:257
AccountDeviceStore server/account/account-row-source.ts:11
accountDispatchRefusal server/dispatch.ts:197
ACCOUNT_OPENS_ALL_FEATURE server/relay/session.ts:351
AccountOrder server/account/account-order.ts:48
ACCOUNT_ORDER_FILE server/account/account-order.ts:72
accountReadAllowed server/account/dispatch-rights.ts:45
accountRouteAction server/account/dispatch-rights.ts:44
accountRouteGuard server/account/dispatch-rights.ts:43
accountRowMay server/account/dispatch-rights.ts:47
accountRowsFor server/account/account-catch-up.ts:21
accountSignInRefusal server/relay/session.ts:380
applyAccountRecords server/account/mailbox.ts:484
assembleSnapshot server/account/snapshot-read.ts:101
AUTH_RECEIPTS_MAX server/relay/session.ts:397
CatchUpGate server/account/account-catch-up.ts:12
CLEARED server/account/account-device-state.ts:101
connectionData server/core/index.ts:1
dispatchMutationRegistered server/account/dispatch-rights.ts:42
DISPATCH_MUTATIONS server/dispatch-routes.ts:46
DISPATCH_READS server/account/account-row-rights.ts:129
expiresAt server/account/account-devices.ts:163
EXPIRY_DAYS server/account/account-devices.ts:22
firstDevice server/account/account-device-state.ts:77
HandedLifts server/devices.ts:546
holdSecondsLeft server/account/account-devices.ts:129
isRowDrop server/account/device-journal.ts:97
ITS_ME_MIN_AGE_MS server/account/join-hold.ts:40
JOIN_HOLD_MS server/account/account-devices.ts:239
listNotices server/index.ts:327
loadAccountDevices server/account/account-devices.ts:41
LOCAL_DRIVE_POSTS server/account/account-row-rights.ts:123
mayEndHold server/account/account-devices.ts:139
OrderConflict server/account/account-order.ts:149
parseHoldState shared/relay-mux.ts:212
parseUsedReport none on the PC: shared-contract parser for the account service side (seam by design)
PromotedHolds server/devices.ts:548
pullForRefusedSignIn server/account/mailbox.ts:422
readSnapshot server/account/mailbox.ts:231
recoveryActs server/account/recovery-server.ts:69
RELAY_CONTROLS server/account/account-row-rights.ts:112
RevokeAllIntent server/devices.ts:563
rowDrop server/account/account-devices.ts:102
SNAPSHOT_MAX_PAGES server/account/snapshot-read.ts:64
snapshotPorts server/index.ts:619
SnapshotWriteRefused server/account/account-catch-up.ts:53
stageMailboxAdds server/account/mailbox.ts:245
STALE_READ_MS server/account/account-catch-up.ts:67
verifyRelayProof server/devices.ts:1861
withRowDrop server/account/removal-evidence.ts:138

Ledger (MUST-CLOSE before S2-38)

ledger/s2-25-r8, ledger/s2-29-r4, ledger/s2-d-rebase, ledger/s2-28-r3, ledger/s2-27-r3 (C2), each with its failing test.

Validation

Per layer, bun test server/account/ shared/ server/relay/ server/core/socket.test.ts server/devices.test.ts server/dispatch.test.ts and bun run typecheck: S2-24 2167, S2-25 2247, S2-29 2290, S2-28 2309, S2-27 2340, S2-26 2370 pass; machine-profile relay tests timed out only on loaded remote hosts and pass 82/82 alone. bun run check fast at the top: all steps pass except server/machine-core-choice.test.ts "default herdr older peer", which fails on main a79d6ca as well.

Reviews so far: relay-hub gate and security-triage pre-reviews per layer; the combined gate on 017f710 is running.

devswha and others added 30 commits November 20, 2026 20:24
…es a pending reason of the same admission: P8, T41, P10 (red)
…Revoke: P8, T41, P10 (red)

Co-authored-by: sisyphus-dev-ai <[email protected]>
…w: T41, S19, P8, P10 (red)

Co-authored-by: sisyphus-dev-ai <[email protected]>
… T41, S19, P8, P10 (red)

Co-authored-by: sisyphus-dev-ai <[email protected]>
…e-all, file restored: the revoked row is refused: T41, S19, P8, P10 (red, ledger)
…not parse: refused, intent kept, the listed row refused after the restore: T41, S19, P8, P10 (red)
…s its intent while the listed registry cannot show the rows it covers
…stry is missing: refused, intent kept, the listed row refused after the restore: T41, S19, P8, P10 (red)
… covering listed rows, so a new Revoke-all keeps its intent
devswha and others added 12 commits November 20, 2026 21:35
@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying ovis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4a6b1c6
Status: ✅  Deploy successful!
Preview URL: https://1d58a6c1.ovis.pages.dev
Branch Preview URL: https://feat-s2-26-account-row-right.ovis.pages.dev

View logs

@devswha

devswha commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Reviews of record (relay hub), for D's combined step-2 stack (S2-24, S2-25, S2-29, S2-28, S2-27, S2-26) at 532b824 on main a79d6ca:

  • omo gate reviewer: combined gate at 017f710 (Opus): no access bypass; items 1-8 and 4b checked against the code. Round check at 4a6b1c6 (Opus): canSpeak ACCESS fix holds; every CodeRabbit red fails first. Astra gate (openai/gpt-6.2-astra) at 4a6b1c6: two access candidates and three flag-off items, resolved at 335ac06 (hub-checked: five reds fail at 891c5af, 125/0 at the head). The same-snapshot lift was already closed (snapshot-read.ts:93-96 before :107), with an e2e red and a control.
  • A one-pass flag-off sweep found 8 differences; all are behind the flag with flag-off tests, apart from two accepted differences (lead OK), named in the body: the stricter parseSessionError, and 'held' rows (including held twins) not admitted with the flag off.
  • security triage (t13r): YES on access at 335ac06 (532b824 adds only the one-line flag-off guard).
  • dori review: CLEAR at 5988f10 and 4a6b1c6; at 335ac06: CLEAR; its one LOW flag-off item (mailbox wait on a full queue) is behind the flag at 532b824 (one line, with a flag-off test).
  • CodeRabbit: all threads answered and resolved (real ones fixed with reds; S25-1, S26-1, S29-N2 closed; S26-2 ledgered for S2-38).
  • The batch deep security review of all of step 2 (owner, after Mythos/Daybreak access) gates the switch-on and the production deploy.
    Step 2 per owner 2026-11-20, behind the off flag (OVIS_ACCOUNT_OPENS_ALL).

@devswha
devswha merged commit 273015c into main Nov 20, 2026
23 checks passed
@devswha

devswha commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Merged through pr-merge at head 532b824c0. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit said it did not review (a limit or a skip) since this head.

Reviews at 532b824: CodeRabbit round 1 (11 threads, all replied and resolved; it did not review the later heads). Combined gate by relay-hub (t13t): Astra gate rounds closed; dori CLEAR at 335ac06 with one LOW fixed in 532b824, which t13t re-checked and OKed for merge on green CI. security-triage (t13r): YES on access at 532b824 (canSpeak listed signer fix, same-snapshot lift closed at snapshot-read.ts:93-96 with e2e test and control). Flag off = main except the two accepted differences in the body (parseSessionError; held rows not admitted). Ledger: S26-2 (end-to-end 1008 for the strict socket) for S2-38. Local full suite at head: 2439 pass, 0 fail; typecheck clean.

@devswha
devswha deleted the feat/s2-26-account-row-rights branch November 20, 2026 13:42
@devswha

devswha commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Reviews of record (relay-hub wording): combined gate (Opus) + round check + Astra gate, all findings fixed with reds; t13r YES at 532b824; dori CLEAR; CodeRabbit resolved; two lead-accepted flag-off differences named in the body; switch-on waits for the owner batch security review. Step 2 per owner 2026-11-20, behind the off flag.

devswha added a commit that referenced this pull request Nov 20, 2026
…LL (S2-30..S2-34, S2-37 line) (#4311)

## Track E step 2: the app's account screens (S2-30, S2-31, S2-32, S2-33
minimal, S2-34, one S2-37 line), behind OVIS_ACCOUNT_OPENS_ALL

One PR for Track E's cleared set (relay-hub speed-up rule). Based on
Track D's #4324 head (`feat/s2-26-account-row-rights` 56b1e12, on main
a79d6ca with Tracks A and B merged); it merges right after #4324 and is
retargeted to main then. Supersedes #4294 (S2-30) and #4296 (S2-31).
Cleared by range-diff against the cleared heads (hub + security-triage,
latest: 150/150 '=' at e5ccb30).

### Flag off
With OVIS_ACCOUNT_OPENS_ALL off, a PC lists no account-opens-all/1 and
the app shows and sends nothing new; the PC's roster refuses the
account-records forward exactly as main does (403 forbidden, a5090b6 /
4f7bc54).

### Pieces and receipts
| Piece | Device table rows | Cleared head | Receipts | Ledger |
|---|---|---|---|---|
| S2-30 account open from the sign-in key | T34, T40, P7, P18, G5 |
e472ee0 (+ wire tests b0b57ca) | gate r1-r3, r3 CLEAR; t13r YES |
none |
| S2-31 device notices of the selected PC | P10, P15, T34, T57, T58 |
b441382 | gate r1-r3 CLEAR on 5fc3526; close-X and two-step label
deltas: hub read + t13r YES; lead OK on '2단계 인증 확인 안 됨' | none |
| S2-32 Not me with per-PC receipts | T51, T60, T65 | 4f7bc54 |
pre-review r1-r3; hub cleared 4f7bc54; t13r YES (d8b558a) |
postponed: already_applied wording, Not me after a refused refresh |
| S2-33 the new device's wait card (minimal) | T53, T57, T67, P17 |
f0b174b | hub r2: own commits clear; t13r YES (range-diff) | none |
| S2-34 pairing fingerprint on both surfaces | T71, T72, P11 | aa61b12
| hub cleared at r2; t13r YES (range-diff) | postponed: device wait up
to 5 s past PENDING_MS |
| S2-37 one line: relay-only PC limit on setup | T70 | 888aa72 | hub
cleared r3; t13r YES (range-diff) | none |

Postponed until after switch-on (final scope): It's me, S2-35, S2-36,
the rest of S2-37. Track B's S2-13 commits sit under S2-34 as
cherry-picks (pairing fingerprint, key proof, pending keys, b8edf9e);
they drop out when #4301 merges.

### Changed at the collapse (besides the rebase onto D)
- Conflicts resolved by keeping both sides: shared/relay-channel.ts (E's
negotiation guard + D's hold/receipts forwarding), shared/relay-mux.ts
(D's held/not_listed/admission + B's key_proof_required),
shared/relay-mux-engine.test.ts (both test blocks).
- e6dcb8d: the app offers Track D's ACCOUNT_OPENS_ALL_FEATURE; E's
copy of the constant is gone.
- ee7c9f4: S2-30's wire-byte tests folded in (they need D's decoder).
- One new pin for S2-33: a decoded held refusal reaches the shell's wait
card with its deadline, and with none while the notice is unpublished.

### Since the collapse (each red first; hub checked, security-triage
YES)
- CodeRabbit round: tab race on the sign-in key, lost registration
reply, holds without a deadline and clock skew, open admissions across a
reconnect, a late decline reply, pending keys on sign-out, and a failed
account-service post of Not me's block now kept with a one-tap retry of
the same signed ids (ledger S32-1 for durable retry). New sentence (lead
OK): 'The block did not go through yet.' / '차단이 아직 전달되지 않았어요.' + 'Try
again'.
- Docs: '### Limits of this release' in docs/account.md.
- Rebased onto Track D: B's S2-13 cherry-picks dropped (on main); the
roster block test now signs with members older than any join hold on a
PC that has caught up.

### End-to-end (loopback relay + fake account service, flag on; not
staging)
List admission with the app event socket staying open; the Google 'not
confirmed' notice; Not me through the owner-only roster forward; the
held wait card; fingerprint pairing + Decline; Revoke all: all PASS
(scripts/account-opens-all-e2e-qa.ts, local branch). Not run here: a
block queued before list admission, lift by an older two-step signer
(staging).

### Captures
http://100.106.153.26:18765/s2-screens/ (owner OK; lead OK on the one
new sentence).

### Exports (each new export with its production caller, tests excluded)

##### S2-30
## New exports and their production callers
| Export | Caller (file:line) |
|---|---|
| `accountDevice` | src/lib/relay/shell.tsx:407 |
| `ACCOUNT_OPENS_ALL_MUX_FEATURE` | shared/relay-channel.ts:142,
shared/relay-channel.ts:208 |
| `AccountOpenUnsupportedError` | shared/relay-channel.ts:23,
shared/relay-channel.ts:267 |
| `AccountRowImmutableError` | src/lib/account/accountDevice.ts:21,
src/lib/account/accountDevice.ts:38 |
| `isFatalRelayError` | src/lib/relay/transport.ts:291,
src/lib/relay/transport.ts:355 |
| `myPcs` | src/components/AccountSection.tsx:795,
src/components/RelayAccountPcs.tsx:24 |
| `newKey` | src/lib/account/signInKey.ts:18,
src/lib/account/store.ts:134 |
| `nextOpenStep` | src/lib/relay/shell.tsx:298 |
| `openRefusalOf` | src/lib/relay/shell.tsx:296,
src/lib/relay/transport.ts:60 |
| `registerSigningBytes` | shared/account-records.ts:173,
src/lib/account/service.ts:383 |
| `signInKey` | src/lib/account/store.ts:77,
src/lib/relay/accountController.ts:327 |
| `withAccountDevice` | src/lib/relay/shell.tsx:407 |

### Flag off
Nothing is offered or sent: the service answers 404 (registration
returns null), PCs list no capability, and HELLO is unchanged.

### Tests (written first, each red before its code)
- caaf00e test(app): register this sign-in's own key, keep QR or
digits when the service has no release (T34, G5, T40, P18)
- db09308 feat(app): register this sign-in's own key with the account
service, null when it has no release (T34, G5, T40, P18)
- 39717c3 test(app): only a PC that lists account-opens-all/1 offers
it (G5)
- ddb2b8f feat(app): read account-opens-all/1 from a PC's trusted
features (G5)
- 87b78a0 test(app): a held account sign-in waits, an unlisted one
retries once then offers QR or digits (T34, G5)
- 5b7b482 feat(app): decide the next step when a PC refuses the
account sign-in (T34, G5)
- 0ed6f9b test(app): each sign-in registers a key of its own once and
keeps its number (T34, P18, P21, G5)
- 1a39d8f feat(app): each sign-in registers a key of its own and keeps
its number (T34, P18, P21, G5)
- a89d360 test(app): read held, not_listed and admission from the PC's
refusal, anything else keeps today's handling (T34, G5)
- eddcf3f feat(app): read the PC's account refusal from the relay
sign-in error (T34, G5)
- a0cf7b8 test(app): offer the account-opens-all mux feature in the
relay HELLO only when asked (T34, G5)
- 19f2861 feat(app): offer the account-opens-all mux feature in HELLO
when signing in with the sign-in key (T34, G5)
- 811de61 test(app): sign in to a PC as this sign-in key's account
row, whose key never moves (T34, T40)
- 60b6612 feat(app): sign in to a PC as this sign-in key's account row
and never move its key (T34, T40)

### Validation
`bun run check fast` on the stack top feat/s2-36 at 43234892 (contains
S2-30..S2-36), on main 0839031, via dori heavy: workflow syntax,
generated types/themes fresh, typecheck, build, unit tests (145 s),
actionlint all ok. Per-branch: each tip's own tests + i18n + conventions
+ typecheck. Electron suite (S2-35) 131/131.

##### S2-31
## New exports and their production callers
| Export | Caller (file:line) |
|---|---|
| `DeviceNotices` | src/App.tsx:1137 |
| `keyFingerprint` | src/components/DevicePairedNotice.tsx:39 |
| `noticeSeen` | src/lib/useDeviceNotices.ts:47 |
| `TOLD_KINDS` | src/components/DevicePairedNotice.tsx:20 |
| `useDeviceNotices` | src/App.tsx:337 |
| `withNoticeAcked` | src/lib/useDeviceNotices.ts:52 |
| `withNoticeDecided` | src/lib/useDeviceNotices.ts:59 |
| `withNoticeReplay` | src/lib/useDeviceNotices.ts:38 |

### Flag off
Nothing new is shown or sent: the PC lists no account-opens-all/1, so
every new path stays closed.

### Tests (written first, each red before its code)
- c4ca972 test(app): device notices replay once, ack without deciding,
keep an open admission (T57, P15)
- 1b3a400 feat(app): keep each PC's device notices in journal order
until decided (T57, P15)
- 1341a2a test(app): each PC's notices show once, are acknowledged
once, and a dismiss decides nothing (T57, G5)
- b1b22d2 feat(app): show each PC's device notices and acknowledge
them on that PC (T57, G5)

### Captures
http://100.106.153.26:18765/s2-screens/ (owner OK required before merge)

### Validation
`bun run check fast` on the stack top feat/s2-36 at 43234892 (contains
S2-30..S2-36), on main 0839031, via dori heavy: workflow syntax,
generated types/themes fresh, typecheck, build, unit tests (145 s),
actionlint all ok. Per-branch: each tip's own tests + i18n + conventions
+ typecheck. Electron suite (S2-35) 131/131.

### Since the gate-CLEAR head 5fc3526 (hub + t13r YES on each delta)
- Owner's close X: e7f47e1 red, d82159a fix (an open admission
notice hides locally only; no onDismiss, no ack, no answer).
- Two-step label (owner's Google decision, lead OK on the wording):
e06d278, 182a66c, 8d567de reds; b441382 fix (a list admission
whose two_step is present and not set/verified shows '2단계 인증 확인 안 됨' /
'Two-step sign-in not confirmed' even without a method).

#### New exports and production callers (tests excluded)

| Export | Production caller |
|---|---|
| DeviceNotices | src/App.tsx:1137 |
| keyFingerprint | server/push.ts:440, server/push.ts:599,
server/push.ts:605 |
| noticeSeen | src/lib/useDeviceNotices.ts:47 |
| NoticeSocket | src/lib/useDeviceNotices.ts:20 |
| PcNotices | src/lib/deviceNotices.ts:27, src/lib/deviceNotices.ts:41,
src/lib/deviceNotices.ts:45 |
| TOLD_KINDS | src/components/DevicePairedNotice.tsx:21 |
| useDeviceNotices | src/App.tsx:337 |
| withNoticeAcked | src/lib/useDeviceNotices.ts:52 |
| withNoticeDecided | src/lib/useDeviceNotices.ts:59 |
| withNoticeReplay | src/lib/useDeviceNotices.ts:38 |

None is tests-only.

##### S2-32

| Export | Production caller |
|---|---|
| ACCOUNT_SIGN_OUT_EVENT | src/components/AccountDeviceNotices.tsx:133,
src/components/AccountDeviceNotices.tsx:137,
src/lib/account/service.ts:504 |
| answerOnPc | src/lib/account/noticeAnswer.ts:57 |
| AnswerSocket | src/lib/account/noticeAnswer.ts:16,
src/lib/account/noticeAnswer.ts:48 |
| BlockOutcomes | src/components/AccountDeviceNotices.tsx:104 |
| BlockSend | src/lib/account/fleet-block.ts:60,
src/lib/account/fleet-block.ts:62, src/lib/account/fleet-block.ts:67 |
| canBlockAdmission | src/components/AccountDeviceNotices.tsx:40,
src/lib/account/fleet-block.ts:22 |
| FleetBlock | src/components/AccountDeviceNotices.tsx:39,
src/lib/account/fleet-block.ts:35, src/lib/account/fleet-block.ts:65 |
| indexedAccountService | src/components/AccountDeviceNotices.tsx:47,
src/components/AccountDeviceNotices.tsx:89,
src/components/AccountSection.tsx:192 |
| notMeBlocks | src/components/AccountDeviceNotices.tsx:51 |
| NotMeButton | src/components/AccountDeviceNotices.tsx:105 |
| notMeTransports | src/components/AccountDeviceNotices.tsx:76 |
| OwnKey | src/components/AccountDeviceNotices.tsx:17,
src/lib/account/fleet-block.ts:12, src/lib/account/fleet-block.ts:21 |
| postSafetyRecord | src/components/AccountDeviceNotices.tsx:92 |
| recordsOnPc | src/lib/account/noticeAnswer.ts:64,
src/lib/account/noticeAnswer.ts:65 |
| sendBlocks | src/components/AccountDeviceNotices.tsx:90 |
| useAccountDeviceNotices | src/App.tsx:336 |
| withBlockReceipt | src/lib/account/fleet-block.ts:79 |

None is tests-only. Not me posts the signed block to the account service
(POST /v1/safety-records, ovis-sh/account #44) and to each roster PC;
the roster forward of POST account/records is owner-only
(server/machine-api.ts) and carries x-herdr-machine for the receiver's
origin check. A PC reads blocked only on its own channel's receipt.

##### S2-33

| Export | Production caller |
|---|---|
| holdWaitMs | src/components/JoinWait.tsx:34 |
| JoinWait | src/components/AddPcSheet.tsx:165,
src/components/RelayShellScreens.tsx:272 |

None is tests-only.

##### S2-34

| Export | Production caller |
|---|---|
| declinePendingKey | src/App.tsx:1137 |
| KeyFingerprintWait | src/components/AddPcSheet.tsx:167,
src/components/RelayShellScreens.tsx:267 |
| PendingKeys | src/App.tsx:1137 |
| useRosterEvents | src/App.tsx:319 |

None of Track E's is tests-only. Rows from Track B's S2-13 (#4301:
pairing fingerprint, key proof, pending-key routes, incl.
PAIR_FINGERPRINT_PATTERN which only B's test uses) sit under this branch
as cherry-picks and drop out when S2-13 merges and this branch rebases;
they are listed in #4301.

##### S2-37 line

| Export | Production caller |
|---|---|
| relayOnlyPc | src/components/RelayOnlyWarning.tsx:21,
src/components/SetupGuide.tsx:778, src/components/SetupGuide.tsx:1117 |
| RelayOnlyWarning | src/components/SetupGuide.tsx:75,
src/components/SetupGuide.tsx:841 |

None is tests-only.

---------

Co-authored-by: sisyphus-dev-ai <[email protected]>
devswha added a commit that referenced this pull request Nov 20, 2026
…at once, behind OVIS_ACCOUNT_OPENS_ALL (OD3, T53) (#4337)

## It's me ends a new device's 10-second hold at once, behind
OVIS_ACCOUNT_OPENS_ALL

Owner decision OD3 (a new device signed in through the account waits 10
s; "It's me" pressed on an older device lets it in at once). Step-2 item
postponed until after the owner's trial; built now behind the flag.

Device table rows: **P15, P17, T53, T57**, OD3.

### What changes
- **Server** (`server/core/socket.ts`): the `notice-answer` `its_me`
route no longer answers `not_supported`. It calls
`notices.itsMe(deviceId, id, provedKey)` only with the session's proved
key, never a bare device id, and replies nothing; the PC's published
`confirm` notice is the answer. The checks are the ones already merged
in #4324 (`devices.itsMe` -> `provedSayer` -> `promotedHolds.mayConfirm`
/ `joinedRows.itsMe` -> `mayEndHold`: older, live, not held, admitted
here over an hour ago, not stale, not failing closed).
- **App**: the "It's me" button on an open admission notice comes back
(the code removed in 6e47144 while early approval was postponed),
merged onto main's S2-32 Not me code. It goes only to the admission's
own PC (notice ids are PC-local), with one resend after 5 s; it counts
only a published `confirm` matching row, key, number and account
(`confirmsAdmission`). The new device's wait card again says other
devices can let it in.
- **Relay-hub LOW (taken)**: a PC answers a refused It's me with
nothing, so after the resend the card says "{pc} did not accept It's me
from this device." on its own row; pressing again clears it.

### Flag off
A PC without the flag has no notices: an `its_me` answer is ignored
without a reply, as on main (socket.test "flag off").

### Tests (each red at its own commit, before the code)
- ad36e28 test: socket answers It's me only with the proved key
(socket.test T53); relay contract: an older member's It's me over its
relay session ends the hold at once (session drive, notice decided,
confirm published) (its-me-route.contract.test); app tests restored
(AccountDeviceNotices, App.deviceNotices, JoinWait, joinHold).
- b58c0aa feat.
- 265d93e test: a refused It's me says so after its one retry and can
be pressed again. f39aa5b feat, c309cb6 layout.

### New exports and their production callers (tests excluded)
| Export | Caller |
|---|---|
| `answerOnPc` (its_me request form) |
src/components/AccountDeviceNotices.tsx (ItsMeAction),
src/lib/account/noticeAnswer.ts (notMeTransports) |
| `confirmsAdmission` | src/lib/deviceNotices.ts (withNoticeReplay),
src/lib/account/noticeAnswer.ts (answerOnPc) |
| `itsMeAnswer`, `withItsMeSent`, `withItsMeAnswered`, `ItsMeWaiting` |
src/components/AccountDeviceNotices.tsx (ItsMeAction) |
| `ItsMeButton` | src/components/AccountDeviceNotices.tsx (ItsMeAction)
|

### Reviews
- relay-hub (t13t): matches the table (rev 8), at b58c0aa and
c309cb6.
- security-triage (t13r): YES on access at b58c0aa and c309cb6.
Ledger S2P-1 (a legacy local drive row may say It's me for an account
row; ruled matching the table, no change).
- dori review + omo gate reviewer: run by relay-hub on this head.

### Captures (new sentence only: the refusal line; the button and wait
hint are the S2-33 set the owner saw)
http://100.106.153.26:18765/s2-screens/s2-postponed/ (its-me-*,
its-me-refused-*). Lead OK on the refusal sentence pending.

### Validation
`bun run check fast` on c309cb6 via dori heavy (hosthatch): workflow
syntax, generated types/themes, typecheck, build, unit 20814 pass / 0
fail. Skipped: full / browser suites (CI).
devswha added a commit that referenced this pull request Nov 20, 2026
## What changes

The one README PR after step 2 (step 2 is on for everyone in 0.5.8,
#4377). It folds in #4269 and covers what 0.5.6 to 0.5.8 add. The change
is the same in all four languages (English, Korean, Japanese, Simplified
Chinese):

- **On your phone** is now short: the App Store and Google Play links,
and a note that the app opens on the sign-in (#4256, #4266). This
replaces #4269's line.
- New section **Your PCs, anywhere**: sign in with GitHub, Google or
Apple, and the computers in the account show up on the desktop app (Mac,
Windows, Linux), the phone apps and any browser at app.ovis.sh. They
connect through the end-to-end encrypted relay. Three bullets:
- **Add a computer**: Settings → Devices and PCs → Account, sign in and
add this PC. A new account's first computer, or one added right after a
two-step sign-in, can go in with one press (#4363, #4351,
`changelog.d/one-press-pc-add.md`). Otherwise a phone signed in to the
same account finishes it by the relay's QR code (**Add a connection →
Phones and devices**, relay on, **Show the QR code**; #4353, #4169).
- **Add a phone or another device**: sign in to the same account and
open the computer; if it asks, approve on that computer or on a device
that already uses it (#4259, #4324, #4351).
- **Without an account**: Tailscale, Wi-Fi or SSH (**Start without
signing in** on the phone, **Add a connection → Tailscale / Direct** on
the desktop). The Android app connects over SSH by itself and can
install Ovis there (#3862).
- Features: "Every workspace in one list" now says other PCs connect
over the relay or SSH. A new bullet covers the per-agent **Browser
tool** in Settings → Agents (Chrome DevTools MCP or Playwright MCP) and
the desktop app's **Browser for links**.

The UI labels are taken from the app's own strings (`src/lib/i18n*`) in
each language. The text names no prices or plans.

**Hold:** README changes wait for the maintainer to preview and approve
them. This PR must not merge before #4377 (step 2 on by default),
because the one-press add needs it.

Closes #4269.

## Validation

- README files only; no code, so no CodeRabbit re-review is needed after
later docs-only commits.
- `bun run check fast` at 59baaef (remote heavy host): exit 0
(typecheck, build, unit 21502 pass / 0 fail). The next commit changes
README text only.
- Reviews: omo gate reviewer round 1 BLOCK (fixed in 7f867f0), round 2
BLOCK (QR shows only after the PC is added, with the relay on; approval
on the PC or a device that drives it; fixed in the next commit); `dori
review` CLEAR at 7f867f0. Round 3 follows in a comment.
- The guide anchors it links to exist: `docs/guide.md#on-your-phone`,
`docs/guide.md#through-an-account`, `docs/remote-pcs.md`.
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