Guide
Quick start: your first Brief
This quick start takes one report/v1 brief through build, verify, publish, alias and serve, end to end on 127.0.0.1.
1. Write a report/v1 brief
Save this as report.json. See Schemas for the full shape.
{
"schema": "report/v1",
"id": "first-brief",
"title": "First Brief",
"metadata": {
"status": "draft",
"classification": "Internal",
"reviewDate": "2026-11-18",
"authors": ["You"],
"reviewRequest": "Read the summary and confirm the verdict"
},
"summary": {
"verdict": {
"confidence": "proven",
"text": "Canon seals this brief into one human page and one agent file."
},
"paragraphs": ["This is the smallest complete report/v1 brief."]
},
"evidence": [
{
"id": "ev-none",
"title": "No evidence yet",
"kind": "unavailable",
"reason": "First brief; nothing to attach."
}
],
"sections": [
{
"id": "s-1",
"title": "Summary",
"blocks": [
{ "type": "paragraph", "text": "Sections hold typed blocks." }
]
}
],
"provenance": {
"sources": [{ "label": "Quick start", "reference": "oncanon.com" }]
}
}
2. Build and verify the packet
mkdir -p dist
node src/cli.mjs build report.json --out dist/packet --receipt dist/build-receipt.json
node src/cli.mjs verify dist/packet
build writes dist/packet/index.html, report.md, manifest.json and checksums.json. verify independently recomputes every digest and the content ID; it exits 1 on any mismatch and never repairs.
3. Publish and point an alias
node src/cli.mjs publish dist/packet --root dist/review-store --build-receipt dist/build-receipt.json
CONTENT_ID=$(node -p "require('./dist/packet/manifest.json').contentId")
node src/cli.mjs alias set first-brief "$CONTENT_ID" --root dist/review-store --expect-generation 0
Publishing the same bytes twice is a no-op; publishing different bytes under an existing content ID fails without touching the stored packet. An alias is a small mutable pointer outside the packet, updated by compare-and-swap on its generation — it never changes packet bytes.
4. Serve it locally
node src/cli.mjs service start --root dist/review-store --state-dir dist/service --port 8791
curl -fsS http://127.0.0.1:8791/healthz
open http://127.0.0.1:8791/a/first-brief/
/a/first-brief/ is the human entry; the same alias at /a/first-brief/report.md is the byte-verified agent entry. Both 307-redirect (so they're never cached) to the immutable /p/sha256-<hex>/ edition behind the alias — resolve the alias once, then keep the immutable URL. Binding is loopback-only by default; reaching it from an iPhone or iPad on the same Tailscale network needs an explicit --tailscale flag (see the CLI reference).
node src/cli.mjs service stop --state-dir dist/service
Next: the complete CLI reference, or the report/v1 and site-input/v1 schemas.