hotdocs 0.1.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hotdocs-0.1.0a1/AUTHORING.md +185 -0
- hotdocs-0.1.0a1/LICENSE +190 -0
- hotdocs-0.1.0a1/MANIFEST.in +108 -0
- hotdocs-0.1.0a1/PKG-INFO +140 -0
- hotdocs-0.1.0a1/QUICKSTART.md +308 -0
- hotdocs-0.1.0a1/README.md +118 -0
- hotdocs-0.1.0a1/hotdocs/__init__.py +3 -0
- hotdocs-0.1.0a1/hotdocs/__main__.py +5 -0
- hotdocs-0.1.0a1/hotdocs/_entry.py +46 -0
- hotdocs-0.1.0a1/hotdocs/_tool/AUTHORING.md +185 -0
- hotdocs-0.1.0a1/hotdocs/_tool/QUICKSTART.md +308 -0
- hotdocs-0.1.0a1/hotdocs/_tool/SPEC_GUIDELINES.md +815 -0
- hotdocs-0.1.0a1/hotdocs/_tool/agent-skills/README.md +10 -0
- hotdocs-0.1.0a1/hotdocs/_tool/agent-skills/hotdocs-asset-kind/SKILL.md +121 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-001.md +14 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-002.md +14 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-003.md +10 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-004.md +18 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/component.md +51 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/constraints.md +3 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/interface/library.md +10 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-001.md +5 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-002.md +7 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-003.md +5 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-004.md +6 -0
- hotdocs-0.1.0a1/hotdocs/_tool/examples/slugify/specs/product/slugs.md +22 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/README.md +24 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/agentic-generator/.provenance.json +379 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/agentic-generator/agentic_generator.py +427 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/cache-manager/.provenance.json +458 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/cache-manager/cache_manager.py +254 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/capability-scenario-verifier/.provenance.json +469 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/capability-scenario-verifier/capability_scenario_verifier.py +534 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/citation-checker/.provenance.json +370 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/citation-checker/citation_checker.py +219 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/component-gate-runner/.provenance.json +375 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/component-gate-runner/component_gate_runner.py +556 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/corpus-graph-builder/.provenance.json +381 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/corpus-graph-builder/corpus_graph_builder/__init__.py +192 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/corpus-graph-builder/corpus_graph_builder/cli.py +51 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/corpus-loader/.provenance.json +331 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/corpus-loader/corpus_loader.py +249 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/decision-drift-detector/.provenance.json +382 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/decision-drift-detector/decision_drift_detector.py +338 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/docs-site-renderer/.provenance.json +381 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/docs-site-renderer/docs_site_renderer/__init__.py +188 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/docs-site-renderer/docs_site_renderer/cli.py +69 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/docs-site-renderer/static/app.js +111 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/generation-loop/.provenance.json +341 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/generation-loop/generation_loop.py +287 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/generator/.provenance.json +600 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/generator/generator.py +469 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/graph-query-engine/.provenance.json +385 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/graph-query-engine/graph_query_engine.py +230 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/hotdocs-cli/.provenance.json +371 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/hotdocs-cli/hotdocs_cli.py +339 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/hotdocs-init/.provenance.json +342 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/hotdocs-init/hotdocs_init.py +463 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/impact-analyzer/.provenance.json +418 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/impact-analyzer/impact_analyzer.py +350 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/kind-javascript/.provenance.json +482 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/kind-javascript/kind_javascript.py +371 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/kind-python/.provenance.json +433 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/kind-python/kind_python.py +371 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/license-scanner/.provenance.json +508 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/license-scanner/license_scanner.py +388 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/llm-endpoint/.provenance.json +494 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/llm-endpoint/llm_endpoint.py +638 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/llm-tool-endpoint/.provenance.json +409 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/llm-tool-endpoint/llm_tool_endpoint.py +465 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-checker/.provenance.json +495 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-checker/provenance_checker.py +492 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-tracker/.provenance.json +354 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-tracker/provenance_tracker.py +423 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-tracker-ui/.provenance.json +376 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-tracker-ui/provenance_tracker_ui.py +309 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-tracker-ui/static/app.js +23 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-writer/.provenance.json +602 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/provenance-writer/provenance_writer.py +315 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/review-packet-builder/.provenance.json +378 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/review-packet-builder/review_packet_builder.py +299 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/secret-scanner/.provenance.json +558 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/secret-scanner/secret_scanner.py +553 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/size-checker/.provenance.json +393 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/size-checker/size_checker.py +248 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-bundle-assembler/.provenance.json +573 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-bundle-assembler/spec_bundle_assembler.py +472 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-completeness-assistant/.provenance.json +357 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-completeness-assistant/spec_completeness_assistant.py +412 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-linter/.provenance.json +741 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-linter/spec_linter.py +894 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-reviewer/.provenance.json +342 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-reviewer/spec_reviewer.py +527 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-scaffolder/.provenance.json +397 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/spec-scaffolder/spec_scaffolder.py +535 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/surface-checker/.provenance.json +334 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/surface-checker/surface_checker.py +322 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/test-author/.provenance.json +506 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/test-author/test_author.py +465 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/test-probe/.provenance.json +379 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/test-probe/test_probe.py +424 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/verifier-orchestrator/.provenance.json +655 -0
- hotdocs-0.1.0a1/hotdocs/_tool/gen/verifier-orchestrator/verifier_orchestrator.py +878 -0
- hotdocs-0.1.0a1/hotdocs/_tool/pipeline/README.md +26 -0
- hotdocs-0.1.0a1/hotdocs/_tool/pipeline/criterion-compiler/.sealed-provenance.json +17 -0
- hotdocs-0.1.0a1/hotdocs/_tool/pipeline/criterion-compiler/criterion_compiler.py +529 -0
- hotdocs-0.1.0a1/hotdocs/_tool/pyproject.toml +38 -0
- hotdocs-0.1.0a1/hotdocs/_tool/requirements.txt +6 -0
- hotdocs-0.1.0a1/hotdocs/_tool/specs/architecture/asset-kind-javascript.md +106 -0
- hotdocs-0.1.0a1/hotdocs/_tool/specs/architecture/asset-kind-python.md +115 -0
- hotdocs-0.1.0a1/hotdocs/_tool/specs/architecture/asset-kinds.md +240 -0
- hotdocs-0.1.0a1/hotdocs/_tool/specs/architecture/cli-conventions.md +47 -0
- hotdocs-0.1.0a1/hotdocs/_tool/specs/architecture/step-phrase-grammar.md +84 -0
- hotdocs-0.1.0a1/hotdocs.egg-info/PKG-INFO +140 -0
- hotdocs-0.1.0a1/hotdocs.egg-info/SOURCES.txt +119 -0
- hotdocs-0.1.0a1/hotdocs.egg-info/dependency_links.txt +1 -0
- hotdocs-0.1.0a1/hotdocs.egg-info/entry_points.txt +2 -0
- hotdocs-0.1.0a1/hotdocs.egg-info/requires.txt +6 -0
- hotdocs-0.1.0a1/hotdocs.egg-info/top_level.txt +1 -0
- hotdocs-0.1.0a1/pyproject.toml +142 -0
- hotdocs-0.1.0a1/setup.cfg +4 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Writing specs that generate well
|
|
2
|
+
|
|
3
|
+
`QUICKSTART.md` gets a component generated. This guide is about writing the
|
|
4
|
+
spec so it generates *correctly the first time*, from a model that has never
|
|
5
|
+
seen your codebase and cannot ask you anything. `SPEC_GUIDELINES.md` is the
|
|
6
|
+
normative reference; this is the practical companion. In an installed
|
|
7
|
+
package, `SPEC_GUIDELINES.md` and the `specs/architecture/` documents this
|
|
8
|
+
guide names for the tool's own rules sit beside it, not in your project.
|
|
9
|
+
|
|
10
|
+
## 1. Each model sees only part of your spec
|
|
11
|
+
|
|
12
|
+
Three models read your spec, and none sees all of it.
|
|
13
|
+
|
|
14
|
+
| Who | Sees | Never sees |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| The generator, writing `gen/<component>/` | `component.md`, `requirements/`, `interface/` (with any `Implements:` documents), `constraints.md`, its dependencies' `interface/`, the glossary | `acceptance/`, any test |
|
|
17
|
+
| A test author, writing one criterion's test | that one criterion, the requirement it `Covers:`, the component's `interface/` (with `Implements:` documents), its dependencies' `interface/`, the glossary | other criteria, other requirements, `constraints.md`, the code |
|
|
18
|
+
| The judge, for an `llm-judge` criterion | the criterion, its requirement, the interface, the code | other criteria |
|
|
19
|
+
|
|
20
|
+
Two rules follow, and most failed generations break one of them.
|
|
21
|
+
|
|
22
|
+
- **Every behavior a criterion expects must be stated in a requirement or
|
|
23
|
+
the interface.** The generator never sees criteria, so a value, error or
|
|
24
|
+
edge case that only a criterion mentions is one the code will not have.
|
|
25
|
+
Since D252 the generator is told to implement exactly what the spec says
|
|
26
|
+
and nothing more, so an unstated behavior is a guaranteed failure, not a
|
|
27
|
+
lucky guess.
|
|
28
|
+
- **Every rule a test needs must be stated where that test's author can see
|
|
29
|
+
it:** in the criterion itself, its covered requirement, or the interface.
|
|
30
|
+
A rule written in another requirement, in `constraints.md` or in a
|
|
31
|
+
decision record is invisible to the test author.
|
|
32
|
+
|
|
33
|
+
`hotdocs spec check` looks for both problems before you generate.
|
|
34
|
+
|
|
35
|
+
## 2. Where shared rules go
|
|
36
|
+
|
|
37
|
+
A rule that many criteria need, such as a reply format, a fixture layout,
|
|
38
|
+
or the CLI's exit-code conventions, belongs in a document under
|
|
39
|
+
`specs/architecture/`. Name it on the component's `interface/library.md`:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
Implements: `specs/architecture/cli-conventions.md`
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The document is then part of the interface every generator and test author
|
|
46
|
+
sees, and it does not count toward the component's word cap.
|
|
47
|
+
|
|
48
|
+
Watch for criteria that combine requirements. A criterion that checks the
|
|
49
|
+
order of several checks' findings, or that "only one finding" appears,
|
|
50
|
+
depends on every rule that could add one, yet its test author sees only
|
|
51
|
+
the one requirement it covers. Summarize how the pieces fit together (the
|
|
52
|
+
checks in order, what triggers each, exact messages) in a section of the
|
|
53
|
+
interface. When the tool's own `test-probe` and `surface-checker` were
|
|
54
|
+
first reviewed with `hotdocs spec check`, most of the gaps it found were
|
|
55
|
+
of this kind.
|
|
56
|
+
|
|
57
|
+
## 3. Choosing a criterion's kind
|
|
58
|
+
|
|
59
|
+
| Kind | Use when | The test is |
|
|
60
|
+
| --- | --- | --- |
|
|
61
|
+
| `compiled` | The behavior fits the step grammar (`specs/architecture/step-phrase-grammar.md`): call a function with literal inputs, compare a result field or the whole result with a literal | compiled deterministically; no model involved |
|
|
62
|
+
| `generated-test` | Setup or assertions the grammar can't express: files on disk, several calls, exceptions, CLI exit codes | written by a test author from the criterion |
|
|
63
|
+
| `llm-judge` | A quality, not a runtime behavior: documentation tone, a design rule | a model's verdict with rationale |
|
|
64
|
+
|
|
65
|
+
Prefer `compiled`, then `generated-test`. Use `llm-judge` sparingly: it is
|
|
66
|
+
the least reproducible.
|
|
67
|
+
|
|
68
|
+
## 4. Writing a criterion a test author can implement
|
|
69
|
+
|
|
70
|
+
A good criterion names concrete inputs and exact outputs, and its covered
|
|
71
|
+
requirement names every behavior it checks.
|
|
72
|
+
|
|
73
|
+
**Vague:**
|
|
74
|
+
|
|
75
|
+
```gherkin
|
|
76
|
+
Given a bad title
|
|
77
|
+
When slugify runs
|
|
78
|
+
Then it fails gracefully
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Testable:**
|
|
82
|
+
|
|
83
|
+
```gherkin
|
|
84
|
+
Given the title "" (an empty string)
|
|
85
|
+
When slugify(title) is called
|
|
86
|
+
Then it raises ValueError, its message containing "empty"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
and the requirement says: *"`slugify` MUST raise `ValueError` with a
|
|
90
|
+
message containing `empty` when `title` is empty."*
|
|
91
|
+
|
|
92
|
+
Checklist:
|
|
93
|
+
|
|
94
|
+
- **Concrete values.** Literal inputs and exact expected outputs, not
|
|
95
|
+
"a valid input" or "the correct result".
|
|
96
|
+
- **Exact shapes.** If a result is a dict, a JSON document or a file,
|
|
97
|
+
state its keys and types in `interface/data/<Type>.md`, and have the
|
|
98
|
+
criterion assert specific fields.
|
|
99
|
+
- **Errors by name.** Name the exception class, error category or exit
|
|
100
|
+
code in a requirement, not only in a criterion.
|
|
101
|
+
- **Fixtures stated.** If tests must build files on disk, describe the
|
|
102
|
+
layout in a "Test fixtures" section of `interface/library.md`: what a
|
|
103
|
+
minimal valid input tree looks like, which files are required.
|
|
104
|
+
- **One behavior per criterion,** with Given, When and Then each present.
|
|
105
|
+
`hotdocs lint` fails a criterion missing any of them.
|
|
106
|
+
- **Cover edges.** Empty input, maximum size, unicode, an absent optional
|
|
107
|
+
argument, each failure mode. A generated-test criterion can carry several
|
|
108
|
+
scenarios; one per edge is clearer.
|
|
109
|
+
|
|
110
|
+
### Examples from the tool's own rebuild
|
|
111
|
+
|
|
112
|
+
Each of these failed a real generation and was fixed in the spec:
|
|
113
|
+
|
|
114
|
+
| What went wrong | Fix |
|
|
115
|
+
| --- | --- |
|
|
116
|
+
| A test needed the compiled step grammar but its author never saw it, so it guessed six phrasings | `Implements: specs/architecture/step-phrase-grammar.md` on the interface |
|
|
117
|
+
| A criterion expected a reply format stated only in one requirement; other criteria's authors faked replies wrongly | The format moved to `interface/library.md` |
|
|
118
|
+
| A criterion expected a command to print its usage error; no requirement said so, and the generated code exited silently | The requirement now says every usage error prints one line to stderr |
|
|
119
|
+
| A decision's `supersedes` was written as a list in one spec and a single id in another; the test followed the wrong one | Both state the scalar form |
|
|
120
|
+
| A criterion said "within a minute"; a test author built a fixture too slow for the verifier's limit | The criterion states the exact bound and fixture size |
|
|
121
|
+
|
|
122
|
+
## 5. Files in other languages
|
|
123
|
+
|
|
124
|
+
When a component produces something other than Python, such as the
|
|
125
|
+
JavaScript a page runs, declare it as an asset (`assets:
|
|
126
|
+
[javascript:static/app.js]` in `component.md`) instead of keeping it in
|
|
127
|
+
Python strings. Then:
|
|
128
|
+
|
|
129
|
+
- list its interface the way the kind's definition asks: for
|
|
130
|
+
`javascript`, one `export function` signature per line in a fenced
|
|
131
|
+
block of the interface file;
|
|
132
|
+
- write criteria that call it through the `asset_runner` fixture with
|
|
133
|
+
concrete JSON arguments and an exact expected result, so its tests can
|
|
134
|
+
be mutation-tested on the asset itself;
|
|
135
|
+
- keep the asset's logic in pure functions over JSON values, and leave
|
|
136
|
+
wiring (event handlers, the DOM) thin, since only functions a criterion
|
|
137
|
+
can call are checked.
|
|
138
|
+
|
|
139
|
+
The kind's definition (`specs/architecture/asset-kind-<kind>.md`) gives
|
|
140
|
+
its test author and its generator their own guidance, so a criterion only
|
|
141
|
+
needs the facts specific to this component. `QUICKSTART.md` §5 covers
|
|
142
|
+
declaring assets, `hotdocs kind new` and the project Python environment.
|
|
143
|
+
|
|
144
|
+
## 6. Size limits
|
|
145
|
+
|
|
146
|
+
The linter fails a component's docs above 4,000 words, any single
|
|
147
|
+
requirement or criterion file above 500 words, and a `Purpose` section above
|
|
148
|
+
150 words. It warns well before. When a component nears the cap:
|
|
149
|
+
|
|
150
|
+
- move rationale and history into decision records,
|
|
151
|
+
- move shared rules into `specs/architecture/` documents,
|
|
152
|
+
- or split it: a second component with its own interface, which the first
|
|
153
|
+
lists in `depends_on`.
|
|
154
|
+
|
|
155
|
+
`hotdocs lint` also warns when several size dimensions are high at once:
|
|
156
|
+
that is a decomposition signal, not just a length problem.
|
|
157
|
+
|
|
158
|
+
## 7. Recording decisions
|
|
159
|
+
|
|
160
|
+
A decision record (`specs/decisions/D<N>.md`) explains why the spec says
|
|
161
|
+
what it says. Records are immutable once ratified: a change is a new
|
|
162
|
+
record, which may name the old one in `supersedes`.
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
hotdocs decision new "Slugs are lowercase ASCII" # writes a draft with the next id
|
|
166
|
+
hotdocs decision ratify D7 # status: ratified
|
|
167
|
+
git commit ... # commit the record with the spec change
|
|
168
|
+
hotdocs decision record-commit D7 # fills last_ratified_commit, then commit again
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
`last_ratified_commit` names the commit that landed the record, so it is
|
|
172
|
+
filled in by a follow-up commit. Cite a decision from a spec by its id in
|
|
173
|
+
backticks, such as `` `D7` ``.
|
|
174
|
+
|
|
175
|
+
## 8. Checking before you generate
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
hotdocs lint # structure, coverage, sizes, citations
|
|
179
|
+
hotdocs spec check comp-slugify # can each criterion's test author write it?
|
|
180
|
+
hotdocs assist --changed=comp-slugify # completeness, redundancy, blast radius
|
|
181
|
+
hotdocs impact --changed=comp-slugify # what else the change touches
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
`spec check` and `assist` use your configured model when one is set in
|
|
185
|
+
`hotdocs.toml`; pass `--no-model` to run only their deterministic checks.
|
hotdocs-0.1.0a1/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Liam Selfors
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include QUICKSTART.md
|
|
3
|
+
include AUTHORING.md
|
|
4
|
+
include LICENSE
|
|
5
|
+
include hotdocs/_tool/AUTHORING.md
|
|
6
|
+
include hotdocs/_tool/QUICKSTART.md
|
|
7
|
+
include hotdocs/_tool/SPEC_GUIDELINES.md
|
|
8
|
+
include hotdocs/_tool/agent-skills/README.md
|
|
9
|
+
include hotdocs/_tool/agent-skills/hotdocs-asset-kind/SKILL.md
|
|
10
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-001.md
|
|
11
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-002.md
|
|
12
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-003.md
|
|
13
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/acceptance/AC-SLUG-004.md
|
|
14
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/component.md
|
|
15
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/constraints.md
|
|
16
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/interface/library.md
|
|
17
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-001.md
|
|
18
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-002.md
|
|
19
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-003.md
|
|
20
|
+
include hotdocs/_tool/examples/slugify/specs/components/slugify/requirements/R-SLUG-004.md
|
|
21
|
+
include hotdocs/_tool/examples/slugify/specs/product/slugs.md
|
|
22
|
+
include hotdocs/_tool/gen/README.md
|
|
23
|
+
include hotdocs/_tool/gen/agentic-generator/.provenance.json
|
|
24
|
+
include hotdocs/_tool/gen/agentic-generator/agentic_generator.py
|
|
25
|
+
include hotdocs/_tool/gen/cache-manager/.provenance.json
|
|
26
|
+
include hotdocs/_tool/gen/cache-manager/cache_manager.py
|
|
27
|
+
include hotdocs/_tool/gen/capability-scenario-verifier/.provenance.json
|
|
28
|
+
include hotdocs/_tool/gen/capability-scenario-verifier/capability_scenario_verifier.py
|
|
29
|
+
include hotdocs/_tool/gen/citation-checker/.provenance.json
|
|
30
|
+
include hotdocs/_tool/gen/citation-checker/citation_checker.py
|
|
31
|
+
include hotdocs/_tool/gen/component-gate-runner/.provenance.json
|
|
32
|
+
include hotdocs/_tool/gen/component-gate-runner/component_gate_runner.py
|
|
33
|
+
include hotdocs/_tool/gen/corpus-graph-builder/.provenance.json
|
|
34
|
+
include hotdocs/_tool/gen/corpus-graph-builder/corpus_graph_builder/__init__.py
|
|
35
|
+
include hotdocs/_tool/gen/corpus-graph-builder/corpus_graph_builder/cli.py
|
|
36
|
+
include hotdocs/_tool/gen/corpus-loader/.provenance.json
|
|
37
|
+
include hotdocs/_tool/gen/corpus-loader/corpus_loader.py
|
|
38
|
+
include hotdocs/_tool/gen/decision-drift-detector/.provenance.json
|
|
39
|
+
include hotdocs/_tool/gen/decision-drift-detector/decision_drift_detector.py
|
|
40
|
+
include hotdocs/_tool/gen/docs-site-renderer/.provenance.json
|
|
41
|
+
include hotdocs/_tool/gen/docs-site-renderer/docs_site_renderer/__init__.py
|
|
42
|
+
include hotdocs/_tool/gen/docs-site-renderer/docs_site_renderer/cli.py
|
|
43
|
+
include hotdocs/_tool/gen/docs-site-renderer/static/app.js
|
|
44
|
+
include hotdocs/_tool/gen/generation-loop/.provenance.json
|
|
45
|
+
include hotdocs/_tool/gen/generation-loop/generation_loop.py
|
|
46
|
+
include hotdocs/_tool/gen/generator/.provenance.json
|
|
47
|
+
include hotdocs/_tool/gen/generator/generator.py
|
|
48
|
+
include hotdocs/_tool/gen/graph-query-engine/.provenance.json
|
|
49
|
+
include hotdocs/_tool/gen/graph-query-engine/graph_query_engine.py
|
|
50
|
+
include hotdocs/_tool/gen/hotdocs-cli/.provenance.json
|
|
51
|
+
include hotdocs/_tool/gen/hotdocs-cli/hotdocs_cli.py
|
|
52
|
+
include hotdocs/_tool/gen/hotdocs-init/.provenance.json
|
|
53
|
+
include hotdocs/_tool/gen/hotdocs-init/hotdocs_init.py
|
|
54
|
+
include hotdocs/_tool/gen/impact-analyzer/.provenance.json
|
|
55
|
+
include hotdocs/_tool/gen/impact-analyzer/impact_analyzer.py
|
|
56
|
+
include hotdocs/_tool/gen/kind-javascript/.provenance.json
|
|
57
|
+
include hotdocs/_tool/gen/kind-javascript/kind_javascript.py
|
|
58
|
+
include hotdocs/_tool/gen/kind-python/.provenance.json
|
|
59
|
+
include hotdocs/_tool/gen/kind-python/kind_python.py
|
|
60
|
+
include hotdocs/_tool/gen/license-scanner/.provenance.json
|
|
61
|
+
include hotdocs/_tool/gen/license-scanner/license_scanner.py
|
|
62
|
+
include hotdocs/_tool/gen/llm-endpoint/.provenance.json
|
|
63
|
+
include hotdocs/_tool/gen/llm-endpoint/llm_endpoint.py
|
|
64
|
+
include hotdocs/_tool/gen/llm-tool-endpoint/.provenance.json
|
|
65
|
+
include hotdocs/_tool/gen/llm-tool-endpoint/llm_tool_endpoint.py
|
|
66
|
+
include hotdocs/_tool/gen/provenance-checker/.provenance.json
|
|
67
|
+
include hotdocs/_tool/gen/provenance-checker/provenance_checker.py
|
|
68
|
+
include hotdocs/_tool/gen/provenance-tracker-ui/.provenance.json
|
|
69
|
+
include hotdocs/_tool/gen/provenance-tracker-ui/provenance_tracker_ui.py
|
|
70
|
+
include hotdocs/_tool/gen/provenance-tracker-ui/static/app.js
|
|
71
|
+
include hotdocs/_tool/gen/provenance-tracker/.provenance.json
|
|
72
|
+
include hotdocs/_tool/gen/provenance-tracker/provenance_tracker.py
|
|
73
|
+
include hotdocs/_tool/gen/provenance-writer/.provenance.json
|
|
74
|
+
include hotdocs/_tool/gen/provenance-writer/provenance_writer.py
|
|
75
|
+
include hotdocs/_tool/gen/review-packet-builder/.provenance.json
|
|
76
|
+
include hotdocs/_tool/gen/review-packet-builder/review_packet_builder.py
|
|
77
|
+
include hotdocs/_tool/gen/secret-scanner/.provenance.json
|
|
78
|
+
include hotdocs/_tool/gen/secret-scanner/secret_scanner.py
|
|
79
|
+
include hotdocs/_tool/gen/size-checker/.provenance.json
|
|
80
|
+
include hotdocs/_tool/gen/size-checker/size_checker.py
|
|
81
|
+
include hotdocs/_tool/gen/spec-bundle-assembler/.provenance.json
|
|
82
|
+
include hotdocs/_tool/gen/spec-bundle-assembler/spec_bundle_assembler.py
|
|
83
|
+
include hotdocs/_tool/gen/spec-completeness-assistant/.provenance.json
|
|
84
|
+
include hotdocs/_tool/gen/spec-completeness-assistant/spec_completeness_assistant.py
|
|
85
|
+
include hotdocs/_tool/gen/spec-linter/.provenance.json
|
|
86
|
+
include hotdocs/_tool/gen/spec-linter/spec_linter.py
|
|
87
|
+
include hotdocs/_tool/gen/spec-reviewer/.provenance.json
|
|
88
|
+
include hotdocs/_tool/gen/spec-reviewer/spec_reviewer.py
|
|
89
|
+
include hotdocs/_tool/gen/spec-scaffolder/.provenance.json
|
|
90
|
+
include hotdocs/_tool/gen/spec-scaffolder/spec_scaffolder.py
|
|
91
|
+
include hotdocs/_tool/gen/surface-checker/.provenance.json
|
|
92
|
+
include hotdocs/_tool/gen/surface-checker/surface_checker.py
|
|
93
|
+
include hotdocs/_tool/gen/test-author/.provenance.json
|
|
94
|
+
include hotdocs/_tool/gen/test-author/test_author.py
|
|
95
|
+
include hotdocs/_tool/gen/test-probe/.provenance.json
|
|
96
|
+
include hotdocs/_tool/gen/test-probe/test_probe.py
|
|
97
|
+
include hotdocs/_tool/gen/verifier-orchestrator/.provenance.json
|
|
98
|
+
include hotdocs/_tool/gen/verifier-orchestrator/verifier_orchestrator.py
|
|
99
|
+
include hotdocs/_tool/pipeline/README.md
|
|
100
|
+
include hotdocs/_tool/pipeline/criterion-compiler/.sealed-provenance.json
|
|
101
|
+
include hotdocs/_tool/pipeline/criterion-compiler/criterion_compiler.py
|
|
102
|
+
include hotdocs/_tool/pyproject.toml
|
|
103
|
+
include hotdocs/_tool/requirements.txt
|
|
104
|
+
include hotdocs/_tool/specs/architecture/asset-kind-javascript.md
|
|
105
|
+
include hotdocs/_tool/specs/architecture/asset-kind-python.md
|
|
106
|
+
include hotdocs/_tool/specs/architecture/asset-kinds.md
|
|
107
|
+
include hotdocs/_tool/specs/architecture/cli-conventions.md
|
|
108
|
+
include hotdocs/_tool/specs/architecture/step-phrase-grammar.md
|
hotdocs-0.1.0a1/PKG-INFO
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hotdocs
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: Spec-driven agentic development: specs in, verified code out.
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Classifier: Development Status :: 3 - Alpha
|
|
7
|
+
Classifier: Environment :: Console
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
12
|
+
Requires-Python: >=3.11
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: detect-secrets==1.5.0
|
|
16
|
+
Requires-Dist: duckdb==2.0.0
|
|
17
|
+
Requires-Dist: pyflakes==4.1.0
|
|
18
|
+
Requires-Dist: pytest==9.2.0
|
|
19
|
+
Requires-Dist: pytz==2026.6
|
|
20
|
+
Requires-Dist: PyYAML==6.0.3
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# hotdocs
|
|
24
|
+
|
|
25
|
+
Spec-driven agentic development: the change-tracked assets are plain-text
|
|
26
|
+
specification documents, and the code and tests are generated from them by
|
|
27
|
+
a model and verified before they count. Human review shifts from reading
|
|
28
|
+
diffs of code to reading diffs of intent.
|
|
29
|
+
|
|
30
|
+
You write what a component must do and how to check it. `hotdocs generate`
|
|
31
|
+
has a model write the code and a test per acceptance criterion, then runs
|
|
32
|
+
those tests, mutation-tests them, and scans the result for licenses and
|
|
33
|
+
secrets. `hotdocs verify` says whether everything in a change is ready.
|
|
34
|
+
Code is Python; a component can also declare files of other kinds, such as
|
|
35
|
+
a JavaScript module, each with its own definition and checks
|
|
36
|
+
(`specs/architecture/asset-kinds.md`).
|
|
37
|
+
|
|
38
|
+
## Try it
|
|
39
|
+
|
|
40
|
+
`pipx install --pip-args=--pre hotdocs` (or `uv tool install
|
|
41
|
+
--prerelease=allow hotdocs`), then see
|
|
42
|
+
`QUICKSTART.md`: run `hotdocs init --example` in a project and generate the
|
|
43
|
+
example component. The tool's own components ship inside the package; a
|
|
44
|
+
project holds only its own (`D199`, `D358`). `AUTHORING.md`
|
|
45
|
+
explains how to write specs that generate correctly the first time.
|
|
46
|
+
|
|
47
|
+
## How it works
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
specs/components/<name>/ you write this
|
|
51
|
+
component.md id, owners, the capability it realizes
|
|
52
|
+
requirements/R-*.md one MUST per file
|
|
53
|
+
interface/library.md exact signatures
|
|
54
|
+
acceptance/AC-*.md Given/When/Then with concrete values
|
|
55
|
+
constraints.md
|
|
56
|
+
|
|
57
|
+
gen/<name>/ the model writes this; never hand-edited
|
|
58
|
+
verification/<name>/ generated tests and the provenance manifest
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`hotdocs lint` checks the corpus against `SPEC_GUIDELINES.md`. `hotdocs
|
|
62
|
+
generate comp-<name>` assembles the component's spec bundle, calls the
|
|
63
|
+
model, writes a test for each criterion, and records provenance only if
|
|
64
|
+
everything passes. `hotdocs verify` re-checks every component in a change,
|
|
65
|
+
read-only, and runs the product scenarios the change touches. A component
|
|
66
|
+
that fails is fixed by changing its spec and generating again, never by
|
|
67
|
+
editing `gen/`.
|
|
68
|
+
|
|
69
|
+
The everyday commands:
|
|
70
|
+
|
|
71
|
+
| Command | Does |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| `hotdocs init [--example]` | set up a project and choose a model provider |
|
|
74
|
+
| `hotdocs lint` | validate the spec corpus |
|
|
75
|
+
| `hotdocs spec check comp-<name>` | can each criterion's test be written from what its author sees? |
|
|
76
|
+
| `hotdocs generate comp-<name>` | generate and verify one component |
|
|
77
|
+
| `hotdocs verify [--changed=...]` | is everything ready |
|
|
78
|
+
| `hotdocs impact --changed=...` | blast radius of a spec change |
|
|
79
|
+
| `hotdocs assist --changed=...` | a model's review of a spec change |
|
|
80
|
+
| `hotdocs track feedback comp-<name>` | the last attempt's failing requirements |
|
|
81
|
+
| `hotdocs decision new "<title>"`, `capability new <name>`, `component new <name>`, `kind new <kind>` | scaffold a decision, a capability, a component or an asset kind |
|
|
82
|
+
| `hotdocs track ui build` | a readiness page for the corpus |
|
|
83
|
+
| `hotdocs corpus-graph build`, `docs-site build` | the corpus graph and a browsable site |
|
|
84
|
+
|
|
85
|
+
`hotdocs` with no arguments lists every verb.
|
|
86
|
+
|
|
87
|
+
## Status
|
|
88
|
+
|
|
89
|
+
hotdocs is alpha software: releases are pre-releases (`0.1.0a1` is the
|
|
90
|
+
first), so a plain `pipx install hotdocs` will not find one, and specs,
|
|
91
|
+
commands and file formats may change between them.
|
|
92
|
+
|
|
93
|
+
This repository is the worked example: the tool is built from its own
|
|
94
|
+
specs. Every one of the 37 components under `specs/components/` is
|
|
95
|
+
generated from its spec on `claude-opus-5-5` and verified the same way a
|
|
96
|
+
project's are, each with a provenance manifest that `hotdocs verify` checks.
|
|
97
|
+
The hand-written versions that bootstrapped the chain (`generator`,
|
|
98
|
+
`llm-endpoint`, `spec-linter`, `graph-query-engine`, `cache-manager`) were
|
|
99
|
+
used to generate their own replacements, then swapped out once those passed.
|
|
100
|
+
`criterion-compiler` is generated too but stays sealed (`D206`): it lives in
|
|
101
|
+
`pipeline/` and is checked against hand-maintained characterization tests,
|
|
102
|
+
since trusting a compiled criterion means trusting its compiler.
|
|
103
|
+
|
|
104
|
+
`QUICKSTART.md` §7 lists the known limits of this release.
|
|
105
|
+
`notes/bootstrap-history.md` tells how each component first landed;
|
|
106
|
+
`verification/<slug>/BOOTSTRAP.md` has each one's full account.
|
|
107
|
+
|
|
108
|
+
Decisions are ADRs in `specs/decisions/`, `D1` through `D368` (`D1`–`D75`
|
|
109
|
+
from the 2026-10 baseline reset, the rest recorded as they were made).
|
|
110
|
+
`notes/initial-ideas.md` holds the original brainstorm, with its own
|
|
111
|
+
informal numbering.
|
|
112
|
+
|
|
113
|
+
## Before pushing
|
|
114
|
+
|
|
115
|
+
Every commit pushed from this repository first passes
|
|
116
|
+
`tools/verify_push.py`: in a throwaway worktree of exactly that commit
|
|
117
|
+
it runs `hotdocs lint` and then `hotdocs verify`, which checks every
|
|
118
|
+
component's and capability's provenance without calling a model. Run
|
|
119
|
+
`python tools/verify_push.py --install-hook` once per clone to make it
|
|
120
|
+
the `pre-push` hook; `python tools/verify_push.py [<commit>]` runs it by
|
|
121
|
+
hand. Pull requests are reviewed and merged by a person.
|
|
122
|
+
|
|
123
|
+
## License
|
|
124
|
+
|
|
125
|
+
Apache-2.0 (`LICENSE`, `D202`). Generated code in your project is yours;
|
|
126
|
+
the license covers the tool.
|
|
127
|
+
|
|
128
|
+
## Repository layout
|
|
129
|
+
|
|
130
|
+
See `SPEC_GUIDELINES.md` for the enforceable rules. In brief:
|
|
131
|
+
|
|
132
|
+
| Path | Purpose |
|
|
133
|
+
| --------------- | ------------------------------------------------------------- |
|
|
134
|
+
| `specs/` | Normative specification documents: the source of truth. |
|
|
135
|
+
| `gen/` | Generated code. Not hand-edited (two declared exemptions only). |
|
|
136
|
+
| `pipeline/` | The sealed `criterion-compiler`; frozen prompts live inline for now. |
|
|
137
|
+
| `verification/` | Generated tests, provenance manifests, `corpus-graph.json`. |
|
|
138
|
+
| `tools/` | The `hotdocs` entry point and hand-written maintenance scripts. |
|
|
139
|
+
| `examples/` | The `slugify` project `hotdocs init --example` copies. |
|
|
140
|
+
| `notes/` | Design discussion and history. Non-normative. |
|