version

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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 String

func String() string

String returns the one-line version string.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL