16 — Documentation Standards

Status: Ratified Version: 1.0.0 Applies to: All documentation in the repo: Bible, project docs, API docs, tool docs, examples


1. Purpose

Documentation is a first-class deliverable. Code is not “done” until its documentation meets these standards. This document defines Markdown conventions, diagram formats, API documentation, and versioning for all HunterX docs.


2. Markdown Standards


3. Required Sections Per Document

Every Bible / engineering document MUST include:

Section Requirement
Title + status header # <n> — <Name> + Status/Version block
Purpose/Scope What and for whom
Contracts Mandatory/optional fields or interfaces
Rules Enforceable statements (SHALL/MAY/MUST)
References Cross-links to related Bible docs

Keywords MUST/SHOULD/MAY are used per RFC 2119 and enforced in review.


4. Architecture Diagrams

4.1 Mermaid Example

sequenceDiagram
    participant O as Operator
    participant A as API
    participant M as Mission Engine
    participant W as Workflow Engine
    participant T as Tool Sandbox
    O->>A: submit mission
    A->>M: MissionService.create
    M->>M: validate scope/legality
    M->>M: plan graph
    M->>W: execute plan
    W->>T: run tool step
    T-->>W: ToolResult
    W->>W: parse+normalize+store
    W-->>M: phase completed
    M-->>A: mission accepted (job id)

5. Sequence Diagrams


6. Flowcharts


7. Examples


8. API Documentation


9. Versioning of Documentation


10. Documentation Ownership


11. References