Public Access
Merge branch 'claude/vault-realtime-push-d64c61'
This commit is contained in:
@@ -1500,3 +1500,83 @@ delivery survives the failure because it is held against the transfer rather tha
|
||||
**Failure means:** a retry that succeeds but leaves the destination empty is the delivery having been
|
||||
dropped on the failure. An error saying the staged file is missing is the copy having been deleted at the
|
||||
stop, which is what `QueueDeliveredDownload` documents it does not do.
|
||||
|
||||
## Phase 15 — Changes that arrive without a timer
|
||||
|
||||
The socket is covered by tests on both sides: the endpoint suite opens a real one against a real
|
||||
`TestServer` and proves a push produces a notice, that another account's push does not, and that a frame
|
||||
carries no ciphertext; the shell suite proves a notice wakes the synchronisation loop long before the
|
||||
minute. What none of that can reach is **the network in between**, and that is where this feature is most
|
||||
likely to fail: a reverse proxy that will not upgrade, one that drops an idle socket without telling either
|
||||
end, a corporate middlebox, a phone moving between Wi-Fi and mobile data. Every one of those looks the same
|
||||
from inside a test host, which has no proxy and no radio.
|
||||
|
||||
The pass condition throughout is *two* things, and the second matters as much as the first: it arrives
|
||||
quickly, **and** it still arrives when the socket is gone. A build where the timer had stopped working would
|
||||
pass every "it was fast" check here and fail nobody until somebody's proxy changed.
|
||||
|
||||
### 15.1 A colleague's edit appears while you are looking at it
|
||||
|
||||
Two accounts sharing a vault, both unlocked, both on the Hosts screen. On the first machine, rename a host
|
||||
in the shared vault and save.
|
||||
|
||||
**Pass:** the second machine's list shows the new name within a second or two, with nothing pressed and no
|
||||
screen flicker — the row updates, the selection does not move, and the status line is not repainted with a
|
||||
sync report.
|
||||
|
||||
**Failure means:** nothing within a minute, then the new name, is the socket not being established at all —
|
||||
that is the timer doing its job, which is the correct fallback and not the feature. Check `/api/v1/meta`
|
||||
lists `events`, then whether the proxy in front of the API forwards `Upgrade` and `Connection`. A list that
|
||||
never updates at all is a synchronisation failure and has nothing to do with this phase.
|
||||
|
||||
### 15.2 A vault shared with you turns up as it is shared
|
||||
|
||||
The second account signed in and unlocked, sitting on the VAULTS screen. From the first, add them to a team
|
||||
and press SHARE KEY.
|
||||
|
||||
**Pass:** the vault appears in their list within a second or two of the key being wrapped, and reads as
|
||||
waiting for a key until the share, then as readable.
|
||||
|
||||
**Failure means:** the vault appearing only on the minute is the `vaults.changed` notice not being published
|
||||
or not being followed. Both the membership add and the grant publish one; if the membership arrives promptly
|
||||
and the key does not, the grant path is the one to look at.
|
||||
|
||||
### 15.3 It still works with the socket taken away
|
||||
|
||||
On the second machine, block the WebSocket — the simplest way is a proxy rule rejecting the upgrade, or
|
||||
setting `Events:Enabled` to `false` on the server and restarting it.
|
||||
|
||||
**Pass:** everything above still happens, within the minute rather than within seconds. Nothing on the
|
||||
screen says anything is wrong, because nothing is: no error, no OFFLINE badge, no repeated status message.
|
||||
The Sync button still works and still reports.
|
||||
|
||||
**Failure means:** an error message, a titlebar claiming to be offline, or a status line that repaints with
|
||||
a socket failure is the client treating an absent push channel as a fault. It is not one — the timer is the
|
||||
guarantee and the socket is the optimisation, and a user with a strict proxy must never be told their
|
||||
keychain is broken.
|
||||
|
||||
### 15.4 A laptop that slept comes back on its own
|
||||
|
||||
With the second machine idle and connected, close the lid for a few minutes — or disable Wi-Fi for two
|
||||
minutes and re-enable it. Then make a change on the first machine.
|
||||
|
||||
**Pass:** the change arrives quickly again, without the vault having been locked or the application
|
||||
restarted. The reconnection is invisible.
|
||||
|
||||
**Failure means:** changes that arrive only on the timer from then on are the stream having given up after
|
||||
its socket died — the reconnection loop is what should make that impossible, and a client that reconnects
|
||||
once and not twice is the specific defect its tests exist to catch. Changes that never arrive again, timer
|
||||
included, are a different and worse bug in the synchronisation loop rather than in the socket.
|
||||
|
||||
### 15.5 An expiring token does not end the push
|
||||
|
||||
This one needs a short access-token lifetime in the identity provider — the dev realm's Keycloak client can
|
||||
be set to a couple of minutes. Leave a machine unlocked and idle for longer than that, then make a change
|
||||
elsewhere.
|
||||
|
||||
**Pass:** the change still arrives quickly. The socket is closed by the server at the token's expiry and the
|
||||
client reconnects with a fresh one, which should be invisible.
|
||||
|
||||
**Failure means:** notices stopping at roughly the token's lifetime is the reconnection not asking for a new
|
||||
token — it would be dialling with the spent one and being closed again immediately. A burst of reconnection
|
||||
attempts in the server log is the same defect seen from the other end.
|
||||
|
||||
Reference in New Issue
Block a user