Publication and Conventions for Specifications#

Estimated reading time: 45 minutes

Living document. This specification is maintained alongside the documentation system it describes. It states the conventions every geovista design specification follows: where they live, how their sections are addressed, how a citation is written, and what a reader may assume about a roadmap row that has not happened yet. Cite it as docs spec §…. Read it as current; the roadmap states what has actually landed.

  • Date: 2026-10-06 (originated; maintained since)

  • Status: living design specification

  • Citation prefix: docs spec §…

  • Issue: #2566

  • Applies to: every document under docs/src/developer/specs/ and docs/src/developer/plans/

  • Scope: how specifications are published and cited. What any individual specification says is its own business

  • Lineage: docs spec

  • Children: citation spec, ledger spec

  • Published: in the specifications index, since change 1 of §4 took orphan: true off this document and the type coverage specification together

1. Purpose#

geovista’s design specifications are built and unreachable.

myst_parser registers .md of its own accord, whatever source_suffix in conf.py names, so sphinx reads and renders docs/src/developer/specs/2026-10-06-type-coverage-design.md today. No toctree holds it, which warns as toc.not_included and fails --fail-on-warning, so it carries orphan: true and the build stays green. Nothing links to it from anywhere in docs/src. A reader who meets typing spec 3.1 in a pyproject.toml comment has nowhere to go, and a reader browsing the developer section is not told the collection exists.

The measurement, taken on 2026-10-06:

Count

published specifications reachable from the documentation

0

specifications rendered to HTML

1

citations in pyproject.toml, .pre-commit-config.yaml and ci-typing.yml

7

of those carrying a section sign

0

citation namespaces

1 (typing spec)

This specification closes that gap and states the conventions that keep it closed. It has two halves, and only the first is a migration. Publication is where the documents live so sphinx builds them and a reader can reach them. Conventions are how sections are addressed, how a citation is written, and what a roadmap row commits to. Those are ongoing contracts rather than migration steps, which is why this is a living specification rather than a plan.

