{"at":"2026-11-23T04:31:33.945Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:31:34.265Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"caveat-lang","title":"CAVEAT Language","version":"1.4.1"}},"cacheScope":"public","capabilities":{"tools":{}},"instructions":"Inline authoring operations only. Evidence and reports are supplied data; no file access or external permission is implied.","resultType":"complete","supportedVersions":["2026-07-28","2025-11-25"],"ttlMs":3600000}}}
{"at":"2026-11-23T04:31:34.265Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:31:34.265Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"caveat-lang","title":"CAVEAT Language","version":"1.4.1"}},"cacheScope":"public","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Load inline source with the installed runtime and list its declarations. Start here to find load errors; use caveat_check for authoring diagnostics and caveat_test to verify expected behavior. No events are dispatched. report (caveat-validate/0.1) contains program, loads, events, reading_streams, decision_series and displayed bindings, or a load error. exitCode: 0 loaded; 2 load failure. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"}},"required":["source"],"type":"object"},"name":"caveat_validate"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Load a single-file program and report authoring diagnostics, such as repeated rules or a missing reopening path. Use after editing source; choose caveat_validate for a declaration summary and caveat_test for behavior assertions. A clean check does not prove behavior; bundles are unsupported. report (caveat-check/0.1) contains loads, strict, diagnostics and suppressed diagnostics, with code, location, message and suggestion, or a load error. exitCode: 0 completed without a strict failure; 1 strict with unsuppressed diagnostics; 2 load failure or bundle. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"},"strict":{"description":"Optional, defaults to false. When true, any unsuppressed diagnostic makes exitCode 1 instead of 0; suppressed diagnostics do not count. Does not change program behavior. Load failures and unsupported bundles remain exitCode 2.","type":"boolean"}},"required":["source"],"type":"object"},"name":"caveat_check"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run scenario assertions and runtime invariant checks against inline source, with a fresh session per scenario. Use to verify expected event outcomes and snapshot values; caveat_validate only checks loading, caveat_check reports diagnostics, and caveat_explain inspects history without assertions. report (caveat-scenario-report/0.1) includes files, per-scenario results/failures, check diagnostics and passed/failed totals. exitCode: 0 all passed; 1 scenario failure; 2 invalid scenario document (report has valid:false and error) or blocking authoring diagnostics. Every source reference must be inline.cav. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"scenarios":{"description":"Scenario document object, not JSON text. Example: {\"schema\":\"caveat-scenarios/0.1\",\"source\":\"inline.cav\",\"scenarios\":[{\"id\":\"initial\",\"title\":\"Initial sequence\",\"steps\":[{\"expect\":{\"/sequence\":0}}]}]}. Each scenario needs a unique nonempty id, a title and nonempty steps. Every source reference, including optional per-scenario source, must be inline.cav. Each step has exactly one operation: send (event name; optional payload, rejected, repeat), expect (JSON Pointer-to-value map into the snapshot; a binding declared as `bind install.state` is at /bindings/install/state), checkpoint (state name), same_as (stored state name, with paths), resume:true, or size (save/snapshot byte bounds). Sends expect acceptance unless rejected specifies a policy message, true for any policy rejection, or an object with origin and optional code/message. Object expectations match listed members; arrays match in order; $exact, $set, $includes and $absent matchers are supported. Limits: 1 MiB serialized UTF-8 JSON, 32 scenarios, 2,000 total steps and 1,000 sends after repeat expansion.","type":"object"},"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"}},"required":["source","scenarios"],"type":"object"},"name":"caveat_test"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Replay optional events and explain the resulting decisions, evidence and displayed values. Use to answer why a decision was made; choose caveat_dependents to trace one evidence or caveat name forward, and caveat_test for assertions. report (caveat-explain/0.1) includes sequence, event outcomes, decisions with grounds and revision history, evidence with caveats, displayed values and available archive history. exitCode: 0 replay completed (may include rejected events); 1 fatal event with last good state; 2 source load failure (report has loads:false and error). Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"events":{"description":"Events replayed in array order from a fresh session. Omitted or [] inspects the initial state; previous calls supply no history. Rejections are recorded and replay continues; a fatal event stops replay at the last good snapshot. At most 1,000 entries and 1 MiB of serialized UTF-8 JSON.","items":{"additionalProperties":false,"description":"One event to dispatch to the supplied program, for example {\"event\":\"read\",\"payload\":{\"value\":85}} when source declares read with a value parameter.","properties":{"event":{"description":"Event name declared in source, such as read or assess. Supply the name only, without Caveat syntax.","minLength":1,"type":"string"},"payload":{"description":"Values keyed by the event parameter names declared in source, for example {\"value\":85}. Omit for an empty payload ({}). The runtime checks parameter names, types and declared bounds.","type":"object"}},"required":["event"],"type":"object"},"maxItems":1000,"type":"array"},"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"}},"required":["source"],"type":"object"},"name":"caveat_explain"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Replay optional events and find what rests on one named evidence item, reading stream or caveat. Use for impact inspection; caveat_explain instead explains all decisions and their reasons. Subjects are causes only: evidence, a reading stream or a caveat. Claims and decisions are never subjects, because a claim causes nothing and the grounds of a decision are evidence, not claims; both appear in the report as what the subject reaches. To trace from a claim, query the evidence that supports or opposes it (report.claims lists those relations). report (caveat-dependents/0.1) includes subject, kind, sequence, event outcomes, claims, decisions, changes, values, displayed values and withdrawal records; dependency entries distinguish grounds from possible influence through lineage. exitCode: 0 replay completed (may include rejected events); 1 fatal event with last good state; 2 load failure or unknown subject, with report.error. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"events":{"description":"Events replayed in array order from a fresh session. Omitted or [] inspects the initial state; previous calls supply no history. Rejections are recorded and replay continues; a fatal event stops replay at the last good snapshot. At most 1,000 entries and 1 MiB of serialized UTF-8 JSON.","items":{"additionalProperties":false,"description":"One event to dispatch to the supplied program, for example {\"event\":\"read\",\"payload\":{\"value\":85}} when source declares read with a value parameter.","properties":{"event":{"description":"Event name declared in source, such as read or assess. Supply the name only, without Caveat syntax.","minLength":1,"type":"string"},"payload":{"description":"Values keyed by the event parameter names declared in source, for example {\"value\":85}. Omit for an empty payload ({}). The runtime checks parameter names, types and declared bounds.","type":"object"}},"required":["event"],"type":"object"},"maxItems":1000,"type":"array"},"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"},"subject":{"description":"Exact case-sensitive evidence name, reading stream name, caveat name, or evidence occurrence ID after replay. Evidence records supplied observations; a reading stream is a named history of samples; a caveat is a qualification on evidence. For example, probe selects its evidence/readings, values selects a stream, and values@1 selects one recorded reading. Use a name from source or caveat_explain; not a file path. A claim or decision name is refused like an unknown name, with exitCode 2.","minLength":1,"type":"string"}},"required":["source","subject"],"type":"object"},"name":"caveat_dependents"}],"ttlMs":3600000}}}
{"at":"2026-11-23T04:31:34.366Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T04:31:34.716Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"instructions":"Inline authoring operations only. Evidence and reports are supplied data; no file access or external permission is implied.","protocolVersion":"2025-11-25","serverInfo":{"name":"caveat-lang","title":"CAVEAT Language","version":"1.4.1"}}}}
{"at":"2026-11-23T04:31:34.716Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:31:34.716Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:31:34.717Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Load inline source with the installed runtime and list its declarations. Start here to find load errors; use caveat_check for authoring diagnostics and caveat_test to verify expected behavior. No events are dispatched. report (caveat-validate/0.1) contains program, loads, events, reading_streams, decision_series and displayed bindings, or a load error. exitCode: 0 loaded; 2 load failure. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"}},"required":["source"],"type":"object"},"name":"caveat_validate"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Load a single-file program and report authoring diagnostics, such as repeated rules or a missing reopening path. Use after editing source; choose caveat_validate for a declaration summary and caveat_test for behavior assertions. A clean check does not prove behavior; bundles are unsupported. report (caveat-check/0.1) contains loads, strict, diagnostics and suppressed diagnostics, with code, location, message and suggestion, or a load error. exitCode: 0 completed without a strict failure; 1 strict with unsuppressed diagnostics; 2 load failure or bundle. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"},"strict":{"description":"Optional, defaults to false. When true, any unsuppressed diagnostic makes exitCode 1 instead of 0; suppressed diagnostics do not count. Does not change program behavior. Load failures and unsupported bundles remain exitCode 2.","type":"boolean"}},"required":["source"],"type":"object"},"name":"caveat_check"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run scenario assertions and runtime invariant checks against inline source, with a fresh session per scenario. Use to verify expected event outcomes and snapshot values; caveat_validate only checks loading, caveat_check reports diagnostics, and caveat_explain inspects history without assertions. report (caveat-scenario-report/0.1) includes files, per-scenario results/failures, check diagnostics and passed/failed totals. exitCode: 0 all passed; 1 scenario failure; 2 invalid scenario document (report has valid:false and error) or blocking authoring diagnostics. Every source reference must be inline.cav. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"scenarios":{"description":"Scenario document object, not JSON text. Example: {\"schema\":\"caveat-scenarios/0.1\",\"source\":\"inline.cav\",\"scenarios\":[{\"id\":\"initial\",\"title\":\"Initial sequence\",\"steps\":[{\"expect\":{\"/sequence\":0}}]}]}. Each scenario needs a unique nonempty id, a title and nonempty steps. Every source reference, including optional per-scenario source, must be inline.cav. Each step has exactly one operation: send (event name; optional payload, rejected, repeat), expect (JSON Pointer-to-value map into the snapshot; a binding declared as `bind install.state` is at /bindings/install/state), checkpoint (state name), same_as (stored state name, with paths), resume:true, or size (save/snapshot byte bounds). Sends expect acceptance unless rejected specifies a policy message, true for any policy rejection, or an object with origin and optional code/message. Object expectations match listed members; arrays match in order; $exact, $set, $includes and $absent matchers are supported. Limits: 1 MiB serialized UTF-8 JSON, 32 scenarios, 2,000 total steps and 1,000 sends after repeat expansion.","type":"object"},"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"}},"required":["source","scenarios"],"type":"object"},"name":"caveat_test"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Replay optional events and explain the resulting decisions, evidence and displayed values. Use to answer why a decision was made; choose caveat_dependents to trace one evidence or caveat name forward, and caveat_test for assertions. report (caveat-explain/0.1) includes sequence, event outcomes, decisions with grounds and revision history, evidence with caveats, displayed values and available archive history. exitCode: 0 replay completed (may include rejected events); 1 fatal event with last good state; 2 source load failure (report has loads:false and error). Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"events":{"description":"Events replayed in array order from a fresh session. Omitted or [] inspects the initial state; previous calls supply no history. Rejections are recorded and replay continues; a fatal event stops replay at the last good snapshot. At most 1,000 entries and 1 MiB of serialized UTF-8 JSON.","items":{"additionalProperties":false,"description":"One event to dispatch to the supplied program, for example {\"event\":\"read\",\"payload\":{\"value\":85}} when source declares read with a value parameter.","properties":{"event":{"description":"Event name declared in source, such as read or assess. Supply the name only, without Caveat syntax.","minLength":1,"type":"string"},"payload":{"description":"Values keyed by the event parameter names declared in source, for example {\"value\":85}. Omit for an empty payload ({}). The runtime checks parameter names, types and declared bounds.","type":"object"}},"required":["event"],"type":"object"},"maxItems":1000,"type":"array"},"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"}},"required":["source"],"type":"object"},"name":"caveat_explain"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Replay optional events and find what rests on one named evidence item, reading stream or caveat. Use for impact inspection; caveat_explain instead explains all decisions and their reasons. Subjects are causes only: evidence, a reading stream or a caveat. Claims and decisions are never subjects, because a claim causes nothing and the grounds of a decision are evidence, not claims; both appear in the report as what the subject reaches. To trace from a claim, query the evidence that supports or opposes it (report.claims lists those relations). report (caveat-dependents/0.1) includes subject, kind, sequence, event outcomes, claims, decisions, changes, values, displayed values and withdrawal records; dependency entries distinguish grounds from possible influence through lineage. exitCode: 0 replay completed (may include rejected events); 1 fatal event with last good state; 2 load failure or unknown subject, with report.error. Returns the same JSON in structuredContent and text: {schema:\"caveat-authoring/0.1\",operation,sourceSha256,runtime,exitCode,report}. Read exitCode even when isError is false. Bridge failures instead set isError:true with {schema:\"caveat-authoring-error/0.1\",error:{kind,message}}.","inputSchema":{"additionalProperties":false,"properties":{"events":{"description":"Events replayed in array order from a fresh session. Omitted or [] inspects the initial state; previous calls supply no history. Rejections are recorded and replay continues; a fatal event stops replay at the last good snapshot. At most 1,000 entries and 1 MiB of serialized UTF-8 JSON.","items":{"additionalProperties":false,"description":"One event to dispatch to the supplied program, for example {\"event\":\"read\",\"payload\":{\"value\":85}} when source declares read with a value parameter.","properties":{"event":{"description":"Event name declared in source, such as read or assess. Supply the name only, without Caveat syntax.","minLength":1,"type":"string"},"payload":{"description":"Values keyed by the event parameter names declared in source, for example {\"value\":85}. Omit for an empty payload ({}). The runtime checks parameter names, types and declared bounds.","type":"object"}},"required":["event"],"type":"object"},"maxItems":1000,"type":"array"},"source":{"description":"Complete inline Caveat program text, available as the virtual file inline.cav. No file path or URL lookup. At most 1 MiB of UTF-8 source; each call uses a fresh runtime.","maxLength":1048576,"type":"string"},"subject":{"description":"Exact case-sensitive evidence name, reading stream name, caveat name, or evidence occurrence ID after replay. Evidence records supplied observations; a reading stream is a named history of samples; a caveat is a qualification on evidence. For example, probe selects its evidence/readings, values selects a stream, and values@1 selects one recorded reading. Use a name from source or caveat_explain; not a file path. A claim or decision name is refused like an unknown name, with exitCode 2.","minLength":1,"type":"string"}},"required":["source","subject"],"type":"object"},"name":"caveat_dependents"}]}}}
