Files
codex-game-studio/docs/architecture/flows/README.md
T

3.5 KiB

status, doc_type, truth_kind, last_reviewed, source_of_truth
status doc_type truth_kind last_reviewed source_of_truth
active architecture architecture 2026-05-30
../repository-structure.md
../../truth/repository/overview.md

Architecture Flow Guides

Purpose

These Architecture Flow Guides document Open Game Studio's important runtime scenarios, branching logic, failure paths, and code/truth-doc traceability. They are Markdown docs-as-code runtime views: readable in GitHub/VS Code, reviewable in pull requests, and detailed enough to guide humans and agents through the system.

Professional Framing

This folder uses established software-architecture documentation patterns:

  • arc42 Runtime View: documents concrete behavior, interactions between building blocks, important scenarios, operational flows, and error/exception scenarios.
  • C4 dynamic views: describe how architecture elements interact at runtime when a static structure view is not enough.
  • Diátaxis explanation/how-to separation: these guides explain and navigate flows; Truthmark truth docs remain the canonical reference layer.
  • Mermaid in Markdown: sequence and flowchart diagrams are embedded directly in Markdown so the diagrams stay close to the walkthrough text.

Relationship To Truthmark Truth Docs

Truthmark truth docs own canonical behavior claims. Architecture flow guides own comprehension.

Layer Purpose Example
Truth docs Bounded, canonical behavior/reference claims docs/truth/codex/runtime-and-tasks.md
Flow guides Cross-cutting runtime scenarios, branches, and debugging paths docs/architecture/flows/role-run-lifecycle.md
Portal Generated non-canonical presentation docs/truthmark-portal/

If a flow guide conflicts with source code or a truth doc, the source code and owning truth doc win. Update the owning truth doc first, then update the affected flow guide.

Flow Index

Flow guide Scenario Primary truth docs
Project Initialization init / new creates a deterministic generated game project. docs/truth/projects/project-scaffolding.md
Role Run Lifecycle run <role> renders, executes, verifies, reviews, and optionally fixes a Codex role run. docs/truth/codex/runtime-and-tasks.md, docs/truth/codex/roles-and-workflows.md
Workflow Prompt Rendering Workflow shortcut commands render deterministic prompts without executing Codex. docs/truth/codex/roles-and-workflows.md
Validation And Repository Truth Repository/project validation and injected Truthmark repository-truth workflows around behavior changes. docs/truth/contracts/cli-and-validation.md, docs/truth/repository/overview.md

Guide Template

Each flow guide should include:

  1. Purpose and scenario boundary.
  2. Entry points.
  3. Preconditions and inputs.
  4. Happy path sequence.
  5. Branch map.
  6. Decision table.
  7. Failure modes and debugging cues.
  8. Code traceability.
  9. Truth sources and verification.

Maintenance Rules

  • Keep these guides focused on architecturally relevant scenarios, not every internal helper call.
  • Do not use flow guides to introduce new behavior claims that are absent from source and truth docs.
  • When behavior changes, update the owning truth doc and then any impacted flow guide.
  • Keep Truthmark framed as an injected repository-truth workflow/tooling layer unless product code explicitly implements Truthmark-facing runtime behavior.