Files
Rosea/packages/schema/schemas/trace.schema.json
T
mnovak 49c8def037 [repo] Workspace: Scaffold Phase 0 with schema, engine, content, ui and the PWA shell
pnpm + turbo workspace with the commands from CLAUDE.md §3. The contracts
from §6 as JSON Schemas with generated types; localDay as the one place a
day is computed; the forbidden-word list shared by lint:copy and the
library validator, with 13 negative fixtures; a Svelte 5 PWA shell built
under /Rosea/ with a meta CSP. E2E and offline suites run against the
built bundle; the offline one closes the server rather than emulating.

Analysis: .agents/features/phase0-workspace.md
2026-11-01 00:27:33 +01:00

21 lines
998 B
JSON

{
"$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. The cell system and its density-adaptive size are decided in the Phase 4 feature doc.",
"type": "string",
"pattern": "^[a-z0-9]{4,16}$"
},
"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}$" }
}
}