REQ-DDB-WIKI-019: One system graph, at several zoom levels, laid out deterministically¶
What it requires
build_graphderives components from path prefixes (a file belongs to its package; a declaredwiki.componentsgrouping wins), links between components aggregating call edges and shared keys, and a point cloud of every function placed inside its component's box.- Lens facts ride on components and symbols — requirements by evidence tier, test scope, threads, changed functions — and a lens whose source is absent is absent (no impact report, no
changedkey), while an empty report is a measured zero. - Layout is computed in Python and is deterministic: callers sit in layers above their callees.
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
_blocksclew/wiki/graph.py:156build_graphclew/wiki/graph.py:109component_ofclew/wiki/graph.py:56package_ofclew/wiki/graph.py:74web_dataclew/wiki/web.py:71
Tests (67)
Linked directly
53 tests: 53 passed
53 passed
Reached through calls
14 tests: 14 passed
14 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_a_running_hub_is_opened_instead_and_a_dead_one_ignored | passed | inferred | 2 of 5: build_graph, web_data | 4 |
test_without_a_hub_the_static_site_is_built_and_opened | passed | inferred | 2 of 5: build_graph, web_data | 4 |
test_check_refresh_brings_the_index_current_first | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_check_exits_nonzero_on_a_problem | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_creates_the_output_directory | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_prints_the_flow_as_json | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_prints_the_trace | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_takes_an_out_of_tree_config | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_writes_markdown_without_sphinx | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_cli_writes_otlp_json_and_the_overlay | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_command_prints_yaml_and_applies_a_reviewed_file | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_flow_verb_prints_svg | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_the_trace_cli_reads_imports_from_the_config | passed | inferred | 2 of 5: build_graph, web_data | 5 |
test_wiki_check_prints_ears_notes_without_failing_on_them | passed | inferred | 2 of 5: build_graph, web_data | 5 |