Whole-branch review — Claude Fable 5.2 (claude-fable-5-2), reading git diff 0250ef1 2e70647 as one diff.
Verdict: APPROVE. Nothing blocking. Seven LOW follow-ups and one manual check to do before a release.
How I checked. Review-only worktree at 2e70647 (removed afterwards; docs-straight-in untouched). Read the kit at 1e36aac, spec §9, and Sheets 03d52db for parity. Ran swift test for OficinaIDAdoptionTests, SignedInLaunchTests, WorkspaceInitTests and TransportSupplierTests: 35 passed. I did not run the Go tests myself (no make target here; relied on hub CI) and ran nothing on iOS.
The 0.1.7/0.1.8 hang: not reintroduced.
DocsAccountWindow.body,oficinaWorkspace,teamPicker,signedIn,routeandDocsDocumentWindow.bodyonly read. Every write (start, suspend/resume, the replace guard, the recents/transports cleanup) is in.task,.onChange,.onAppearor a button.DocsOficinaSession.transport(for:)andclient(for:)are pure;mounted/signInschange only from the step publisher.- Mutation check: I put
windows.entries = windows.entriesintooficinaWorkspace. Both SignedInLaunchTests went red for the right reason (the body test's assertion, and the settle test's 60 s watchdog).
Server change: safe.
errSessionEndedis returned only at theconnect.Expiredbranch and wrapserrIdentityRefused, so everyerrors.Iscaller (linkedSubject, suite, agent store,team_stream) behaves as before.- Unlinked or removed identities and
requireAdmissionkeep the generic line. GET/HEAD still 303. - No browser script reads the body. An expired-session holder learns nothing they could not already get from
sessions.Require.
Re-mint cannot loop. rejected() allows one re-mint per account per 60 s, plus the renewing guard. A server that always answers "signed out" costs one assertion and exchange a minute while requests are being made, and the drainer stops on sessionEnded in between.
Repin: clean. Kit Package.swift and LICENSE are unchanged between f1c7a14 and 1e36aac, so the provenance sha256 holds. Package.resolved, both project.yml files, provenance.json and Colophon.json all carry 1e36aac.
Sheets' leftover LOWs. Docs avoids "picker Use another over outage" (nil unless .signedIn, and the session re-guards). It keeps the confirm-time doc guard gap (finding 2) and the redundant suspend (finding 7).
Findings
- LOW — the unsent check runs after the dialog is up.
DocsAccountWindow.swift:88-97, 192-196. From the Mac menu the item is gated on open windows andcreatingDocumentonly, so with a non-empty outbox the confirmation is presented, then withdrawn and replaced by the "still sending" alert. I probed this in the hosted window: the alert appears and the identity is kept, so the guard works. Until the asyncDocsLeaveBlock.checkreturns, a confirm goes through, and nothing re-checks at confirm. The outbox is left on disk, not deleted, and resumes only if the same identity signs in again. Fix: inuseAnother(_:), awaitDocsLeaveBlock.checkfirst and calloficina.useAnotheronly when it is clear; keep theonChangeas backstop.
- LOW — no guard at confirm time (same as Sheets). With the dialog up on the home window, File ▸ Recent or ⌘N (
DocsWindowCommands.swift:34-48) can still open a document window of the identity. Confirm then signs it out underneath;:115-120keeps that window's transport but its session is gone, so edits queue in an outbox nobody is signed in to. Fix: cancel the replace whenopenDocuments(of:)turns true whileconfirmingReplace.
- LOW — lanes already held as "access lost" do not resume.
sessionRestored()only clearssessionEnded(kitOutboxDrainer.swift:135), and Docs never releases aHold(.accessLost). The branch stops new holds from a 7-day expiry; a lane held by 0.1.8, or by the new app against a server without this change, stays held after a re-mint. Deploy the server before shipping the app.
- LOW — the drainer can be left in
sessionEndedwith a good session. A re-mint set off by another request completes and callssessionRestored, while the drainer's write sent on the old cookie is still in flight. Its "signed out" then lands, setssessionEnded, andrejected()drops it under the 60 s limit (DocsOficinaID.swift:214-221). The outbox shows "needs sign-in" until the next foreground or document open. This was unreachable for writes while they were 403. Fix: inrejected(), if the account's session has already been replaced, callDocsOfflineAccount.sessionRestored(account)instead of returning.
- LOW —
straightInSuspendedcan drift from the route. The picker's "Other ways" is not blocked by open document windows (:232-236). With home on the server route and an Oficina document window open, a 401 or "signed out" there runssessionRejected→ kitsignedIn(), which clears the flag (OficinaIDModel.swift:762) while the route is still.server. A later identity appearing on the device could then go straight in behind Docs' own sign-in (rule 0). No data risk. Fix in Docs (re-suspend after a re-mint on the server route) or in the kit (do not clear on a re-mint).
- LOW — tests. - The window-level Use another guard (
:88-97: unsent, open document, outage) has no committed test; the session-level tests never reach it. A SignedInLaunchTests case that enqueues one outbox entry and assertsconfirmingReplace == falsewith the identity still present would pin it. -TestNativeContractOtherRefusalsDoNotSaySignedOutcallsrefuseIdentity(…, false)directly, so it proves the function, not the stack. A real refusal through the router (a live native session whose link or principal was removed, then a POST) is the case that matters. -testBuildingTheSignedInWindowBodyChangesNothingItWatchesnever asserts the body took the Oficina branch; a server account in the runner's defaults or keychain would let it pass vacuously.
- NIT —
teamPicker'sotherWayscallsmodel.suspendStraightIn()and.onChange(of: route)does it again. Harmless.
Check before release (not verified by me or by any test). Teams sheet → "Use another Oficina ID" sets pickingTeam = false and confirmingReplace = true in the same tick (:236-239), so the confirmation is presented while the sheet is dismissing. My probe called the session directly, not through the sheet. UIKit can drop a presentation made during a dismissal; please tap through it once on an iPhone and once on the Mac.