@hxp-tools/godplans 0.0.0-stage → 2.0.1
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.
- package/CHANGELOG.md +1202 -0
- package/LICENSE +21 -0
- package/PROMPT.md +4006 -0
- package/README.md +245 -2
- package/bin/godplans.js +93 -0
- package/docs/ARCHITECTURE.md +136 -0
- package/docs/RELEASING.md +107 -0
- package/docs/assets/badge-approved.svg +12 -0
- package/docs/assets/badge-done.svg +11 -0
- package/docs/assets/badge-graded.svg +12 -0
- package/docs/assets/badge-validated.svg +10 -0
- package/docs/assets/hero.svg +37 -0
- package/docs/assets/quest-map.svg +53 -0
- package/evals/README.md +295 -0
- package/evals/cases/brownfield-cli/EXPECTATIONS +15 -0
- package/evals/cases/brownfield-cli/INPUT/package.json +9 -0
- package/evals/cases/brownfield-cli/INPUT/src/cli.js +4 -0
- package/evals/cases/brownfield-cli/INPUT/src/format.js +3 -0
- package/evals/cases/brownfield-cli/INPUT/test/cli.test.js +7 -0
- package/evals/cases/brownfield-cli/REQUEST.baseline.md +10 -0
- package/evals/cases/brownfield-cli/REQUEST.md +10 -0
- package/evals/cases/compliance-refusal/EXPECTATIONS +4 -0
- package/evals/cases/compliance-refusal/REQUEST.baseline.md +9 -0
- package/evals/cases/compliance-refusal/REQUEST.md +8 -0
- package/evals/cases/greenfield-saas/EXPECTATIONS +21 -0
- package/evals/cases/greenfield-saas/REQUEST.baseline.md +11 -0
- package/evals/cases/greenfield-saas/REQUEST.md +11 -0
- package/evals/cases/nested-pillars/EXPECTATIONS +12 -0
- package/evals/cases/nested-pillars/REQUEST.baseline.md +10 -0
- package/evals/cases/nested-pillars/REQUEST.md +11 -0
- package/evals/cases/observability-evidence/EXPECTATIONS +10 -0
- package/evals/cases/observability-evidence/REQUEST.baseline.md +10 -0
- package/evals/cases/observability-evidence/REQUEST.md +11 -0
- package/evals/cases/product-business/EXPECTATIONS +18 -0
- package/evals/cases/product-business/REQUEST.baseline.md +13 -0
- package/evals/cases/product-business/REQUEST.md +14 -0
- package/evals/cases/product-form-routing/EXPECTATIONS +13 -0
- package/evals/cases/product-form-routing/REQUEST.baseline.md +11 -0
- package/evals/cases/product-form-routing/REQUEST.md +11 -0
- package/evals/cases/prose-integrity/EXPECTATIONS +19 -0
- package/evals/cases/prose-integrity/REQUEST.baseline.md +19 -0
- package/evals/cases/prose-integrity/REQUEST.md +20 -0
- package/evals/cases/replan-preserves-history/EXPECTATIONS +9 -0
- package/evals/cases/replan-preserves-history/INPUT/.godplans/PLAN.mdx +115 -0
- package/evals/cases/replan-preserves-history/INPUT/package.json +5 -0
- package/evals/cases/replan-preserves-history/REQUEST.baseline.md +10 -0
- package/evals/cases/replan-preserves-history/REQUEST.md +10 -0
- package/evals/cases/stale-prepublication/EXPECTATIONS +10 -0
- package/evals/cases/stale-prepublication/REQUEST.baseline.md +12 -0
- package/evals/cases/stale-prepublication/REQUEST.md +13 -0
- package/evals/cases/stale-source-evidence/EXPECTATIONS +10 -0
- package/evals/cases/stale-source-evidence/INPUT/package.json +8 -0
- package/evals/cases/stale-source-evidence/REQUEST.baseline.md +11 -0
- package/evals/cases/stale-source-evidence/REQUEST.md +12 -0
- package/evals/cases/weekend-library/EXPECTATIONS +19 -0
- package/evals/cases/weekend-library/REQUEST.baseline.md +10 -0
- package/evals/cases/weekend-library/REQUEST.md +11 -0
- package/evals/cases-roster.txt +19 -0
- package/evals/external/GRADE.schema.json +39 -0
- package/evals/external/README.md +42 -0
- package/evals/external/RUBRIC.md +32 -0
- package/evals/metrics/context-cost.json +154 -0
- package/evals/outcomes/README.md +65 -0
- package/evals/outcomes/cases/tenant-notes-api/REQUEST.baseline.md +14 -0
- package/evals/outcomes/cases/tenant-notes-api/REQUEST.md +13 -0
- package/evals/outcomes/cases/tenant-notes-api/VERIFY.sh +13 -0
- package/evals/outcomes/results/2026-07-23-tenant-notes-api-codex/README.md +93 -0
- package/evals/outcomes/results/2026-07-23-tenant-notes-api-codex/treatment/plan/PLAN.json +547 -0
- package/evals/runners/claude-baseline.sh +4 -0
- package/evals/runners/claude-grade.sh +3 -0
- package/evals/runners/claude.sh +4 -0
- package/evals/runners/codex-baseline.sh +181 -0
- package/evals/runners/codex-builder.sh +96 -0
- package/evals/runners/codex-godaudits.sh +84 -0
- package/evals/runners/codex.sh +147 -0
- package/evals/runners/gemini-baseline.sh +4 -0
- package/evals/runners/gemini-grade.sh +3 -0
- package/evals/runners/gemini.sh +4 -0
- package/evals/runners/vendor-cli.sh +257 -0
- package/evals/runners/vendor-grade.sh +82 -0
- package/install.sh +323 -0
- package/package.json +91 -4
- package/requirements/skills-ref.txt +2 -0
- package/scripts/build-catalog.js +114 -0
- package/scripts/build-prompt.sh +257 -0
- package/scripts/context-metrics.js +118 -0
- package/scripts/eval-external.js +226 -0
- package/scripts/eval-matrix.sh +172 -0
- package/scripts/eval-outcome.js +143 -0
- package/scripts/eval.sh +321 -0
- package/scripts/lint-parity.js +331 -0
- package/scripts/lint.sh +743 -0
- package/scripts/outcome-summary.js +126 -0
- package/scripts/release-check.sh +108 -0
- package/scripts/release-prepare.js +41 -0
- package/scripts/summarize-eval.js +91 -0
- package/scripts/summarize-matrix.js +101 -0
- package/scripts/version-sync.js +65 -0
- package/skills/godplans/SKILL.md +192 -0
- package/skills/godplans/references/agent-memory.md +168 -0
- package/skills/godplans/references/architecture.md +189 -0
- package/skills/godplans/references/build.md +130 -0
- package/skills/godplans/references/business.md +252 -0
- package/skills/godplans/references/code-quality.md +165 -0
- package/skills/godplans/references/compliance.md +59 -0
- package/skills/godplans/references/database.md +157 -0
- package/skills/godplans/references/deploy.md +146 -0
- package/skills/godplans/references/discovery.md +297 -0
- package/skills/godplans/references/doc-set.md +243 -0
- package/skills/godplans/references/exemplar.md +228 -0
- package/skills/godplans/references/launch.md +162 -0
- package/skills/godplans/references/llm.md +132 -0
- package/skills/godplans/references/observe.md +178 -0
- package/skills/godplans/references/plan-format.md +340 -0
- package/skills/godplans/references/product.md +130 -0
- package/skills/godplans/references/repo.md +184 -0
- package/skills/godplans/references/roadmap.md +158 -0
- package/skills/godplans/references/security.md +156 -0
- package/skills/godplans/references/seo.md +133 -0
- package/skills/godplans/references/stack.md +133 -0
- package/skills/godplans/references/style-genome.md +198 -0
- package/skills/godplans/references/ui.md +153 -0
- package/skills/godplans/references/ux.md +150 -0
- package/skills/godplans/schemas/PLAN.schema.json +275 -0
- package/skills/godplans/schemas/PLAN.v1.schema.json +258 -0
- package/skills/godplans/scripts/plan-halflife.sh +76 -0
- package/skills/godplans/scripts/style-stats.py +630 -0
- package/skills/godplans/scripts/validate-plan.sh +1709 -0
- package/skills/godplans/templates/PLAN.template.mdx +269 -0
- package/tests/agent-memory-guidance.sh +32 -0
- package/tests/build-catalog.sh +81 -0
- package/tests/codex-runner.sh +139 -0
- package/tests/eval-harness.sh +377 -0
- package/tests/evidence-harnesses.sh +243 -0
- package/tests/fixtures/plan-json-v1-1.13.0.json +472 -0
- package/tests/install-regression.sh +246 -0
- package/tests/lib/plan-schema-check.js +163 -0
- package/tests/lint-selftest.sh +582 -0
- package/tests/package-contents.sh +143 -0
- package/tests/portable-prompt.test.sh +261 -0
- package/tests/release-tooling.sh +204 -0
- package/tests/run.sh +14 -0
- package/tests/script-usage.sh +37 -0
- package/tests/style-stats.sh +170 -0
- package/tests/validate-plan.sh +1970 -0
- package/tests/vendor-runner.sh +291 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# Discovery module: intake, archetype, applicability, interview
|
|
2
|
+
|
|
3
|
+
Loaded in Phase 2 and Phase 3. Turns a raw idea (or an existing codebase) into the facts the domain passes need: mode, archetype, scale, the applicability matrix, and the small set of answers only the user can give. Discovery is where godplans earns the single-command promise: one focused question batch, then decisions.
|
|
4
|
+
|
|
5
|
+
## Mode detection (Phase 0 recap)
|
|
6
|
+
|
|
7
|
+
- `.godplans/PLAN.mdx` exists -> replan. Follow the replan protocol in `plan-format.md`.
|
|
8
|
+
- Source manifests exist (`package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`, `pom.xml`, `mix.exs`, `Package.swift`) -> brownfield.
|
|
9
|
+
- Otherwise -> greenfield.
|
|
10
|
+
|
|
11
|
+
Brownfield fingerprint, read-only, before any planning: stack and versions from manifests; directory shape and module boundaries; entry points; test and CI setup; the style genome measured by running `scripts/style-stats.py` from this skill on the project root and then close-read across 5 to 10 representative source files; anything under `agents/`, `AGENTS.md`, `CLAUDE.md`, or `.cursor/rules/` that records existing conventions. Record the current Git revision when available, a SHA-256 digest of the stable intake and source evidence, and a UTC validation timestamp. The plan extends what exists; a brownfield plan that reads like a greenfield plan has failed before it ships.
|
|
12
|
+
|
|
13
|
+
Record what the fingerprint did **not** reach as explicitly as what it found. A pass that was never run is not a pass that came back empty, and the applicability matrix below refuses to treat the two the same way.
|
|
14
|
+
|
|
15
|
+
### Reuse an existing inventory before re-deriving one
|
|
16
|
+
|
|
17
|
+
If `.godaudits/EVIDENCE.json` exists, read it before scanning. godaudits already inventories manifests, lockfiles, languages, file hashes, high-signal source locations, and, most useful here, **absence evidence**: the things it looked for and did not find, with what it searched. That is the expensive half of a brownfield fingerprint and the half an agent is worst at doing honestly from memory.
|
|
18
|
+
|
|
19
|
+
- **Fresh** means its recorded revision matches the revision this plan is binding to. A fresh inventory is cited: add it to the provenance evidence inventory as a `[recheck]` entry so a later phase-boundary drift check recomputes it.
|
|
20
|
+
- **Stale or absent** means the fingerprint runs normally, and the plan says which of the two happened. Reusing a stale inventory is worse than not having one, because it reads exactly like a fresh one.
|
|
21
|
+
|
|
22
|
+
godplans does not require godaudits and does not call it. This is a read of an artifact that may happen to be there, never a dependency: the plan must be authorable, and the validator must pass, on a machine that has never installed it.
|
|
23
|
+
|
|
24
|
+
### An `absent:` reason names what looked
|
|
25
|
+
|
|
26
|
+
In brownfield mode, `absent:` is a negative claim about a codebase, and the claims-and-evidence contract in `plan-format.md` already says a negative claim needs a command rather than a file citation. Excluded rows are where that rule is broken most often, because the sentence is short and sounds checked.
|
|
27
|
+
|
|
28
|
+
So a brownfield `absent:` reason carries a backticked citation: the search that came back empty, or the evidence artifact that recorded the absence.
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
| seo | excluded | absent: no HTML template, route table, or static site config under src/ (`rg -l -e "<html" -e "<!DOCTYPE" -e createServer src/` returns nothing); revisit when: any task adds a server-rendered route or a static site config |
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`by-design:` needs no command. It is the plan deciding, not the plan reporting, and there is nothing to have looked at. This is why greenfield exclusions are almost always `by-design:` and brownfield exclusions are usually not.
|
|
35
|
+
|
|
36
|
+
## Evidence states
|
|
37
|
+
|
|
38
|
+
Every claim the matrix and the documentation set make about this project carries one of six states. The state is what licenses the disposition, so it is recorded before the disposition is chosen.
|
|
39
|
+
|
|
40
|
+
| State | What the plan is saying | May it exclude a domain or document? |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| `present` | this project has the thing, and here is where | no, it selects |
|
|
43
|
+
| `absent` | this was checked and the thing is not there; the reason names what checked | yes |
|
|
44
|
+
| `by-design` | the plan decides this project will not have the thing | yes |
|
|
45
|
+
| `present-elsewhere` | the document lives outside this repository (a wiki, an intranet, a compliance platform), and here is where | a document only |
|
|
46
|
+
| `unknown` | nobody looked, or the answer is not derivable from what the plan has | **no** |
|
|
47
|
+
| `hint` | something matched and it is not enough to decide on | **no** |
|
|
48
|
+
|
|
49
|
+
`unknown` is not `absent`, and conflating them is the failure this table exists to prevent. Reporting "we did not look" as "we decided this does not apply" produces two sentences that read identically and have opposite consequences a year later.
|
|
50
|
+
|
|
51
|
+
- **Greenfield**: the honest state for anything the plan settles is `by-design`. There is nothing to inspect, and the plan is the decision. `llm | excluded | by-design: the product answers from indexed text with no model call` is a decision. `llm | excluded | no model calls` is a claim about a codebase that does not exist yet.
|
|
52
|
+
- **Brownfield**: `absent` requires that something actually looked, and the reason names it with a backticked command or evidence artifact. An `absent:` reason citing `rg -l -e "<html" -e "<!DOCTYPE" src/` returning nothing is checkable. A bare "no public pages" is not.
|
|
53
|
+
- **`unknown` and `hint` never exclude.** A domain whose state is either becomes applicable, or its question goes to `## Open Questions` with a recommended default. One confidently false exclusion costs more trust than ten honest unknowns, because the unknowns advertise themselves and the false exclusion does not.
|
|
54
|
+
|
|
55
|
+
## Product-form routing
|
|
56
|
+
|
|
57
|
+
Pick product form before archetype and domain composition. Product form describes how a user operates and receives the software. It defines the vertical-slice shape, the build concerns, and the completion evidence. Do not default to web application because the request says product, platform, tool, or dashboard.
|
|
58
|
+
|
|
59
|
+
Every form ships a user-operable increment. Real-backend discipline applies when the product has a backend; it does not invent one for a local CLI, embedded SDK, offline desktop utility, notebook workflow, or declarative module.
|
|
60
|
+
|
|
61
|
+
| Product form | A vertical slice means | Build concerns | Completion evidence |
|
|
62
|
+
|---|---|---|---|
|
|
63
|
+
| web-application | persistence or external source -> service and permission boundary -> API or server action -> UI states -> tests | route and information architecture, loading/empty/error/success states, server-side authorization, accessibility, responsive behavior, user-journey telemetry | one roadmap job works from user action through real data and back; relevant UI states and permission checks exist; unit, integration, and browser tests pass |
|
|
64
|
+
| api-or-service | contract -> validation and authorization -> domain operation -> persistence or dependency -> telemetry -> tests | versioned contracts, idempotency, timeouts, retry budgets, dependency failures, migrations, health, consumer compatibility | a real consumer fixture completes one contract path; errors, bounded retries, health, telemetry, contract tests, and integration tests pass |
|
|
65
|
+
| cli-or-sdk | public command or API -> parsing and validation -> domain operation -> output or return contract -> consumer fixture -> cross-platform tests | stable public surface, exit codes or error types, configuration precedence, deterministic output, examples, compatibility, semantic versioning, distribution | a clean consumer installs the artifact, completes the primary job without repository internals, receives documented errors, executes examples, passes supported-platform checks, and reproduces the release artifact |
|
|
66
|
+
| mobile-or-desktop | native interaction -> local state -> sync or service boundary -> offline and recovery states -> device or platform tests | lifecycle behavior, local persistence, sync conflicts, offline states, permissions, secure storage, accessibility, crash reporting, signing, updates | a development or signed build runs on each platform class; the primary job survives lifecycle and connectivity transitions; secure storage, device tests, crash telemetry, and packaging pass |
|
|
67
|
+
| data-or-ml | versioned input -> validated transform or training step -> reproducible output -> quality evaluation -> lineage and operations | provenance, schemas, data quality, reproducible environments, experiment tracking, leakage and bias checks, registries, drift, cost | a clean environment reproduces an artifact from versioned inputs; quality thresholds pass; code, data, and config lineage is recorded; serving tests pass when serving is in scope |
|
|
68
|
+
| infrastructure-or-iac | versioned config -> static validation -> plan -> policy check -> isolated apply or simulation -> rollback or destroy proof | state, secrets, pinned tools and providers, policy as code, environment separation, least privilege, drift, disaster recovery, cost | formatting and validation pass; an isolated plan and policy check pass; sandbox apply or faithful simulation proves the main path; state, secrets, destructive guards, and rollback are verified |
|
|
69
|
+
|
|
70
|
+
Pick one primary form and write its slug to frontmatter as `product_form`. A secondary form is not a label for a supporting component. Add one only when it has its own user, public contract, distribution path, deliverable, and completion evidence. Keep primary-form sequencing authoritative and add a separate secondary-form slice rather than blending both gates into a web-shaped checklist.
|
|
71
|
+
|
|
72
|
+
## Archetype detection
|
|
73
|
+
|
|
74
|
+
The archetype drives the applicability matrix defaults and, through it, the documentation set. A wrong archetype therefore mis-selects two downstream artifacts at once, silently, so it is scored rather than eyeballed and the score is written into the plan.
|
|
75
|
+
|
|
76
|
+
Signals beat labels. What the user calls the project is one input; what the project does is the evidence.
|
|
77
|
+
|
|
78
|
+
| Archetype | Positive signals (weight) | Veto: score is zero if present |
|
|
79
|
+
|---|---|---|
|
|
80
|
+
| cli-tool | terminal entry point (3), no listening socket (2), distributed as a binary or package (2) | a first-party HTTP surface end users reach |
|
|
81
|
+
| library | consumed as an API by other code (3), published package manifest (2), no entry point of its own (2) | a first-party HTTP surface, an app-store target |
|
|
82
|
+
| api-service | HTTP or RPC surface (3), service deploy target (2), no first-party frontend (2) | an app-store target |
|
|
83
|
+
| saas-dashboard | authenticated session (3), first-party frontend over domain data (3), per-user or per-tenant data (2) | none |
|
|
84
|
+
| marketing-site | public crawlable pages (3), a conversion goal (2), little or no persisted domain state (2) | an authenticated session over domain data |
|
|
85
|
+
| mobile-app | app-store or device target (3), native or cross-platform UI SDK (3) | none |
|
|
86
|
+
| ml-pipeline | batch or streaming data flow (3), a training or inference step (3), a dataset or feature store (2) | an app-store target |
|
|
87
|
+
| extension | host extension manifest (3), runs inside a host surface (2) | a deploy target of its own |
|
|
88
|
+
| game | real-time loop (3), a scene or asset pipeline (2) | none |
|
|
89
|
+
|
|
90
|
+
### Scoring
|
|
91
|
+
|
|
92
|
+
A weighted sum, not a decision tree. A tree returns one answer, no runner-up, and nothing to show when it is wrong. A sum returns a second place and a distance, which is what the confidence and the counterfactual need.
|
|
93
|
+
|
|
94
|
+
1. **Score** each archetype as matched weight over that archetype's total positive weight, to two decimals. A veto signal zeroes the score outright; it is not a penalty, because a published package that also serves HTTP is not a library and no amount of matched weight should make it one.
|
|
95
|
+
2. **Primary** is the highest score. **Runner-up** is the second highest above zero, or `none` when nothing else scored.
|
|
96
|
+
3. **Margin** is `(primary - runner-up) * 100`, rounded to the nearest integer, in points. With no runner-up the margin is the primary score times 100.
|
|
97
|
+
4. **Floor is 0.45.** Below it the archetype is `unknown`, the archetype question takes a slot in the interview batch, and no default may be taken for it.
|
|
98
|
+
5. **Confidence** is `high` only at a margin of 15 points or more **and** a primary score of 0.70 or more. Exactly one of the two gives `medium`. Neither gives `low`.
|
|
99
|
+
|
|
100
|
+
Confidence is arithmetic, not a feeling, and the validator recomputes it.
|
|
101
|
+
|
|
102
|
+
### What low confidence costs
|
|
103
|
+
|
|
104
|
+
`low` confidence is not a disclaimer, it withholds two things until a human confirms the archetype:
|
|
105
|
+
|
|
106
|
+
- The archetype goes into `## Open Questions` as a decision ticket with a recommended default.
|
|
107
|
+
- No `assure`-stage documentation-set row may be marked `not-applicable`. The assure stage is where threat models and compliance records live, and those are exactly the rows a misread archetype deletes without anyone noticing.
|
|
108
|
+
|
|
109
|
+
`medium` confidence carries the counterfactual and nothing else. `high` confidence carries it too, because the cheapest moment to price a wrong archetype is before any task is written.
|
|
110
|
+
|
|
111
|
+
### The archetype counterfactual
|
|
112
|
+
|
|
113
|
+
Every plan records what changes if the runner-up is right, priced in the same units as the blast radius rule: tasks and phases. This is the archetype-level version of that rule, and it exists for the same reason. A number next to the alternative converts "are you sure" into a decision the user can make in one sentence.
|
|
114
|
+
|
|
115
|
+
```markdown
|
|
116
|
+
### Archetype confidence
|
|
117
|
+
|
|
118
|
+
- Primary: saas-dashboard (score 0.88)
|
|
119
|
+
- Runner-up: api-service (score 0.57)
|
|
120
|
+
- Margin: 31 points
|
|
121
|
+
- Confidence: high
|
|
122
|
+
- Vetoes applied: none
|
|
123
|
+
- Overlays: none
|
|
124
|
+
- If the runner-up is right: -3 tasks and +0 phases; the ui and seo rows flip to excluded, GP-210 through GP-212 drop, and the contract-test task in Phase 3 grows a consumer fixture
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Hybrids are not a merge. A project that scores close on two archetypes has one primary and, where the second thing is real, an overlay. Merging two matrices and letting one win conflicts forces a false choice at the top of the tree and produces the wrong set for exactly the project that is both.
|
|
128
|
+
|
|
129
|
+
## Overlays
|
|
130
|
+
|
|
131
|
+
An archetype answers what this thing is. An overlay answers what extra obligations it carries. Overlays are additive and orthogonal: a project has exactly one archetype and zero or more overlays.
|
|
132
|
+
|
|
133
|
+
| Overlay | Fires when | Forbids excluding |
|
|
134
|
+
|---|---|---|
|
|
135
|
+
| `ai-system` | the product calls a model at runtime, or ships one | llm |
|
|
136
|
+
| `public-ui` | the project owns rendered pixels somebody outside the team reaches | ui, seo |
|
|
137
|
+
| `shipped-artifact` | users install, download, or depend on a versioned artifact | deploy |
|
|
138
|
+
| `operated-by-others` | somebody other than the author runs it in production | observe, deploy |
|
|
139
|
+
| `regulated-data` | personal, health, payment, or otherwise regulated data is stored | database, llm when `ai-system` also fires |
|
|
140
|
+
| `agent-skill-package` | the deliverable is instructions an AI agent consumes | agent-memory |
|
|
141
|
+
| `monetized` | the product charges money, sells plans or seats, or meters paid usage | business |
|
|
142
|
+
|
|
143
|
+
**Overlays raise and never lower.** An overlay moves its domains up the lattice `excluded < deferred < applicable`; nothing an overlay does may push a domain down it. Concretely, an overlay forbids `excluded` for its domains. Deferral stays available wherever the deferrable set already allows it, so `public-ui` on a project whose visual system genuinely comes later still defers `ui` with its trigger. What it cannot do is deny that `ui` exists.
|
|
144
|
+
|
|
145
|
+
This is the same monotonic rule the module disposition enforces one level down, applied to the matrix itself.
|
|
146
|
+
|
|
147
|
+
Record overlays in frontmatter as `overlays: [ai-system, regulated-data]`, or `overlays: []` when none fire. An empty list is a finding like an empty hard-to-reverse-bets list: it says each overlay was considered and none applied, not that nobody looked.
|
|
148
|
+
|
|
149
|
+
## Scale calibration
|
|
150
|
+
|
|
151
|
+
State it in the plan; every module's requirements scale with it.
|
|
152
|
+
|
|
153
|
+
- **weekend**: throwaway or personal utility. Plan depth: decisions and a short task list. Weekend plans have at most 3 phases and 8 tasks. Sum task appetites to the user's stated capacity, combine related implementation and documentation work, and keep only requirements that materially alter behavior, public compatibility, security, or verification. Security still applies (secrets, injection), compliance still applies, and observability collapses to local error reporting or logs.
|
|
154
|
+
- **side-project**: real users possible, one maintainer. Deploy, backups, and error tracking are planned; SOC 2 is not.
|
|
155
|
+
- **funded-product**: paying users, a team, uptime matters. The full applicable matrix, honest SLOs, launch plan.
|
|
156
|
+
- **enterprise**: compliance regimes, multiple teams, audits. Everything, plus the compliance mapping the security module demands.
|
|
157
|
+
|
|
158
|
+
Calibration is a ceiling-setter, not an excuse: a weekend project with user passwords still hashes them with argon2id. It is also a scope ceiling: rubric coverage cannot manufacture work that exceeds the declared capacity. Cheap corners are cut openly, in the plan, as named decisions ("no staging environment: acceptable for side-project scale, revisit at 100 users"), never silently.
|
|
159
|
+
|
|
160
|
+
## The applicability matrix
|
|
161
|
+
|
|
162
|
+
Every domain gets a row with one of three statuses. Applicable means the domain pass runs now and its requirements bind. Excluded requires an evidence state, a reason specific to this project, and a tripwire; "not needed" is banned by the substitution test. Deferred means the domain's decisions are reversible until a named trigger fires, so the pass is postponed rather than skipped: the row names the trigger (an observable event, never "later") and argues why waiting is safe. When the trigger fires, the plan returns to `planning` and the deferred domain pass runs as a replan.
|
|
163
|
+
|
|
164
|
+
### Excluded rows carry a tripwire
|
|
165
|
+
|
|
166
|
+
A deferred row already names the event that forces its pass. An excluded row used to name only a reason, which made it permanent: true the day it was written and silently wrong the week the project changed. Every excluded row now carries all three parts, in this cell order:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
| llm | excluded | by-design: the product ranks indexed text with BM25 and makes no model call; revisit when: any task adds a model SDK dependency, an inference endpoint, or a prompt template |
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
- **Evidence state**: `absent:` or `by-design:` opens the cell. `unknown:` and `hint:` are refused, because neither licenses an exclusion.
|
|
173
|
+
- **Reason**: specific enough to fail the substitution test against another project.
|
|
174
|
+
- **`revisit when:`**: an observable predicate that would make the domain applicable again. Same bar as a deferral trigger: an event somebody could notice, never "later", "eventually", "post-MVP", or "if needed". An executor that trips the predicate returns the plan to `planning` and runs the domain pass, exactly as a deferral trigger does.
|
|
175
|
+
|
|
176
|
+
An exclusion with no tripwire is not a decision with an expiry, it is a silence with a reason attached, and it is the row an auditor pulls first.
|
|
177
|
+
|
|
178
|
+
The five never-excludable domains (security, code-quality, style-genome, repo, roadmap) scale down instead, so they never carry a tripwire; they carry a scale note.
|
|
179
|
+
|
|
180
|
+
Deferral is a privilege of the reversible. Only these domains may defer, and only with the trigger landing before the work gets expensive to redo:
|
|
181
|
+
|
|
182
|
+
- **seo**: trigger before the first public crawlable page ships; retrofitting metadata, semantic HTML, and sitemaps onto shipped pages is the expensive version.
|
|
183
|
+
- **launch**: trigger before public-activation planning begins; the prepublication gate consumes launch requirements, so the launch pass must land before that gate is drafted.
|
|
184
|
+
- **observe**: baseline error reporting and one alert are planned now at any scale; full SLOs, error budgets, and runbooks may defer with the trigger at the first real user or the first paid workload.
|
|
185
|
+
- **ui**: the visual system (tokens, primitives) may defer with the trigger before the component library task; ux journeys are never deferred because they shape the architecture.
|
|
186
|
+
- **deploy**: libraries and CLI tools may defer with the trigger before the first distribution task; services with a completion-evidence gate deploy early and never defer.
|
|
187
|
+
|
|
188
|
+
Never deferrable: product, business, architecture, stack, database, security, llm (when applicable), ux (when applicable), code-quality, style-genome, agent-memory, repo, build, roadmap. These decide hard-to-reverse shape or feed every other pass; deferring them is plan theater with a calendar.
|
|
189
|
+
|
|
190
|
+
```markdown
|
|
191
|
+
## Applicability matrix
|
|
192
|
+
|
|
193
|
+
| Domain | Status | Reason |
|
|
194
|
+
|---|---|---|
|
|
195
|
+
| product | applicable | |
|
|
196
|
+
| business | excluded | by-design: one invite-only household, no charge, no analytics; revisit when: any task adds a price, a checkout, an uninvited sign-up route, or an analytics SDK |
|
|
197
|
+
| architecture | applicable | |
|
|
198
|
+
| stack | applicable | |
|
|
199
|
+
| database | applicable | |
|
|
200
|
+
| security | applicable | security is never excluded or deferred, only scaled |
|
|
201
|
+
| llm | excluded | by-design: expense splitting is arithmetic, so no model call is planned; revisit when: any task adds a model SDK dependency, an inference endpoint, or a prompt template |
|
|
202
|
+
| ux | applicable | |
|
|
203
|
+
| ui | applicable | |
|
|
204
|
+
| seo | deferred | trigger: the first public marketing page task enters the roadmap; reversible until pages ship without metadata |
|
|
205
|
+
| code-quality | applicable | never excluded or deferred, only scaled |
|
|
206
|
+
| style-genome | applicable | |
|
|
207
|
+
| agent-memory | applicable | |
|
|
208
|
+
| repo | applicable | |
|
|
209
|
+
| build | applicable | |
|
|
210
|
+
| roadmap | applicable | |
|
|
211
|
+
| deploy | applicable | |
|
|
212
|
+
| observe | applicable | |
|
|
213
|
+
| launch | excluded | by-design: internal tool, adoption is an email; revisit when: the plan adds a sign-up route reachable without an invite, or `public_release` flips to true |
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Hard rules: security, code-quality, style-genome, repo, roadmap are never excluded and never deferred (they scale down instead). business requires a charge or a displayed price, outside sign-ups, telemetry about outsiders, or a customer-signal surface. seo requires a public crawlable surface. llm requires actual model integration; "we might add AI later" is a roadmap entry, not an llm pass and not a deferral. ui requires rendered pixels the project owns.
|
|
217
|
+
|
|
218
|
+
### Module disposition and monotonic escalation
|
|
219
|
+
|
|
220
|
+
After the table, the compact module disposition records what each applicable module's requirements did. Its grammar is one line per module:
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
- security: landed R-SEC-1, R-SEC-4, R-SEC-12; dropped-by archetype R-SEC-22 (D3: managed-platform deploy, no containers, Kubernetes, or IaC planned)
|
|
224
|
+
- ui: landed R-UI-2, R-UI-9; dropped-by archetype R-UI-14 (no design system to publish; the app uses stock primitives)
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Three layers may drop a requirement, and the line names which one did: `scale`, `archetype`, or `form`. That naming is the whole point. Precedence alone does not save a plan, because a later layer is not a more correct layer, it is only a later one. Without a recorded dropper, a requirement cut to fit a weekend appetite looks identical to a requirement nobody ever considered, and only one of those is a decision.
|
|
228
|
+
|
|
229
|
+
Two rules ride on top:
|
|
230
|
+
|
|
231
|
+
- **A dropped requirement may not appear on any task's `Requirements:` line.** Claiming a requirement was cut while a task still traces to it means one of the two is lying, and the validator refuses both.
|
|
232
|
+
- **A landed requirement appears somewhere concrete**: a decision, a task acceptance line, or an open question. Landed is a claim about the document, not about intent.
|
|
233
|
+
|
|
234
|
+
## The interview
|
|
235
|
+
|
|
236
|
+
One batch, 3 to 5 questions, only questions that change the plan. Rules:
|
|
237
|
+
|
|
238
|
+
1. **Spend questions on hard-to-reverse bets.** Data-model shape, multi-tenancy, auth boundary, public API commitments, pricing model when it constrains architecture. Never spend a question on something a module can decide with a stated default (formatter choice, test runner).
|
|
239
|
+
2. **Every question ships a recommended default**, so "defaults" is a complete answer. Format: the question, why it matters (one line), options, the recommendation marked.
|
|
240
|
+
3. **Batch, do not drip.** One message with all questions. Follow-ups only when an answer creates a genuine fork.
|
|
241
|
+
4. **Everything not asked becomes a stated assumption**, flagged in the plan as a hypothesis with a validation plan. The assumptions ledger goes into the Decisions section, labeled.
|
|
242
|
+
5. **Every assumption is priced.** See the blast radius rule below. An unpriced assumption asks the user to audit the plan for free.
|
|
243
|
+
6. **Brownfield asks less.** The codebase already answered most questions; asking the user something the code answers is a discovery failure.
|
|
244
|
+
7. **Non-interactive fallback.** When no user is available to answer (CI, autonomous runs), take every default, mark all of them as hypotheses, and say so at the top of the plan.
|
|
245
|
+
8. **Ask where the documentation lives** whenever the project is brownfield or has more than one maintainer. A repository cannot see a wiki, and a documentation set that reports "absent" for something already written in Confluence discredits every other row. When the question is not worth a slot in the batch, take `repo` as the default, price it, and state the boundary in the documentation set section either way (`doc-set.md` section 8).
|
|
246
|
+
|
|
247
|
+
### The blast radius rule
|
|
248
|
+
|
|
249
|
+
Every entry in the assumptions ledger carries what changes if it is wrong, measured in plan units:
|
|
250
|
+
|
|
251
|
+
```markdown
|
|
252
|
+
- A3: a workspace's data is never visible across workspaces (assumed; no cross-org reporting was described)
|
|
253
|
+
- Blast radius: wrong costs +6 tasks and +1 phase; per-object ACLs replace workspace-scoped RLS, rewriting GP-201 and every Phase 4 query
|
|
254
|
+
- Validated by: GP-108
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Two properties make this worth the line it costs. It converts a formless worry into something the user can act on in one sentence, and it is the artifact a lead forwards upward, because it prices a product decision in units of work. It is also what makes "answer defaults" an informed choice rather than a shrug: a wrong assumption is cheap when its cost is printed next to it.
|
|
258
|
+
|
|
259
|
+
The prices are counts of tasks and phases the plan would gain or lose, not adjectives. "Significant rework" is refused; "+6 tasks and +1 phase" is not. Where the honest answer is that the plan barely moves, say `+0 tasks; the token table is additive`, because a cheap assumption is exactly the one the user should stop worrying about.
|
|
260
|
+
|
|
261
|
+
Question quality bar, by example. Bad: "What database do you want?" (module decides with a default). Good: "Is a workspace's data ever visible across workspaces (shared boards, cross-org reporting)? Recommendation: no, hard tenant isolation; this decides the schema and every query." Bad: "Do you want tests?" (never a question). Good: "Is the public API versioned from day one? Recommendation: yes, `/v1/` prefix; unversioned public APIs are the most expensive reversal in this archetype."
|
|
262
|
+
|
|
263
|
+
## Output of discovery
|
|
264
|
+
|
|
265
|
+
By the end of Phase 3 the following exist, ready for the domain passes:
|
|
266
|
+
|
|
267
|
+
- Mode, primary product form, any independently justified secondary form, and scale calibration.
|
|
268
|
+
- The archetype with its score, its runner-up, the margin, the derived confidence, any veto applied, and the counterfactual priced in tasks and phases. A `low` confidence archetype additionally appears in Open Questions.
|
|
269
|
+
- The overlay list, or an explicit empty list meaning each was considered and none fired.
|
|
270
|
+
- Plan provenance: source revision or `none`, evidence inventory, SHA-256 input digest, and UTC validation timestamp.
|
|
271
|
+
- The applicability matrix, complete: every excluded row carrying its evidence state, reason, and `revisit when` predicate.
|
|
272
|
+
- The user's answers, verbatim where load-bearing.
|
|
273
|
+
- The assumptions ledger: every default taken, each flagged as a hypothesis and priced with its blast radius in tasks and phases.
|
|
274
|
+
- The documentation-set inputs: system of record, external authorizer, maintainer count, and whether the repository is public, so the repo pass can select the document set without a second interview.
|
|
275
|
+
- The hard-to-reverse bets list, each either answered or queued for the Decisions section. An empty list is a finding, not a silence: it means wire formats, public identifiers, data-model shape, and auth and ownership boundaries were each examined and located in this project, so say where each one landed. A list that is empty because nobody looked is the mind-reader anti-pattern with better manners.
|
|
276
|
+
- Brownfield only: the fingerprint summary (stack, structure, style genome extract, existing conventions files).
|
|
277
|
+
|
|
278
|
+
## Anti-patterns refused
|
|
279
|
+
|
|
280
|
+
- **The interrogation**: ten questions before any value. Refused: one batch, defaults offered, move.
|
|
281
|
+
- **The mind-reader**: zero questions, silent guesses on hard-to-reverse bets. Refused: bets get asked or get flagged as hypotheses, never silently assumed.
|
|
282
|
+
- **The generic matrix**: applicability copied from the archetype table without looking at the project. Refused: reasons must survive the substitution test.
|
|
283
|
+
- **Brownfield amnesia**: planning as if the codebase were empty. Refused: the fingerprint runs first and the plan cites real files.
|
|
284
|
+
- **Web-shaped everything**: API, CLI, mobile, data, or IaC work forced through UI and backend assumptions. Refused: product form is selected before archetype and every slice uses the form-specific gate.
|
|
285
|
+
- **Decorative secondary form**: a supporting component labeled secondary without its own user or deliverable. Refused: secondary forms require an independent contract, distribution path, and completion evidence.
|
|
286
|
+
- **Scale theater**: enterprise ceremony on a weekend project, or weekend sloppiness on a funded product. Refused: calibration is stated and modules scale to it.
|
|
287
|
+
- **Deferral theater**: deferring a load-bearing domain to avoid deciding it, or deferring with a trigger that can never be observed. Refused: only the named deferrable set may defer, the trigger is an observable event with a reversibility argument, and the never-excluded set never defers.
|
|
288
|
+
- **Exclusion theater**: an excluded row whose reason is true today and unfalsifiable forever, so nothing ever reopens it. Refused: every exclusion carries an observable `revisit when` predicate, which is what makes it a decision with an expiry rather than a silence.
|
|
289
|
+
- **Unknown as absent**: excluding a domain because nothing looked at it, phrased as though something had. Refused: `unknown` and `hint` cannot exclude; the domain becomes applicable or its question goes to Open Questions with a default.
|
|
290
|
+
- **The unpriced assumption**: a ledger entry that flags a hypothesis without saying what it costs to be wrong. Refused: blast radius in tasks and phases, or the entry is a disclaimer rather than a decision aid.
|
|
291
|
+
- **Anonymous requirement drop**: a module requirement missing from the plan with no record of which layer removed it. Refused: `dropped-by scale`, `archetype`, or `form`, with a reason, so a cut is distinguishable from an oversight.
|
|
292
|
+
- **The confident archetype**: one label picked from the user's phrasing, with no runner-up, no margin, and no record of what the alternative would have cost. Refused: score it, name the second place, and price the counterfactual; an archetype nobody can argue with is an archetype nobody checked.
|
|
293
|
+
- **Confidence as a mood**: a stated confidence that does not follow from the recorded scores, usually `high` on a 4-point margin. Refused: confidence is recomputed from the margin and the primary score, and the validator fails the mismatch.
|
|
294
|
+
- **The merged hybrid**: two archetypes blended into one matrix with a tie-break rule, which produces the wrong set for precisely the project that is both. Refused: one primary archetype plus overlays.
|
|
295
|
+
- **The subtractive overlay**: an overlay read as permission to trim a domain, so a project that carries more obligations ends up planning fewer. Refused: overlays raise and never lower; an overlay domain is never excluded.
|
|
296
|
+
- **Borrowed staleness**: reusing a `.godaudits/EVIDENCE.json` from an older revision because it was there. Refused: fresh means the revision matches; anything else is re-derived, and the plan says which happened.
|
|
297
|
+
- **The unlooked absence**: a brownfield `absent:` reason with no command behind it, which is the negative claim that reads most checked and is checked least. Refused: cite the search that came back empty, or use `by-design:` and own the decision.
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Documentation set contract
|
|
2
|
+
|
|
3
|
+
The binding contract for `## Documentation set`, the plan section that decides which documents this project owes, names which it does not owe and on what evidence, and puts an expiry tripwire on every one of those exclusions. Read this file when authoring that section (the repo module's R-REPO-21 through R-REPO-25 instantiate it) and when a replan re-derives the set. This is a contract file, not a domain module: it has no rubric of its own, because the repo module scores it.
|
|
4
|
+
|
|
5
|
+
## Lineage
|
|
6
|
+
|
|
7
|
+
Descends from docdna (hannsxpeter/docdna), the selection engine that decides which documents a repository owes, defends every absence, and writes only what the code can prove. docdna works after the fact: it scans a repository, derives signals from files, and selects from evidence on disk. godplans inverts the direction. At plan time there is no code to scan, so the selecting inputs are the plan itself: product form, archetype, scale calibration, `public_release`, the applicability matrix, the security and compliance profile, and, in brownfield mode, the Phase 0 fingerprint. The disciplines that carry over intact: lifecycle stage as the primary axis and the refusal to tier by audience; three-valued evidence where absence of a look is never recorded as absence of a thing; every selection naming what selected it; every exclusion carrying a reason and a `revisit when` predicate; the durability split that keeps evidence artifacts from being edited in place; and the rule that no number is invented.
|
|
8
|
+
|
|
9
|
+
Ported by copy. godplans depends on nothing from docdna at runtime, and docdna depends on nothing from godplans. Fixes travel between the two repositories as edits, never as references.
|
|
10
|
+
|
|
11
|
+
## 1. The failure this section exists to prevent
|
|
12
|
+
|
|
13
|
+
The failure mode of a documentation plan is not a missing document. A missing document is visible and arguable. The failure is **asserting that a document was unnecessary without ever deciding it was**, because an unexamined absence reads exactly like a considered decision, and only one of those survives a handover, an audit, or the maintainer leaving.
|
|
14
|
+
|
|
15
|
+
So the section is not a list of documents to write. It is a decision record with three parts: what this project owes, what it does not owe and why, and what would make that second answer wrong.
|
|
16
|
+
|
|
17
|
+
## 2. Lifecycle stage is the organizing axis
|
|
18
|
+
|
|
19
|
+
Ten stages. A document belongs to the stage at which it first becomes load-bearing, not the stage in which it is most often read. Each stage answers exactly one question; a stage needing two questions is two stages.
|
|
20
|
+
|
|
21
|
+
| Stage | The one question it answers |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `frame` | Why does this exist, for whom, and what counts as success? |
|
|
24
|
+
| `decide` | What did we choose, and what did we reject? |
|
|
25
|
+
| `design` | What shape is it, and why that shape? |
|
|
26
|
+
| `build` | How do I work on it? |
|
|
27
|
+
| `verify` | How do we know it works? |
|
|
28
|
+
| `assure` | How do we prove to an outsider it is safe, lawful, and accessible? |
|
|
29
|
+
| `operate` | How do we run it and keep it alive? |
|
|
30
|
+
| `serve` | How does someone use it? |
|
|
31
|
+
| `govern` | How is the work itself managed? |
|
|
32
|
+
| `retire` | How does it end? |
|
|
33
|
+
|
|
34
|
+
The list is an ordering of first authorship, not a waterfall and not a maturity ladder. A brownfield project will own `build` and `operate` documents years before anything in `frame` exists, and that is the normal shape of a real repository. The manifest reports the set and orders it by consequence; it never scolds the user for the shape of their history.
|
|
35
|
+
|
|
36
|
+
## 3. Audience is not the axis
|
|
37
|
+
|
|
38
|
+
The obvious partition is by reader: an executive set, an engineering set, an operations set, a compliance set. Reject it. ISO/IEC/IEEE 42010:2022 settles the question: audience is stakeholder plus concern, the set is partitioned by viewpoint, and cross-audience consistency is a correspondence rule rather than a parallel tree. The architecture a director reads and the architecture an engineer reads are the same artifact at two zoom levels.
|
|
39
|
+
|
|
40
|
+
Tiering by reader guarantees N parallel document sets describing one system, and they drift inside a quarter. After that, the only interesting question, which of these is true, has no answer, because each set was written for a reader instead of from a system.
|
|
41
|
+
|
|
42
|
+
Audience is not a manifest column. When somebody asks for a reader projection, derive it from stage and owner; planning a projection nobody asked for is the theater this section exists to prevent.
|
|
43
|
+
|
|
44
|
+
## 4. Durability, and why it has three values
|
|
45
|
+
|
|
46
|
+
| Value | Update contract | Plan posture |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| `durable` | Edited in place. The task that changes the code updates it in the same task. | Plan a task that writes it. |
|
|
49
|
+
| `evidence` | **Never edited.** A new run produces a new dated file. | Plan the task that produces a run, and the index that lists runs. Never a task that edits one. |
|
|
50
|
+
| `transient` | Written once, dated, abandoned. | Never planned as a deliverable. It is a byproduct of a decision, and the decision belongs in `## Decisions`. |
|
|
51
|
+
|
|
52
|
+
Collapsing `evidence` into `durable` is the failure this split prevents. A dependency inventory, an operational readiness review, a post-mortem, a scan result: each is a snapshot of a moment, and editing one in place destroys the only property that makes it evidence, which is that it says what was true on a date. Collapsing `evidence` into `transient` is the other half, because an evidence artifact carries a retention period that is a contractual or legal fact rather than a preference.
|
|
53
|
+
|
|
54
|
+
**Immutability is derived, not a fourth value.** Every `evidence` row is immutable, and so is `decide.adr` despite being durable. An immutable document is superseded, never rewritten: mint a new id, set `supersedes` on the new file and `superseded_by` plus `status: superseded` on the old, and leave the old file where it is. Numbers are never reused, because a citation written last year has to keep resolving to the same decision.
|
|
55
|
+
|
|
56
|
+
## 5. The catalog
|
|
57
|
+
|
|
58
|
+
Every row carries the module that owns it. **A document has exactly one owner module**, so two passes never both plan the same file. Where a row's natural owner is not the repo module, repo defers to the named owner and plans the manifest row only.
|
|
59
|
+
|
|
60
|
+
`Selected by` states the plan fact that makes the row required. `always` means every project owes it at every scale.
|
|
61
|
+
|
|
62
|
+
### frame
|
|
63
|
+
|
|
64
|
+
| Document | Durability | Owner module | Selected by |
|
|
65
|
+
|---|---|---|---|
|
|
66
|
+
| `frame.objective` | durable | product | always (lives in PLAN.mdx, not a separate file) |
|
|
67
|
+
| `frame.business-case` | durable | business | business is applicable and scale is funded-product or enterprise (R-BIZ-1, R-BIZ-2) |
|
|
68
|
+
| `frame.glossary` | durable | style-genome | always (R-DNA-12 domain glossary) |
|
|
69
|
+
| `frame.stakeholders` | durable | repo | an external authorizer exists, or scale is enterprise |
|
|
70
|
+
|
|
71
|
+
### decide
|
|
72
|
+
|
|
73
|
+
| Document | Durability | Owner module | Selected by |
|
|
74
|
+
|---|---|---|---|
|
|
75
|
+
| `decide.adr` | durable | architecture | always (R-ARCH-14; repo defers). Immutable by section 4: superseded, never edited |
|
|
76
|
+
| `decide.design-proposal` | transient | architecture | two options survive the pass and the debate is worth keeping |
|
|
77
|
+
|
|
78
|
+
Never emit a folder named `rfc/`. In any shop with an ITSM process, RFC reads as Request for Change and the collision is expensive. The debate artifact is a design proposal.
|
|
79
|
+
|
|
80
|
+
### design
|
|
81
|
+
|
|
82
|
+
| Document | Durability | Owner module | Selected by |
|
|
83
|
+
|---|---|---|---|
|
|
84
|
+
| `design.data-model` | durable | database | database is applicable |
|
|
85
|
+
| `design.api-contract` | durable | architecture | a public or cross-team interface exists |
|
|
86
|
+
| `design.ui-spec` | durable | ui | ui is applicable |
|
|
87
|
+
| `design.integration-map` | durable | architecture | a third-party dependency carries a failure mode |
|
|
88
|
+
| `design.capacity-model` | durable | architecture | an availability or throughput target binds, or the plan caches, replicates, or partitions |
|
|
89
|
+
| `design.metrics-register` | durable | business | R-BIZ-3 lands (business is applicable at side-project scale or above) |
|
|
90
|
+
|
|
91
|
+
### build
|
|
92
|
+
|
|
93
|
+
| Document | Durability | Owner module | Selected by |
|
|
94
|
+
|---|---|---|---|
|
|
95
|
+
| `build.readme` | durable | repo | always (R-REPO-7) |
|
|
96
|
+
| `build.contributing` | durable | repo | tier 2 or above (R-REPO-8) |
|
|
97
|
+
| `build.dev-setup` | durable | repo | always (R-REPO-7 Quick Start, R-REPO-8 real setup) |
|
|
98
|
+
| `build.codebase-map` | durable | agent-memory | always (the repo pillar) |
|
|
99
|
+
| `build.config-reference` | durable | stack | the project reads configuration or environment variables |
|
|
100
|
+
| `build.api-reference` | durable | architecture | a public API surface exists (R-ARCH-20) |
|
|
101
|
+
| `build.feature-flags` | durable | deploy | the plan introduces a flag system (R-DEPLOY-14; R-BIZ-23 when it lands) |
|
|
102
|
+
| `build.style-genome` | durable | style-genome | always (R-DNA-14 CODEDNA.md) |
|
|
103
|
+
| `build.agent-memory` | durable | agent-memory | always (R-MEM-2 AGENTS.md and pillars) |
|
|
104
|
+
| `build.llms-txt` | durable | seo | a public documentation surface exists |
|
|
105
|
+
|
|
106
|
+
### verify
|
|
107
|
+
|
|
108
|
+
| Document | Durability | Owner module | Selected by |
|
|
109
|
+
|---|---|---|---|
|
|
110
|
+
| `verify.dod` | durable | product | always |
|
|
111
|
+
| `verify.test-strategy` | durable | code-quality | always |
|
|
112
|
+
| `verify.traceability` | durable | roadmap | an external authorizer exists, or scale is enterprise |
|
|
113
|
+
|
|
114
|
+
### assure
|
|
115
|
+
|
|
116
|
+
| Document | Durability | Owner module | Selected by |
|
|
117
|
+
|---|---|---|---|
|
|
118
|
+
| `assure.threat-model` | durable | security | an auth boundary, personal data, or a public surface exists |
|
|
119
|
+
| `assure.privacy-record` | durable | security | the system stores or processes personal data |
|
|
120
|
+
| `assure.dependency-inventory` | evidence | repo | `public_release` is true, or scale is enterprise |
|
|
121
|
+
| `assure.scanning-index` | evidence | repo | security automation runs in CI |
|
|
122
|
+
| `assure.accessibility-inputs` | evidence | ui | a public UI plus a stated accessibility obligation |
|
|
123
|
+
|
|
124
|
+
`assure` rows produce the inputs an assessor needs and name who must sign, empty. godplans does not certify, attest, sign, or draft a regulator-facing instrument, and it does not assert that a regime applies. It names the signal, names the regime that signal might trigger, and says to confirm with counsel. A dependency inventory is generated by a real resolver named in the task; a hand-written dependency list is a lie with a filename.
|
|
125
|
+
|
|
126
|
+
### operate
|
|
127
|
+
|
|
128
|
+
| Document | Durability | Owner module | Selected by |
|
|
129
|
+
|---|---|---|---|
|
|
130
|
+
| `operate.runbook` | durable | observe | a deployed surface exists |
|
|
131
|
+
| `operate.slo` | durable | observe | observe is applicable at side-project scale or above |
|
|
132
|
+
| `operate.oncall` | durable | observe | somebody can be paged |
|
|
133
|
+
| `operate.recovery` | durable | deploy | the system holds durable user data |
|
|
134
|
+
| `operate.postmortem` | evidence | observe | an on-call rotation exists |
|
|
135
|
+
| `operate.readiness-review` | evidence | deploy | scale is enterprise |
|
|
136
|
+
|
|
137
|
+
### serve
|
|
138
|
+
|
|
139
|
+
| Document | Durability | Owner module | Selected by |
|
|
140
|
+
|---|---|---|---|
|
|
141
|
+
| `serve.user-guide` | durable | launch | external users exist |
|
|
142
|
+
| `serve.support-policy` | durable | launch | paying users exist |
|
|
143
|
+
| `serve.release-notes` | durable | business | business is applicable and external users receive changes (R-BIZ-24); otherwise release notes ride `govern.changelog` |
|
|
144
|
+
|
|
145
|
+
### govern
|
|
146
|
+
|
|
147
|
+
| Document | Durability | Owner module | Selected by |
|
|
148
|
+
|---|---|---|---|
|
|
149
|
+
| `govern.manifest` | durable | repo | always (this section, rendered into the repo) |
|
|
150
|
+
| `govern.ownership` | durable | repo | more than one maintainer, or the repository is public |
|
|
151
|
+
| `govern.security-policy` | durable | repo | tier 2 or above (R-REPO-8 SECURITY.md) |
|
|
152
|
+
| `govern.changelog` | durable | repo | tier 2 or above (R-REPO-8) |
|
|
153
|
+
| `govern.closeout` | durable | roadmap | scale is enterprise |
|
|
154
|
+
|
|
155
|
+
### retire
|
|
156
|
+
|
|
157
|
+
| Document | Durability | Owner module | Selected by |
|
|
158
|
+
|---|---|---|---|
|
|
159
|
+
| `retire.archive-manifest` | evidence | roadmap | a stated sunset date or a data-retention obligation |
|
|
160
|
+
| `retire.deprecation-notice` | evidence | business | business is applicable and a feature, plan, or public API version is deprecated (R-BIZ-24) |
|
|
161
|
+
|
|
162
|
+
## 6. Verdict times state equals action
|
|
163
|
+
|
|
164
|
+
The verdict describes need. The state describes what exists. The action is a lookup, not a judgment. Greenfield plans find nothing in the repository, so they use the `absent` column plus `present-elsewhere` for a document already held in a wiki, an intranet, or a compliance platform; brownfield and replan use the whole table.
|
|
165
|
+
|
|
166
|
+
| | absent | present-current | present-drifted | present-stub | present-elsewhere |
|
|
167
|
+
|---|---|---|---|---|---|
|
|
168
|
+
| **required** | `plan-task` | `adopt` | `refresh-task` | `complete-task` | `confirm` |
|
|
169
|
+
| **recommended** | `offer` | `adopt` | `refresh-task` | `complete-task` | `confirm` |
|
|
170
|
+
| **optional** | `note` | `adopt` | `note` | `note` | `note` |
|
|
171
|
+
| **not-applicable** | `skip` | `orphan` | `orphan` | `orphan` | `skip` |
|
|
172
|
+
|
|
173
|
+
- `adopt` is the cheap win and the most common brownfield result. The document is fine and only lacks lifecycle metadata. Adopting costs a frontmatter block, not a task.
|
|
174
|
+
- `orphan` is a real result rather than an error: a document the repository carries that nothing in the profile justifies. That is where documentation rot starts, and nothing else reports it. An orphan gets one line and a question, never a deletion task; deleting is a records decision.
|
|
175
|
+
- `confirm` exists because documentation often lives somewhere this plan cannot see. See section 8.
|
|
176
|
+
|
|
177
|
+
## 7. Three-valued evidence, and the states that may justify an exclusion
|
|
178
|
+
|
|
179
|
+
A row's exclusion is a claim about the world, so it carries the state of the evidence behind it.
|
|
180
|
+
|
|
181
|
+
| State | What the plan is saying | May it exclude a row? |
|
|
182
|
+
|---|---|---|
|
|
183
|
+
| `present` | this project has the thing | no, it selects the row |
|
|
184
|
+
| `absent` | this was checked and the thing is not there | yes |
|
|
185
|
+
| `by-design` | the plan decides this project will not have the thing | yes |
|
|
186
|
+
| `present-elsewhere` | the thing exists outside this repository (a wiki, an intranet, a compliance platform) | yes on a not-applicable row (`skip`, section 6); a selected row is `confirm` |
|
|
187
|
+
| `unknown` | nobody looked, or the answer is not derivable here | **no** |
|
|
188
|
+
| `hint` | something matched and it is not enough | **no** |
|
|
189
|
+
|
|
190
|
+
`unknown` is not `absent`, and conflating the two is the whole point. In greenfield the honest state for anything the plan decides is `by-design`, because there is nothing to look at and the plan is the decision. In brownfield `absent` requires that something actually looked, and the reason names what looked. A row whose state is `unknown` or `hint` is not excluded: it becomes required, or it becomes an entry in `## Open Questions` with a recommended default. A single confidently false exclusion costs more trust than ten honest unknowns.
|
|
191
|
+
|
|
192
|
+
## 8. System of record, and stating the boundary
|
|
193
|
+
|
|
194
|
+
Every planned document records `system_of_record: repo | product | org | external` in its lifecycle frontmatter (section 9); in the manifest, an externally held document is a row whose last cell opens with `present-elsewhere:`. A row whose documentation lives in a wiki, a ticket system, or a compliance platform is not absent; it is somewhere this plan cannot see, and the honest action is `confirm`.
|
|
195
|
+
|
|
196
|
+
State the boundary in the section itself, whether or not anything prompted it:
|
|
197
|
+
|
|
198
|
+
> This manifest covers documentation committed to this repository. Documents that live in a wiki, an intranet, or a compliance platform are marked `present-elsewhere` and are not planned here.
|
|
199
|
+
|
|
200
|
+
One false "absent" for a document that already exists somewhere else discredits every other row on the page.
|
|
201
|
+
|
|
202
|
+
## 9. Lifecycle metadata on every planned document
|
|
203
|
+
|
|
204
|
+
A document with no owner and no review contract rots silently, and missing metadata kills document sets more often than missing document types. Every row the plan requires carries these fields, and the task that writes the document writes them into its frontmatter:
|
|
205
|
+
|
|
206
|
+
```yaml
|
|
207
|
+
id: operate.runbook
|
|
208
|
+
stage: operate
|
|
209
|
+
durability: durable
|
|
210
|
+
owner: <role, never a person's name in a public repository>
|
|
211
|
+
system_of_record: repo
|
|
212
|
+
status: draft
|
|
213
|
+
review_cadence: on-change | on-release | none
|
|
214
|
+
covers: [src/api/health.ts, ops/alerts.yaml]
|
|
215
|
+
valid_until: <date, evidence rows only>
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
- `status` starts at `draft` on everything a task generates. Promotion to `active` is a human act.
|
|
219
|
+
- `review_cadence` is taken from a source the plan cites or from the user's answer; otherwise it is an entry in `## Open Questions` with a recommended default (section 10), never invented. When it is `none`, the next review is a sentence and not a date, because a date implies a calendar obligation that does not exist.
|
|
220
|
+
- `covers` lists the paths whose change should force a re-read. An empty `covers` is honest for most `frame` and `govern` rows, and it is not a failure.
|
|
221
|
+
|
|
222
|
+
**Staleness is four independent verdicts and never one red light**: calendar-stale (cadence elapsed), drift-stale (a `covers` path changed), expiry-stale (`valid_until` passed), and unverifiable (`covers` is empty). A business case has no files to hash, so reporting it as drift-stale is theater, and a reader shown one piece of theater discounts the rest of the page.
|
|
223
|
+
|
|
224
|
+
## 10. No invented numbers
|
|
225
|
+
|
|
226
|
+
A review cadence, a retention period, a recovery time objective, a recovery point objective, an availability target, a support-window end date, and an error budget are decisions a human owns. None of them is derivable from a plan. Each is either taken from a source the plan cites, or it is an entry in `## Open Questions` with an owner, a decide-by moment, and a recommended default. A number invented at plan time becomes a commitment nobody made, and it is quoted back later as though somebody had.
|
|
227
|
+
|
|
228
|
+
## 11. The traceability spine
|
|
229
|
+
|
|
230
|
+
The plan already carries the spine; the manifest names it rather than duplicating it. Objective (`## Scope and non-goals`) to requirement (`R-<n>.<n>` and module IDs) to task (`GP-<n>`, via its `Requirements:` line) to verification (the task `Verify` command) to phase evidence (`Checkpoint verify`) to release (`govern.changelog`). `verify.traceability` is required only when an outside body needs the spine rendered as its own artifact; every other project already has it, in the plan, and rendering a second copy guarantees the two disagree.
|
|
231
|
+
|
|
232
|
+
## 12. Anti-patterns refused
|
|
233
|
+
|
|
234
|
+
- **Laundered exclusion**: a row marked not-applicable with no reason, no evidence state, and no tripwire. Refusal: all three are mandatory, and an exclusion without them is worse than a missing document because it converts a gap into a decision nobody made.
|
|
235
|
+
- **Unknown as absent**: excluding a row because nothing looked. Refusal: `unknown` and `hint` cannot exclude; they escalate to required or to an open question.
|
|
236
|
+
- **Paper theater**: planning eighty documents because a taxonomy lists eighty. Refusal: every row names the plan fact that selected it, and a row nothing selects is not planned.
|
|
237
|
+
- **Checkbox headings**: a task that creates a file with the right headings and no content. Refusal: the task's acceptance names the specific content the document must carry, and an empty file that exists is worse than a missing document that is tracked, because the empty one stops anyone from noticing.
|
|
238
|
+
- **Audience tiering**: parallel document sets per reader. Refusal: one set partitioned by stage; a reader projection is derived from stage and owner when somebody asks for one.
|
|
239
|
+
- **Regime cosplay**: naming a compliance regime the project has not established applies to it. Refusal: name the signal, name the regime the signal might trigger, say to confirm with counsel, and never plan a task that drafts a regulator-facing instrument.
|
|
240
|
+
- **Evidence edited in place**: a task that updates last quarter's scan result or post-mortem. Refusal: evidence rows get a task that produces a new dated run plus an index that lists runs.
|
|
241
|
+
- **Transient artifacts as deliverables**: planning a document whose whole value expires with the debate. Refusal: the decision lands in `## Decisions` with its falsifier; the debate document is optional and never required.
|
|
242
|
+
- **Invented lifecycle numbers**: a review cadence or retention period the plan made up. Refusal: cite it or open a question.
|
|
243
|
+
- **Hand-written dependency inventory**: a dependency list typed by an agent. Refusal: the task names a real resolver command and records its output as evidence.
|