%% action_tree.mmd - section 4 declared action tree (flowchart TB) %% %% Placeholders (substituted by render_architecture.load_mermaid): %% SUBGRAPHS placeholder: one `subgraph [] ... end` %% block per topic. Non-topic actions (plannerActions) %% go in a synthetic subgraph keyed `_plannerActions`. %% EDGES placeholder: tree edges, one per child->parent descent. Cycle- %% back annotations render as dotted back-edges %% `A -.->|cycle| B` (see %% render_architecture._render_action_tree). %% %% placeholder names are written as bare tokens (no double-curly) %% so load_mermaid's single-pass str.replace cannot corrupt this header. %% %% Node-cap enforcement: if the tree exceeds `max_mermaid_nodes["flowchart"]`, %% the renderer emits a summary placeholder instead of this template. flowchart TB {{SUBGRAPHS}} {{EDGES}}