Files
yvgude--lean-ctx/docs/contracts/ocp/evidence-entry.schema.json
T
wehub-resource-sync 26382a7ac6
CI / Clippy (push) Failing after 15m13s
CI / Test (ubuntu-latest) (push) Failing after 16m1s
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Build (no embeddings / no ORT) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Cookbook (Node) (push) Has been cancelled
CI / Pi Extension (Node) (push) Has been cancelled
CI / Rust SDK (lean-ctx-client) (push) Has been cancelled
CI / Embed SDK (lean-ctx-sdk) (push) Has been cancelled
CI / Python SDK (leanctx) (push) Has been cancelled
CI / Hermes Plugin (Python) (push) Has been cancelled
CI / SDK Conformance Matrix (push) Has been cancelled
CI / Coverage (push) Has been cancelled
CI / cargo-deny (push) Has been cancelled
CI / Adversarial Safety (push) Has been cancelled
CI / Benchmarks (push) Has been cancelled
CI / Output-Quality Gate (eval A/B) (push) Has been cancelled
CI / Documentation (push) Has been cancelled
CI / CI Green (push) Has been cancelled
JetBrains Plugin / Actionlint (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (rust) (push) Has been cancelled
JetBrains Plugin / Validation (push) Has been cancelled
JetBrains Plugin / Build (push) Has been cancelled
JetBrains Plugin / Test (push) Has been cancelled
Security Check / Security Scan (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:30 +08:00

51 lines
1.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://opencontextprotocol.org/schemas/v0.1/evidence-entry.schema.json",
"title": "OCP Part 4 — Evidence chain entry",
"type": "object",
"required": [
"timestamp", "agent_id", "tool", "input_hash", "output_tokens",
"role", "event_type", "prev_hash", "entry_hash"
],
"properties": {
"timestamp": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?([+-]\\d{2}:\\d{2}|Z)$"
},
"agent_id": { "type": "string", "minLength": 1 },
"tool": { "type": "string", "minLength": 1 },
"action": { "type": ["string", "null"] },
"input_hash": { "$ref": "#/$defs/sha256hex" },
"output_tokens": { "type": "integer", "minimum": 0 },
"role": { "type": "string", "minLength": 1 },
"event_type": {
"type": "string",
"oneOf": [
{
"enum": [
"tool_call", "tool_denied", "path_jail_violation",
"budget_exceeded", "cross_project_access", "rate_limited",
"security_violation", "role_changed", "secret_detected",
"agent_registered", "agent_suspended", "agent_resumed",
"agent_decommissioned"
]
},
{ "pattern": "^x-[a-z][a-z0-9_]*$" }
]
},
"prev_hash": {
"oneOf": [
{ "const": "genesis" },
{ "$ref": "#/$defs/sha256hex" }
]
},
"entry_hash": { "$ref": "#/$defs/sha256hex" },
"signature": { "$ref": "#/$defs/ed25519hex" }
},
"additionalProperties": false,
"$defs": {
"sha256hex": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
"ed25519hex": { "type": "string", "pattern": "^[0-9a-f]{128}$" }
}
}