odylith-diagram-catalog
CLI-First Non-Negotiable
- CLI-first is non-negotiable for both Codex and Claude Code. Remove all hand-authoring for places where Odylith CLI should be doing the heavy-lifting. When an Odylith CLI command exists for an operation, you must call the CLI command and you must not hand-edit governed files the CLI owns. Hand-authoring governed truth where a CLI exists is a hard policy violation, not a stylistic preference. The authoritative policy, CLI surface enumeration, allowed hand-edit surfaces, and failure-mode handling live in
odylith/agents-guidelines/CLI_FIRST_POLICY.md, anchored by Casebook learningCB-104. The rule travels through routedspawn_agentleaves on Codex and Task-tool subagents on Claude Code, so delegated work inherits the same contract.
Use when adding or updating Atlas Mermaid diagrams, or when a materially changed flow, boundary, or operator seam has no truthful Atlas coverage yet.
Governance-learning applies here: changed flow, topology, post-confirm path,
repair loop, governance-write path, host lane, projection boundary, or failed
mechanism must update Atlas truth before closeout. Search related Casebook and
governance truth first, read prior failed mechanisms, do not repeat a fix path
that already failed, and capture new mechanism-level learning.
Canonical Commands
./.odylith/bin/odylith atlas scaffold --repo-root . --diagram-id D-123 --slug example-flow --title "Example Flow" --kind flowchart --owner platform --summary "Describe the real implementation flow." --backlog odylith/radar/source/ideas/2026-03/example.md --plan odylith/technical-plans/in-progress/example.md --doc odylith/registry/source/components/atlas/CURRENT_SPEC.md --code path/to/example.py --create-source-if-missing
./.odylith/bin/odylith atlas update --repo-root . --diagram-id D-123 --summary "Describe the current implementation flow." --code path/to/current-owner.py --watch path/to/current-owner.py --review-date YYYY-MM-DD
./.odylith/bin/odylith atlas auto-update --repo-root . --from-git-working-tree --fail-on-stale
./.odylith/bin/odylith atlas render --repo-root . --fail-on-stale
./.odylith/bin/odylith atlas install-autosync-hook --repo-root .
./.odylith/bin/odylith sync --repo-root . --force
Rules
- Keep Atlas source of truth in
odylith/atlas/source/. - Keep the canonical Atlas component dossier under
odylith/registry/source/components/atlas/. - Search existing Atlas coverage first and update the current diagram before creating a duplicate.
- Selected update/scaffold authoring refreshes only its validated diagram IDs
and preserves authored review dates. Recover a selected refresh with
odylith atlas auto-update --diagram-id D-123 --preserve-review-date --fail-on-stale.
Supply a new review date only after actually reviewing that diagram; unrelated
stale review debt does not authorize global acknowledgement.
- If no truthful Atlas coverage exists for a materially changed or newly tracked flow, create a new diagram in the same slice instead of leaving the seam undocumented.
- Treat
related_backlog,related_plans,related_docs,related_code, andchange_watch_pathsas mandatory context, not optional metadata. - Keep linked workstreams, components, docs, and code synchronized with the diagram change so Atlas does not drift away from the rest of Odylith truth.
- Fail closed on stale diagrams, broken links, or missing render assets.
- Diagram titles, summaries, "how to read" text, box labels, and box
explanations must pass the clarity floor: simple, legible, grammatical, and
clear. They must explain what each actor, system, state, boundary, or
control means in the project and why it matters; diagram mechanics such as
"incoming arrows", "outgoing arrows", "branch point", or "part of the path"
are not enough.