Files
Rosea/packages/schema/schemas/sentence-opened.schema.json

40 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://rosea.invalid/schema/sentence-opened.json",
"title": "SentenceOpened",
"description": "The rose's folded petal was opened (CLAUDE.md §6.2, .agents/features/day-sentence.md). Append-only, never edited. The first one of a local day is that day's petal.",
"type": "object",
"additionalProperties": false,
"required": ["kind", "ts", "localDay", "from", "messageId", "clientVersion"],
"properties": {
"kind": {
"const": "sentence-opened"
},
"ts": {
"description": "Epoch milliseconds. Stays on the device.",
"type": "integer",
"minimum": 0
},
"localDay": {
"description": "The player's local day, from engine/src/time/localDay.ts and nowhere else.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"from": {
"description": "The key of the rose whose petal it was.",
"type": "string",
"pattern": "^[A-Za-z0-9_-]{32,128}$"
},
"messageId": {
"description": "The hope-library id that was in the petal. Never text: the pattern admits no space (CLAUDE.md §5.6 rule 1).",
"type": "string",
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
"maxLength": 64
},
"clientVersion": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+$"
}
}
}