Compliance
Check workspace documents against the regulations, policies and standards the workspace holds as frameworks. Each rule of a framework that is ON gets a verdict per document (or per document set): pass, fail, unclear or not applicable, with the reason and the quote it rests on.
The usual loop: `talonic_compliance_issues` lists what fails, `talonic_compliance_get_document_evaluation` shows the evidence for one document, and the allowed correction follows: re-evaluate after the document changed, take a document off the list, switch a framework OFF, or narrow the rules a document set is judged against. A workspace that makes its compliance decisions with its own agent works them through the task tools (claim, heartbeat, release, submit).
talonic_compliance_issues
The worklist of failed checks: per document the rules it fails (and, with unclear, the rules whose verdict is unclear), with the framework each rule comes from.
| Parameter | Type | Description |
|---|---|---|
| unclear | boolean | Also list rules whose verdict is unclear. |
talonic_compliance_get_document_evaluation
A document's latest evaluation with every result: per rule the verdict (pass, fail, unclear, not_applicable), the reason, the quote from the document it rests on, whether it needs a person's check, and whether the evaluation is outdated.
| Parameter | Type | Description |
|---|---|---|
| document_id * | UUID | The evaluated document. |
talonic_compliance_list_evaluations
The latest evaluation of every document on the Evaluations list. Without paging arguments the whole list; with any of status / limit / offset one page with total and has_more.
| Parameter | Type | Description |
|---|---|---|
| status | "processing" | "waiting" | "completed" | "error" | Only evaluations with this status (an interrupted one shows error). |
| limit | integer | Page size; any of status / limit / offset asks for one page. |
| offset | integer | Rows to skip, for paging. |
talonic_compliance_evaluation_status
Counts over the latest evaluations: processing, completed, error, outdated and failing.
talonic_compliance_export
Download every verdict of the evaluated documents and document sets as a file (one row per rule and document or set: framework, rule, obligation, verdict, reason, quote, evaluated at, outdated), up to 8 MB.
| Parameter | Type | Description |
|---|---|---|
| format | "xlsx" | "csv" | File format (default xlsx). |
| issues_only | boolean | Only failed and unclear verdicts of the sets. |
talonic_compliance_evaluate
Evaluate documents against every framework that is ON. Runs in the background; poll talonic_compliance_evaluation_status or talonic_compliance_get_document_evaluation.
| Parameter | Type | Description |
|---|---|---|
| document_ids * | UUID[] | Documents to evaluate. |
talonic_compliance_evaluate_all
Evaluate every listed document whose evaluation is missing or outdated, oldest first. Run with dry_run first to see how many.
| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | Only report how many would be evaluated. |
| limit | integer | Evaluate at most this many. |
talonic_compliance_add_documents
Put workspace documents on the Evaluations list and evaluate them against the frameworks that are ON.
| Parameter | Type | Description |
|---|---|---|
| document_ids * | UUID[] | Documents to add and evaluate. |
talonic_compliance_remove_document
Take a document off the Evaluations list together with its evaluations. The document itself stays in the workspace; adding it again re-evaluates it. Cannot be undone: ask the user first.
| Parameter | Type | Description |
|---|---|---|
| document_id * | UUID | The document to take off the list. |
talonic_compliance_list_frameworks
The frameworks (regulations, policies, contract standards held as workspace documents) with their status, whether each is ON, and their rule counts.
talonic_compliance_framework_rules
The rules of one framework: code, text, obligation, section, what it applies to and its condition.
| Parameter | Type | Description |
|---|---|---|
| document_id * | UUID | The framework's document id. |
talonic_compliance_add_frameworks
Make existing workspace documents frameworks (a regulation, policy or standard to check other documents against). Their rules are then written from their text; switch a framework ON to check documents against it.
| Parameter | Type | Description |
|---|---|---|
| document_ids * | UUID[] | Workspace documents to make frameworks. |
talonic_compliance_set_framework_active
Turn a framework ON (its rules are in force for every evaluation) or OFF (they are not). Reversible; evaluations made before become outdated.
| Parameter | Type | Description |
|---|---|---|
| document_id * | UUID | The framework's document id. |
| active * | boolean | true = ON, false = OFF. |
talonic_compliance_generate_rules
Write the rules of a framework again from its text, replacing the current ones. Cannot be undone: ask the user first.
| Parameter | Type | Description |
|---|---|---|
| document_id * | UUID | The framework's document id. |
talonic_compliance_remove_framework
Take a framework out of the app with its rules. The document stays in the workspace and can be made a framework again. Cannot be undone: ask the user first.
| Parameter | Type | Description |
|---|---|---|
| document_id * | UUID | The framework's document id. |
talonic_compliance_list_comparisons
Comparisons of document batches for discrepancies (values that should agree across the documents but do not), newest first.
talonic_compliance_get_comparison
One comparison with every discrepancy found: the value, which documents disagree and where.
| Parameter | Type | Description |
|---|---|---|
| run_id * | UUID | The comparison id. |
talonic_compliance_compare_documents
Compare a batch of documents that belong together (an order, its invoice, its delivery note) for values that disagree. Runs in the background; read it with talonic_compliance_get_comparison.
| Parameter | Type | Description |
|---|---|---|
| document_ids * | UUID[] | The documents to compare. |
talonic_compliance_list_sets
Document sets (documents judged as one whole, e.g. a contract with its annexes) with their documents and rule set.
talonic_compliance_create_set
Create a document set picked by hand, judged against one rule set or, without one, every rule of the frameworks that are ON.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Set name. |
| document_ids * | UUID[] | The set's documents. |
| rule_set_id | UUID | Rule set to judge it against; omitted or null = every ON rule. |
talonic_compliance_assembly_groups
The assembly groups of the workspace's pipelines (documents grouped by a shared value, such as one order number) that sets can be made from.
talonic_compliance_create_sets_from_groups
Create one document set per assembly group; the set follows the group as documents join it.
| Parameter | Type | Description |
|---|---|---|
| groups * | object[] | Groups from talonic_compliance_assembly_groups. |
| rule_set_id | UUID | Rule set to judge them against; omitted or null = every ON rule. |
talonic_compliance_update_set
Rename a set, replace its documents (a group-following set becomes hand-picked) or change its rule set. Fields left out stay.
| Parameter | Type | Description |
|---|---|---|
| set_id * | UUID | The set. |
| name | string | New set name. |
| document_ids | UUID[] | The set's documents (replaces them). |
| rule_set_id | UUID | null = every ON rule; omitted = unchanged. |
talonic_compliance_remove_set
Remove a document set with its evaluations. The documents stay in the workspace. Cannot be undone: ask the user first.
| Parameter | Type | Description |
|---|---|---|
| set_id * | UUID | The set. |
talonic_compliance_list_set_evaluations
The latest evaluation of every document set. Without paging arguments the whole list; with any of status / limit / offset one page with total and has_more.
| Parameter | Type | Description |
|---|---|---|
| status | "processing" | "waiting" | "completed" | "error" | Only evaluations with this status (an interrupted one shows error). |
| limit | integer | Page size; any of status / limit / offset asks for one page. |
| offset | integer | Rows to skip, for paging. |
talonic_compliance_get_set_evaluation
A set's latest evaluation with every result: verdict, reason, and the quote with the member document it comes from.
| Parameter | Type | Description |
|---|---|---|
| set_id * | UUID | The set. |
talonic_compliance_evaluate_sets
Evaluate document sets, each as one whole, against their rule set. Runs in the background.
| Parameter | Type | Description |
|---|---|---|
| set_ids * | UUID[] | Sets to evaluate. |
talonic_compliance_list_rule_sets
The workspace's rule sets: named selections of rules of the ON frameworks that a document set is judged against.
talonic_compliance_create_rule_set
Create a named selection of rules (from talonic_compliance_framework_rules) to judge document sets against.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Rule set name. |
| rule_ids * | UUID[] | Rules of ON frameworks. |
talonic_compliance_update_rule_set
Rename a rule set or replace its rules.
| Parameter | Type | Description |
|---|---|---|
| rule_set_id * | UUID | Id from the matching list tool. |
| name | string | New rule set name. |
| rule_ids | UUID[] | The rules (replaces them). |
talonic_compliance_remove_rule_set
Remove a rule set. Sets that used it go back to every rule of the ON frameworks. Cannot be undone: ask the user first.
| Parameter | Type | Description |
|---|---|---|
| rule_set_id * | UUID | Id from the matching list tool. |
talonic_compliance_settings
Who makes the workspace's compliance decisions: platform (Talonic decides every verdict) or external (the workspace's own agent decides, through the compliance tasks).
talonic_compliance_set_decider
Switch who makes the compliance decisions: platform or external (the workspace's own agent works the tasks). Reversible. The person behind the connection needs the Workspace settings permission.
| Parameter | Type | Description |
|---|---|---|
| decider * | "platform" | "external" | platform = Talonic decides; external = the workspace's own agent. |
talonic_compliance_list_tasks
Decisions waiting for the workspace's own agent (only when the decider is external).
| Parameter | Type | Description |
|---|---|---|
| status | "open" | "all" | open (default) or all. |
| limit | integer | Most tasks returned (default 100). |
talonic_compliance_get_task
One task's state (open, claimed, done) without its work package.
| Parameter | Type | Description |
|---|---|---|
| task_id * | UUID | Id from the matching list tool. |
talonic_compliance_claim_task
Claim a task for this agent and read its work package: instructions, the input, and the JSON Schema the answer must match. The claim is a lease: renew it with talonic_compliance_heartbeat_task while working, hand it back with talonic_compliance_release_task, or answer with talonic_compliance_submit_task. A lapsed lease returns the task to open.
| Parameter | Type | Description |
|---|---|---|
| task_id * | UUID | Id from the matching list tool. |
talonic_compliance_heartbeat_task
Renew the lease on a claimed task.
| Parameter | Type | Description |
|---|---|---|
| task_id * | UUID | Id from the matching list tool. |
| execution_epoch * | integer | The execution_epoch talonic_compliance_claim_task returned. |
talonic_compliance_release_task
Hand a claimed task back unanswered; it is open again for any agent.
| Parameter | Type | Description |
|---|---|---|
| task_id * | UUID | Id from the matching list tool. |
| execution_epoch * | integer | The execution_epoch talonic_compliance_claim_task returned. |
talonic_compliance_submit_task
Submit the answer to a claimed task. It is checked against the package's output_schema and stored exactly like a verdict Talonic makes itself.
| Parameter | Type | Description |
|---|---|---|
| task_id * | UUID | Id from the matching list tool. |
| execution_epoch * | integer | The execution_epoch talonic_compliance_claim_task returned. |
| answer * | object | The answer, matching the package's output_schema. |