Architecture

The system at C4’s four levels (S. Brown’s C4 model), each drawn from the index. Anything C4 asks for that the index cannot show is left out and named as missing, not guessed.

L1 · Context

clewcommand-line userprogram launcher

No vendored area: no external system is in the index.

L2 · Containers

Containers here are derived from entry points (console scripts and mains), each separately runnable. The index does not show data stores, deployment units or the protocols between containers, so none is drawn.

25 tooling entry points, not drawn (the tooling globs classify them)
  • acceptance/matrix.py
  • acceptance/provision.py
  • scripts/brief_data.py
  • scripts/cluster_review.py
  • scripts/commit_msg_guard.py
  • scripts/export_parity.py
  • scripts/floor_subset.py
  • scripts/gate_figures.py
  • scripts/gate_hygiene.py
  • scripts/hook_probe.py
  • scripts/incremental_probe.py
  • scripts/judge_error_rate.py
  • scripts/judge_probe.py
  • scripts/judge_variance.py
  • scripts/mcp_tools_probe.py
  • scripts/mutate.py
  • scripts/prune_judge_sessions.py
  • scripts/refresh_bench.py
  • scripts/replay_grid_calls.py
  • scripts/rubric_audit.py
  • scripts/selector_waste.py
  • scripts/served_spelling_audit.py
  • scripts/served_text_audit.py
  • scripts/stage_probe.py
  • scripts/sync_metadata.py

L3 · Components

Callers sit above what they call; an arrow is calls, thicker for more, the weaker half faint (at most 8 drawn strong). Solid: a block the repository declares. Dashed: a block inferred from coupling, which can be wrong — read it as a hint, not the architecture.

1 calls1 calls6 calls2 calls2 calls32 calls3 calls2 calls28 calls5 calls3 calls1 calls16 calls10 calls7 calls1 calls13 calls22 calls12 calls6 calls1 calls9 calls3 calls6 calls3 calls21 calls42 calls17 calls23 calls53 calls5 calls1 calls13 calls8 calls1 calls1 calls26 calls15 calls7 calls2 calls11 calls13 calls13 calls2 calls1 calls11 calls1 calls6 calls12 calls3 calls3 calls2 calls69 calls16 calls9 calls1 calls5 callsTooling: scripts126 functions · 26 filesUnassigned35 functions · 3 filesAcceptance: measuring clew80 functions · 10 filesAnswer: query engine + MCP server593 functions · 35 filesPropose: declaration proposals128 functions · 12 filesBuild: call and data edges272 functions · 9 filesBuild: concurrency and config layers145 functions · 9 filesBuild: docs, requirements and tests layers122 functions · 10 filesBuild: orchestration371 functions · 35 filesBuild: parse front ends346 functions · 20 filesGuard: the pre-commit gate277 functions · 17 filesWiki: this site772 functions · 56 files

L4 · Code

Code is the generated level: every function on the map, each linking to its own page with its body, callers, callees and activity diagram.