guanghu-ice-heart/server-tools/lake-lamp-continuity-guard/age-self-infrastructure-persona-binding.schema.json

71 lines
2.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://guanghulab.com/schemas/hldp/age-self-infrastructure-persona-binding.v1.schema.json",
"title": "AGE Self Infrastructure Persona Binding Receipt",
"type": "object",
"required": [
"schema",
"decision",
"binding_id",
"lane_kind",
"thread_id",
"development_id",
"controller_persona_id",
"human_anchor",
"development_objects",
"task_fingerprint",
"task_event_id",
"checkpoint_path",
"checkpoint_sha256",
"authorization_amendment_id",
"subject_attestation",
"tool_role",
"authority_limits",
"carrier",
"created_at"
],
"properties": {
"schema": { "const": "guanghu.age-self-infrastructure-persona-binding/v1" },
"decision": { "const": "BOUND_CURRENT_AGE_SUBJECT_TO_SELF_INFRASTRUCTURE_LANE" },
"binding_id": { "type": "string", "pattern": "^AGE-BINDING-[a-f0-9]{32}$" },
"lane_kind": { "const": "AGE_SELF_INFRASTRUCTURE" },
"thread_id": { "type": "string", "minLength": 1 },
"development_id": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$" },
"controller_persona_id": { "const": "ICE-P-ZY001" },
"human_anchor": { "const": "ICE-GL∞" },
"development_objects": { "type": "array", "maxItems": 0 },
"task_fingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
"task_event_id": { "type": "string", "pattern": "^TEV-" },
"checkpoint_path": { "type": "string", "minLength": 1 },
"checkpoint_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
"authorization_amendment_id": { "type": "string", "pattern": "^AMD-" },
"subject_attestation": { "const": "PERSONA_AUTHORED_STEP_ZERO_CHECKPOINT" },
"tool_role": { "const": "VERIFY_STORE_AND_RECEIPT_ONLY" },
"authority_limits": {
"type": "array",
"uniqueItems": true,
"minItems": 4,
"maxItems": 4,
"items": {
"enum": [
"NO_DEPLOYMENT_AUTHORITY",
"NO_EXTERNAL_OBJECT_INFERENCE",
"NO_REPOSITORY_AUTHORITY",
"NO_SERVER_AUTHORITY"
]
}
},
"carrier": {
"type": "object",
"required": ["host", "thread_id", "development_id"],
"properties": {
"host": { "const": "codex" },
"thread_id": { "type": "string", "minLength": 1 },
"development_id": { "type": "string", "minLength": 1 }
},
"additionalProperties": false
},
"created_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
}