You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`publish/` — deterministic navigation and search metadata.
32
+
-`state/` — content-hash stage and page checkpoints.
33
+
-`migration-backup/` — archived v1 artifacts created by `docgen migrate`.
34
+
35
+
## Important files
29
36
30
37
```text
31
38
config/documentation.json
32
-
config/style-guide.md
33
-
config/glossary.md
34
-
evidence/index.json
35
-
model/system.json
36
-
plan/manifest.json
37
-
audit/index.json
39
+
index/inventory.json
40
+
index/source-files.txt
41
+
index/semantic.db
38
42
state/state.json
39
-
state/fingerprints.json
40
-
state/compatibility.json
43
+
plan/manifest.json
44
+
traceability/index.json
45
+
audit/quality-summary.json
46
+
budget/report.json
47
+
publish/navigation.json
48
+
publish/search-index.json
41
49
```
42
50
43
-
Do not treat generated documentation as more authoritative than source evidence. The pipeline intentionally preserves FACT / INFERENCE / UNKNOWN boundaries.
51
+
## Provider boundary
44
52
53
+
Provider sessions may read only their declared `.docgen/context/**` pack and stage output paths. They may not scan repository source, query SQLite, load broad model directories, inspect unrelated pages, or delegate to installed agents. This boundary is enforced by hooks as well as prompts.
45
54
46
-
## Core knowledge models
55
+
## Models
47
56
48
-
In addition to technical architecture, DocGen generates repository-local normalized models for business semantics, distinct flow types, and exhaustive interface/dependency catalogs:
57
+
Core:
49
58
59
+
-`model/system.json`
50
60
-`model/business.json`
51
61
-`model/flows.json`
52
62
-`model/catalogs.json`
53
63
54
-
Published diagrams are Mermaid-only.
55
-
56
-
## P0 trustworthiness artifacts
57
-
58
-
-`traceability/pages/*.json`: claim-level source mappings per page.
59
-
-`traceability/index.json`: aggregated claims and source snapshot.
These models cover trust boundaries, AuthN/AuthZ, ownership/RACI, operational health and recovery, test strategy, data correctness/governance, environment configuration, architectural rationale, and change blast radius.
75
+
All material items and page claims preserve `FACT`, `INFERENCE`, and `UNKNOWN`. FACT requires evidence from `index/inventory.json`.
80
76
81
-
## Ignore-aware source inventory
77
+
## Commands
82
78
83
-
DocGen follows repository `.gitignore` and root `.docgenignore`. The effective included source set is written to:
84
-
85
-
-`state/source-inventory.json`
86
-
-`state/source-files.txt`
87
-
-`state/ignore-report.json`
88
-
89
-
Ignored files are excluded from discovery, fingerprints, change detection, traceability, and FACT evidence. Use `docgen ignore`, `docgen source-list`, and `docgen source-grep` to inspect or search the effective source boundary.
90
-
91
-
## v0.9 P2 documentation experience
92
-
93
-
Published pages are classified by user intent: `tutorial`, `how-to`, `explanation`, `reference`, `runbook`, `decision-record`, `migration-guide`, or `troubleshooting`. DocGen deterministically produces:
94
-
95
-
- Markdown frontmatter;
96
-
-`docs/llms.txt` and bounded `docs/llms-full.txt`;
97
-
-`publish/navigation.json` and `publish/search-index.json`;
98
-
- backlinks, aliases/redirects, orphan-page and examples indexes;
99
-
- version, status, deprecation, replacement, and migration metadata.
Run `docgen publish` to rebuild these assets without an LLM call.
91
+
`docgen all` and `docgen resume` run the full content-hash-resumable flow.
102
92
103
-
## Binary and non-text token boundary
93
+
## Ignore and binary boundary
104
94
105
-
Known images, audio/video, PDFs and office documents, archives, compiled artifacts, fonts, database files, keystores, invalid UTF-8, NUL-containing files, and oversized text are excluded from the canonical source inventory. The exclusion applies to reads, grep, fingerprints, change detection, freshness, and evidence validation. Configure the boundary under `ignore.binary` in `config/documentation.json`.
95
+
`.gitignore`, `.docgenignore`, hard exclusions, binary signatures, invalid UTF-8, NUL bytes, and oversized text are applied before indexing. Use `docgen ignore`, `docgen source-list`, and `docgen source-grep` to inspect the effective source boundary.
106
96
107
-
## Multi-repository P3
97
+
## Multi-repository workspace
108
98
109
-
This repository can be registered into a parent system workspace with:
99
+
Register this repository into a parent workspace only after its models are current:
110
100
111
101
```bash
112
102
docgen workspace add /path/to/this-repository
103
+
docgen workspace all
113
104
```
114
105
115
-
P3 consumes this repository's validated `.docgen/model/**`, catalogs, ownership, traceability, source fingerprint, and commit metadata. It does not blindly rescan ignored or binary source files.
106
+
Workspace aggregation consumes validated repository models and hashes; it does not rescan source.
0 commit comments