Skip to content

docs(sdlc): keep reference docs in git as cited brain sources - #4941

Merged
dan-petty merged 2 commits into
mainfrom
docs/4884-reference-docs-brain-sources
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/4884-reference-docs-brain-sources

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

ADR 0025 records that the 52 generated documents and the command matrix of README.md stay in git. They are marked as generated, regenerated in the pull request that changes their source and checked by the docs row. The brain reads documents from main by inventory class, and each entry holds one citation with a first-parent commit of main. Document drift has its own lane of at most 3 batch issues a week. A check runs at pull request time only after a clean run on main. The pre-push hook runs no generator.

ADR 0023 and ADR 0012 get a note at their top. CONTEXT.md defines "Generated document" and "Citation", and changes "Project brain". The change has no spec delta, because it changes no behavior (openspec/config.yaml).

Closes #4884

Change: openspec/changes/archive/2026-11-12-4884-keep-reference-docs-in-git-as/

ADR 0025 records that the 52 generated documents and the command matrix
of README.md stay in git, marked as generated, regenerated in the pull
request that changes their source and checked by the docs row. The
brain reads documents from main by inventory class, and each entry
holds one citation. Document drift has its own lane of at most 3 batch
issues a week. A check runs at pull request time only after a clean run
on main. The pre-push hook runs no generator.

ADR 0023 and ADR 0012 get a note at their top. CONTEXT.md defines
"Generated document" and "Citation", and changes "Project brain".
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/sdlc The software development life cycle and its phases labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local evidence on the head of this branch, rebased on origin/main at c0401e0:

  • uv run devops docs check: all documentation files are up to date.
  • uv run devops ci test tests/roadmap/test_roadmap_adr.py tests/docs/test_docs_inventory.py: 67 passed.
  • uv run devops openspec check and uv run devops openspec archive: every spec and change validates.
  • uv run devops ci --check --only lint,format: pass.
  • ! git grep -n -iE "(reference|generated) (pages|documents|docs) at publish" -- ':!docs/adr' ':!openspec/changes': no match.
  • ADR budget of the alternatives check, measured with adr_of, _superseded and fit_to_budget: 8,048 tokens before and 8,183 after, against the cap of 8,192. All 22 ADRs in force fit. The next ADR (for example docs(adr): record the owner decisions on what agents may do #4787) goes above the cap unless its status paragraphs and options are short, or it raises the cap.

Deviation from the issue: the issue asks for a spec delta of project-brain. openspec/config.yaml gives a change with no observable behavior no delta, and #4625 made the same choice for ADR 0023. #4921 and #4920 add the deltas with the code. The PR title scope is sdlc, because .github/labels.yml declares no scope/adr.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 06:02
@dan-petty
dan-petty merged commit 175b07b into main Nov 12, 2026
23 checks passed
@dan-petty
dan-petty deleted the docs/4884-reference-docs-brain-sources branch November 12, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/sdlc The software development life cycle and its phases type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(adr): keep reference docs in git as cited brain sources

1 participant