Commit 53849c6
committed
docs: describe device-token rotation race as open, not fixed
Codex review on #71156 correctly flagged that the AGENTS.md was
describing a synchronous 'invalidated' flag on GatewayWsClient plus a
per-RPC dispatch guard as already-landed guarantees, when they live in
the still-open fix/gateway-device-token-rpc-revalidation PR. On main,
GatewayWsClient has no 'invalidated' field and message-handler.ts only
re-checks usesSharedGatewayAuth. Documenting the proposed fix as a
shipped guarantee could let reviewers wave through rotate/revoke code
paths that are in fact still racy against pipelined RPCs.
Rewrite three references in the two AGENTS.md files:
- Reframe the 'Related incidents' list in server-methods/AGENTS.md
from 'landed' to 'in-flight' and mark rotate/revoke on main as
best-effort rather than race-safe.
- Rewrite the 'Shared-auth vs device-token' section in
channels/plugins/AGENTS.md to describe current main (no per-RPC
check for device-token) and position the 'invalidated' flag as a
proposal, not a state.
- Rewrite the rotate/revoke 'must never happen' bullet from 'the
invalidated flag must be set before respond()' to a mechanism-
agnostic invariant ('old-token authority must end before response
flush, whichever mechanism closes the race').
No code changes. Keeps the content honest against main until the
device-token PR lands (which this doc PR does not depend on).1 parent f371c27 commit 53849c6
2 files changed
Lines changed: 31 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments