Skip to content
Longterm Wiki has not been actively maintained since May 2026. Some data is still updated occasionally, but please don't rely on this site being current or accurate.
Longterm Wiki
Updated 2026-02-17HistoryData
Page StatusDocumentation
Edited 8 months ago422 words2 backlinksUpdated quarterlyOverdue by 148 days
37QualityDraft12ImportancePeripheral10ResearchMinimal
Content5/13
SummaryScheduleEntityEdit history2Overview
Tables3/ ~2Diagrams6Int. links0/ ~3Ext. links0/ ~2Footnotes0/ ~2References0/ ~1Quotes0Accuracy0RatingsN:1 R:4 A:6 C:7Backlinks2
Change History2
Add PageStatus and info boxes to internal pages#1858 months ago

Enabled PageStatus rendering, Data links, and Feedback widgets on internal pages by removing the `isInternal` guards in the wiki page renderer. Added `evergreen`, `update_frequency`, and `lastEdited` frontmatter to all ~40 internal pages so update schedules and staleness indicators are visible.

Internal pages entity infrastructure#1428 months ago

Added full entity infrastructure to internal pages (style guides, architecture docs, research reports, schema docs). Internal pages now have the `internal` entity type, get auto-assigned E* numeric IDs (E698-E731), are included in the search index, and participate in backlinks/related graph computation. Includes review fixes: filtering internal pages from public explore/home, converting all 7 remaining .md files, adding `internal` to data/schema.ts, and updating all `shouldSkipValidation`/`pageType === 'documentation'` checks.

Issues1
StaleLast edited 238 days ago - may need review

Mermaid Diagram Style Guide

Quick Reference

<Mermaid chart={`
flowchart TD
    A[Node A] --> B[Node B]
`} />

Layout Rules

Prefer Vertical (TD/TB) Over Horizontal (LR)

The content area is often narrow (600-800px). Wide diagrams get compressed and become unreadable.

Avoid

flowchart LR with many parallel branches - creates very wide diagrams that compress poorly.

Prefer

flowchart TD (top-down) or use tables for taxonomies with many categories.

Bad: 5 parallel branches with 4 children each = 20+ nodes horizontally

Good: Linear flow with subgraphs, or convert to a table

When to Use Tables Instead

If your diagram is essentially a taxonomy or matrix, use a markdown table:

CategoryType AType BType C
Row 1ValueValueValue
Row 2ValueValueValue

Tables handle narrow viewports gracefully; wide tree diagrams don't.

Maximum Practical Widths

Diagram TypeMax Horizontal NodesNotes
Flowchart3-4 parallel pathsUse subgraphs to stack
Pie chartN/AAlways works
QuadrantN/AAlways works
Timeline4-5 items per rowWrap to multiple sections
Sequence4-5 participantsGets cramped beyond this

Color Palette

Use these semantic colors for consistency across the wiki:

Risk/Severity Colors

style NodeName fill:#ffcccc   /* Light red - high risk/danger */
style NodeName fill:#ffddcc   /* Light orange - medium risk */
style NodeName fill:#ffeedd   /* Light peach - low risk */
style NodeName fill:#ffe1e1   /* Pink - warning */
style NodeName fill:#ff9999   /* Darker red - critical */

Category Colors

style NodeName fill:#ccffcc   /* Light green - positive/intervention */
style NodeName fill:#cceeff   /* Light blue - neutral/factor */
style NodeName fill:#fff4e1   /* Light yellow - category/dimension */
style NodeName fill:#e1f5ff   /* Pale blue - root/overview */

Example with Colors

Diagram (loading…)
flowchart TD
  A[Risk Assessment] --> B[High Risk]
  A --> C[Medium Risk]
  A --> D[Low Risk]

  B --> B1[Immediate action]
  C --> C1[Monitor closely]
  D --> D1[Standard process]

  style A fill:#e1f5ff
  style B fill:#ffcccc
  style C fill:#ffddcc
  style D fill:#ccffcc

Diagram Type Selection

Use CaseDiagram TypeReliabilityExample
Process flowflowchart TDHighDecision trees, pipelines
Causal relationshipsflowchart with labeled edgesHighInfluence diagrams
ProportionspieHighRisk breakdown, allocation
2x2 comparisonsquadrantChartHighPriority matrices
Temporal sequencestimelineMediumRoadmaps
State changesstateDiagram-v2MediumSystem states
Actor interactionssequenceDiagramLowAvoid - use tables instead
Avoid Sequence Diagrams

sequenceDiagram has rendering issues in some environments. For actor interactions over time, use a table with Date/Actor/Event columns instead.

Common Patterns

Influence Diagram (Causal)

Diagram (loading…)
flowchart TD
  A[Factor A] -->|"increases"| B[Outcome]
  C[Factor C] -->|"decreases"| B
  D[Intervention] -->|"mitigates"| A

  style A fill:#ffddcc
  style B fill:#ffcccc
  style D fill:#ccffcc

Priority Quadrant

Diagram (loading…)
quadrantChart
  title Priority Matrix
  x-axis Low Effort --> High Effort
  y-axis Low Impact --> High Impact
  quadrant-1 Do First
  quadrant-2 Plan Carefully
  quadrant-3 Delegate
  quadrant-4 Quick Wins
  Task A: [0.8, 0.9]
  Task B: [0.3, 0.7]
  Task C: [0.2, 0.3]

Simple Proportion

Diagram (loading…)
pie title Resource Allocation
  "Category A" : 45
  "Category B" : 30
  "Category C" : 25

Anti-Patterns

Don't: Deep Horizontal Trees

Trees with 5+ branches, each with children, become unreadable:

A --> B --> B1, B2, B3, B4
A --> C --> C1, C2, C3, C4
A --> D --> D1, D2, D3, D4
...

Fix: Use a table, or restructure as vertical flow with subgraphs.

Don't: Extremely Tall Diagrams

Stacking 3+ subgraphs with 4-6 nodes each creates diagrams that are 800+ pixels tall:

subgraph "Level 1"
    6 nodes chained vertically
end
subgraph "Level 2"
    6 more nodes
end
subgraph "Level 3"
    5 more nodes
end

Fix: Use a table for the details, with a small summary diagram showing just the phases/levels.

Don't: Too Many Nodes

More than 15-20 nodes makes diagrams cluttered. Split into multiple diagrams or simplify.

Don't: Long Node Labels

Keep node text short (2-4 words). Put details in the surrounding text.

/* Bad */
A[This is a very long label that explains everything about the node]

/* Good */
A[Short Label]

Subgraph Technique

Use subgraphs to create vertical sections in complex diagrams:

Diagram (loading…)
flowchart TD
  subgraph Inputs["Inputs"]
      I1[Data]
      I2[Config]
  end

  subgraph Process["Processing"]
      P1[Transform]
      P2[Validate]
  end

  subgraph Outputs["Outputs"]
      O1[Result]
  end

  I1 --> P1
  I2 --> P1
  P1 --> P2
  P2 --> O1

This keeps the diagram tall rather than wide.