---
type: types/collection-contract.md
---

# Writing conventions for kb/reference/

## Text contract and fidelity

This collection holds the **choices** Commonplace made and faithfully describes
the **current or historical state** they produced — architecture, type system,
operator surface, and decision history. Content belongs here when its intended
contribution is the selected value, adopted contract, implemented interface,
exposed behavior, or prior system state rather than a substantive claim about
the design space that remains after each named choice is recoverably scoped for
its intended consumers. Aim at faithful representation of the system as built,
not transferable theory.

A reference artifact may contain supporting belief propositions without becoming a note. What decides placement is the artifact's intended contribution, stated by its title, description, and opening.

Quality goal is **fidelity + economy** — say what the system actually does in minimum tokens, without omitting load-bearing details. An agent loading these docs is usually trying to act; every extra token competes with the task.

**For exact implementation facts, live implementation is the default read path.** In the Commonplace source checkout, inspect `src/commonplace/`. In an installed project, `commonplace-source` prints the source directory of the same installed package that supplies the `commonplace-*` commands; use a command's `--help` for its live CLI contract. Reference prose earns a separate place when it supplies orientation, architecture boundaries, cross-component invariants, rationale, or other information the implementation does not cheaply recover. Do not create a prose copy merely to make installed code inspectable.

**For change history, git is the default read path.** What changed, when, in
what order, and the transition performed belong to commits, not to this
collection ([ADR 074](./adr/074-git-is-the-change-history-layer.md)). A
reference passage earns its place by naming the operation of changing the
system that must read it before acting — adding a collection, altering a type,
revising a contract, retiring an artifact — and by supplying something that
operation cannot cheaply recover from the implementation or from `git log`.
Git holds only what a source-checkout operator needs; anything a reader,
installed project, or shallow clone must know stays in tracked artifacts.

This Commonplace default rests on [a seven-artifact disposition
sweep](../theory/evidence/seven-documentation-cases-left-routing-and-synthesis.md),
which bounds the result to a source-readable Python CLI repository.

Tests for economy. The first two ask whether a passage should exist at all,
given that the system it describes is available for inspection:

- **Does another artifact already record this?** Search before writing: the ADR
  set, the collection contracts, the type specs, and the code. A weaker
  restatement is worse than no copy, because a reader who finds it stops before
  reaching the fuller statement. Keep the stronger home and link to it.
- **Would reading this close the reader's question, or would they read the
  source anyway?** A passage that leaves an accuracy-requiring question
  unanswered is not a cheaper path to the answer — it is cost added ahead of the
  full path. Approximation is enough for orientation ("which module owns this"),
  not for exactness ("what does this function return"). Compare the smallest
  units a reader must select, not whole artifacts: a symbol is a search key, a
  prose section is not.
- **Is this a premise of a change operation, or something the reader
  regenerates from what is already there?** Three sources are already there:
  the implementation, for exact facts; git, for what changed, when, and in
  what order — a migration step, a before-state described as a diff, or a
  list of files touched is history and is cut here; and the reader's own
  general knowledge, for ordinary reasoning. What none of the three yields —
  an intent, the choice among alternatives, a project-particular constraint,
  a limit of applicability — is what a passage may keep
  ([content routing](./content-routing.md)).
- Could this section be cut without losing information the reader needs to act?
- Would a table or list say this more compactly than prose?

**Where a passage warns a future changer** — a rejected refactor, a
non-obvious constraint, a reason a boundary sits where it does — prefer the site
it constrains over this collection: a test if the rule is enforceable, otherwise
a comment or docstring at the code. A warning found only by someone who thought
to read a reference document is a warning most changers will miss.

**Fidelity constraint.** Describe the system as built, even when the implementation deviates from the theory that inspired it. If the system does X but the theory says Y, describe X and note the deviation — the `rests-on` link may carry the qualifier.

**Proposal exception.** Design proposals — finished but unadopted designs, which describe a design object rather than shipped behavior — live only under `proposals/`, and every artifact there carries the collection-local [`design-proposal`](./types/design-proposal.md) type. Every file directly under `proposals/` is a live, undecided design. Adopted and retired proposals live only under `proposals/archive/`, and no artifact outside it links into it except files under `kb/work/` ([ADR 056](./adr/056-adopted-and-retired-proposals-archive-out-of-the-frontier.md)). What a proposal must be, and the procedure for each lifecycle transition, is stated by its type ([ADR 084](./adr/084-kind-rules-live-in-type-specs-and-operations-in-instructions.md)).

