A gleva sign-off records a runner’s observation of one command for one gleva
change and Git tree. It is the predicate of an in-toto Statement v1 carried
in a DSSE envelope; it is not the envelope or the complete Statement.
Type URI: https://gleva.dev/attestation/signoff/v0
The gleva maintainer owns gleva.dev, and this URI resolves to this
specification. TypeURIs are not centrally registered; the in-toto rules say
they should be versioned and should resolve to documentation.
Version: 0.0.0
The Attestation Framework treats every 0.X version as a major version.
Gleva’s already-deployed TypeURI compresses this initial 0.X contract to
/v0. Under gleva decision 0023, any predicate shape change mints /v1
rather than changing /v0 in place.
Predicate Name: gleva-signoff
The predicate lets a runner sign what arbitrary command it executed, the declared inputs and execution context that formed its action key, and the observed result. The surrounding Statement binds that observation to a stable gleva change id and an exact Git tree. The DSSE signature identifies the key that made the observation.
The record is evidence, not an authorisation decision. A consumer separately decides whether it trusts the signing key, whether the subject is the intended change and tree, whether an action key is fresh, and whether the result meets policy.
A gleva runner can attest a test, build, licence check, schema check, or other arbitrary command requested for a change. A policy verifier can ask:
Existing predicates cover useful parts but not this combined binding. An in-toto Link records materials, products and a command but does not carry gleva’s change identity and action-freshness semantics. Test Result describes test outcomes but not arbitrary commands and their declared action inputs. SLSA Provenance describes a build, while a gleva sign-off covers non-build commands as well. Runtime Trace describes runtime activity rather than one policy-evaluable change action. Translating to one of those predicates would therefore require an out-of-band gleva binding.
A consumer needs an in-toto Statement v1 and DSSE implementation, the gleva
v0 predicate schema, and an Ed25519 verifier for the self-describing
did:key in signatures[].keyid. Generic DSSE support alone is insufficient:
gleva additionally requires canonical JSON bytes and exactly one signature.
The Statement has exactly one subject. subject[0].name is the full gleva
change id and subject[0].digest.gitTree is the sole digest, naming a 40- or
64-character lower-case hexadecimal Git tree object id. _type is
https://in-toto.io/Statement/v1, and predicateType is the Type URI above.
The DSSE payloadType is application/vnd.in-toto+json.
The runner executes the command, observes the result and signs the canonical
Statement. The requesting agent does not sign its own evidence. The
run.runner object is only the runner’s claim about the harness and version;
the cryptographic identity is signatures[].keyid. A valid signature proves
control of that key, not that policy trusts the key or the runner claim.
The change id and Git tree live in the Statement subject. The signature lives
in the DSSE envelope. Neither is duplicated in the predicate. The predicate’s
action describes what was run; run describes what happened.
An action key binds the ordered argument vector, path-sorted exact input
records, sorted toolchain records, and sorted named environment entries whose
values participate transiently but are not stored. The predicate carries the
exact expanded path/digest records, not policy directory prefixes. This proves
only the declared set, not hermetic execution. Undeclared reads, untracked
files, the Cargo registry and cache under ~/.cargo, and ambient RUSTFLAGS
or CARGO_* values remain outside the claim unless deliberately declared by
another mechanism.
The normative predicate schema is
https://gleva.dev/schema/v0/signoff.schema.json, tracked in gleva as
schema/v0/signoff.schema.json. It is a closed JSON object except for its
metadata extension bag. The table below is a human-readable projection;
the schema and gleva decision 0002 remain normative if prose and machine
projection disagree.
The schema’s vocabulary is wider than current production emission. The
current runner emits the action, runner, observation time, duration and exit
code; it may emit a parsed Cargo test tally and execution-failure metadata.
The schema accepts run.result.artefacts, but the current runner path does
not populate it.
Consumers of this version preserve the emitted snake_case wire names. This is
a deliberate deviation from the upstream lowerCamelCase recommendation.
Fixed objects reject unknown fields rather than applying in-toto’s usual
ignore-unknown, monotonic parsing rule. Only metadata admits extension keys;
those keys must contain neither . nor $, and gleva: plus a leading _
are reserved. Metadata is never load-bearing for policy and may never turn a
DENY into an ALLOW. A policy-relevant extension graduates to a native field
in a new predicate version.
Optional fields are absent when unavailable; they are not encoded as null.
action.env_allowlist contains unique portable environment variable names,
never assignments or values. Arrays retain their stated order unless a field
rule says otherwise.
The Statement payload and DSSE envelope are each pretty-printed JSON followed by one LF byte. Verification rejects any other byte representation. The envelope uses the generic in-toto JSON payload type and contains exactly one signature. The single-signature rule is a gleva constraint even though DSSE permits multiple signatures.
Requiredness is yes, yes within when required by an optional parent or
array item, and no when the member may be absent. A $ref is named rather
than expanded. Array paths use [].
| Field | Type | Req | Constraint |
|---|---|---|---|
schema_version |
string | yes | exactly v0 |
action |
object | yes | closed object |
action.action_key |
string | no | 64 lower-case hexadecimal SHA-256 characters; absence means tier zero |
action.command[] |
array of string | yes | at least one item; ordered argument vector |
action.inputs[] |
array of object | no | exact declared files |
action.inputs[].path |
string | yes within | repository-relative input path |
action.inputs[].digest |
DigestSet | yes within | algorithm names to string digests |
action.toolchain[] |
array of object | no | tools used by the action |
action.toolchain[].name |
string | yes within | invoked tool name |
action.toolchain[].version |
string | yes within | reported version |
action.env_allowlist[] |
array of string | no | unique environment names only |
run |
object | yes | closed object |
run.runner |
object | yes | closed runner claim |
run.runner.id |
string | yes | claimed harness identity, not a signing key |
run.runner.version |
string | no | claimed harness version |
run.observed_at |
string | yes | RFC 3339 date-time |
run.duration_ms |
integer | no | zero or greater |
run.result |
object | yes | closed result object |
run.result.exit_code |
integer | yes | observed process exit code |
run.result.tests |
object | no | closed parsed-test summary |
run.result.tests.passed |
integer | no | zero or greater |
run.result.tests.failed |
integer | no | zero or greater |
run.result.tests.skipped |
integer | no | zero or greater |
run.result.tests.ids[] |
array of string | no | test identifiers |
run.result.artefacts[] |
array of object | no | produced files; accepted by schema but not currently emitted |
run.result.artefacts[].path |
string | yes within | repository-relative artefact path |
run.result.artefacts[].digest |
DigestSet | yes within | algorithm names to string digests |
metadata |
object | yes | extensible, non-policy bag with restricted keys |
This complete Statement is generated from the same deterministic predicate,
tree, emitted-form 32-letter k–z change id and fixed test key used by gleva’s
conformance test. The test passes it through the production statement,
sign and verify seams before comparing this JSON semantically. It is not
the older schema-only fixture and deliberately contains no artefacts.
{
"_type": "https://in-toto.io/Statement/v1",
"subject": [
{
"name": "klmnopqrstuvwxyzklmnopqrstuvwxyz",
"digest": {
"gitTree": "0123456789abcdef0123456789abcdef01234567"
}
}
],
"predicateType": "https://gleva.dev/attestation/signoff/v0",
"predicate": {
"action": {
"action_key": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"command": [
"cargo",
"test",
"-q"
],
"env_allowlist": [
"CI"
],
"inputs": [
{
"digest": {
"sha256": "abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
},
"path": "Cargo.toml"
}
],
"toolchain": [
{
"name": "cargo",
"version": "cargo 1.90.0"
},
{
"name": "rustc",
"version": "rustc 1.90.0"
}
]
},
"metadata": {},
"run": {
"duration_ms": 1250,
"observed_at": "2026-10-12T18:00:00Z",
"result": {
"exit_code": 0,
"tests": {
"failed": 0,
"passed": 405,
"skipped": 1
}
},
"runner": {
"id": "gleva",
"version": "0.0.0"
}
},
"schema_version": "v0"
}
}
Implementations should separate these checks because none substitutes for the next:
Gleva’s Rust conformance test generates and verifies the example through the
production signer and mechanically compares this Fields table with the schema
in both directions. schema/v0/validate.sh independently checks the schema
and historical structural carrier fixture.
0.0.0: initial public draft of deployed /v0 behaviour.There is no earlier public version to migrate. Any predicate shape change
mints /v1; /v0 remains readable as the immutable compatibility contract.
schema/v0/signoff.schema.json; and
crates/gleva/src/signoff/envelope.rs