Architecture Page Template (Shared Explanation Shape)
Follow this order on every page under architecture/. Keep prose original and scannable.
See content/MAPPING.md for single-source rules and guides/selection.md for the canonical chooser.
Intent
One or two sentences: what problem this pattern solves.
When It Helps
2-4 bullets: team size, complexity, or scale signals that point here. (This is the Motivation slot of the shared shape — keep it as signals, not prose.)
Structure
Original Mermaid diagram only (no copied images). Example:
flowchart LR A --> B
Rules
Numbered dependency or topology rules (what may call what, what is forbidden).
Illustrative Snippet
Illustrative pseudocode — not runnable.
# sketch of the key boundary
Basic Recap
3-5 sentences restating the pattern’s intent and core roles in your own words.
Complex Scenario
A work-like situation with a topology diagram, at least one failure or scaling walkthrough, and edge cases.
Trade-offs
- Benefit: …
- Cost: …
When to Use / When Not to Use
Use when:
- …
Avoid when:
- …
(If this duplicates When It Helps, keep When It Helps as signals and use this section for the explicit avoid-when cases plus scaling limits.)
Anti-pattern / Failure Mode
One misuse symptom plus one review signal, followed by the expanded failure-mode and trade-off guidance formerly kept in the depth page.
Related Patterns
Links to 1-3 neighboring architecture patterns plus at least one cross-pillar link (design pattern, principle, or practice capstone) with one line on how they differ or combine.