REQ-DDB-WIKI-035: A test runs traced and is overlaid on the flow the index expected

← Requirements

What it requires

  1. clew wiki trace-run --test <node id> --out <file> runs one pytest test in a subprocess (parallel runners off) under a tracer recording every call between functions of the repository's own files as an OTLP-JSON span — parent as called, file, line, function, argument and return reprs (cut at 2,000 characters with the cut stated); comprehension, generator-expression and lambda frames are transparent — and prints the run: passed, the assertion checkpoints the test executed (line, statement, passed or failed), the failure point (an exception event on the test's span with the assertion's line and message), spans dropped past the cap, and, when an index exists, the overlay: each step of the index's flow for that test CONFIRMED or NOT EXECUTED, and the observed calls the flow did not predict as DISCOVERED.
  2. The hub runs the same on /api/<slug>/trace?test= only with CLEW_WIKI_RUN=1 (403 otherwise); a test flow's page names its node id, and the hub's live script offers the traced run, dimming steps that did not run and listing checkpoints, discovered calls and the failure.
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Wiki: this site7
  • Answer: query engine + MCP server1

See it on the map

How it is met

implemented byresults (63 tests)_trace_run_tracedexpected_stepsinterpreter_foroverlayspans_oftest_nodetrace_test63 passed63 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (63)

Linked directly

43 tests: 43 passed

43 passed
testresultlinked byimplementers exercisedcalls away
test_the_hub_runs_a_test_only_when_running_is_switched_onpassedmeasured6 of 8—
test_the_committed_cli_surface_is_currentpassedmeasured2 of 8: _trace_run, expected_steps—
test_an_audience_can_redact_ownerspassedmeasured1 of 8: test_node—
test_calls_into_a_vendor_area_end_at_its_boundary_nodepassedmeasured1 of 8: test_node—
test_mcp_refresh_of_a_vendored_sub_index_excludes_its_own_childrenpassedmeasured1 of 8: _traced—
test_owners_overlay_the_map_and_the_file_pagepassedmeasured1 of 8: test_node—
test_vendor_areas_sit_outside_the_first_party_circlepassedmeasured1 of 8: test_node—
test_installed_code_inside_the_repository_is_never_a_spanpassedcatalogunknown—
test_only_a_traced_test_gets_a_flow_of_its_ownpassedcatalogunknown—
test_the_overlay_confirms_misses_and_discoverspassedmeasured4 of 8: interpreter_for, overlay, spans_of, trace_test1
test_a_failing_assertion_is_the_failure_pointpassedmeasured3 of 8: interpreter_for, spans_of, trace_test1
test_a_real_run_gives_a_pinned_check_its_valuepassedmeasured3 of 8: interpreter_for, spans_of, trace_test1
test_a_run_is_recorded_as_spans_between_repository_functionspassedmeasured3 of 8: interpreter_for, spans_of, trace_test1
test_a_span_records_the_line_it_was_called_frompassedmeasured3 of 8: interpreter_for, spans_of, trace_test1
test_passing_assertions_are_checkpointspassedmeasured2 of 8: interpreter_for, trace_test1
test_the_overlay_gives_each_confirmed_step_its_valuespassedmeasured2 of 8: overlay, spans_of1
test_a_master_flow_takes_the_subtree_a_test_trace_reachespassedmeasured1 of 8: spans_of1
test_a_run_uses_the_repositorys_own_interpreterpassedmeasured1 of 8: interpreter_for1
test_a_test_flow_page_names_its_test_and_the_live_script_can_run_itpassedmeasured1 of 8: test_node1
test_a_traced_run_names_the_interpreter_it_fell_back_topassedmeasured1 of 8: interpreter_for1
test_the_cli_creates_the_output_directorypassedmeasured3 of 8: _trace_run, interpreter_for, trace_test2
test_the_cli_writes_otlp_json_and_the_overlaypassedmeasured3 of 8: _trace_run, interpreter_for, trace_test2
test_a_recorded_runs_discovered_calls_foldpassedmeasured2 of 8: overlay, spans_of2
test_a_steps_dialog_carries_its_recorded_valuespassedmeasured2 of 8: overlay, spans_of2
test_a_traced_run_gives_each_pinned_check_the_value_it_sawpassedmeasured1 of 8: spans_of2
test_an_imported_trace_is_drawn_over_its_test_flowpassedmeasured3 of 8: overlay, spans_of, test_node4
test_a_build_writes_the_summary_beside_the_sitepassedmeasured1 of 8: test_node4
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatalpassedmeasured1 of 8: test_node4
test_a_partner_site_bundles_no_body_on_symbol_pagespassedmeasured1 of 8: test_node4
test_a_partner_site_carries_no_call_textpassedmeasured1 of 8: test_node4
test_a_partner_site_lists_no_assertionspassedmeasured1 of 8: test_node4
test_a_public_site_keeps_requirement_text_off_the_requirement_pagepassedmeasured1 of 8: test_node4
test_an_audience_that_excludes_bodies_gets_nonepassedmeasured1 of 8: test_node4
test_build_writes_a_self_contained_sitepassedmeasured1 of 8: test_node4
test_exports_obey_the_audiencepassedmeasured1 of 8: test_node4
test_needs_json_contributes_requirementspassedmeasured1 of 8: test_node4
test_versions_burn_down_toward_roadmap_milestonespassedmeasured1 of 8: test_node4
test_a_failed_fetch_is_said_not_shown_as_no_issuespassedmeasured1 of 8: test_node5
test_an_empty_report_is_a_measured_zeropassedmeasured1 of 8: test_node5
test_change_impact_follows_a_changed_function_to_requirements_and_flowspassedmeasured1 of 8: test_node5
test_open_issues_reach_the_requirement_and_its_grouppassedmeasured1 of 8: test_node5
test_the_impact_page_links_the_map_change_lenspassedmeasured1 of 8: test_node5
test_without_a_report_the_change_is_not_measuredpassedmeasured1 of 8: test_node5
Reached through calls

