navidocs/schemas/citation/v1.0.schema.json
Danny Stocker cb7ad641cd Fix absolute paths for cloud sessions (no shared filesystem)
**Path Fixes for Multi-Machine Deployment:**

Session 2:
- Changed `/home/setup/navidocs/ARCHITECTURE_INTEGRATION_ANALYSIS.md` → `ARCHITECTURE_INTEGRATION_ANALYSIS.md`
- Changed `/home/setup/navidocs/YACHT_ACCOUNTING_RESEARCH.md` → `YACHT_ACCOUNTING_RESEARCH.md`

Session 5:
- Changed `/home/setup/infrafabric/schemas/citation/v1.0.schema.json` → `schemas/citation/v1.0.schema.json`
- Copied citation schema from infrafabric repo into navidocs repo (no external dependency)
- Fixed example citation paths (absolute → relative)

**Why This Matters:**
Cloud sessions run on separate machines with NO shared filesystem. All paths must be:
1. Relative to git repo root (e.g., `./file.md` not `/home/setup/navidocs/file.md`)
2. Files must exist IN the navidocs repo (not external repos)

**Test Command:**
```bash
git clone https://github.com/dannystocker/navidocs.git
cd navidocs
git checkout navidocs-cloud-coordination
# All referenced files now accessible via relative paths
```

Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 02:52:07 +01:00

32 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "IF.citation.v1",
"type": "object",
"required": ["citation_id","claim_id","sources","created_by","created_at","status","signature"],
"properties": {
"citation_id": {"type":"string","description":"if://citation/<uuid> or URL"},
"claim_id": {"type":"string","description":"if://claim/<doc>/<section> or external id"},
"sources": {
"type":"array",
"items": {
"type":"object",
"required":["type","ref","hash"],
"properties":{
"type":{"type":"string","enum":["paper","code","conversation","dataset","web","other"]},
"ref":{"type":"string","description":"doi:/path or path:line or URL"},
"hash":{"type":"string","description":"sha256:<hex> or content-address"},
"note":{"type":"string"}
}
}
},
"rationale":{"type":"string"},
"verified_at":{"type":["string","null"], "format":"date-time"},
"verified_by":{"type":["string","null"]},
"status":{"type":"string","enum":["unverified","verified","disputed","revoked"], "default":"unverified"},
"created_by":{"type":"string"},
"created_at":{"type":"string","format":"date-time"},
"signature":{"type":"string","description":"ed25519:<base64sig> or placeholder"},
"adjacent_decisions":{"type":"array","items":{"type":"string"}},
"meta":{"type":"object","additionalProperties":true}
}
}