13 lines
567 B
Go
13 lines
567 B
Go
// 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)
|