Skip to main content

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

These tools are listed only when the Compliance app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.

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.

ParameterTypeDescription
unclearbooleanAlso 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.

ParameterTypeDescription
document_id *UUIDThe 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.

ParameterTypeDescription
status"processing" | "waiting" | "completed" | "error"Only evaluations with this status (an interrupted one shows error).
limitintegerPage size; any of status / limit / offset asks for one page.
offsetintegerRows 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.

ParameterTypeDescription
format"xlsx" | "csv"File format (default xlsx).
issues_onlybooleanOnly 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.

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

ParameterTypeDescription
dry_runbooleanOnly report how many would be evaluated.
limitintegerEvaluate at most this many.

talonic_compliance_add_documents

Put workspace documents on the Evaluations list and evaluate them against the frameworks that are ON.

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

ParameterTypeDescription
document_id *UUIDThe 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.

ParameterTypeDescription
document_id *UUIDThe 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.

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

ParameterTypeDescription
document_id *UUIDThe framework's document id.
active *booleantrue = 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.

ParameterTypeDescription
document_id *UUIDThe 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.

ParameterTypeDescription
document_id *UUIDThe 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.

ParameterTypeDescription
run_id *UUIDThe 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.

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

ParameterTypeDescription
name *stringSet name.
document_ids *UUID[]The set's documents.
rule_set_idUUIDRule 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.

ParameterTypeDescription
groups *object[]Groups from talonic_compliance_assembly_groups.
rule_set_idUUIDRule 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.

ParameterTypeDescription
set_id *UUIDThe set.
namestringNew set name.
document_idsUUID[]The set's documents (replaces them).
rule_set_idUUIDnull = 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.

ParameterTypeDescription
set_id *UUIDThe 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.

ParameterTypeDescription
status"processing" | "waiting" | "completed" | "error"Only evaluations with this status (an interrupted one shows error).
limitintegerPage size; any of status / limit / offset asks for one page.
offsetintegerRows 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.

ParameterTypeDescription
set_id *UUIDThe set.

talonic_compliance_evaluate_sets

Evaluate document sets, each as one whole, against their rule set. Runs in the background.

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

ParameterTypeDescription
name *stringRule set name.
rule_ids *UUID[]Rules of ON frameworks.

talonic_compliance_update_rule_set

Rename a rule set or replace its rules.

ParameterTypeDescription
rule_set_id *UUIDId from the matching list tool.
namestringNew rule set name.
rule_idsUUID[]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.

ParameterTypeDescription
rule_set_id *UUIDId 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.

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

ParameterTypeDescription
status"open" | "all"open (default) or all.
limitintegerMost tasks returned (default 100).

talonic_compliance_get_task

One task's state (open, claimed, done) without its work package.

ParameterTypeDescription
task_id *UUIDId 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.

ParameterTypeDescription
task_id *UUIDId from the matching list tool.

talonic_compliance_heartbeat_task

Renew the lease on a claimed task.

ParameterTypeDescription
task_id *UUIDId from the matching list tool.
execution_epoch *integerThe execution_epoch talonic_compliance_claim_task returned.

talonic_compliance_release_task

Hand a claimed task back unanswered; it is open again for any agent.

ParameterTypeDescription
task_id *UUIDId from the matching list tool.
execution_epoch *integerThe 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.

ParameterTypeDescription
task_id *UUIDId from the matching list tool.
execution_epoch *integerThe execution_epoch talonic_compliance_claim_task returned.
answer *objectThe answer, matching the package's output_schema.