Skip to content

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

Closed

Description

@dan-petty

Problem or Motivation

The rigid-rules decision Q12 of 2026-10-22 said to stop committing the generated reference docs. ADR 0012 decision 12 still names "the item that builds the reference pages at publish". The owner reversed this on 2026-11-11, word for word: "keep reference docs, but update design to accomodate project brain and keeps all content up to date".

ADR 0023 does not list documents as brain sources. It has no citation form for a document. It has no cap for document-drift issues apart from the 2 insight proposals a week. Without a record, the next agent can follow Q12 again.

Proposed Solution & Architectural Design

Add a new ADR at the next free number. It records these decisions:

  1. The 52 generated files (7 reference pages, 42 docs/commands pages, 3 instruction stubs; about 1,080,533 bytes) and the README command matrix stay committed. They are marked linguist-generated, regenerated in the PR that changes their source, and gated by the docs row of Static Analysis. This cancels the build-at-publish item of ADR 0012 decision 12.
  2. It amends ADR 0023. The brain reads documents from main by inventory class through the RAG docs collection. Each citation is {path, commit, lines, span_hash, doc_class, generated_from?, adr_status?, as_of}, and commit is a first-parent commit of main. Document drift has its own lane: at most 3 batch issues a week, apart from the 2 insight proposals.
  3. The precision rule: a check runs at PR time only when its run on main shows 0 false positives when it lands. Other checks run on the schedule.
  4. ADR 0014 stays: the generator does not run in the pre-push hook.

ADR 0023 gets a one-line "Amended on by ADR " note at its top. Update CONTEXT.md: add the terms "Generated document" and "Citation", and change "Project brain". Add an OpenSpec spec delta for the project-brain capability (a new capability if no change has added it yet).

Target Subsystem

SDLC, Git & PR Governance (docs/adr/, CONTEXT.md, the OpenSpec project-brain capability).

Existing Tool Considered

The ADR form of docs/adr/. No tool applies: the item is a record and builds no code.

Acceptance Criteria

  • The ADR file exists with a status paragraph that amends ADR 0023, and ADR 0023 has the amendment note.
  • uv run devops docs check and the ADR tests pass.
  • CONTEXT.md has the 2 new terms and the changed "Project brain" term.
  • A search of living documents finds no text that says the generated docs are built at publish.
  • The ADR holds no hostname, private address or registry (AGENTS.md rule 10).

Dependencies

None.

Source: #4880

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/docs
    status/new
    value/medium
    effort/medium
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/docs. The docs prefix of the title gives the type.
    • Scope: none. The title has the scope adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.
    • Priority: P2-Medium. It records a decision reversal to stop agents from following the old Q12 rule again.
    • Value: Medium. It prevents repeated confusion and adds the citation form the project brain needs for documents.
    • Effort: Medium. It requires a new ADR, an amendment note on ADR 0023, two new CONTEXT.md terms, and an OpenSpec delta.
    • Related: refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103, which asks for a different change. Both concern whether generated reference docs are committed or built at publish, but the candidate reverses #1103's decision to keep them in git.
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 12, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions