init: company-haness 설계
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "method-execution",
|
||||
"description": "P3-B: 계약 실행의 흔적(존재≠수행). active 계약·standard/heavy 보고서에서 required. step-results를 artifact/evidence/receipt로 증명.",
|
||||
"type": "object",
|
||||
"required": ["role-id", "method-id", "contract-sha256", "step-results"],
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"role-id": {"type": "string"},
|
||||
"method-id": {"type": "string"},
|
||||
"contract-sha256": {"type": "string", "minLength": 64, "maxLength": 64},
|
||||
"capability-bindings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["skill-id", "section-id", "section-sha256"],
|
||||
"properties": {
|
||||
"skill-id": {"type": "string"},
|
||||
"section-id": {"type": "string"},
|
||||
"section-sha256": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"step-results": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["step-id", "status"],
|
||||
"properties": {
|
||||
"step-id": {"type": "string"},
|
||||
"status": {"enum": ["completed", "skipped"]},
|
||||
"output-binding": {"enum": ["current-artifact", "trusted-artifact"]},
|
||||
"artifact-refs": {
|
||||
"type": "array",
|
||||
"items": {"type": "object", "required": ["report-id", "sha256"],
|
||||
"properties": {"report-id": {"type": "string"}, "sha256": {"type": "string"}}}
|
||||
},
|
||||
"evidence-refs": {
|
||||
"type": "array",
|
||||
"items": {"type": "object", "required": ["source-uri", "grade"],
|
||||
"properties": {"source-uri": {"type": "string"}, "grade": {"type": "string"}}}
|
||||
},
|
||||
"skip-rule-id": {"type": "string"},
|
||||
"reason": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"decisions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["decision-id", "alternatives", "selected-option-id"],
|
||||
"properties": {
|
||||
"decision-id": {"type": "string"},
|
||||
"alternatives": {
|
||||
"type": "array", "minItems": 1,
|
||||
"items": {"type": "object", "required": ["option-id"],
|
||||
"properties": {"option-id": {"type": "string"},
|
||||
"evidence-refs": {"type": "array"}}}
|
||||
},
|
||||
"selected-option-id": {"type": "string"},
|
||||
"rejection-rationales": {"type": "object"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"self-check-results": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object", "required": ["step-id", "gate-id", "verdict", "evidence-refs"],
|
||||
"properties": {
|
||||
"step-id": {"type": "string"}, "gate-id": {"type": "string"},
|
||||
"verdict": {"enum": ["Passed", "Failed"]},
|
||||
"evidence-refs": {"type": "array", "minItems": 1}
|
||||
}
|
||||
}
|
||||
},
|
||||
"judgment-results": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object", "required": ["step-id", "gate-id", "review-artifact-ref"],
|
||||
"properties": {
|
||||
"step-id": {"type": "string"}, "gate-id": {"type": "string"},
|
||||
"review-artifact-ref": {"type": "object", "required": ["report-id", "sha256"],
|
||||
"properties": {"report-id": {"type": "string"}, "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}}}
|
||||
}
|
||||
}
|
||||
},
|
||||
"handoffs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["to-role", "artifact-refs"],
|
||||
"properties": {
|
||||
"to-role": {"type": "string"},
|
||||
"to-method": {"type": "string"},
|
||||
"artifact-refs": {
|
||||
"type": "array",
|
||||
"items": {"type": "object", "required": ["report-id", "sha256"],
|
||||
"properties": {"report-id": {"type": "string"}, "sha256": {"type": "string"}}}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user