Skip to content

References point one way: code stops citing documentation #202

Closed as not planned

Description

@Blind-Striker

What

docs/engineering/documentation.md:60-62: documentation may cite code, but code artifacts never
cite documentation; comments explain the status quo locally. At master 71d3eef, 167 tracked
non-Markdown lines still match a docs/ path or an ADR number: src 15, tools 100, tests 41,
.github 6, spec 4, Directory.Build.targets 1. They include tool strings that print an ADR
number to users (tools/OpenCode.Sdk.Tools/Generator/Binding/OperationNamePolicy.cs:82,
tools/OpenCode.Sdk.Tools/ToolApp.cs:89) and 27 curation reasons in tools/curation.json.

Two parts and a guard:

  1. tools, .github, spec and the root build files, now. Curation reasons and source-watch
    behaviour text are reasoned data a reviewer reads beside the ADRs; whether they are in scope is
    decided at the start of this part.
  2. src and tests, after Vertical-slice layout migration (placement only) #173 moves those files.
  3. A fail-closed guard test: no code artifact cites a docs/ path or an ADR number, with an
    allow-list for user-facing guide links (for example .github/ISSUE_TEMPLATE/config.yml:10) and
    for tests that read documentation.

Why it waits for 1.1

It is comment and message text only, with no surface effect.

Evidence

  • docs/engineering/documentation.md:60-62; docs/ROADMAP.md:115-118.
  • The counts above (git grep -E "docs/|ADR-0[0-9]{3}" over non-Markdown files).

Done when

  • Both parts are merged, each slice with the full gate.
  • The guard test is part of the full gate, and the ROADMAP entry is removed.

Depends on

Activity

  1. added this to the 1.1 milestone on Oct 14, 2026
  2. added
    documentation
    on Oct 14, 2026
  3. Blind-Striker commented on Oct 15, 2026

    @Blind-Striker
    CollaboratorAuthor

    Measurement carried over from #259, a duplicate of this issue (closed): on master bc0f4fa, 115 comment lines across 91 .cs files cite an ADR by number. By area: tools/OpenCode.Sdk.Tools 72, tests/OpenCode.Sdk.Tools.Tests 15, src/OpenCode.Sdk 12, tests/OpenCode.Sdk.Tests 11, other test projects 5. Count: git grep -c "ADR-0" -- '*.cs'. The sweep is mechanical work, and a guard that refuses ADR- references in .cs files keeps the rule enforced. It waits for the layout slices so it doesn't collide with their moves; those slices have now landed (L1 to L5).

  4. Blind-Striker commented on Nov 22, 2026

    @Blind-Striker
    CollaboratorAuthor

    Moved to the roadmap board as a draft item. This is internal backlog rather than a request an outside user or contributor would act on, so it no longer lives in Issues. The history stays here.

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

    documentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions