{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://rosea.invalid/schema/trace.json", "title": "Trace", "description": "An anonymous shared-sky trace, Phase 4, opt-in only (CLAUDE.md §6.3). No timestamp finer than a day, no precise location, no free text, no link to the friend graph.", "type": "object", "additionalProperties": false, "required": ["traceId", "geocell", "dayBucket", "gesture", "sig"], "properties": { "traceId": { "description": "Random and rotating.", "type": "string", "pattern": "^[A-Za-z0-9_-]{16,64}$" }, "geocell": { "description": "A coarse cell id, at most ~1 km (CLAUDE.md §4). Capped at 6 characters: a 6-character geohash is ~1.2 x 0.6 km, and every character more is ~5x finer, down to centimetres. The cell system and its density-adaptive size are decided in the Phase 4 feature doc.", "type": "string", "pattern": "^[a-z0-9]{3,6}$" }, "dayBucket": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "gesture": { "type": "string", "enum": ["petal", "light"] }, "sig": { "type": "string", "pattern": "^[A-Za-z0-9_-]{16,256}$" } } }