design-signoff attestor
Records a person's sign-off on one design document at one git commit: the document's full text, the digests that name those exact bytes, the decision and any conditions, and the 21 CFR Part 11 section 11.50 fields (printed name, time, meaning of the signature).
| Field | Value |
|---|---|
| Name | design- |
| Predicate type | https: |
| Lifecycle | prematerial |
| Default binary? | Yes |
What it captures
source:{ uri,: the repository (fromdigest: { git Commit } } remote.) and the full commit the document was read at.origin.url path,blob: the repo-relative path and the git blob id at that commit.doc_,sha256 doc_,bytes content: sha256, size and full text of the document. The text must be valid UTF-8 and at most 1 MiB.decision:approve,approve-orwith- conditions reject.meaning: what the signature means:approval,review,responsibilityorauthorship.conditions[]:{ id,, idstext, verifiable } C1,C2, and so on.answers[]:{ id,answering the document'schoice, note } D-<n>decisions;choiceisrecommended,otherordefer.signer:{ name,;email, kind } kindis alwayshuman.signedAt: RFC 3339 time, set just before signing.supersedes: Archivista gitoid (64 hex) of an earlier sign-off of the same path, or empty.
Subjects emitted: doc: (sha256 and git blob id of the document) and commithash:.
When to use
When a design document must carry a recorded, attributable decision before work proceeds, and a policy needs to check that the document it gates on is the one that was signed. The attestor reads the document from the committed blob, not the working tree.
Flags
| Flag | Required | Purpose |
|---|---|---|
--attestor- | Yes, exactly once | Repo-relative path of the document. |
--attestor-design- | Yes | Printed name of the signer (21 CFR 11.50). |
--attestor-design- | Yes | Email you sign in as; a verifier requires it to equal the certificate's email. |
--attestor- | No, default HEAD | Commit to read the document at, resolved to a full SHA once. |
--attestor-design- | No, default approve | approve, approve- or reject. |
--attestor-design- | No, default approval | approval, review, responsibility or authorship. |
--attestor-design- | With approve- | Path to a JSON array of {id,. Refused with any other decision. |
--attestor-design- | No | Path to a JSON array of {id,. An approve answers every D-<n> decision in the document; defer approves without deciding. |
--attestor-design- | No | Gitoid of the earlier sign-off of the same path. |
Gotchas
- Human only. The run must sign through
--human; otherwiseAttestrefuses witha design sign-. Seeoff is signed only through the --human browser login cilock run. - Clean working copy. If the file on disk differs from the blob at the chosen commit, the attestor refuses, so you sign what you read. Commit or discard the edit first.
- Never auto-detected. The detector fires only when
CILOCK_is set. Name the attestor withDESIGN_ SIGNOFF -a design-.signoff - A symlink, submodule, missing path, non-UTF-8 file, or a document over 1 MiB is refused. The predicate must also serialize under the 4 MiB statement limit; JSON escaping can grow a large document past it.
- Giving
--attestor-twice is refused. One sign-off covers one document.design- signoff-path
CLI example
cilock attest --human --step design-signoff -a design-signoff \
--attestor-design-signoff-path docs/design/policy-drafting.md \
--attestor-design-signoff-signer-name "Ada Example" \
--attestor-design-signoff-signer-email [email protected]See also
- Catalog row
change-, the same human-only pattern for a code changeapproval
Reference generated from the product documentation. Match commands and support details to your installed release.