Skip to main content
Manage the subject-keyed state store.

tai states apply

Apply an ordered op batch to a subject’s document.

tai states attach

Attach a template on a state at a path with its parameters and declarations.

tai states attachment-referees

List what still binds a template on a state: everything a detach would strand, one per row.

tai states attachments

List the templates attached on a state.

tai states check

Page a state’s stored records that do not fit its current effective schema.

tai states consumers

List everything that binds a state — hooks, schedules, agents, presets and plugin consumers.

tai states delete

Delete a state with its records, attachments and aliases.

tai states detach

Detach a template from a state.

tai states erase

Erase a subject’s record.

tai states fold

Fold this subject’s record into another canonical subject.

tai states get

Show a state’s declaration, effective schema, attachments and regimes.

tai states get-attachment

Read one template’s attachment on a state (404 when it is not attached).

tai states list

List every declared state.

tai states merge

Shallow-merge a patch into a subject’s document.

tai states pending-saves

List, retry or discard pending state saves.

tai states pending-saves discard

Discard a failed pending save for good, releasing its subjects.

tai states pending-saves list

List the outstanding pending state saves, newest first.

tai states pending-saves retry

Retry a failed pending save: requeue it and apply its records now.

tai states prune

Prune every record past its state’s retention horizon.

tai states put

Create or re-declare a state from a declaration document.

tai states read

Read a subject’s record (null when none exists).

tai states replace

Replace a subject’s whole document.
Search a state’s records by document containment.

tai states stats

Show a state’s record counts (total and per subject kind).

tai states subjects

Page the subjects holding a record for a state.

tai states template-jq

Evaluate/apply a state’s template_jq programs.

tai states template-jq apply

Apply an update-purpose template_jq program to a subject’s record.

tai states template-jq eval

Evaluate an input-purpose template_jq program for a subject.

tai states update-attachment

Replace an attachment’s static declaration values, with optional reconcile options.

tai states validate

Check a candidate document against a state’s effective schema without storing it.

tai states writes

Page a subject’s write audit trail.