Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 4.23 KB

specs-organization.md

File metadata and controls

62 lines (44 loc) · 4.23 KB
type ProcessSpec
summary Explains how docs/specs/ is organized, including nested spec-family directories and ontology classification rules.
id SPEC-0005
spec-status active
last-updated 2026-05-02
aliases
SPEC-0005

Specs organization

Summary

This repo's docs/specs/ tree is an enforced taxonomy, not a suggestion. Each spec-family root maps to an ontology type declared in .rhizome/ontology/schema.graphql, and the schema's @node(paths: [...]) directives make the mapping load-bearing. Subdirectories are allowed under each family root for organization, but classification is not based on filename precision alone: explicit type: frontmatter or required identifier presence determines whether a note is actually a spec.

Goals

  • give authors a single rule for where a new spec goes
  • keep the ontology and the filesystem in lock-step without forcing every sibling note under a spec directory to become a spec
  • make alignment-audit findings actionable by folder

Non-Goals

  • documenting the full schema; see .rhizome/ontology/schema.graphql
  • documenting every reference-note convention; see docs/reference/README.md

Folder → type mapping

Folder Ontology type What belongs there
docs/specs/product/** ProductSpec User-visible behavior, scope, product intent
docs/specs/technical/** TechnicalSpec Engineering contracts, architecture boundaries
docs/specs/process/** ProcessSpec How work flows: development loop, audits, skills
docs/specs/experience/** ExperienceSpec Interaction design, flows, content behavior
docs/specs/operations/** OperationsSpec Deployment, support, migration, operational readiness

Each type uses a nested @node(paths: ["docs/specs/<folder>/**/*.md"]) directive, so specs can be organized by area, for example docs/specs/technical/search/SPEC-0042-foo.md. For important top-level families with a required @identifier field, path is only the discovery default: an undeclared note under the path must also present the required identifier field before Rhizome classifies it as that type. A ProductSpec placed under docs/specs/technical/ still fails validation rather than silently mistyping, because explicit type: must agree with selectors.

Freeform sibling notes are allowed under spec directories when they are not intended to be typed specs. A plan.md or notes.md file with no type: and no required id: stays untyped instead of inheriting the parent directory's spec type.

Requirements

Must

  • New specs pick the folder whose type matches the intent. If no type fits, propose a schema change before filing the note.
  • Spec frontmatter includes type, summary, id, spec-status, and last-updated. last-updated is the sole versioning marker; bump it on substantive edits and treat it as the read-time freshness signal that downstream skills (alignment-audit, frozen-scope-drift) consume.
  • Specs may live in subdirectories under their family root. Do not rely on filenames such as SPEC-*.md for classification; required identifier presence is the gate for undeclared notes in identifier-backed families.
  • Top-level spec ids use the SPEC-XXXX format defined in id-allocation.md.
  • Specs that participate in delivery work usually include a User Stories section with required authored, block-safe story id lines. Write id:: with a leading caret before the story id, such as SPEC-XXXX-US1.
  • Specs can link to docs/feature-areas/** notes through feature-areas: frontmatter. Use feature areas to group specs by product/system surface without turning folder layout into ownership metadata.
  • TechnicalSpec may omit User Stories when requirements-only structure is a better fit for the subsystem contract.
  • alignment-audit with audit_type: documentation catches folder/type mismatches via rzm agent validate --check ontology.

Should

  • Use folder README.md files as plain navigation docs explaining reading order for that folder.
  • Keep scratch planning and working notes visibly freeform unless they should become specs or effort content.

Open Questions

  • none currently; use docs/specs/technical/ for normative technical targets and docs/reference/ for descriptive supporting architecture material