Expand description
e2e attest / e2e verify — the e2e decision nudge. attest records the runner’s chosen
command as a branch-keyed receipt; verify confirms a branch changing scoped source has one.
Structs§
- Attestation
- A record of one e2e decision, written to
RECEIPTS_DIR/<branch_slug>.json. Everything here is for humans —verifyreads only the receipt’s presence in the branch’s diff.
Enums§
- Verification
- The outcome of
verify— whether a committed receipt answers the branch’s e2e nudge.
Constants§
- RECEIPTS_
DIR - Where the branch-keyed receipts live, relative to the package root:
<branch_slug>.json.
Functions§
- attest
- Run
commandinrepoand, when it passes, write and commit the branch’s receipt atrepo/RECEIPTS_DIR/<branch_slug>.json. A non-zerocommandleaves the receipts untouched; the returnedAttestation::exit_codecarries the failure either way. - branch_
slug - The standardized receipt slug for a branch name — the receipt lives at
e2e-attestations/<slug>.json. Lowercased; every character outside[a-z0-9._-]becomes-; runs collapse; truncated to 80; edges trimmed; an empty result falls back tobranch. - verify
- Verify the e2e decision at
repo— the CI side of the nudge. Equivalent toverify_scopedwithscopeset torepo. - verify_
extra_ scoped - Verify the e2e decision at
repo, joining extra scopes outsidescopeinto what counts as scoped source and subtractingexcludes. Withbase, both checks are content diffs of<base>...HEAD; without one, a committed receipt atrepois the whole check. - verify_
scoped - Verify the e2e decision at
repo, withscope(rather than all ofrepo) defining what counts as scoped source;scopemust berepoor a descendant. Equivalent toverify_sincewith nobase. - verify_
since - Equivalent to
verify_extra_scopedwith no extra roots and no excludes.