guanghu-ice-heart/server-tools/persona-daily-fractal-memory/event.schema.json

29 lines
1.6 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "glw://schemas/persona-daily-fractal-memory-event/v1",
"title": "Persona-authored real-day fractal memory event",
"type": "object",
"additionalProperties": false,
"required": ["schema", "event_id", "persona_id", "human_anchor", "occurred_at", "branch_id", "branch_summary", "day_summary", "month_summary", "year_summary", "summary", "trigger", "emergence", "lock", "why", "rejected", "sources"],
"properties": {
"schema": {"const": "guanghu.persona-daily-fractal-memory-event/v1"},
"event_id": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"},
"persona_id": {"const": "ICE-P-ZY001"},
"human_anchor": {"const": "ICE-GL∞"},
"occurred_at": {"type": "string", "format": "date-time"},
"session_id": {"type": "string"},
"platform_window_id": {"type": "string"},
"branch_id": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"},
"branch_summary": {"type": "string", "minLength": 1},
"day_summary": {"type": "string", "minLength": 1},
"month_summary": {"type": "string", "minLength": 1},
"year_summary": {"type": "string", "minLength": 1},
"summary": {"type": "string", "minLength": 1},
"trigger": {"type": "string", "minLength": 1},
"emergence": {"type": "string", "minLength": 1},
"lock": {"type": "string", "minLength": 1},
"why": {"type": "string", "minLength": 1},
"rejected": {"type": "array", "items": {"type": "string", "minLength": 1}},
"sources": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}}
}
}