2. Decisions#

  1. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — Specifications are published; plans are not. A specification is maintained alongside the code it describes and is read as current. A plan records what was intended before implementation and is not updated afterwards, so publishing one would put a document on Read the Docs that is wrong by design. See §3.1.

  2. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — A plan is withheld by exclude_patterns, not by orphan: true. An orphan is a published page that nothing links to, which is a weaker claim than the one being made. See §3.1.

  3. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — Sections are addressed by explicit anchors keyed to the section number, never by the slug docutils derives from the heading text. See §3.3.

  4. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — A citation carries the section sign. typing spec §3.1, never typing spec 3.1. The sign is what makes the token unmistakable in running prose, and a form that a future transform cannot recognise is a citation written today that goes dead later. See §3.2.

  5. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — A bare §N means the containing document’s §N. Inside a specification that is the ordinary way to name a neighbouring section. Outside the collection it is always an error, because src/ and tests/ own no sections. See §3.2.

  6. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — A roadmap row either carries an assertion or carries an admission. A row may state a trigger only if something fails when that trigger fires. A row whose trigger cannot be observed mechanically says so, in those words. See §4.

  7. 🤝 Agreed (2026-10-07, @bjlittle, #2567) — A status names the work that produced it. A roadmap row that has landed, and an open item that has been settled, each carry the date and the pull request or issue that did it, from a closed vocabulary. See §3.6.

  8. 🤝 Agreed (2026-11-09, @bjlittle, #2914) — The index shows each specification’s status, worked out from its roadmap. A reader looking for work still to do had to open each specification, or remember which ones had some. The namespace table gains a Status column, which the build writes from each roadmap, so nobody edits it by hand and it cannot fall behind. See §3.8.

3. Architecture#

3.1 Layout#

docs/src/developer/
├── index.rst       a card, and a toctree entry
├── plans/          tracked, excluded from the build
└── specs/          published
    ├── index.rst
    ├── 2026-10-06-published-specs-design.md
    └── 2026-10-06-type-coverage-design.md

docs/Makefile sets SOURCEDIR = src, so both directories sit inside the source tree and sphinx reads the specifications natively. The plans are withheld by one entry in docs/src/conf.py:

exclude_patterns = [
    ...,
    "developer/plans/**",
]

The two directories stay siblings because the documents reference each other. A plan names the specification it was derived from, and a specification’s roadmap names the plans that implement it, so a layout publishing one while moving the other breaks the links in one direction and leaves them working in the other, which is the confusing kind of broken. Those references also have to resolve in a checkout and in GitHub’s web UI, where neither is a sphinx reference.

Excluding the plans from the build takes them out of one more corpus. The reading-time gate of tests/docs/test_readingtime_coverage.py derives its pages from the source tree rather than from sphinx, so without a matching entry in its EXCLUDED_DIRS it would hold a page sphinx no longer builds to carrying a banner nothing renders. _autoapi_templates is the precedent, down to the test asserting that conf.py really does exclude what the tuple claims it does.

A plan’s own orphan: true and reading-time banner are left where they are. Neither does anything once the page is excluded, and a plan is frozen, which means not editing it to tidy a marker that has stopped mattering.

3.2 The Citation Namespace#

Extended by a child specification. 2026-10-30-decision-ledger-design.md, ledger spec §…, cites a decision as <prefix> spec §2 decision N, each decision taking an anchor the build generates (ledger spec §3.1).

docs/src/developer/specs/index.rst carries the toctree and introduces the collection. It states two things a reader cannot infer from any single document. First, that these are living documents, so what they read is current and a divergence from the code is a specification defect worth reporting. Second, that the citation namespace has members, with the prefix naming which. The index’s table lists every prefix in use, and §3.5 holds it complete. When this specification was written there were two:

Citation

Document

docs spec §…

this document

typing spec §…

2026-10-06-type-coverage-design.md

Each specification declares its own prefix in its header banner. A new specification chooses one unique across the collection, states it there, and adds it to the index’s table, in the place §3.7 gives it.

The prefix is load-bearing rather than decorative. sphinx labels are global, so docs-spec-3-2 and typing-spec-3-2 are distinct anchors naming unrelated sections, and a reader who drops the prefix lands in the wrong document with nothing to tell them so.

Three details of the form. The prefix is matched without regard to case, so a sentence may open with Typing spec §3.2. Where several sections are cited together the prefix carries across the run, so typing spec §3.2, §4 names two sections of one document; the separator is a comma or a solidus, and the run may not wrap across a line, since a reader following only the second line would read the tail as a reference to somewhere else. A dash is no separator, so each end of a range is a citation of its own, as in typing spec §3.2–typing spec §3.4, or §3.2–§3.4 within one document. And a citation with no prefix means the containing document:

A bare §N means this document. A reference to any other document names it.

Stating it that way is what makes the unqualified form safe. Its meaning is fixed by where it is written rather than by what the reader assumes, and the one thing it cannot be is a silent reference to somewhere else.

The section sign is required. All seven of geovista’s first citations were written without it, as typing spec 3.1, until change 1 of §4 added it to each. The sign is what separates a citation from an ordinary sentence containing a version number, and a citation a transform cannot recognise renders as dead text rather than as a link. Writing the seven correctly cost seven edits; leaving them would have cost a silent gap in whatever is built on top.

3.3 Section Anchors#

Every numbered heading carries an explicit MyST target immediately above it, keyed to the section number with dots replaced by hyphens and prefixed by the document’s slug:

(docs-spec-3-2)=
### 3.2 The Citation Namespace

The target becomes the section’s HTML id, so …/2026-10-06-published-specs-design.html#docs-spec-3-2 addresses this section directly.

Two reasons this is not optional. docutils derives its slug from the heading text and discards the number, so ### 3.2 The Citation Namespace would otherwise be addressable only as #the-citation-namespace. Each specification renders as one long page, so a citation landing at the top rather than at the section it names has not really resolved. And prose-derived slugs collide silently: two sections both titled Testing produce one slug, docutils disambiguates the second to id1, and that silently becomes id2 the moment a heading is inserted above it. Anchors derived from prose are unstable under exactly the edits a living document invites.

Both specifications of the time satisfied it, and change 1 of §4 added the assertion, so every document since has been governed rather than merely well written.

3.4 Cross-References Inside a Specification#

A specification names its own sections constantly. It used to do so with a hand-written role:

See {ref}`§3.1 <typing-spec-3-1>`.

That form carries two independent strings, and either can be wrong while the other reads correctly. {ref}`§3.1 <typing-spec-3-4>` displays one section and opens another, and both halves are invisible to everything that looks: a checker reading the text finds a well-formed citation, and sphinx resolving the target finds an anchor that exists, so the build stays clean. It is the failure mode a reader is least equipped to notice, because nothing is broken from where they are standing.

tephpy removes the class outright by writing citations as plain text and deriving the target from them at build time, so there is only one string and the two cannot disagree. That was row 2 of §4, built by the citation links design, and every section is now cited in plain text: See §3.1. is linked to its section when the page is built. While the roles remained, an assertion held each role’s display text to its target; with the roles gone, the rule is that no role names a section, so that the one-string form is the only one.

3.5 What Holds the Conventions#

Extended by a child specification. 2026-10-30-decision-ledger-design.md, ledger spec §…, adds item 9, Ledger, to the list below (ledger spec §3.6).

A convention that nothing checks decays. Renumbering a section strands every citation that named the old number, and the failure is invisible, because a stale citation is still a well-formed comment that still renders.

tests/test_spec_conventions.py derives its corpus from the repository rather than declaring one, following tests/docs/test_readingtime_coverage.py, so a specification is governed from the day it lands rather than from the day somebody remembers to list it.

The corpus is every text file in the repository, the specifications among them, less the trees that are generated, fetched or frozen. Naming the areas instead would miss whatever nobody thought to name. developer/plans/ is outside it, for the reason it is outside the build: a plan is frozen, so a rule it fails is a rule it cannot be edited to satisfy. The first plan in the repository holds nine citations written before this document existed, and the honest treatment of them is the same as the honest treatment of the plan, which is to leave it saying what it said. A plan’s citations are read by a person, who has the specification in front of them.

The suite asserts:

  1. Pairing. Every numbered heading carries a keyed anchor, and every anchor still has a heading beneath it. Both directions, because they catch different faults: a heading with no anchor is unaddressable, and an anchor left behind by a deleted section resolves to nothing. Reading only from the headings down misses the orphan, there being no heading left to start from.

  2. Keying. An anchor sits immediately above the heading whose number it names. One that has drifted onto the wrong heading still resolves, so resolution alone does not see it.

  3. Resolution. Every citation in the corpus names an anchor that exists.

  4. Form. Every citation carries its section sign, no run wraps across a line, and each end of a range is a citation of its own, per §3.2.

  5. Plain text. No {ref} or :ref: role names a section, per §3.4, which retires the agreement between a role’s display text and its target that this item held while roles remained.

  6. Triggers. Each observable roadmap condition of §4.

  7. Status. Every roadmap Status cell and every open item opens with a word from the vocabulary of §3.6, and every terminal status carries an ISO date and at least one reference: an {issue} or {pull} role, or a link to an issue or pull request in another repository. This is the one rule a specification breaks by not editing it: a row goes stale by the work landing elsewhere, so the check has to read the column rather than the diff. Whether the reference is real is not this suite’s question, since answering it means asking GitHub; §3.6 says what answers it.

  8. Family. The Lineage and Children lines of §3.7 agree across the collection: a lineage extends its parent’s by one step, and a specification’s children are exactly those whose lineage names it as parent, in order of prefix. The index’s namespace table lists the families in that order, each row at the depth its lineage gives it.

  9. Ledger. A specification in the ledger numbers its decisions state first, each with its provenance, and ends with a Verification table of one row per decision (ledger spec §3.6). A verified row’s test exists and cites its decision, a retirement agrees in both sections and names a replacement in force, and a roadmap with no row left to deliver leaves no decision pending. A specification not yet in the ledger is listed, with the row that brings it in, until that row lands.

  10. Open Items. Each item of an Open Items section opens with a state and carries the parts that state needs, in order (items spec §3.7). An open or deferred item’s 🎯 names a row of its own roadmap that has not landed, a deferred item carries one or two ⬅️ and an open one none, and a graduated item names a row that cites its issue. No two items cite the same issue, and every citation of an item or a row names one that exists. A specification not yet brought in is listed, with the row that brings it in, until that row lands.

It also holds the publication of §3.1 in place: no specification carries orphan: true, the index’s toctree lists every specification, and its namespace table names every declared prefix.

Code is skipped, both fenced and inline. That is not a refinement, it is what lets a specification quote its own rules: §3.3 above illustrates the anchor rule with a literal (docs-spec-3-2)= and its heading inside a fence, and §3.4 shows a deliberately mismatched {ref} role inline. A checker reading either finds a duplicate anchor, a heading in the wrong place and a disagreeing role, and fails on the passages documenting the rules it enforces. Skipping a fence means matching the opening rail rather than counting delimiters, since a block opened with four backticks may quote a three-backtick one.

The suite also asserts it is not vacuous. A corpus that finds no specifications, or no citations, passes every rule above by never having looked, and that is the failure a gate derived from a glob fails by.

What this cannot catch. A citation that is well formed and resolves, and names the wrong section, is indistinguishable from a correct one. These checks are syntactic. What narrows that class is the rule in §3.2 giving the unqualified form a local meaning, together with review, and nothing here should be read as claiming otherwise.

3.6 Status, Dates and the Work That Closed It#

Extended by a child specification. 2026-10-30-decision-ledger-design.md, ledger spec §…, gives a decision the states 🤝 Agreed and 🗄️ Retired, and its verification ⏳ pending, ✅ verified, ✍️ signed off and 🗄️ retired, stated in ledger spec §3.2, §3.3, §3.4 and not repeated here.

Extended by a child specification. 2026-11-02-open-items-design.md, items spec §…, gives an open item the states ❓ Open, ⏭️ Deferred, 🏁 Resolved, 🚫 Abandoned and 🎓 Graduated, and the parts of its provenance, stated in items spec §3.2 and §3.3. It retires this section’s allowance for an Open item with nothing beside it.

A roadmap row that says landed records that something happened and throws away which thing. The change is in the history somewhere, with a number, a date, an argument in its description and a review thread under it, and none of that is reachable from the row that caused it. The same is true of an open item that quietly stops being open: the next reader cannot tell a decision that was taken from one that was dropped.

So a status is three parts, in this order: the state, when it reached that state, and the work that put it there.

| 1 | The hook, the ratchet and its test | ✅ landed (2026-10-06, {pull}`2565`) |
- **Resolved** (2026-10-06, {pull}`2565`) — **The ratchet needs twenty-three entries.**
  Measured against `main` rather than inferred: `examples/` still reports 28 errors…

The vocabulary is closed, so that a reader scanning a column is reading a known set rather than inferring one from English:

Status

Where

Carries

💡 candidate

roadmap row

the trigger that would promote it

📋 not started

roadmap row

the issue tracking it, if one is raised

🚧 in progress

roadmap row

the pull request, open

✅ landed

roadmap row

the date, and every pull request that did it

Open

open item

the issue, if one is raised; otherwise the row that owns it

Resolved

open item

the date, and the pull request or issue that settled it

Deferred

open item

the horizon it is deferred to, and the issue holding it

Abandoned

open item

the date, and where the reasoning was recorded

Each roadmap state carries its emoji, as ledger spec §2 decision 16 agreed, so a bare not started is refused with the form it should take. The states of an open item carry theirs too, in the grammar of items spec §3.2.

A terminal status — landed, Resolved, Abandoned — always carries a date and a reference. The two non-terminal ones may carry neither: Open with nothing beside it is a true statement about work nobody has started, and the convention is not improved by forcing an issue into existence to satisfy a column.

.github/scripts/check_status_references.py asks GitHub whether each reference is the work it claims, reading statuses with the unit suite’s own parser so that a status has one definition. A role names the kind of work it says, {pull} a pull request and {issue} an issue. A landed row cites only pull requests, every one merged, and its date is within a day of the last of them to merge, the day allowing for an evening merge against GitHub’s UTC. A Resolved item may cite an issue that is still open, since raising it can be what settled the item, and its date is when the decision was taken, which can come before the merge that records it. On a pull request, a status may cite that pull request while it is still open. Each night the script also reports drift: an in progress row whose pull request has merged or closed, or a not started row, Open item or Deferred item whose issue has closed. The ci-spec-status workflow runs both, and pixi run -e test check-spec-status runs either locally, with a pull request number to check as that pull request, or with drift for the nightly check.

Dates are ISO, and they are the date the state changed rather than the date the line was written. A date of the right shape that no calendar holds, such as 2026-02-30, is a fault. Several references are listed in the order the work happened, so a row whose first attempt needed a follow-up says so instead of naming only the one that finished.

What this buys is not bookkeeping. A reader who asks why the ratchet has twenty-three entries and not the twenty-two typing spec §3.2 predicted gets from the row to #2565 to the measurement that corrected it, without anybody having transcribed the measurement into the specification. The specification stays the design; the references carry the evidence.

3.7 Families and Lineage#

A specification that extends another is its child, and the two belong to one family. The globe-first CRS design is extended by the globe, heights and layers design, which two more extend in turn, so a reader working in any one of them moves between four documents. In an alphabetical index the root sat apart from the other three, and nothing in the table said that the four were related. The family is recorded in each banner and in the index, and both are written by hand.

Every banner carries two lines for it. The Lineage line links each ancestor, root first, separated by ›, and ends with the specification’s own prefix in bold. A root’s lineage is itself alone, as in **crs spec**, and a child’s extends its parent’s by one step, as in [crs spec](…) › [globe spec](…) › **scene spec**. The Children line links each specification that directly extends this one, separated by commas and in the order of their prefixes, or reads none. A grandchild is reached through its parent and is not listed. A child adds an Extends line beneath the two, naming the sections of its parent that it extends and what it inherits unchanged. These three lines replaced the single Parent spec line, which named the parent but none of the generations around it.

The namespace table of §3.2 lists the roots in order of prefix, each child directly under its parent, and siblings in order of prefix. A child’s citation opens with └─, and each generation below the first puts an |indent| in front of that. The index defines |indent| as three non-breaking spaces, since a table cell drops leading spaces, and that width sets each branch under the prefix of the row above. The toctree, and the sidebar built from it, stays in date order.

A specification is titled for its topic, as in Globe on the Scene Specification, without the project’s name or the word design. This document is the exception, as Publication and Conventions for Specifications, because its topic is the collection.

So a new specification makes four edits besides its own text: its Lineage, Children and, as a child, Extends lines; its parent’s Children line; its row in the table; and its toctree entry. Item 8 of §3.5 checks the first three against each other, so a family drawn wrongly in any one of them fails the suite.

3.8 Status in the Index#

A roadmap says what has landed, row by row, but a reader looking across the collection for work still to do had to open each specification, or remember which ones had some. The namespace table of §3.2 carries a third column, Status, which sums each specification’s roadmap into one cell:

Cell

When

📋 not started

no row has landed or begun

🚧 N of M rows

a row has landed or begun, and another has not landed

✅ complete

every row has landed

The count sets the rows that have landed against every row that is not a 💡 candidate, so a row in progress has not landed yet, and a roadmap whose only row is in progress reads 🚧 0 of 1 row. A candidate waits on a trigger (§4), so nobody can take it up yet, and it neither holds a specification back from complete nor counts as work to do. While any candidate remains, the cell names how many after the status, as in ✅ complete · 💡 1 or 🚧 2 of 6 rows · 💡 4. A specification whose every row is a candidate reads 💡 N, and one without a roadmap reads —.

Open items stay out of the cell. Each is owed by a row that has not landed (items spec §3.4), so a specification with an open item already shows that row as outstanding, and its own page lists the items.

The build writes the column, so a new specification makes no edit for it (§3.7), and a row that lands moves the index with it. The other two columns stay hand-written. An extension reads the roadmap of the document each row links, with the parser the conventions test reads roadmaps with. That test holds each status to its own count of the roadmap, and a build test holds the column (§6).

4. Roadmap#

Extended by a child specification. Rows 2 to 4 are designed and built by 2026-10-26-citation-links-design.md, citation spec §…, which also adds a guard against renumbering a section without updating its citations. Row 3 is the conventions test of row 1, already in place, so it is marked landed with it.

#

Scope

Status

1

Publication, the § form, and tests/test_spec_conventions.py

✅ landed (2026-10-07, #2573)

2

Citation cross-reference transform

✅ landed (2026-10-27, #2738)

3

Citation integrity hook

✅ landed (2026-10-07, #2573)

4

Rendered-output gate

✅ landed (2026-10-27, #2738)

5

GitHub reference roles and hardcoded-link detection

💡 candidate

6

Families: the Lineage and Children banner lines, the index grouped by family, and titles by topic

✅ landed (2026-10-30, #2778)

7

Status in the index: the Status column of the namespace table, which the build writes from each roadmap (§3.8)

✅ landed (2026-11-09, #2917)

candidate and not started are different states, which is why §3.6 separates them. A not started row is wanted and unscheduled. A candidate row is described, and whether it is wanted is the question the triggers below answer.

Change 1 created docs/src/developer/specs/index.rst, added developer/plans/** to exclude_patterns and to the reading-time gate’s EXCLUDED_DIRS, gave docs/src/developer/index.rst a card and a toctree entry, removed orphan: true from both specifications, added the section sign to the seven existing citations, and landed the test of §3.5. Two of this document’s rules changed on the way, and §8 records both.

Change 6 replaced the Parent spec line of every banner with the family lines of §3.7, grouped the index’s table by family, retitled every specification for its topic, and added item 8 of §3.5 to hold the families together.

Rows 2 to 5 are candidates rather than scheduled work. When this specification was written geovista had seven citations in one namespace, against tephpy’s 1,096 across nineteen, and the machinery those rows describe is roughly 2,075 lines (§9). Building it now would be engineering ahead of the need. Each row therefore names the condition that ends that objection, and change 1 asserts every condition that can be observed:

  • Rows 2 to 4 activate together, when the corpus outgrows review. What the transform of row 2 buys is a link for every plain-text citation and the retirement of the hand-written roles, and both grow with the number of citations. Row 3 shares its grammar, tephpy keeping one definition of a citation because two would disagree silently in both directions, and row 4 checks its output. Asserted: the test fails when the citations outside the specification collection, hand-written roles included, exceed seventy, ten times the seven there were when this was written. The first ceiling was thirty-five, meant as the point at which reading them all stops being something anyone does. Change 5 of the type coverage roadmap passed it, and the ceiling was doubled rather than the rows built (item 2 of §8). The globe-first CRS work brought the count to 68 on 2026-10-26, and @bjlittle chose to build the rows instead of raising it again. The citation links design built them, and the ceiling retired with row 2 there.

  • Row 4 carries a pairing of its own. The input gate cannot tell whether the transform ran at all, and the output gate cannot tell a right target from a wrong one. Asserted: the test fails when a transform extension is registered in conf.py and the output gate is not wired into a task, which is the pairing rather than either half.

  • Row 5 has no observable trigger and is revisited by hand. Whether a # is a reference or a comment character is a judgement, and see # 65 and x = 1  # 3 files put the same characters in the same places. A threshold over a token that ambiguous would fire on noise, and one tuned not to would fire on nothing. If this row is still open when it should not be, that is because someone did not re-read this table.

5. Alternatives Considered#

  • Hand-writing a cross-reference role for every citation, rather than deriving the target at build time. Rejected for §3.4’s reason: it manufactures one fresh opportunity per citation for a reference that displays correctly and opens the wrong section, which no gate can see. It is tolerated for the existing roles only because an assertion closes it and the transform retires it.

  • Publishing the plans alongside the specifications. Simpler, one fewer rule. Rejected because a plan is not updated after implementation, so a published plan is a page on Read the Docs that is wrong by design and gives a reader no way to tell it from a page that is not.

  • Tracking the inherited infrastructure in an issue instead of a roadmap. Rejected because an issue is unpublished, nothing holds it to being current, and the inventory belongs beside the conventions it would extend. #2566 tracks the work; this document holds the design.

  • Building rows 2 to 5 now, with change 1. One change, nothing deferred, and the conventions arrive with the machinery that enforces them. Rejected as roughly 2,075 lines of extension, gates and tests serving seven citations in one namespace, where the namespace is the thing that gives most of it something to do.

  • Recording the candidate rows without triggers, to be revisited. The cheapest option and the status quo elsewhere in this repository. Rejected on the evidence of the sentence it would repeat: the type coverage specification says its orphan: true marker holds “until the specs tree gains an index” and that the marker “comes off with the same change”. Nothing was watching, nothing came off, and it took a direct question to notice.

6. Testing#

tests/test_spec_conventions.py holds §3.1 to §3.8, and the roadmap triggers of §4.

It sits in tests/ rather than tests/docs/ because it reads source files and needs no built artefact, which puts it beside tests/test_ci_typing.py. That is the right neighbourhood: both exist to stop a convention decaying quietly. tests/docs guards the rendered output and skips without a browser; a gate that can skip is a gate that can pass by not running.

A trigger assertion fails with a message naming its roadmap rows and what firing means, so the person whose change carries the count past the ceiling is told which decision they have just made rather than which number no longer matches.

.github/scripts/check_status_references.py does the one check this suite cannot, resolving each status reference against GitHub as §3.6 describes. It is a script rather than a test, so a network outage fails a workflow and not the suite. tests/test_status_references.py runs its rules against a fixed record of the work, and asserts that the parser it borrows still finds the references in the real specifications.

tests/docs/test_geovista_status.py holds the Status column of §3.8, in a small build and on the real index, and tests/test_spec_conventions.py holds each specification’s status to its own count of the roadmap.

7. Scope#

In scope: where specifications and plans live, how a reader reaches them, how a section is addressed, how a citation is written, what a roadmap row commits to, how a specification records its family and is titled, and what the index shows of its roadmap.

Out of scope: what any individual specification says; the structure of the developer guide beyond one card and one toctree entry; the Diátaxis quadrants, which are for users where specification content is contributor material; and docs/AGENTS.md, which covers authoring and building the documentation rather than this one collection inside it.

8. Open Items#

Each carries the grammar of §3.6, so a reader can tell a decision that was taken from one that was dropped.

  1. 🏁 Resolved (2026-10-27, #2745 · 🔎 2026-10-07, #2567) — The {ref} agreement assertion assumed the display text is the section number. A role displaying a section’s title instead would have failed the check while being correct. The question went with the roles: row 4 of the citation links design wrote every citation of a section in plain text, and the assertion retired, replaced by the rule that no role names a section.

  2. 🏁 Resolved (2026-10-26, #2738 · 🔎 2026-10-07, #2567) — The threshold of seventy citations is a judgement, not a measurement. It was first thirty-five, five times the seven citations there were when it was set, chosen to fire before review stops being credible rather than at the point it does. This item once waited on a second namespace to measure against; docs spec became that namespace with change 1, which brought the count to fifteen, still too few to measure a better number from. Change 5 of the type coverage roadmap (#2619) took the count from 29 to 37 on 2026-10-11, eight citations in code comments and test docstrings that point a reader at the rule behind a line. @bjlittle chose to double the threshold rather than build rows 2 to 4, leaving room for the roadmap’s last two changes, which cite the same way. On 2026-10-26, at 68, @bjlittle chose to build the rows instead, and the threshold retired with them, so no better number is wanted.

  3. 🏁 Resolved (2026-10-09, #2609 · 🔎 2026-10-07, #2567) — Nothing proved the references in a status line point at real work. §3.5’s seventh assertion checks that a terminal status carries a date and a reference, not that the work it names exists or did what the status says. Raised as #2575, this is now checked against GitHub on each pull request that touches a specification, and nightly for drift, as §3.6 describes, which keeps the network out of the unit suite. Row 5 of §4 no longer owns reference checking. It keeps the form of a reference, which is all that tephpy’s check_github_references.py checks.

  4. 🏁 Resolved (2026-10-07, #2573 · 🔎 2026-10-07, #2573) — The status rule accepted only this repository’s roles. The seventh assertion of §3.5 asked a terminal status for an {issue} or {pull} role, and the type coverage specification resolves one of its open items against an issue in lazy-loader, which neither role can name. A link to an issue or pull request in another repository now counts as the reference, so a decision settled elsewhere is cited where it was settled.

  5. 🏁 Resolved (2026-10-07, #2573 · 🔎 2026-10-07, #2573) — Row 2’s trigger fired on its own document. It counted citation prefixes and failed past one, and this specification declares the second, docs spec, cited from the type coverage specification and from the files change 1 touches. The count also measured the wrong thing. A wrong prefix is the one mistake the transform cannot catch, since both anchors exist and either resolves, while what row 2 buys grows with the number of citations. Rows 2 to 4 now share the scale trigger of §4, decided while planning change 1.

9. References#

  • #2566 — the tracking issue.

  • bjlittle/tephpy — where these conventions come from. Its own governing document is docs/src/developer/specs/2026-08-03-published-specs-design.md, cited there as docs spec §…. Surveyed on 2026-10-06 at ee80574:

    Piece

    Lines

    docs/src/_ext/tephpy_citations.py — the shared citation grammar

    537

    docs/src/_ext/tephpy_citation_xrefs.py — the build-time transform

    428

    .github/scripts/check_citations.py — the integrity hook

    478

    .github/scripts/check_github_references.py — issue and pull request roles

    322

    .github/scripts/check_rendered_citations.py — the rendered-output gate

    310

    total

    2,075

    serving 1,096 citations outside docs/ across nineteen namespaces (5,063 counting the documentation itself, across twenty specifications), with four test suites (test_citation_grammar.py, test_citations.py, test_citation_xrefs.py, test_rendered_citations.py). It arrived over four plans rather than one change.

  • typing spec §1 — the document whose citations this governs, and whose unwatched orphan: true note is the argument for §4’s assertion rule.

  • tests/docs/test_readingtime_coverage.py — the derived-corpus pattern §3.5 follows, including an exemption tuple whose entries each carry the reason beside them.

10. Verification#

Each row follows ledger spec §3.4.

Decision

Status

Evidence

§2 decision 1

✅ verified (2026-10-31, #2786)

tests/test_spec_conventions.py, tests/docs/test_readingtime_coverage.py

§2 decision 2

✅ verified (2026-10-31, #2786)

tests/docs/test_readingtime_coverage.py

§2 decision 3

✅ verified (2026-10-31, #2786)

tests/test_spec_conventions.py

§2 decision 4

✅ verified (2026-10-31, #2786)

tests/test_spec_conventions.py

§2 decision 5

✅ verified (2026-10-31, #2786)

tests/docs/test_geovista_citations.py

§2 decision 6

✍️ signed off (2026-10-31, @bjlittle, #2786)

Checked in review that each candidate row of §4 names a trigger the conventions test asserts, or says that it is revisited by hand.

§2 decision 7

✅ verified (2026-10-31, #2786)

tests/test_spec_conventions.py, tests/test_status_references.py

§2 decision 8

✅ verified (2026-11-09, #2917)

tests/docs/test_geovista_citations.py, tests/docs/test_geovista_status.py, tests/test_spec_conventions.py

✅ 7 · ✍️ 1 · ⏳ 0 · 🗄️ 0: 8 of 8 decisions in force verified