Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checksums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ b451b0c05cb77f7ad66906f351b560400447de136c1ad2ce27c63fc3bcaf0d9a schemas/v1.0.0
ccb7f20562d2e34dff73a17794aabcf98f25f659e83a790e42cf9a31e97460b3 schemas/v1.0.0/commons/summarize/receipts/summarize.receipt.schema.json
be565b5a72dc03a1517a9c2ea0a0842c86def2e58e8471f81e3cac6262bffb68 schemas/v1.0.0/commons/summarize/requests/summarize.request.schema.json
4760c15bc2985b35be8a333859e0b2e97617735be0d0222722b162de47caf940 schemas/v1.1.0/commons/analyze/analyze.receipt.schema.json
7f3c2254410e5a552905810a5a4e564af97b82bd7122d92af7d5ca9c43438caa schemas/v1.1.0/commons/analyze/analyze.request.schema.json
e8c4c23353c0df05a3b4b361b7780ef536b5609126880a91943f866184c3b58e schemas/v1.1.0/commons/analyze/analyze.request.schema.json
6aeb33050633f712dfcaabc8e57ba058275e44653407bb766f0417cb5bfd8c2b schemas/v1.1.0/commons/classify/classify.receipt.schema.json
476253e821ff4e7dfa441e5604c6efc29d12729bcb50e8a02db86fbd121240ab schemas/v1.1.0/commons/classify/classify.request.schema.json
13a2f4d9083e1e5ed6bd6b98e05736e7791bfd62b109b4090ab4abff75572ad5 schemas/v1.1.0/commons/clean/clean.receipt.schema.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// INVALID analyze.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID analyze.receipt #1 — malformed request_hash pattern

