- kei-artifact Rust crate (25th): schema registry + artifact store + SHA-256 id + chain walker - 5 schemas (JSON Schema 2020-12 strict): spec / plan / patch / review / research - Manifest extension: optional produces_artifact + expects_artifact per handoff (non-breaking) - Validator extension: KNOWN_ARTIFACT_SCHEMAS whitelist check + 4 new tests - 3 kei-* manifests updated with typed handoff (architect→code-implementer→critic chain) - compose-solution phase-5 cross-ref to kei-artifact Tests: 189 Rust workspace (was 167, +22 artifact tests) + 24 assembler (was 20, +4 validator tests)
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "kei-artifact://spec",
|
|
"title": "Agent Specification",
|
|
"description": "Architect output — what to build and under which constraints.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["goal", "constraints", "invariants"],
|
|
"properties": {
|
|
"goal": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"constraints": {
|
|
"type": "array",
|
|
"items": {"type": "string", "minLength": 1}
|
|
},
|
|
"invariants": {
|
|
"type": "array",
|
|
"items": {"type": "string", "minLength": 1}
|
|
},
|
|
"tradeoffs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["choice", "rejected", "because"],
|
|
"properties": {
|
|
"choice": {"type": "string", "minLength": 1},
|
|
"rejected": {"type": "string", "minLength": 1},
|
|
"because": {"type": "string", "minLength": 1}
|
|
}
|
|
}
|
|
},
|
|
"evidence_grade": {
|
|
"type": "string",
|
|
"enum": ["E1", "E2", "E3", "E4", "E5", "E6"]
|
|
}
|
|
}
|
|
}
|