# git rev-parse HEAD; git log -1 --format=fuller 7822e49cc84ee421fa9d0dbddd8fff6257019be9 commit 7822e49cc84ee421fa9d0dbddd8fff6257019be9 Author: SingLinkLabs <227677126+SingLinkLabs@users.noreply.github.com> AuthorDate: Wed Nov 18 22:02:36 2026 +0800 Commit: SingLinkLabs <227677126+SingLinkLabs@users.noreply.github.com> CommitDate: Wed Nov 18 22:02:36 2026 +0800 Never answer a copy of an admitted flight with a status-only refusal (F-01) Reported by VPN Labs against b924690: a first flight admitted with STATUS 0 while its token was valid, replayed after the token's NotAfter but inside the 120 s timestamp window, got an authenticated STATUS 1 (token expired) instead of the fallback, because the expired refusal was decided before the durable replay check and the status-only branch only consulted the per-process set. - Decide expiry against the flight timestamp as well: an expired-token flight stamped early enough that any instance could have admitted it before NotAfter (ts < NotAfter + 121 s) takes the durable path, so the atomic mark decides between original and copies; it is still answered with status 1 only and no destination operation. - Add a read-only ReplayStore.Has lookup (file store on Unix and Windows, same lock as CheckAndMark, no writes). Every other status-only refusal (unknown command, capability, destination policy) looks the tag up first; a held tag goes to the fallback like any replay, a failed or timed-out lookup fails closed. The lookup is skipped for over-quota subjects and for expired flights that cannot have been admitted, so lapsed tokens cannot contend for the store lock. - Breaking for library users with their own ReplayStore: implement Has (linearizable with CheckAndMark, fail closed). - Wire format, IDENT, KDF and probe resistance are unchanged. Regression tests in singlink/replay_expiry_test.go (single process and two processes sharing the store, every status-only path, concurrency, store failure, read-only lookup). SPEC 5.2/5.4, SECURITY.md and docs/SECURITY-REMEDIATION.md (F-01 entry) updated. # git diff --stat b924690..HEAD SECURITY.md | 5 +- SPEC.md | 43 +-- docs/SECURITY-REMEDIATION.md | 104 +++++++- singlink/admission_order_test.go | 40 ++- singlink/replay_expiry_test.go | 503 +++++++++++++++++++++++++++++++++++ singlink/replay_store.go | 38 +++ singlink/revocation_security_test.go | 4 + singlink/server.go | 80 +++++- singlink/status_marks.go | 40 ++- 9 files changed, 795 insertions(+), 62 deletions(-)