handoff-protocol / evals /result.schema.json
LucioLiu's picture
Initial release - mirrors github.com/LucioLiu/handoff-protocol
f24bcdf verified
Raw
History Blame Contribute Delete
2.19 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [
"ok",
"version",
"observed_at",
"command",
"component_schema",
"runner",
"results"
],
"properties": {
"ok": {"type": "boolean"},
"version": {"const": "1.3.0"},
"observed_at": {"type": "string", "format": "date-time"},
"command": {"type": "string", "minLength": 1},
"component_schema": {
"oneOf": [
{"type": "null"},
{
"type": "object",
"additionalProperties": false,
"required": ["schema_id", "sha256"],
"properties": {
"schema_id": {"type": "string", "minLength": 1},
"sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
}
}
]
},
"runner": {
"type": "object",
"additionalProperties": false,
"required": ["path", "sha256"],
"properties": {
"path": {"const": "evals/run_evals.py"},
"sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
}
},
"results": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "status", "checks", "evidence"],
"properties": {
"id": {"type": "string", "minLength": 1},
"status": {"enum": ["pass", "fail"]},
"checks": {
"type": "array",
"minItems": 1,
"items": {"type": "string", "minLength": 1}
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {"type": "string", "minLength": 1}
}
}
}
}
},
"allOf": [
{
"if": {
"properties": {"ok": {"const": true}},
"required": ["ok"]
},
"then": {
"properties": {
"results": {
"items": {
"properties": {"status": {"const": "pass"}},
"required": ["status"]
}
}
}
}
}
]
}