- docs/wire-schema/v1/ ships 7 schema stubs (citation, search_hit,
answer, ingest_report, doc_summary, chunk_inspection, doctor) that
pin schema_version + required fields per design §2. Full property
validation lands in later phases.
- docs/spec/ ships 7 markdown stubs each linking to the canonical
frozen design (domain-model, ids, canonical-document, chunk-policy,
citation-policy, module-boundaries, ai-generation-guidelines).
- migrations/V001__init.sql contains only schema_meta + migrations
tables per design §5.1; data tables ship in P1-6/P2-1/P3-3.
- fixtures/ has the 11 subdirectories every downstream task references
(markdown, source-fs, search/{lexical,hybrid}, embed, vector, rag,
eval, image, pdf, audio). Empty subdirs use .gitkeep so they track.
fixtures/markdown/ ships the 3 phase-0 fixtures: simple-note.md,
nested-headings.md, code-and-table.md.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://kb.local/wire/v1/doc_summary.schema.json",
|
|
"title": "DocSummary v1",
|
|
"description": "Stub schema — declares the schema_version label and the required fields per design §2.5.",
|
|
"type": "object",
|
|
"required": [
|
|
"schema_version",
|
|
"doc_id",
|
|
"doc_path",
|
|
"title",
|
|
"lang",
|
|
"tags",
|
|
"trust_level",
|
|
"source_type",
|
|
"byte_len",
|
|
"chunk_count",
|
|
"created_at",
|
|
"updated_at",
|
|
"parser_version",
|
|
"chunker_version"
|
|
],
|
|
"properties": {
|
|
"schema_version": { "const": "doc_summary.v1" },
|
|
"doc_id": { "type": "string" },
|
|
"doc_path": { "type": "string" },
|
|
"title": { "type": "string" },
|
|
"lang": { "type": "string" },
|
|
"tags": { "type": "array", "items": { "type": "string" } },
|
|
"trust_level": { "type": "string" },
|
|
"source_type": { "type": "string" },
|
|
"byte_len": { "type": "integer", "minimum": 0 },
|
|
"chunk_count": { "type": "integer", "minimum": 0 },
|
|
"created_at": { "type": "string" },
|
|
"updated_at": { "type": "string" },
|
|
"parser_version": { "type": "string" },
|
|
"chunker_version": { "type": "string" }
|
|
}
|
|
}
|