# Signet

A document signing register: a drafter prepares a document from a template,
the parties in its route sign one after another, and the last sign-off
releases a numbered print copy with an audit page. This file is the glossary.
Decisions (`Dn`) are in `HANDOFF.md` §2 and `docs/adr/`; the state of the code
is in `HANDOFF.md`.

## Language

### Roles and parties

**Drafter**: the role that prepares a document — places imprints and signature zones, sets the route — and submits it. A role, not a person: the same user may also sign it (D16). _Avoid_: maker, clerk (spec-era words; `maker` survives in code and the `Remote-Groups` role name until renamed)

**Party**: a named post in a template that must act on every document made from it (*Partner*, *Auditor*, *Manager*). Has at most one signature zone; a party with none is a **check-only party**. _Avoid_: level, approver, authorized signatory

**Signer**: the user the drafter assigns to a party for one document. Exactly one per party. _Avoid_: checker, approver, submitter (DocuSeal's word)

**Route**: the ordered list of parties, each with its signer, fixed by the drafter before submit. Parties act strictly one after another; a party cannot see the document until the party before it has signed off.

**Organisation**: the entity a document is about; every document is bound to exactly one, chosen by the drafter. Its attributes fill the document's PIM imprints. _Avoid_: entity, org (code identifier), customer (D21)

### Document lifecycle

**Template**: a reusable starting point for documents: a base PDF, its imprints and signature zones, its parties, and the series it numbers from. A document copies all of it at creation and is unaffected by later edits to the template. Can be edited, retired, and (by an admin, once unlinked everywhere) deleted. _Avoid_: form, blank

**Status**: where a document is in its life: `DRAFT` → `PENDING` → (`CORRECTION_REQUIRED` → `PENDING` …) → `RELEASED` or `DISAPPROVED` (D27). _Avoid_: state, stage; the old `PENDING_APPROVAL`/`CORRECTED`/`APPROVED`

**Decision**: what a signer records: a **sign-off**, a **correction request**, or a **disapproval**. _Avoid_: reject, rejection (umbrella word; there is no `REJECTED` status, D4/D27)

**Sign-off**: an approving decision. For a party with a zone it includes placing the signer's facsimile in the zone. Attests one specific stamped copy (one revision). _Avoid_: approval, approve (a document is *released*, not approved)

**Correction request**: a decision that returns the document to the drafter for editing. Resubmitting creates a new revision and restarts the route (D17).

**Disapproval**: a terminal decision, with a reason. The document keeps its serial and cannot be edited, resubmitted or deleted. _Avoid_: permanent rejection, decline (DocuSeal's word)

**Release**: the render after the last sign-off producing `final.pdf` with the audit page and SHA-256.

**Retire**: hide a template or series from drafters without deleting it. Retired series keep their pattern and counters forever. _Avoid_: archive, disable

**Unlink**: remove a document's back-reference to its template. The document loses nothing (it is a self-contained copy). A template can be deleted by an admin only when no document links to it (D28). _Avoid_: detach

### What goes on the page

**Imprint**: one element the drafter places on a page: text from a PIM attribute, the serial or the document date (each with an optional fixed prefix such as `GSTIN: `), or a PIM image attribute. There is no free-text imprint (D10). Flattened at submit. _Avoid_: field (DocuSeal's word)

**PIM**: Signet's local store of organisation attributes, a reduced mirror of the organisation's full product-information system (D23). Maintained by a `pim_admin` in the PIM editor. _Avoid_: master data, config

**PIM attribute**: one named value of an organisation, either text (`gstin`, `bank_account`, `pan`) or an image (`seal`, `logo`, a product photo), imprinted by key so the same template serves every organisation. _Avoid_: PIM value, field

**Seal**: an organisation's image attribute stamped as an imprint. _Avoid_: stamp (DocuSeal's word for a signer's mark)

**Signature zone**: a rectangle the drafter reserves on a page for one party's signature, with a **minimum size**. The signer's facsimile must lie entirely inside it and be at least the minimum size. _Avoid_: signature box, max/min bounding box

**Placement**: the rectangle a signer's facsimile occupies inside its zone. Automatic (largest fit that keeps the image's proportions) when the signer has an enrolled facsimile; chosen by hand otherwise.

**Signature facsimile**: a labelled image of a person's signature, owned by that user. Not a cryptographic signature; once **enrolled**, it is reused without replacing its original image. _Avoid_: signature (alone), e-signature

**Signature collection**: a user's enrolled facsimiles, with one **default facsimile** when any are ready. The signer chooses a facsimile at sign-off; changing the default affects future choices, never an already recorded sign-off.

**Proof**: the drafter's flattened copy: imprints, no facsimiles.

**Stamped copy**: the copy the current party sees: the proof plus the facsimiles of every party that has already signed off. Each sign-off adds one facsimile to it; nothing else is re-rendered. Deleted on release, correction request and disapproval.

### Numbering and records

**Series**: a numbering scheme (pattern with date and per-day sequence) that a template belongs to. _Avoid_: register, counter

**Serial**: the document number allocated from a series at first submit (D9). Never reissued, even when the document is disapproved.

**Document date**: the date of first submit. Fixed with the serial; the `date` imprint and the serial's date part both come from it, so a resubmit on a later day changes neither.

**External timestamp**: optional, validated detached RFC3161 evidence that the unchanged released PDF existed by a timestamp authority's stated time. It is separate from Signet's server-recorded sign-off/release times and never controls release. _Avoid_: PAdES B-T, certificate signature, independently verified sign-off time

**Event log**: the complete history of a document — created, each submit and resubmit, every decision with its reason — across all revisions. Printed in full on the audit page. _Avoid_: timeline, activity

**Audit page**: the page(s) appended at release: document id, serial, title, organisation, the full event log, and the SHA-256 of the pages before it. The body pages carry no trace of corrections; the audit page is where the history shows (D26). _Avoid_: certificate, audit log (DocuSeal's word)
