KeiSeiKit-1.0/_primitives/_rust/kei-artifact/schemas/patch.json
Parfii-bot 537589e6a7 feat(primitives): kei-artifact typed handoff pipeline (BMAD-style doc passthrough)
- 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)
2026-04-22 14:10:08 +08:00

48 lines
1.3 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "kei-artifact://patch",
"title": "File-Changes Manifest",
"description": "Implementer output — manifest of changed files with ops.",
"type": "object",
"additionalProperties": false,
"required": ["summary", "changes"],
"properties": {
"summary": {
"type": "string",
"minLength": 1
},
"parent_plan_id": {
"type": "string",
"minLength": 1
},
"changes": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["path", "op", "summary"],
"properties": {
"path": {"type": "string", "minLength": 1},
"op": {"type": "string", "enum": ["add", "mod", "del"]},
"summary": {"type": "string", "minLength": 1},
"loc_delta": {"type": "integer"},
"diff": {"type": "string"}
}
}
},
"tests": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["name", "status"],
"properties": {
"name": {"type": "string", "minLength": 1},
"status": {"type": "string", "enum": ["pass", "fail", "skip"]},
"reproduce": {"type": "string"}
}
}
}
}
}