# design-signoff attestor

Source: https://www.testifysec.com/docs/cilock/attestors/design-signoff/

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).

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-signoff` |
| Predicate type | `https://testifysec.com/attestations/design-signoff/v0.1` |
| Lifecycle | `prematerial` |
| Default binary? | **Yes** |

 

## What it captures

 

- `source`: `{ uri, digest: { gitCommit } }`: the repository (from `remote.origin.url`) and the full commit the document was read at.
 - `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-with-conditions` or `reject`.
 - `meaning`: what the signature means: `approval`, `review`, `responsibility` or `authorship`.
 - `conditions[]`: `{ id, text, verifiable }`, ids `C1`, `C2`, and so on.
 - `answers[]`: `{ id, choice, note }` answering the document's `D-<n>` decisions; `choice` is `recommended`, `other` or `defer`.
 - `signer`: `{ name, email, kind }`; `kind` is always `human`.
 - `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:<path>` (sha256 and git blob id of the document) and `commithash:<commit>`.

 

## 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-design-signoff-path` | Yes, exactly once | Repo-relative path of the document. |
| `--attestor-design-signoff-signer-name` | Yes | Printed name of the signer (21 CFR 11.50). |
| `--attestor-design-signoff-signer-email` | Yes | Email you sign in as; a verifier requires it to equal the certificate's email. |
| `--attestor-design-signoff-commit` | No, default `HEAD` | Commit to read the document at, resolved to a full SHA once. |
| `--attestor-design-signoff-decision` | No, default `approve` | `approve`, `approve-with-conditions` or `reject`. |
| `--attestor-design-signoff-meaning` | No, default `approval` | `approval`, `review`, `responsibility` or `authorship`. |
| `--attestor-design-signoff-conditions` | With `approve-with-conditions` | Path to a JSON array of `{id, text, verifiable}`. Refused with any other decision. |
| `--attestor-design-signoff-answers` | No | Path to a JSON array of `{id, choice, note}`. An `approve` answers every `D-<n>` decision in the document; `defer` approves without deciding. |
| `--attestor-design-signoff-supersedes` | No | Gitoid of the earlier sign-off of the same path. |

 

## Gotchas

 

- **Human only.** The run must sign through `--human`; otherwise `Attest` refuses with `a design sign-off is signed only through the --human browser login`. See [`cilock run`](https://www.testifysec.com/docs/cilock/reference/cli#cilock-run-cmd).
 - **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_DESIGN_SIGNOFF` is set. Name the attestor with `-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-design-signoff-path` twice is refused. One sign-off covers one document.

 

## CLI example

 

```bash
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 ada@example.com
```

 

## See also

 

- [Catalog row](https://www.testifysec.com/docs/cilock/reference/attestor-catalog)
 - [`change-approval`](https://www.testifysec.com/docs/cilock/attestors/change-approval), the same human-only pattern for a code change

Reference generated from the product documentation. Match commands and support details to your installed release.
