Documentation
¶
Index ¶
Constants ¶
const ReplayGuard = "change-set-equivalence/v1"
ReplayGuard names the convergence/replay correctness guarantee compiled into THIS binary. It is runtime-provable provenance: the replay change-set equivalence gate (src/commit) and this marker ship in the same build, so a stale binary built before the gate reports no/older marker. That closes the "binary claimed a lineage it did not possess" gap — a forged or absent version stamp can no longer hide a missing guard. Bump when the replay invariant changes.
Variables ¶
var ( Version = "dev" Commit = "unknown" BuildDate = "unknown" )
These variables are injected at build time via -ldflags.
Functions ¶
func SelfHash ¶ added in v0.7.0
func SelfHash() string
SelfHash returns the SHA-256 of the running executable — authoritative runtime identity that does NOT depend on the (forgeable, ldflags-set) version stamp. Two binaries with the same stamp but different code have different SelfHash.
func Verbose ¶ added in v0.7.0
func Verbose() string
Verbose returns multi-line provenance: the build stamp plus runtime-derived identity (Go version, executable SHA-256) and the compiled-in replay-guard capability — so "which binary is actually running, and does it carry the guard?" is answerable without trusting the embedded stamp alone.
Types ¶
This section is empty.