REQ-DDB-QUERY-015: A function’s calls in source order, with the frames that enclose them

← Requirements

What it requires

  1. clew.query.call_sequence(db, repo_root, name, qualified=None) returns the function's call sites in line order, each naming its callee and the loop / if / elif / else / try / catch / finally / case frames whose line span contains it, outermost first, read from the source at query time with the index's own parser and call-site harvester.
  2. Calls inside a nested function are excluded.
  3. It returns [] for a function that calls nothing and None when the index holds no such function, no body extent for it, or the source cannot be parsed.
  4. It is the message order and the frames a derived sequence diagram (clew wiki flow) is drawn from.
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Answer: query engine + MCP server1

See it on the map

How it is met

implemented byresults (47 tests)call_sequence47 passed47 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (47)

Linked directly

47 tests: 47 passed

47 passed
testresultlinked byimplementers exercisedcalls away
test_a_build_writes_the_summary_beside_the_sitepassedmeasured1 of 1: call_sequence—
test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatalpassedmeasured1 of 1: call_sequence—
test_a_failed_fetch_is_said_not_shown_as_no_issuespassedmeasured1 of 1: call_sequence—
test_a_flow_entry_by_file_survives_distinct_identitiespassedmeasured1 of 1: call_sequence—
test_a_flow_entry_is_selected_by_filepassedmeasured1 of 1: call_sequence—
test_a_flow_follows_the_calls_in_order_with_framespassedmeasured1 of 1: call_sequence—
test_a_flow_names_its_actorpassedmeasured1 of 1: call_sequence—
test_a_markdown_build_writes_the_summary_where_askedpassedmeasured1 of 1: call_sequence—
test_a_measured_depth_bounds_measured_expansionpassedmeasured1 of 1: call_sequence—
test_a_measured_flow_expands_what_ran_and_folds_what_did_notpassedmeasured1 of 1: call_sequence—
test_a_not_run_stub_is_drawn_as_a_dim_note_not_a_callpassedmeasured1 of 1: call_sequence—
test_a_partner_site_bundles_no_body_on_symbol_pagespassedmeasured1 of 1: call_sequence—
test_a_partner_site_carries_no_call_textpassedmeasured1 of 1: call_sequence—
test_a_partner_site_lists_no_assertionspassedmeasured1 of 1: call_sequence—
test_a_public_site_keeps_requirement_text_off_the_requirement_pagepassedmeasured1 of 1: call_sequence—
test_a_step_cap_stops_the_walk_and_says_sopassedmeasured1 of 1: call_sequence—
test_a_step_links_to_its_call_site_not_the_callee_filepassedmeasured1 of 1: call_sequence—
test_ado_flavour_blocks_order_and_linkspassedmeasured1 of 1: call_sequence—
test_an_audience_can_redact_ownerspassedmeasured1 of 1: call_sequence—
test_an_audience_that_excludes_bodies_gets_nonepassedmeasured1 of 1: call_sequence—
test_an_empty_report_is_a_measured_zeropassedmeasured1 of 1: call_sequence—
test_an_entry_no_test_ran_is_walked_staticallypassedmeasured1 of 1: call_sequence—
test_an_imported_trace_is_drawn_over_its_test_flowpassedmeasured1 of 1: call_sequence—
test_an_unmeasured_file_is_walked_statically_never_folded_as_not_runpassedmeasured1 of 1: call_sequence—
test_block_lanes_are_the_maps_blockspassedmeasured1 of 1: call_sequence—
test_build_writes_a_self_contained_sitepassedmeasured1 of 1: call_sequence—
test_calls_into_a_vendor_area_end_at_its_boundary_nodepassedmeasured1 of 1: call_sequence—
test_change_impact_follows_a_changed_function_to_requirements_and_flowspassedmeasured1 of 1: call_sequence—
test_depth_bounds_the_walk_and_stop_at_ends_a_branchpassedmeasured1 of 1: call_sequence—
test_exports_obey_the_audiencepassedmeasured1 of 1: call_sequence—
test_github_flavour_pages_and_diagramspassedmeasured1 of 1: call_sequence—
test_needs_json_contributes_requirementspassedmeasured1 of 1: call_sequence—
test_open_issues_reach_the_requirement_and_its_grouppassedmeasured1 of 1: call_sequence—
test_owners_overlay_the_map_and_the_file_pagepassedmeasured1 of 1: call_sequence—
test_package_lanes_are_the_maps_componentspassedmeasured1 of 1: call_sequence—
test_the_actor_lane_is_drawn_first_with_an_arrow_into_the_entrypassedmeasured1 of 1: call_sequence—
test_the_cli_prints_the_flow_as_jsonpassedmeasured1 of 1: call_sequence—
test_the_cli_writes_markdown_without_sphinxpassedmeasured1 of 1: call_sequence—
test_the_hub_runs_a_test_only_when_running_is_switched_onpassedmeasured1 of 1: call_sequence—
test_the_impact_page_links_the_map_change_lenspassedmeasured1 of 1: call_sequence—
test_the_markdown_obeys_the_audiencepassedmeasured1 of 1: call_sequence—
test_vendor_areas_sit_outside_the_first_party_circlepassedmeasured1 of 1: call_sequence—
test_versions_burn_down_toward_roadmap_milestonespassedmeasured1 of 1: call_sequence—
test_without_a_report_the_change_is_not_measuredpassedmeasured1 of 1: call_sequence—
test_an_unknown_function_has_no_sequencepassedmeasured1 of 1: call_sequence1
test_python_calls_come_in_source_order_with_their_framespassedmeasured1 of 1: call_sequence1
test_typescript_calls_carry_loop_and_try_framespassedmeasured1 of 1: call_sequence1