---
description: Definition of a COLLECTION.md-bearing subtree whose complete local text contract governs its artifacts; top-level collections also provide a README landing
type: types/definition.md
tags: []
---

# Collection

A **collection** in a Commonplace KB is a subtree under `kb/` whose root contains `COLLECTION.md`. That file is the collection's complete local text contract and governs every artifact in the subtree. It declares the [collection-contract](../../types/collection-contract.md) type.

## Text contract

A **text contract** is the binding local declaration in a collection's
`COLLECTION.md`. It states the collection's purpose and scope, intended
contribution, quality goal, title and description conventions, any attribution
or evidentiality requirements, maintenance semantics, outbound-link grammar,
and other text-level rules needed to author and review artifacts in that
subtree.

The containing path selects one `COLLECTION.md`; that file is authoritative for
the collection. Its clauses must be stated locally and completely enough for an
agent to act without inferring conventions from the directory name, a
collection prototype, or a different collection's contract. Different
collections may set different goals and conventions even when their artifacts
use the same type. Moving an artifact across collection boundaries therefore
changes its applicable text contract and requires a fit check.

A text contract is not an artifact type. A type contract owns frontmatter
semantics and structural requirements; the collection's text contract owns the
local authoring and review rules. Both apply independently to a typed artifact.
A text contract is also not a collection prototype, content kind, production
relation, trait, lifecycle status, or
[behavioral authority](../../theory/definitions/behavioral-authority.md)
classification. Those distinctions answer different questions and may vary
within one artifact or across its consumption paths.

A collection directly under `kb/` also has a `README.md` as its curated reader landing. The README routes readers but does not replace the binding `COLLECTION.md` contract. It must not coexist with a sibling `index.md`, because both render to the same directory URL and `index.md` shadows the README. `commonplace-validate landings` enforces this invariant for collection roots that are direct children of `kb/`; ordinary area directories still inherit their enclosing collection's contract and need no landing of their own.

Collections can also have local type specs. When present, they live in a `types/` subdirectory at the collection root. Type specs are structural authoring contracts: they define artifact shape through schema, frontmatter requirements, required sections, and written guidance for filling that shape. `COLLECTION.md` can guide authors to both global type specs, defined in the Commonplace library's `types/` directory and named by paths such as `types/note.md`, and local type specs in the collection's own `types/` directory, named by paths such as `reference/types/adr.md`; see [collections and types](../collections-and-types.md) for their use and resolution.

A descendant directory with no `COLLECTION.md` of its own is an area of the enclosing collection and inherits its contract, such as `kb/theory/definitions/`. An area carries no binding rules of its own: a rule about a kind of artifact lives in that kind's type spec, and a rule about what may live in the area lives in the collection's `COLLECTION.md` ([ADR 084](../adr/084-kind-rules-live-in-type-specs-and-operations-in-instructions.md)). A `COLLECTION.md` below a directory that is not itself a collection is an ordinary collection rather than a nested collection; a `COLLECTION.md` inside another collection is invalid.

Tools may also treat collections as operational units, but those roles vary by tool and remain secondary to the local authoring contract.

The current top-level source-repo collections are `kb/agent-memory-systems/`, `kb/agentic-systems/`, `kb/articles/`, `kb/instructions/`, `kb/theory/`, `kb/reference/`, `kb/reports/`, `kb/workflow-state/`, `kb/sources/`, `kb/types/`, and `kb/work/`. `kb/types/` is both the global type layer and a collection: its `COLLECTION.md` governs authoring and outbound links, while its type specs and schemas govern artifact structure and semantics. The installed package ships `kb/types/`, together with the Theory, Reference, and Instructions collections, as the library that installed projects read in place. An installed project holds only its own collections, such as `kb/notes/` and its reports collection at `kb/reports/` beside its local types.

## Exclusions

These are not exceptions to the definition; they are common near-misses that do not have their own `COLLECTION.md`.

- `kb/work/<workshop>/` directories are areas inside the `kb/work/` collection, governed by `kb/work/COLLECTION.md`.

## Misuse Cases

- Inferring a collection's conventions from its directory name instead of
  reading its `COLLECTION.md`.
- Treating one collection's quality goal or title convention as a framework
  universal.
- Letting a collection redefine frontmatter semantics owned by an artifact's
  type contract.
- Assuming collection placement determines an artifact's truth, lineage, or
  behavioral force.

---

Relevant Notes:

- [Collections and types](../collections-and-types.md) — extends: describes path-valued type resolution and how collection-local type specs remain separate from collection authoring contracts
- [Directory placement is total, frontmatter classification is partial](../../theory/directory-placement-is-total-frontmatter-classification-is-partial.md) — rests-on: explains why path placement selects one complete local contract
- [Artifact classification separates content kind, lineage, and authority](../../theory/artifact-classification-separates-content-kind-lineage-and-authority.md) — see-also: separates the text contract's whole-artifact authoring role from region- and path-level classifications
- [a functioning KB needs a workshop layer not just a library](../../theory/a-functioning-kb-needs-a-workshop-layer-not-just-a-library.md) — contrasts: library collections vs workshop directories
- [why directories despite their costs](../../theory/why-directories-despite-their-costs.md) — rests-on: the general argument for directory-based organisation that collections make load-bearing
