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.

PartStatusWhat exists
Local engine contracttestednt-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 serviceproposedNone. No accounts, API, server or storage. The routes below are names in a specification.
Governed agent layerproposedNone. 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:

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 routeLocal functionEnforces
POST /v1/workspacescreateWorkspaceAn owner who is not an agent
POST /v1/policiescreatePolicyVersioned policy, pinned by hash
POST /v1/crossing-classescreateCrossingClassPolicy registered first; syntactic admission; same id and version with different bytes refused
POST /v1/evidence-referencesregisterEvidenceReferenceHash, provenance and owner recorded; a conflicting reference refused; bytes never enter the engine
POST /v1/appraisalsappraiseCrossingEvery evidence item matches a registered reference
POST /v1/reassessmentsreassessA new determination referencing the prior one; a class change counts only after a review
POST /v1/replaysreplayAppraisalField-for-field recomputation, and log integrity
POST /v1/observationsrecordObservationEventRecords independence and path match, and says why U_S changes or does not
POST /v1/reviewsrecordReviewConfirms or rejects a candidate challenge, or approves a class version; self-review is recorded as such
POST /v1/exportscreateExportThe owner's recorded approval; recipient kind and purpose; redaction policy by recipient
GET /v1/exports/:export_idgetExportOwner 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.

AppraisalEXECUTE U_V known, U_S untested
OBS-CON-001amatches a declared path. No change to U_S: the observation follows a declared path.
OBS-CON-001matches a declared path. No change to U_S: the observation follows a declared path.
OBS-CON-002matches 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-1Confirms the challenge from OBS-CON-002: U_S challenged, review state confirmed
Replayreproduces; log verifies
Export EXP-1insurer (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.

CaseThreatExpectedObserved
fabricated-evidenceFabricated evidence
INS-005 slice
refused UNREGISTERED_EVIDENCErefused UNREGISTERED_EVIDENCEPASS
conflicting-referenceConflicting evidence
INS-005 slice
refused CONFLICTING_REFERENCErefused CONFLICTING_REFERENCEPASS
stale-evidenceStale evidence
INS-005 slice
HOLD with EXPIREDHOLD EXPIREDPASS
late-evidence-historyLate evidence and historic replay
INS-005 slice
reassessment DEFEATED; original still reproducesstanding DEFEATED; original replay reproducesPASS
false-independenceFalse independence declaration
INS-005 slice
candidate challenge; rejected on review, structure untestedcandidate then untestedPASS
policy-not-registeredPolicy version substitution
INS-005 slice
refused POLICY_NOT_REGISTEREDrefused POLICY_NOT_REGISTEREDPASS
class-substitutionClass version substitution
INS-005 slice
refused AMBIGUOUS_CLASSrefused AMBIGUOUS_CLASSPASS
unapproved-class-changePolicy or class change without review
INS-005 slice
standing effective UNRESOLVED until the class version is reviewedeffect PRESERVED, effective UNRESOLVEDPASS
agent-writes-directlyExcessive agent authority
INS-005 slice
refused FORBIDDENrefused FORBIDDENPASS
cross-workspace-readCross-workspace access
INS-005 slice and a second workspace
refused FORBIDDENrefused FORBIDDENPASS
export-without-approvalUnauthorised export
INS-005 slice
refused APPROVAL_REQUIREDrefused APPROVAL_REQUIREDPASS
export-tamperExport and manifest tampering
INS-005 slice
verification failsexport.json: content does not match the manifestPASS
redaction-tamperRedaction tampering
INS-005 slice
REDACTION_VIOLATIONREDACTION_VIOLATION: views/0000.json carries proposalPASS
erase-holdErasing or rewriting a HOLD in history
INS-005 slice
rewrite detected by the chain; erasure detected by the holder of the responsetail erasure undetected by the chain alone; erasure detected with the held response: true; rewrite detected: truePASS
context-invariancePayment, referral or review status altering a result
INS-005 slice
identical outcome, reasons, uncertainty and receiptidenticalPASS
injected-instructionsPrompt injection in evidence and documents
INS-005 slice
identical checks and outcomeEXECUTE vs EXECUTEPASS
agent-event-overreachAgent tool abuse and memory of authority
INS-005 slice
refused AGENT_EVENT_REFUSEDrefused AGENT_EVENT_REFUSEDPASS

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 mayAgents 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 changesdetermine 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

R29Stays 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 namesU_V (values inside declared paths) and U_S (adequacy of the declared paths). Never combined into a score.
UNRESOLVEDA HOLD reason, carried as outcome_label when it is the only reason. The gate has two outcomes.
Structural challengeAn 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 agentRuns the battery and reports; it does not block. Blocking is deterministic authorisation, so no agent becomes the authority.
Audit eventsChained with every other record in the workspace log, not kept in a separate trail.

Limits

See NC-25 in non-claims and C-79 to C-84 in the claims ledger.