Decisions and Outcomes
A Decision is Dockt’s result for one Assignment or Engagement at one point in time. It says whether the work is compliant, which rules apply, which evidence each rule used, and what is still missing.
Decisions never change. When something the work depends on changes and the result, requirements, findings or input requests change with it, Dockt creates a new Decision and sends it as a decision.created event. The work’s latest_decision points to the newest one.
Dockt provides the Decision; your product decides the action. You may let a worker start, ask for more evidence, route the case to a reviewer, or stop the work, according to your own process.
A Decision
Section titled “A Decision”This example shows a worker with a missing employment registration, a certificate still processing, and a date of birth that needs review:
{ "object": "decision", "id": "dec_91Kp", "target": { "type": "assignment", "id": "asg_6Pw3", "external_ref": "preannouncement-9031" }, "result": "incomplete", "summary": "1 requirement missing: Dimona registration.", "evaluated_for": "2026-11-03", "requirements": [ { "rule_code": "identity_document", "title": "Identity document", "source": { "type": "package", "package": "social_construction_be_v1", "version": "RELEASE" }, "status": "met", "evidence": [{ "type": "document", "id": "doc_2Vc8", "outcome": "counts" }], "expires_on": "2031-05-16", "expiring_soon": false }, { "rule_code": "employment_registration", "title": "Dimona registration", "source": { "type": "package", "package": "social_construction_be_v1", "version": "RELEASE" }, "status": "missing", "evidence": [], "provided_by": { "type": "person", "id": "per_7Hq2" }, "accepts": [{ "document_type": "dimona" }], "missing": "A Dimona registration for this employer that covers 2026-11-03." }, { "rule_code": "vca_for_every_worker", "title": "VCA certificate", "source": { "type": "policy", "policy": "pol_2Kd4" }, "status": "pending", "pending_reason": "document_processing", "evidence": [{ "type": "document", "id": "doc_8Lm1", "outcome": "pending" }] } ], "findings": [ { "code": "attribute_discrepancy", "severity": "review", "title": "Date of birth differs between sources", "message": "Date of birth from a document and the value you sent disagree.", "attribute": "person.date_of_birth" } ], "input_requests": [], "inputs": { "policy_versions": [{ "id": "plv_5Rt8" }], "packages": [{ "code": "social_construction_be_v1", "version": "RELEASE" }] }, "created_at": "2026-11-02T09:00:05Z"}In this example and the rest of the documentation, RELEASE stands for the package release that GET /v1/compliance-packages returns.
Results
Section titled “Results”Use result as the overall answer and handle every value:
result |
Meaning |
|---|---|
compliant |
Every applicable required rule is met. |
incomplete |
Evidence or information is missing. Read requirements and input_requests to see what to provide. |
review_required |
The evidence is ambiguous, or a finding needs a person to look. |
non_compliant |
The evidence shows that a required rule fails, such as an invalid or expired document. |
When several issues apply, the most serious one sets the result, in this order: non_compliant, incomplete, review_required, compliant. Each requirement and finding keeps its own status, so a review issue still needs attention when a missing document makes the result incomplete.
summary is a sentence for people. Don’t parse it.
Requirements
Section titled “Requirements”requirements is the one list of rules that apply to the work. Each has:
-
rule_codeandtitle. -
source: the package release or Policy the rule comes from. -
status: whether the rule is met, missing evidence, pending, or needs review, as listed in the status table. -
evidence: the Documents and Registry Checks the rule considered. Each entry has atype(documentorregistry_check), anid, and anoutcome:counts,needs_review,does_not_countorpending. A Document that is valid on its own can still need review or not count for this work. Thenreasonsays why, with acodeand amessage:different_worker: the document names someone other than the worker.not_this_work: the document does not cover this work’s period, country or employer.holder_unconfirmed: Dockt could not confirm whose the document is.policy_condition: the document fails a Document condition of your Policy.
When there is no
reason, the Document’s own findings explain its outcome. Older Decisions may have neither field. -
When applicable, an unmet rule can include
provided_by, the Person, Company or Assignment that has to provide something;accepts, the document types that would satisfy it; andmissing, a sentence for people. -
When it is met by evidence that expires:
expires_onandexpiring_soon.
status |
Meaning |
|---|---|
met |
Evidence satisfies the rule. |
not_met |
Evidence shows the rule fails. |
missing |
Someone has to provide something. |
pending |
Dockt is processing a document or refreshing a registry lookup. pending_reason is document_processing or registry_refresh. |
review_required |
A person has to look at the evidence. |
waived |
The Policy waived the rule. |
advisory |
The rule is advisory. It doesn’t change the result. |
expiring_soon is true when expires_on falls within the warning period of the document type that sets it, while the work continues past that date. The status stays met. The flag changing creates a new Decision, so you can warn the worker in time.
Findings
Section titled “Findings”findings are issues that aren’t a single requirement. Each has a stable code, a severity (blocking, warning or review), a title and a message. Use code and severity in your program logic and show title and message to people.
| Code | Severity | When |
|---|---|---|
role_unknown |
warning |
A role matches no job in the Policy. The Decision is incomplete. |
attribute_discrepancy |
review |
Sources disagree about an attribute the Decision used. attribute names it. |
engagement_not_compliant |
review |
The employer’s Engagement at this Workplace is non_compliant. |
subcontracting_loop |
review |
Companies contract each other in a loop at this Workplace. |
client_outside_network |
review |
A document names a client that isn’t above the employer in the subcontracting network. |
a1_legislation_conflict |
review |
An A1 applies a social security country that doesn’t fit the posting status. |
a1_request_repeated |
review |
The Person has several A1 request acknowledgements and no A1 since the first. |
document_no_longer_confirmed |
warning |
On a re-check, the issuer no longer stands behind a Document. |
registry_unavailable |
warning |
A certificate’s register couldn’t be reached, so the certificate counts on its own until a re-check reaches the register. |
company_not_in_good_standing |
review |
A register reports bankruptcy, liquidation, a strike-off or a similar issue. Work that ended before the date the register gives for it is not held to it. |
company_standing_after_last_on_site |
warning |
A register reports such an issue from a date after the worker was last on site, at a site that records check-ins. The work goes to review if the worker is on site again. |
employer_not_registered_as_employer |
review |
The register doesn’t list a local employee’s employer as an employer with social security. |
company_name_unexplained |
review |
A Company’s documents use a name that no register explains. |
unknown_employer |
review |
A document names an employer that isn’t a Company in your Account. |
subject_concern |
review |
Dockt’s review of what is known about a Person or Company raised a concern. |
Other codes can appear. Treat an unfamiliar code by its severity.
Input requests
Section titled “Input requests”input_requests list attributes or fields Dockt still needs. Each names its owner (the Person, Company, Workplace, Assignment or Engagement), the attribute code or field name, and the fields your form can use: label, value_type, options, cardinality and reason. For example, Dockt can ask whether a worker is posted from another country or employed locally:
{ "owner": { "type": "assignment", "id": "asg_6Pw3" }, "attribute": "assignment.posting_status", "label": "Posting status", "value_type": "single_select", "options": [{ "value": "posted", "label": "Posted" }, { "value": "local", "label": "Local" }], "cardinality": "one", "reason": "Decides whether a Limosa declaration applies."}Send values your system already knows. A value about the Person serves every Workplace.
Evaluation inputs
Section titled “Evaluation inputs”inputs record what the Decision used: the Policy versions (the Workplace’s Policy and its base) and the package releases. evaluated_for is the date the Decision was evaluated for, at the Workplace.
Read Decisions
Section titled “Read Decisions”GET /v1/decisions/{decisionId}reads one Decision.GET /v1/decisions?assignment={assignmentId}orGET /v1/decisions?engagement={engagementId}lists a target’s history.- An Assignment or Engagement’s
latest_decisionholds the newest Decision’sid,resultandcreated_at.
Store the Decision ID your product acted on. Before a delayed or important action, read the work again and check whether latest_decision.id is still the same.
Outcomes
Section titled “Outcomes”An Outcome records what your team decided, next to Dockt’s Decision. It never changes the Decision and never triggers an evaluation. Use Outcomes to keep an audit trail and to compare your reviewers’ verdicts with Dockt’s. For example, send the following body to POST /v1/outcomes after a reviewer accepts the worker:
{ "decision": { "id": "dec_91Kp" }, "action": "accepted", "verdict": "compliant", "requirement_verdicts": [ { "rule_code": "employment_registration", "verdict": "compliant", "note": "Dimona checked in the portal." } ], "reviewer": { "name": "An De Smet" }, "source_system": "contractor-portal", "observed_at": "2026-11-02T10:00:00Z", "notes": "Cleared for start on 3 November."}decisionis required. The Outcome’s target follows from it.actionis required:accepted,rejected,follow_up_requested,manual_revieworunknown.verdictis your team’s result in Dockt’s terms:compliant,incomplete,review_requiredornon_compliant.requirement_verdictsgive a verdict per rule. Eachrule_codemust be a requirement of the Decision.reviewernames the person, with an optionalemail.
Outcomes are append-only: to change one, record a new Outcome. List them with GET /v1/outcomes, filtered by decision, assignment or engagement.
Corrections
Section titled “Corrections”A Correction tells Dockt that one thing it asserted is wrong, so Dockt can fix the cause. For example, a date read as the expiry date that the document gives as its issue date:
{ "subject": { "type": "document", "id": "doc_7Hq2" }, "target": { "type": "fact", "key": "expiry_date" }, "problem": "wrong_field", "expected_key": "issue_date", "note": "The only date on the card is when it was issued."}subjectis the Document or Decision.targetis what is wrong. On a Document, it is afact(by claim key), thedocument_type, afinding(by ID) or aregistry_check(by code). On a Decision, it is arequirement(by rule code) or afinding(by code).problemis one ofwrong_value,wrong_field,not_on_document,missed,wrong_type,wrong_conclusionorother.wrong_fieldneedsexpected_key.
A Correction never changes the Document or Decision, and it never starts processing or an evaluation. Dockt reviews it and corrects how it reads documents or applies rules. It starts open, then becomes confirmed or dismissed. List Corrections with GET /v1/corrections, filtered by document or decision.