Skip to main content

Module attest_inputs

Module attest_inputs 

Source
Expand description

amont’s side of attest’s input fingerprints and canonical tree.

The format itself (the greensummit-inputs grammar, fingerprints, the canonical tree, note keys, the opt-out, the completeness proof) belongs to the greensummit library, attest’s one implementation of it (decisions ADR-0037). What stays here is amont’s own knowledge on top of it: which route its LOCAL gate stamps take, and the key those stamps are filed under. The hook runs at the worktree top, so “the repository” is ..

Structs§

Findings
What check_coverage found. Empty means every required gate declares every tracked file.
Spec
The committed declaration of which paths each gate reads.

Enums§

CoverageError
Why the coverage question cannot be answered. A guard that cannot answer fails, unlike the verifier, whose contract is fail-open.

Constants§

EXEMPT
Paths no gate reads, exempt from the coverage check: the plans a change keeps rewriting. Everything else a repository tracks is either declared or the check fails.

Functions§

check
Do the required gates declare, completely, everything tree tracks? attest’s proof (greensummit check-inputs runs the same one).
conf_says_plan_exempt_off
Does this amont.conf say set planExempt off? One tolerant reading, shared with amont and verify.sh: strip CR, trim blanks, split on blanks, and compare the three words set, planExempt and off ASCII case-insensitively. A line that is not exactly those three words (a trailing comment, another value) does not match; any match anywhere is off.
deprecated_opt_out
The line to print when HEAD opts out of the canonical tree through set planExempt off in amont.conf alone: still honoured, deprecated, and read by attest only until 2.0.0 (decisions ADR-0037).