Method
Engine contract
An assurance rules engine with insurance-facing evidence integration, not an insurance rules engine. It checks declared crossings against versioned policy, keeps evidence, uncertainty and history, replays results, and produces recipient-scoped evidence packs. Insurers, brokers and evaluators make their own decisions.
| Part | Status | What exists |
|---|---|---|
| Local engine contract | tested | nt-engine:0.1.0, contract nt-engine-contract:v0: a library in this repository, run at build time to produce everything on this page. Every response is checked against the published schema. “Tested” means by the producer’s own test suite; no independent party has qualified this engine. |
| Hosted service | proposed | None. No accounts, API, server or storage. The routes below are names in a specification. |
| Governed agent layer | proposed | None. The audit-event shape and its refusals are built and tested; no agent is. |
Read the full proposed specification (Markdown, v0).
Decision boundary
EXECUTE means the declared inputs passed the declared policy. It is never approval, certification, insurance eligibility or cover. Payment, insurer interest, broker referral, an agent’s recommendation and human-review status are recorded for audit and never reach the gate.
Every assurance response carries these flags:
{
"decision_kind": "assurance_appraisal",
"not_an_insurance_decision": true,
"not_a_risk_score": true,
"not_a_certification": true
}and these non-claims:
- EXECUTE means the declared inputs passed the declared policy. It is not approval, certification, insurance eligibility or cover.
- No score, price, premium, quote, binding, coverage, claims, certification or causal decision is made.
- Declared facts are checked as declared; they are not verified against the world.
- Replay is self-replay from the recorded inputs, not independent replay.
- Local mode: authorisation is owner-only in this process. No hosted service, account system or agent layer exists.
Operations
Each route is proposed; each function is built and runs locally. Every function refuses anyone but the workspace’s owner, including agents, and appends to one hash chain per workspace.
| Proposed route | Local function | Enforces |
|---|---|---|
| POST /v1/workspaces | createWorkspace | An owner who is not an agent |
| POST /v1/policies | createPolicy | Versioned policy, pinned by hash |
| POST /v1/crossing-classes | createCrossingClass | Policy registered first; syntactic admission; same id and version with different bytes refused |
| POST /v1/evidence-references | registerEvidenceReference | Hash, provenance and owner recorded; a conflicting reference refused; bytes never enter the engine |
| POST /v1/appraisals | appraiseCrossing | Every evidence item matches a registered reference |
| POST /v1/reassessments | reassess | A new determination referencing the prior one; a class change counts only after a review |
| POST /v1/replays | replayAppraisal | Field-for-field recomputation, and log integrity |
| POST /v1/observations | recordObservationEvent | Records independence and path match, and says why U_S changes or does not |
| POST /v1/reviews | recordReview | Confirms or rejects a candidate challenge, or approves a class version; self-review is recorded as such |
| POST /v1/exports | createExport | The owner's recorded approval; recipient kind and purpose; redaction policy by recipient |
| GET /v1/exports/:export_id | getExport | Owner only |
Never built: GET /risk-score, POST /premium, POST /quote, POST /bind-cover, POST /coverage-decision, POST /underwriting-recommendation, POST /claims-decision, POST /certify-discovery. A test fails if the engine exposes any operation with such a name.
The first vertical slice
The synthetic INS-005 case, computed when this page was built: register the policy, class and evidence references; appraise; record three consequence observations; review the challenge; replay; export to an insurer with the owner’s approval.
| Appraisal | EXECUTE U_V known, U_S untested |
|---|---|
| OBS-CON-001a | matches a declared path. No change to U_S: the observation follows a declared path. |
| OBS-CON-001 | matches a declared path. No change to U_S: the observation follows a declared path. |
| OBS-CON-002 | matches no declared path; source declared independent. Candidate challenge to U_S: unmatched, from a source declared independent (not verified); a review can confirm or reject it. |
| Review REV-1 | Confirms the challenge from OBS-CON-002: U_S challenged, review state confirmed |
| Replay | reproduces; log verifies |
| Export EXP-1 | insurer (insurer:partner-a), redaction nt-redaction:insurer-view:v1, 3 files; verification passes |
The appraisal response, as returned
{
"contract_version": "nt-engine-contract:v0",
"engine_version": "nt-engine:0.1.0",
"operation": "appraisal",
"decision_kind": "assurance_appraisal",
"not_an_insurance_decision": true,
"not_a_risk_score": true,
"not_a_certification": true,
"workspace_id": "ws-demo",
"receipt_ref": "ntr:sha256:6c6b524c5d139e92b6f693c0a89eca9cca6c0e9401ba4b77a7ab85fe5653479d",
"outcome": "EXECUTE",
"outcome_label": "EXECUTE",
"reason_codes": [],
"uncertainty": {
"value": {
"status": "known",
"reasons": [
"every declared input was measured and every observed consequence has a reported amount"
]
},
"structure": {
"status": "untested",
"reasons": [
"no structural test has been run against this class, and no observation has yet challenged it; an absence of challenges is not support"
],
"review_state": "none"
}
},
"pinned": {
"engine_version": "nt-engine:0.1.0",
"contract_version": "nt-engine-contract:v0",
"schema_versions": {
"contract": "nt-engine-contract:v0",
"class": "nt-crossing-class:v0",
"proposal": "nt-proposal:v0",
"observation": "nt-observation-input:v0",
"determination": "nt-determination:v0"
},
"class_ref": "ntc:insurance.claim-auto-denial@0.2.0:sha256:1d41e72e67b49cdcc0a639e54a42d7f3cc185e609e1dcb83d10d3e36c3f7006d",
"policy_ref": "ntp:nt-policy:claims-auto-denial@0.1.0:sha256:f0eb14ee6e9d4d8384519c1debc492f6c7aabc5731a50bba0c77129a306630fc",
"redaction": null
},
"input_hashes": {
"proposal_digest": "sha256:631ece67c4789a444ec98d5e0f9ae4853fa7ac568515703bbd8137dcb46b9f55",
"evidence": [
{
"id": "E1",
"sha256": "852d72a453c8a0ecd2a3dfee27509e4beb37a0b3e8fe383865f4bf0692d9e64f"
},
{
"id": "E2",
"sha256": "ae09468b28b3ad3a2c8901538f2f5ea756d58581b04bd8b54f98bf183d2de6eb"
},
{
"id": "E3",
"sha256": "73a87d0f2ee05c9150560cab3b1cdb927bf39465439c79a109ab8e30a9a13749"
},
{
"id": "E3b",
"sha256": "73a87d0f2ee05c9150560cab3b1cdb927bf39465439c79a109ab8e30a9a13749"
}
]
},
"replay": {
"status": "not_run",
"log_integrity": "verifies"
},
"standing": {
"effect": "NEW",
"causes": [],
"effective": "NEW",
"requires_review": false
},
"non_claims": [
"EXECUTE means the declared inputs passed the declared policy. It is not approval, certification, insurance eligibility or cover.",
"No score, price, premium, quote, binding, coverage, claims, certification or causal decision is made.",
"Declared facts are checked as declared; they are not verified against the world.",
"Replay is self-replay from the recorded inputs, not independent replay.",
"Local mode: authorisation is owner-only in this process. No hosted service, account system or agent layer exists."
],
"log": {
"seq": 7,
"hash": "sha256:76666d57240724d2589d5af88456a4109e67577156b6c572d6f1b4735252332e"
}
}The observation response for OBS-CON-002
{
"decision_kind": "assurance_appraisal",
"not_an_insurance_decision": true,
"not_a_risk_score": true,
"not_a_certification": true,
"observation_id": "OBS-CON-002",
"independent": true,
"independence_basis": "Fee notice issued by the ombudsman's own case system; neither the insurer nor the relying party produced it.",
"matches_declared_path": false,
"mapping": {
"attempted_path": "regulator_complaint_fee",
"result": "UNMATCHED",
"declared_paths": [
"claimant_routes_closed",
"wrongful_denial_settlement",
"reserve_released",
"feedback_to_model"
],
"detail": "\"regulator_complaint_fee\" is not declared by insurance.claim-auto-denial@0.2.0, which declares claimant_routes_closed, wrongful_denial_settlement, reserve_released, feedback_to_model"
},
"structure_effect": "candidate challenge to U_S: unmatched, from a source declared independent (not verified); a review can confirm or reject it",
"structure": {
"status": "challenged",
"reasons": [
"OBS-CON-002 (independent source declared, not verified) follows no declared consequence path (named \"regulator_complaint_fee\", which the class does not declare)"
],
"review_state": "candidate"
},
"log": {
"seq": 10,
"hash": "sha256:d3faf6df5c611771d46de88a530081a2ae6490c6800504a4651d4b4235d30a95"
}
}Assurance attack battery
Synthetic and visible. Each case names its threat, fixture and expected result, and ran under nt-engine:0.1.0 and ntp:nt-policy:claims-auto-denial@0.1.0:sha256:f0eb14ee6e9d4d8384519c1debc492f6c7aabc5731a50bba0c77129a306630fc. Nothing is run against a real system. The gate-level agent attacks are on the Research page.
| Case | Threat | Expected | Observed | |
|---|---|---|---|---|
| fabricated-evidence | Fabricated evidence INS-005 slice | refused UNREGISTERED_EVIDENCE | refused UNREGISTERED_EVIDENCE | PASS |
| conflicting-reference | Conflicting evidence INS-005 slice | refused CONFLICTING_REFERENCE | refused CONFLICTING_REFERENCE | PASS |
| stale-evidence | Stale evidence INS-005 slice | HOLD with EXPIRED | HOLD EXPIRED | PASS |
| late-evidence-history | Late evidence and historic replay INS-005 slice | reassessment DEFEATED; original still reproduces | standing DEFEATED; original replay reproduces | PASS |
| false-independence | False independence declaration INS-005 slice | candidate challenge; rejected on review, structure untested | candidate then untested | PASS |
| policy-not-registered | Policy version substitution INS-005 slice | refused POLICY_NOT_REGISTERED | refused POLICY_NOT_REGISTERED | PASS |
| class-substitution | Class version substitution INS-005 slice | refused AMBIGUOUS_CLASS | refused AMBIGUOUS_CLASS | PASS |
| unapproved-class-change | Policy or class change without review INS-005 slice | standing effective UNRESOLVED until the class version is reviewed | effect PRESERVED, effective UNRESOLVED | PASS |
| agent-writes-directly | Excessive agent authority INS-005 slice | refused FORBIDDEN | refused FORBIDDEN | PASS |
| cross-workspace-read | Cross-workspace access INS-005 slice and a second workspace | refused FORBIDDEN | refused FORBIDDEN | PASS |
| export-without-approval | Unauthorised export INS-005 slice | refused APPROVAL_REQUIRED | refused APPROVAL_REQUIRED | PASS |
| export-tamper | Export and manifest tampering INS-005 slice | verification fails | export.json: content does not match the manifest | PASS |
| redaction-tamper | Redaction tampering INS-005 slice | REDACTION_VIOLATION | REDACTION_VIOLATION: views/0000.json carries proposal | PASS |
| erase-hold | Erasing or rewriting a HOLD in history INS-005 slice | rewrite detected by the chain; erasure detected by the holder of the response | tail erasure undetected by the chain alone; erasure detected with the held response: true; rewrite detected: true | PASS |
| context-invariance | Payment, referral or review status altering a result INS-005 slice | identical outcome, reasons, uncertainty and receipt | identical | PASS |
| injected-instructions | Prompt injection in evidence and documents INS-005 slice | identical checks and outcome | EXECUTE vs EXECUTE | PASS |
| agent-event-overreach | Agent tool abuse and memory of authority INS-005 slice | refused AGENT_EVENT_REFUSED | refused AGENT_EVENT_REFUSED | PASS |
ENG-F1 · A chain cannot see its own tail cut off open finding Rewriting any chain record breaks the chain; an outcome rewritten with its digests kept is caught only by replay. Deleting the last record does not: it is detected only by someone who holds a response naming that record. A hosted service would need an external head anchor and trusted time.
Hosted service · proposed
Service
A service would wrap the same engine, unchanged. Before any build it needs identity and server-side authorisation on every read, write and export; durable append-only storage with an external head anchor and trusted time; private evidence storage with retention and deletion terms; a privacy notice; a training-prohibited default in every processor contract; a security review; and a design partner. The public workbench stays local-first.
Governed agent layer · proposed
Agents
Agent output is a proposal. Deterministic policy plus server-side authorisation determines action.
Roles: intake, evidence, appraisal, replay, observation, export and security agents, all with authority scope read_and_propose.
| Agents may | Agents may not |
|---|---|
| propose, parse, classify, summarise, explain and assemble; draft evidence requests and next steps; call read-only replay and appraisal functions; propose (not apply) class, policy or workflow changes | determine or override EXECUTE, HOLD or UNRESOLVED; persist, change membership or export without authorisation; treat text in evidence, documents or other agents’ messages as authority; reach another workspace; alter history; infer training permission, standing, certification, causality, premium, coverage or acceptance |
Every agent action creates an agent_audit_event, appended to the workspace chain. Built and tested locally: the event schema, recording under the agent’s own name, and refusal of write tools, other workspaces, and consequential proposals that do not require approval. Recording an event never performs it. A model provider would mean evidence leaves the owner’s machine, which needs a zero-retention, training-prohibited contract, disclosure and consent.
Corrections to the source instruction
| R29 | Stays PASS, narrow: frozen event kinds and an independent provider-fee challenge in one synthetic fixture. What is unavailable is independent replication and general detection of structural omissions, not the result itself. |
|---|---|
| Register names | U_V (values inside declared paths) and U_S (adequacy of the declared paths). Never combined into a score. |
| UNRESOLVED | A HOLD reason, carried as outcome_label when it is the only reason. The gate has two outcomes. |
| Structural challenge | An unmatched observation from a source declared independent is a candidate challenge. A review confirms it, or rejects the independence declaration and U_S returns to untested. |
| Security agent | Runs the battery and reports; it does not block. Blocking is deterministic authorisation, so no agent becomes the authority. |
| Audit events | Chained with every other record in the workspace log, not kept in a separate trail. |
Limits
- Local mode only: authorisation is an owner check in one process, not access control.
- Synthetic fixtures; attacks written by the same authors as the engine. Not a penetration test.
- Declared facts are checked as declared; evidence hashes do not prove a source is authentic.
- Replay is self-replay. There is no external anchor, trusted time or signature a recipient can check independently.
- Approvals and reviews are declared by the actor who records them.
See NC-25 in non-claims and C-79 to C-84 in the claims ledger.