process_template
The org's process template registry (#1180).
list shows every template an instance can start from: the org's own
active versions over the six seeds (Claim, Matter, Deal, Hire, Vendor
onboarding, Month-end close). get reads one with its version;
pass it as expected_version on set, which appends a new version
(org admin) and may override a seed. archive retires the org's head
(status=retired); a new run of an overridden seed uses the seed
again. restore appends an active copy of that retired head. An org
holds at most 100 templates. Running instances keep the snapshot they
were opened from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Template slug (get, set, archive, restore). Lowercase words joined by single hyphens, at most 60 characters, e.g. claim | |
| agent | No | Override agent attribution label | |
| action | Yes | get | set | list | archive | restore | |
| version | No | A specific version to read (get); default the head | |
| definition | No | The template to write (set): singular, plural, subject_kind, subject_phrase, stages [{name, slug?, steps [{name, slug?, actor agent|human|fan_out, requires_evidence [], guidance, policy {max_attempts, retry_delay_seconds}}]}], evidence_checklist [], outcome_schema {}; the shape process_template get returns. At most 64000 bytes of JSON | |
| include_retired | No | get: when the org has no active row, return its retired head (status=retired) instead of the built-in it overrides | |
| expected_version | No | Compare-and-set (set, archive, restore): the version you read. A stale number answers reason=version_conflict and writes nothing. Omit it on set to append. Pass 0 to create a slug the org has never saved (a seed's head is its own version, not 0). Required for archive and restore. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||