Skip to content
ExplanationUnreviewed

0007: Three-layer documentation and human reviewed gate

Recorded 2026-11-23. WavWonder separates company documentation (docs/), task instructions (.agents/skills/ and AGENTS.md), and local code comments, enforces Diátaxis types plus Vale and lint:docs checks, and uses a two-state reviewed gate controlled by human reviewers.

Context

When agent task checklists, code implementation internals, unreviewed drafts, and verified specs live together in the same prose files without clear lifecycle badges, both human teammates and coding agents struggle to separate verified company facts from transient workarounds.

Decision

  1. Keep durable specs, decisions, plans, research logs, glossaries, and human workflows in docs/ (infra/docs-site/), keep agent workflows and failure-mode rules in AGENTS.md and .agents/skills/, and keep code mechanics beside source files.
  2. Classify every docs/ page by Diátaxis docType (tutorial, how-to, reference, explanation, plan) and optional status (draft, planned, deprecated), verified via bun run lint:docs (remark and Vale) plus bun run build and nimbus-docs check.
  3. Default agent-created or agent-edited pages to unreviewed (omitting reviewed), removing reviewed: true whenever an agent modifies a previously reviewed page so human review stays explicit.

Consequences and revisit conditions

  • Agent-authored drafts display Unreviewed badges clearly in site builds while verified baselines keep reviewed: true.
  • Revisit top-level folder splits or build rules when functional domains expand beyond engineering/, products/, and research/.

Type to search…

↑↓ navigate↵ selectEsc close