Skip to content

Domain documentation strategy (DocType reference)

The site includes 200+ generated pages under DocType reference. Many follow the same structure: overview, source paths, placeholder narrative, field table. Filling every page to hundreds of lines of English analysis is not maintainable without prioritization.

This page defines the agreed strategy (see ADR-004) for:

  1. Generated pages — keep accurate field tables and links to source.
  2. Overlays — curated notes in docs/doctype-overlays/overlays.json (or equivalent) consumed by the generator.
  3. Domain deep dives — one narrative per business domain (e.g. incorporation, finance AR, payroll) under Modules or ER diagrams by domain, linking clusters of DocTypes.
TierAudienceContentTypical length
D1 — Critical pathEngineers changing billing, payroll, complianceLifecycle, invariants, integration touchpoints, failure modes300–800 lines English, split across linked pages if needed
D2 — Standard customFeature teamsPurpose, key links, 1–2 sequence diagrams80–200 lines per DocType or small group
D3 — Lookup / child tablesImplementersField table + parent DocType linkShort generated page + domain link

Use your backlog to refine; common high-impact areas in this codebase include:

  1. Identify a user journey or support incident → map to DocType cluster.
  2. Add or extend a domain page (English) with sequence diagrams and “what breaks if…”.
  3. Add overlays for fields that confuse users or have hidden validation.
  4. Avoid copying the same paragraph into 50 child DocTypes — link upward to the domain page.

Org-standard matrix (strategy vs automation)

Section titled “Org-standard matrix (strategy vs automation)”
TopicCurrent stateDirection
Critical DocTypesLong English narrative selectiveFinance AR, incorporation, Xero, payroll first
Overlaysdocs/doctype-overlays/overlays.jsonExpand keys gradually — role + hook one-liners
Category indexes (*/index.md in doctype-reference)Often thinNine data/domain-*.md deep dives exist — optional: enrich each category index.md with links to its domain page
Inventory CSVManual regenOptional PR check — Documentation inventory
Sidebarastro.config.mjsSee Feature inventory by category checklist