Recording and Verifying Evidence with MCP
The nexart_record_execution contract, trust boundaries of hosted confidential certification, and how to independently verify the resulting CER and Node receipt.
Recording contract
The hosted tool creates a confidential AI Execution V2 record. Fields below are taken from the server's published input schema.
| Field | Required | Notes |
|---|---|---|
kind | Yes | Always "execution". |
createdAt | Yes | ISO 8601 timestamp of record creation. |
execution.executionId | Yes | Producer execution ID: chosen by you for the logical execution, stable and unique. Not an MCP operation ID. |
execution.timestamp | Yes | When the execution happened. |
execution.provider, model | Yes | Must be approved as readable metadata in your policy. |
execution.input, output | Yes | The actual input and output (string or object). Become confidential commitments. |
execution.parameters | Yes | temperature, maxTokens, topP, seed: a number, or null when the provider value is unavailable. |
execution.executionRole | Yes | advisory, operative or unspecified. |
certification.visibility | Yes | public or private; must equal the key's approved policy visibility. The agent cannot override the policy. No default. |
certification.policy_revision | Yes | The approved revision shown in the dashboard. |
certification.mode | No | Only "node". |
Optional execution fields: instruction, instructionKind (system, derived, label), decisionRefs, modelEvidence, identity, toolCalls, runId, stepId, stepIndex, workflowId, conversationId, prevStepHash, sdkVersion, appId, ext. Unknown fields are rejected.
{
"kind": "execution",
"createdAt": "2026-01-15T10:00:05.000Z",
"execution": {
"executionId": "example-exec-0001",
"timestamp": "2026-01-15T10:00:00.000Z",
"provider": "example-provider",
"model": "example-model",
"input": "Summarise this fictional note: The demo meeting moved to Tuesday.",
"output": "The fictional demo meeting is now on Tuesday.",
"parameters": {
"temperature": null,
"maxTokens": null,
"topP": null,
"seed": null
},
"executionRole": "advisory"
},
"certification": {
"mode": "node",
"visibility": "private",
"policy_revision": 1
}
}Worked examples
Fictional data. Replace policy_revision and visibility with your approved values. Do not create production CERs just to try these.
Example A: basic execution
{
"kind": "execution",
"createdAt": "2026-01-15T10:00:05.000Z",
"execution": {
"executionId": "example-exec-0001",
"timestamp": "2026-01-15T10:00:00.000Z",
"provider": "example-provider",
"model": "example-model",
"input": "Summarise this fictional note: The demo meeting moved to Tuesday.",
"output": "The fictional demo meeting is now on Tuesday.",
"parameters": {
"temperature": null,
"maxTokens": null,
"topP": null,
"seed": null
},
"executionRole": "advisory"
},
"certification": {
"mode": "node",
"visibility": "private",
"policy_revision": 1
}
}- Submitted: one prompt and answer, declared provider/model, parameters (null where unknown), role.
- Certified: a confidential
cer.ai.execution.v2CER; input and output become HMAC-SHA256 commitments. - Returned: certificate hash and Node receipt summary; no plaintext or openings.
- Independently checked: integrity (
nexart_verify_ai_cer) and receipt signature, binding and signer trust (nexart_verify_node_receipt). - Outside the boundary: whether the model really produced this output, and its correctness.
Example B: structured AI decision
"execution": {
"executionId": "example-loan-triage-0042",
"timestamp": "2026-01-15T10:00:00.000Z",
"provider": "example-provider",
"model": "example-model",
"input": { "applicationRef": "APP-EXAMPLE-1", "requestedAmount": 5000 },
"output": { "decision": "refer_to_human", "reason": "amount above auto limit" },
"parameters": { "temperature": 0, "maxTokens": null, "topP": null, "seed": null },
"executionRole": "operative",
"instruction": "Triage applications; refer anything above 4000.",
"instructionKind": "system",
"decisionRefs": ["ticket:EXAMPLE-77"]
}- Submitted: object input/output, an instruction (which requires
instructionKind) and decision references. - Certified: commitments for input, output, instruction and each decision reference; role and parameters stay readable.
- Retrieved: find it in CER History, or for a Public CER with
nexart_lookup_cerusing the exact certificate hash, then verify as in Example A. - Outside the boundary: whether the decision was applied, and the readable values of committed fields (only the owner can open them).
Example C: partial conversation
"input": {
"captureScope": "messages 3-4 of conversation example-conv-9; earlier turns, system prompt and tool traffic omitted",
"messages": [
{ "role": "user", "content": "Which fictional plan fits a team of 5?" }
]
},
"output": { "role": "assistant", "content": "The fictional Team plan covers up to 10 seats." }- Submitted: only the messages the agent chose to include, with its own description of what was omitted.
- Certified: exactly that bounded content. The
captureScopetext is the agent's own label inside the committed input, not a schema field NexArt enforces. - Independently checked: that this bounded content is unchanged since sealing.
- Outside the boundary: omitted turns, hidden context, tool calls and anything else not submitted. Never describe such a record as the full conversation.
Trust boundaries
- The AI agent supplies the execution data. NexArt does not observe the model call itself.
- Capture boundary: the CER covers only what the agent submitted in the call. It does not prove that every relevant input, output or step was submitted.
- NexArt seals the submitted evidence. Input, output, instructions and decision references become HMAC-SHA256 commitments in the CER. A commitment lets anyone check integrity, but does not reveal the original value; only the owner's recovered openings can show the value matches.
- The NexArt Node validates and signs the submitted record.
- Independent verification checks integrity, receipt authenticity, hash binding and signer trust as separate results.
- Policies are bound to one API key and can be revoked. Plan allowances apply. Records are isolated per account.
| Component | What it handles | What it does not do |
|---|---|---|
| Hosted MCP Server | Receives the plaintext input, output, instruction and decision references in the tool call and processes them in memory to build commitments and the CER. | Does not return plaintext or openings to the caller. Confidentiality limits durable disclosure, not what hosted processing sees during the call. |
| NexArt Node | Validates, attests and stores the hash-bound evidence: the sealed CER, where confidential fields appear only as cryptographic commitments, plus the signed receipt. | Does not need or store the confidential plaintext to verify or attest the record. |
| Recovery custody | Retains owner-recoverable evidence encrypted to the registered age public key in separate durable custody. The owner downloads the encrypted recovery artifact through CER History → Hosted MCP evidence → Recovery download. | Does not make original evidence public or send the owner's private age identity to the Node. Decryption takes place locally with the matching private age identity. Recovery custody is separate from the sealed CER and Node attestation. |
- The sealed evidence is unchanged since sealing.
- A verified receipt was signed by the stated Node and binds to this certificate hash.
- The model answer was correct.
- All activity was captured.
- Producer-supplied claims are independently observed facts.
Retrieve and verify
- Open Dashboard → CER History and find the record by
executionIdor certificate hash. - Export the sealed CER, the certificate hash and the signed Node receipt.
- Check integrity: recompute the hash, for example with
nexart_verify_ai_ceror the SDK. - Check the receipt with
nexart_verify_node_receipt(source: "inline") and confirm signature, hash binding and signer trust separately. - Decide your signer trust policy using published Node keys: see Independent verification.
- For original confidential evidence, follow the separate owner recovery workflow below. Public integrity and signature verification do not decrypt evidence.
Public records can also be checked at verify.nexart.io. Private records are not publicly accessible; an independent verifier needs authorised access to the exported evidence. A Public CER from hosted MCP is still confidential: public lookup shows commitments, not plaintext.
Owner recovery: download, decrypt locally and verify openings
The completed production lifecycle confirmed this dashboard workflow. Recovery is separate from anonymous public proof and Node attestation.
- Sign in to the owning NexArt account and open CER History.
- Select the intended record, matching its
executionIdandcertificateHashto the CER you exported. - Open Hosted MCP evidence, then choose Recovery download. Download the encrypted owner-recovery artifact from durable custody. Making a CER Public does not grant anonymous access to this owner workflow.
- Move the download to a trusted local machine. Decrypt it using the private age identity matching the recovery public key registered for this record. Never send the identity to the dashboard, hosted MCP, Node or an AI client.
- Verify all recovered HMAC-SHA256 openings against their corresponding commitments in the original sealed CER, using the local opening-verification tooling provided for the recovery artifact. Check that every expected confidential field has an opening and that every comparison passes. A partial check is not complete opening verification.
- Keep the encrypted artifact, private identity and any decrypted evidence under your own access controls. Share original evidence only through an explicitly authorised disclosure process.
# Run only on your trusted local machine.
# recovery-download.age is a placeholder for the downloaded encrypted artifact.
age --decrypt --identity nexart-recovery.agekey \
--output recovered-evidence.local recovery-download.age| Check | What it establishes | What it does not establish |
|---|---|---|
| Public CER integrity and Node signature | The redacted sealed evidence is intact and the verified Node signature binds to its certificate hash. | Does not reveal original inputs or outputs or verify private preimages. |
| Local age decryption | The matching owner identity can decrypt the downloaded recovery artifact. | Does not alone establish that its contents match the CER commitments. |
| Complete HMAC opening verification | Every expected opening matches its corresponding HMAC-SHA256 commitment in the original CER. The controlled production test returned VERIFIED. | Does not prove factual correctness, complete capture of real-world activity or producer identity. |