**Case studies.** Use `case-studies/` for a finished explanation that answers a question about Commonplace and depends on its particular mechanisms or evidence. State the explanation in the terms the reader needs; no general theory claim is required. If another use later supports a transferable claim, write that claim in `kb/theory/` and keep the case while readers still need it. A binding rule belongs where its consumer reads it; an unfinished investigation belongs in `kb/work/`.

## Title and description conventions

**Topical titles by default.** Answer "what is this about?" — "Collections and types", "Storage architecture". A link like `see [collections and types](./collections-and-types.md) for how types are resolved` reads naturally.

Exceptions: ADRs use numbered-decision format (`012-types-for-structure-traits-for-review.md`); definitions use the term as title.

**Description** (frontmatter) should name the specific system aspect covered — "how Commonplace resolves a note's type contract at authoring and validation time" beats "type loading in Commonplace".

## Outbound links

Author each outbound link from the reader need at its source. A reciprocal link is allowed when the reverse direction independently helps readers; never add one merely to mirror an existing edge. Find inbound links on demand with repository search; no backlink view is currently generated. Inline for strongest commitment, with a connective word that fits the argument (e.g. `implements [title](path)`, `rests on [title](path)`, `defined in [title](path)`). Footer for labelled — `- [title](path) — label: context phrase`.

Scan `kb/reference/`, `kb/theory/`, `kb/agent-memory-systems/`, `kb/agentic-systems/`, `kb/sources/`, `kb/instructions/`, and `kb/tags/` for link targets. Do not link into `kb/work/` (workshop layer — value is consumed, not imported). The `rests-on` edge to `kb/theory/` is the primary theory-ward edge; outbound edges to `kb/agent-memory-systems/`, `kb/agentic-systems/`, and `kb/sources/` are uncommon (use them when a design choice was informed by a specific external system or source).

**Labels:**

| label | destinations | reader-need |
|---|---|---|
| `part-of` / `contains` | reference | situate this in the larger system |
| `implements` / `implemented-by` | reference | concrete realization ↔ abstract contract |
| `supersedes` / `superseded-by` | reference (ADR chains) | current or prior version |
| `decided-by` | reference/adr | the decision record that fixed what this doc describes; read it before changing the described state |
| `compares-with` | reference | compare this artifact with a peer on a named design or contract axis |
| `rests-on` | theory | this design, description, or decision depends on this theoretical claim |
| `defined-in` | theory/definitions, reference/definitions | reader may not know the term |
| `derived-from` | sources, agent-memory-systems, agentic-systems | this design choice is worked out from this external source/system, adding nothing beyond it — see the lineage semantics in `link-vocabulary.md` |
| `abstracted-from` | sources, agent-memory-systems, agentic-systems | this design choice generalizes beyond this external source/system; the source is evidence, not a generator |
| `evidenced-by` | reference, reports/retained, sources, agent-memory-systems, agentic-systems, external | the target record, source, or system corroborates, qualifies, or bounds this description |
| `procedure` | instructions | for how to do this, see this instruction |
| `see-also` | reference, theory, agent-memory-systems, agentic-systems, sources, instructions, external | adjacent companion; use sparingly |

## Definition placement

Definitions constituted by a Commonplace selection, contract, or implemented
classification belong under `kb/reference/definitions/`. Transferable theory
vocabulary belongs under `kb/theory/definitions/`. The `definition` type does
not decide placement.

## What does NOT belong here

- Transferable claims about KB methodology → `kb/theory/`
- Bounded datasets, experiments, traces, or casebooks whose intended contribution states what they establish about the design space and the limit of that inference → `kb/theory/evidence/`
- Evidence whose bounded inference concerns only Commonplace's own choices or their measured effects, such as the evidence behind an ADR → `kb/reports/retained/`, as an evidence note beside its raw records
- Procedures and how-to guidance → `kb/instructions/`
- Descriptions of external systems, including memory and context engineering → [Agentic Systems](../agentic-systems/README.md) for authored reviews and comparisons; [agentic-system analyses](../agentic-system-analyses/README.md) for workflow analyses. The frozen memory survey is not a destination for new reviews.
- Work in progress → `kb/work/` (workshops)
- Report outputs and operational evidence → choose `kb/workflow-state/data/current/` for run records or `kb/reports/retained/` for citable reports
