build(docs): gate docs/prds against session-bound writing
A PRD states a decision, a requirement, a constraint or evidence. Those survive the code moving underneath them. A line number, a progress report or a dated status claim does not: it is true on the day it is written and silently wrong a month later, while still reading as authoritative. prdlint rejects five shapes: file:line citations (including a document citing its own line numbers), dated status claims, progress reports on the work being designed, phase-completion narration, and records of how a finding was produced. Each finding names the file, line, rule and fix. The rules target decay, not subject matter. A PRD may describe a phased plan, name a dependency that exists, and carry its own Status and Date header fields; what it may not do is assert the state of the tree on the day it was written. Fenced blocks are skipped, since a listing may specify a line reference as its literal content. Wired into task check next to docs:check. A sweep alone would not stop the class recurring.
This commit is contained in:
1 parent
921cd1d559
commit
7499e5559e
5 files changed
+315
No files matched your search
@@ -26,6 +26,11 @@ These rules apply to every file in `docs/prds/`.
|
||||
findings; do not copy their prose.
|
||||
- Before requesting approval, review every sentence for complexity, repetition,
|
||||
and unsupported scope.
|
||||
- Write nothing whose truth expires. No `file.go:123` citations (cite the file
|
||||
and the symbol), no progress reports on the work being designed, no dated
|
||||
status claims, and no record of how a finding was produced. A phased plan is
|
||||
durable design; which phase is finished is not. `task docs:prds` enforces
|
||||
this.
|
||||
- Every PRD carries one of three statuses. `Draft` until the maintainer
|
||||
explicitly approves it, `Approved` once they have and while the work is being
|
||||
built, `Finalised` when the work is complete. A finalised PRD does not change;
|
||||
|
||||
Reference in new issue
Block a user