Keep original recording facts across verified Agent session cutovers

This commit is contained in:
2026-09-30 21:04:48 +08:00
parent 8c5c85e439
commit 75e489fff0
10 changed files with 406 additions and 26 deletions
+12
View File
@@ -0,0 +1,12 @@
// Package session shares the verified Agent cutover refusal across the
// Dispatcher, recording RPC server, and Agent without coupling their lifecycles.
package session
import "errors"
// GenerationTransitionMessage is the sole retryable recording RPC refusal.
const GenerationTransitionMessage = "verified Agent session generation changed"
// ErrGenerationTransition marks an adjacent active-session mismatch; it does
// not authorize the rejected fact or bypass the latest-generation fence.
var ErrGenerationTransition = errors.New(GenerationTransitionMessage)