File size: 1,624 Bytes
ee7e468 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Context Freshness Ledger Case",
"description": "A synthetic no-execution record for reviewing whether remembered context is current enough for a proposed action.",
"type": "object",
"additionalProperties": false,
"required": [
"record_id",
"source",
"scope",
"proposed_action",
"freshness",
"human_return"
],
"properties": {
"record_id": {"type": "string", "minLength": 1},
"source": {
"type": "object",
"additionalProperties": false,
"required": ["kind", "reference", "observed_at"],
"properties": {
"kind": {"type": "string", "enum": ["session", "document", "tool_result", "person", "other"]},
"reference": {"type": "string", "minLength": 1},
"observed_at": {"type": "string", "format": "date-time"}
}
},
"scope": {"type": "string", "minLength": 1},
"proposed_action": {"type": "string", "minLength": 1},
"freshness": {
"type": "object",
"additionalProperties": false,
"required": ["review_by", "status", "reason"],
"properties": {
"review_by": {"type": "string", "format": "date-time"},
"status": {"type": "string", "enum": ["current", "stale", "needs_review"]},
"reason": {"type": "string", "minLength": 1}
}
},
"human_return": {
"type": "object",
"additionalProperties": false,
"required": ["required", "reason"],
"properties": {
"required": {"type": "boolean"},
"reason": {"type": "string", "minLength": 1}
}
}
}
}
|