20 tests: 20 passed

20 passed
testresultlinked byimplementers exercisedcalls away
test_check_refresh_brings_the_index_current_firstpassedinferred7 of 82
test_the_cli_check_exits_nonzero_on_a_problempassedinferred7 of 82
test_the_cli_prints_the_flow_as_jsonpassedinferred7 of 82
test_the_cli_prints_the_tracepassedinferred7 of 82
test_the_cli_takes_an_out_of_tree_configpassedinferred7 of 82
test_the_cli_writes_markdown_without_sphinxpassedinferred7 of 82
test_the_command_prints_yaml_and_applies_a_reviewed_filepassedinferred7 of 82
test_the_flow_verb_prints_svgpassedinferred7 of 82
test_the_trace_cli_reads_imports_from_the_configpassedinferred7 of 82
test_wiki_check_prints_ears_notes_without_failing_on_thempassedinferred7 of 82
test_a_catalog_that_moved_since_its_pin_fails_checkpassedinferred3 of 8: overlay, spans_of, test_node4
test_a_model_no_code_realises_gets_no_pagepassedinferred3 of 8: overlay, spans_of, test_node4
test_a_repository_with_pinned_catalogues_gets_the_product_tracepassedinferred3 of 8: overlay, spans_of, test_node4
test_the_site_names_a_declared_report_it_could_not_readpassedinferred3 of 8: overlay, spans_of, test_node4
test_the_site_shows_nodes_rules_catalogs_and_mutationspassedinferred3 of 8: overlay, spans_of, test_node4
test_versioned_builds_and_a_diff_between_thempassedinferred3 of 8: overlay, spans_of, test_node4
test_a_linked_test_page_draws_its_flowchart_and_a_test_naming_no_mode_does_notpassedinferred3 of 8: overlay, spans_of, test_node5
test_a_page_marks_the_branch_its_recorded_run_failed_onpassedinferred3 of 8: overlay, spans_of, test_node5
test_a_running_hub_is_opened_instead_and_a_dead_one_ignoredpassedinferred3 of 8: overlay, spans_of, test_node5
test_without_a_hub_the_static_site_is_built_and_openedpassedinferred3 of 8: overlay, spans_of, test_node5

Flows through it