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

# Writing conventions for kb/types/

## Purpose and quality goal

This collection is Commonplace's global type surface. Its type specs are system-definition contracts used across collections: they describe artifact shape, declare schemas, and supply authoring and review instructions for each global type. `README.md` is the collection's curated reader landing; `text.md` documents the implicit no-frontmatter case.

Quality goal is **self-contained checkability + economy**. A type spec must tell authors, readers, validators, and type-conformance reviewers what an instance asserts without requiring collection-specific reinterpretation. Keep global contracts small enough to load wherever the type is used; collection-specific structure belongs in a collection-local type instead.

`kb/types/` remains the global type layer. Making it a collection supplies the authoring and outbound-link contract required of artifacts authored here; it does not make type semantics collection-relative. Collection discovery includes it like any other collection. A `types/` directory inside another collection belongs to that collection and is not a collection of its own.

## Title and body conventions

- Keep `README.md` as a concise, curated route into the global contracts; it is not an exhaustive cross-collection inventory. General usage and discovery belong in `kb/reference/collections-and-types.md`.
- Name a type spec after the type it defines, except when that name would occupy a reserved directory landing path such as `index.md`.
- Follow the `type-spec` contract in [`type-spec.md`](./type-spec.md); its schema and body own structural and semantic type requirements.
- Do not place collection-local types here. Put them under `kb/<collection>/types/`; the collection contract states where its types come from, not which ones exist (ADR 068).

## Outbound links

Author each outbound link from the reader need at its source. Inline links may supply definitions or shipped-system context; footer links carry an authorized label and context phrase.

- **→ `kb/theory/`** — search when a theoretical claim explains why a global type contract has its shape, or when a defined term is needed to interpret it. Labels: `rests-on`, `defined-in`, `see-also`.
- **→ `kb/reference/`** — search when an accepted decision or shipped subsystem determines how a global type contract operates. Labels: `depends-on`, `evidenced-by`, `see-also`.

Do not link to external sources or into `kb/work/`, `kb/sources/`, `kb/agent-memory-systems/`, or `kb/agentic-systems/` from global type specs. Put supporting evidence or unfinished design work in the appropriate collection and link to the promoted result.

## Types

Every Markdown artifact in this collection other than `COLLECTION.md`, `README.md`, and `text.md` is a type spec and carries `type: types/type-spec.md`. The root [`type-spec.md`](./type-spec.md) is self-referential. `COLLECTION.md` governs local authoring and routing, `README.md` is curated navigation, `text.md` documents the implicit no-frontmatter artifact type, and schema files are symbolic sidecars rather than Markdown artifacts.

## What does not belong here

- Collection-local type contracts → that collection's `types/` directory
- Shipped architecture and decisions → `kb/reference/`
- Transferable theory → `kb/theory/`
- Procedures not defining a type's content contract → `kb/instructions/`
- Work in progress → `kb/work/`