export const analyzeReceiptInvalid1: any = {
"verb": "analyze",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"timestamp": "2026-03-18T12:05:00Z",
"agent": "analyzeagent.eth",
"request_hash": "sha256:1234",
"summary": "Extracted the dominant control failures and rollout blockers.",
"signature": "MEUCIGdY9f8wq2dL4rN6sT7uV1xY3zA5bC7dE9fG1hJ2kL3mAiEAzQ7wX9yB2cD4eF6gH8iJ0kL2mN4pQ6rS8tU0vW2xY4"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// INVALID analyze.receipt #2 — error status without required error field
// INVALID analyze.receipt #2 — error status requires an error message

export const analyzeReceiptInvalid2: any = {
"verb": "analyze",
"version": "1.1.0",
"status": "error",
"timestamp": "2026-03-18T12:05:00Z",
"agent": "analyzeagent.eth",
"request_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID analyze.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID analyze.request #1 — unsupported mode enum value

export const analyzeRequestInvalid1: any = {
"verb": "summarize",
"verb": "analyze",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "Review the incident notes and group the findings by control domain.",
"mode": "bullet-points"
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// INVALID analyze.request #2 — missing required input and wrong version type
// INVALID analyze.request #2 — missing required input

export const analyzeRequestInvalid2: any = {
"verb": "analyze",
"version": 110,
"version": "1.1.0",
"mode": "extract"
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// VALID analyze.request #1 — aligned with schemas/v1.1.0/commons/analyze/analyze.request.schema.json

export type AnalyzeMode = "classify" | "extract" | "score" | "synthesize";
export type AnalyzeMode = "categorize" | "extract" | "score" | "synthesize";

export interface AnalyzeRequest {
verb: "analyze";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"verb": "classify",
"version": "1.1.0",
"status": "ok",
"timestamp": "2026-03-18T12:14:09Z",
"agent": "classifyagent.eth",
"request_hash": "sha256:76c06ca1a9ca0d0aa1c7e25f548ffaf2168e95d8f289d9622b391ac5f3d5f8ec",
"summary": "routing_issue"
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// INVALID classify.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID classify.receipt #1 — ok status requires a string summary

export const classifyReceiptInvalid1: any = {
"verb": "classify",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"timestamp": "2026-03-18T12:10:00Z",
"agent": "classifyagent.eth",
"request_hash": "sha256:3d5224e3ebc7f6ab9e9a6a2114a5f7d01c6847c8df0e3fd53c0e5d117f6ab9dd",
"summary": [
"billing_issue"
],
"signature": "MEYCIQDf3h7kL9mN2pQ4rS6tU8vW0xY2zA4bC6dE8fG0hJ1kLwIhAO5pQ7rS9tU1vW3xY5zB7cD9eF1gH3iJ5kL7mN9pQ1"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID classify.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID classify.request #1 — unsupported mode enum value

export const classifyRequestInvalid1: any = {
"verb": "summarize",
"verb": "classify",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "Route this ticket as billing, bug, or account access.",
"mode": "ordinal"
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// INVALID clean.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID clean.receipt #1 — timestamp must satisfy date-time format

export const cleanReceiptInvalid1: any = {
"verb": "clean",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"timestamp": "2026/03/18 12:20:00 UTC",
"agent": "cleanagent.eth",
"request_hash": "sha256:37f8c2f8ef1d3819a3d8f4a662637df84256d4d2d95f0f00fd770af409f4233f",
"summary": "Removed script tags, normalized whitespace, and preserved visible text.",
"signature": "MEUCIB2dD4fF6hH8jJ0lL2nP4rT6vX8zA1cC3eE5gH7iJ9kLAiEAqS6uV8wY0zB2dD4fF6hH8jJ0lL2nP4rT6vX8zA1cC3"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// INVALID clean.receipt #2 — error status without required error field
// INVALID clean.receipt #2 — ok status requires a summary

export const cleanReceiptInvalid2: any = {
"verb": "clean",
"version": "1.1.0",
"status": "error",
"status": "ok",
"timestamp": "2026-03-18T12:05:00Z",
"agent": "cleanagent.eth",
"request_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID clean.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID clean.request #1 — unsupported mode enum value

export const cleanRequestInvalid1: any = {
"verb": "summarize",
"verb": "clean",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "<p>Hello&nbsp;&nbsp;<script>alert(1)</script>world</p>",
"mode": "compress"
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// INVALID clean.request #2 — missing required input and wrong version type
// INVALID clean.request #2 — version must stay on the canonical 1.1.0 literal

export const cleanRequestInvalid2: any = {
"verb": "clean",
"version": 110,
"input": "Normalize spacing and strip unsafe markup.",
"mode": "normalize"
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// INVALID convert.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID convert.receipt #1 — signature is shorter than the enforced minimum

export const convertReceiptInvalid1: any = {
"verb": "convert",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"timestamp": "2026-03-18T12:30:00Z",
"agent": "convertagent.eth",
"request_hash": "sha256:fbab825a8f87dfdc5ff7e8770baad69c3ab381654677a1f2df45f1ad0dfbd2af",
"summary": "Converted the HTML fragment into markdown headings and body copy.",
"signature": "shortsig"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// INVALID convert.receipt #2 — error status without required error field
// INVALID convert.receipt #2 — error status requires an error message

export const convertReceiptInvalid2: any = {
"verb": "convert",
"version": "1.1.0",
"status": "error",
"timestamp": "2026-03-18T12:05:00Z",
"agent": "convertagent.eth",
"request_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID convert.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID convert.request #1 — unsupported mode enum value

export const convertRequestInvalid1: any = {
"verb": "summarize",
"verb": "convert",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "<h1>Release</h1><p>Protocol upgraded successfully.</p>",
"mode": "pdf"
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// INVALID convert.request #2 — missing required input and wrong version type
// INVALID convert.request #2 — missing required input

export const convertRequestInvalid2: any = {
"verb": "convert",
"version": 110,
"version": "1.1.0",
"mode": "markdown"
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// INVALID describe.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID describe.receipt #1 — status must be ok or error

export const describeReceiptInvalid1: any = {
"verb": "describe",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"status": "pending",
"timestamp": "2026-03-18T12:40:00Z",
"agent": "describeagent.eth",
"request_hash": "sha256:7cd365e5f6dce2d9cf2c324ec129e6b802f231b48c99f2dc42c9f2d4e4b0f1ae",
"summary": "A compact UI card showing receipt outcome, signer identity, and verification hashes.",
"signature": "MEQCID2eF4gH6iJ8kL0mN2pQ4rS6tU8vW0xY2zA4bC6dE8fGAiAxY3zA5bC7dE9fG1hJ3kL5mN7pQ9rS1tU3vW5xY7zA9"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// INVALID describe.receipt #2 — error status without required error field
// INVALID describe.receipt #2 — additionalProperties are not allowed

export const describeReceiptInvalid2: any = {
"verb": "describe",
"version": "1.1.0",
"status": "error",
"timestamp": "2026-03-18T12:05:00Z",
"agent": "describeagent.eth",
"request_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
"error": "The referenced image asset was unavailable at description time.",
"notes": [
"debug"
]
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID describe.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID describe.request #1 — unsupported mode enum value

export const describeRequestInvalid1: any = {
"verb": "summarize",
"verb": "describe",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "A compact dashboard card showing signer status and request hashes.",
"mode": "poetic"
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// INVALID describe.request #2 — missing required input and wrong version type
// INVALID describe.request #2 — version must be a string literal

export const describeRequestInvalid2: any = {
"verb": "describe",
"version": 110,
"input": "Describe the layout in plain UI terms.",
"mode": "plain"
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// INVALID explain.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID explain.receipt #1 — ok status requires summary to be a string

export const explainReceiptInvalid1: any = {
"verb": "explain",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"timestamp": "2026-03-18T12:50:00Z",
"agent": "explainagent.eth",
"request_hash": "sha256:ee53297ba8a485df4588504338133861776dba7c27f86d9f3f3e4968a397dfc0",
"summary": false,
"signature": "MEUCIG8iJ0kL2mN4pQ6rS8tU0vW2xY4zB6dD8fF0hJ2lN4pAiEAqR7tU9vW1xY3zA5bC7dE9fG1hJ3kL5mN7pQ9rS1tU3"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// INVALID explain.receipt #2 — error status without required error field
// INVALID explain.receipt #2 — malformed request_hash pattern

export const explainReceiptInvalid2: any = {
"verb": "explain",
"version": "1.1.0",
"status": "error",
"timestamp": "2026-03-18T12:05:00Z",
"request_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"agent": "explainagent.eth",
"request_hash": "sha256:XYZ",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
"error": "The subject text referenced an unsupported external proof format."
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID explain.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID explain.request #1 — unsupported mode enum value

export const explainRequestInvalid1: any = {
"verb": "summarize",
"verb": "explain",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "Explain why replay protection matters in this signing flow.",
"mode": "legalese"
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// INVALID explain.request #2 — missing required input and wrong version type
// INVALID explain.request #2 — missing required input

export const explainRequestInvalid2: any = {
"verb": "explain",
"version": 110,
"version": "1.1.0",
"mode": "step-by-step"
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// INVALID fetch.receipt #1 — bad timestamp, malformed hash, short signature
// INVALID fetch.receipt #1 — malformed result_hash pattern

export const fetchReceiptInvalid1: any = {
"verb": "fetch",
"version": "1.1.0",
"status": "ok",
"timestamp": "not-a-date",
"request_hash": "sha256:xyz",
"signature": "short",
"error": "ok receipts should not rely on error only"
"timestamp": "2026-03-18T13:00:00Z",
"agent": "fetchagent.eth",
"request_hash": "sha256:549ae105b20f8ba134fe5f4f3f5f849cfb154ea0ff742f32c611f2fab24f9f66",
"result_hash": "sha256:1234",
"summary": "Fetched a JSON health document with signer and availability metadata.",
"signature": "MEUCID9jK1lM3nO5pQ7rS9tU1vW3xY5zB7cD9eF1gH3iJ5kLAiEAoQ2rS4tU6vW8xY0zB2dD4fF6hH8jJ0lL2nP4rT6vX8"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// INVALID fetch.receipt #2 — error status without required error field
// INVALID fetch.receipt #2 — error status requires an error message

export const fetchReceiptInvalid2: any = {
"verb": "fetch",
"version": "1.1.0",
"status": "error",
"timestamp": "2026-03-18T12:05:00Z",
"agent": "fetchagent.eth",
"request_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"signature": "sigBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// INVALID fetch.request #1 — wrong verb + wrong input type + unsupported mode
// INVALID fetch.request #1 — unsupported mode enum value

export const fetchRequestInvalid1: any = {
"verb": "summarize",
"verb": "fetch",
"version": "1.1.0",
"input": {
"text": "This should be a string."
},
"input": "https://status.commandlayer.org/health.json",
"mode": "markdown"
};
Loading
Loading