Orchestrata Ultimate › Tests › Reference › scripts › test_backfill_thread_links
Tests reference — tests/scripts/test_backfill_thread_links.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_backfill_thread_links.py
source · 20 tests · 741 lines
Tests for scripts/backfill_thread_links.py — the Thread-ontology
Covers: core.base.traces, knowledge_graph.canonical_schema, core.graph/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_single_event_gets_thread_and_in_thread_edge |
116 | |
| function | test_two_events_sharing_thread_id_merge_one_thread |
149 | |
| function | test_hub_edge_exists_for_every_thread |
174 | |
| function | test_sender_matching_volk_alias_gets_by_volk_edge |
199 | |
| function | test_recipient_matching_volk_alias_gets_to_volk_edge |
226 | |
| function | test_agent_matching_only_volk_name_still_resolves |
253 | The third precedence tier — name -> alias, only when neither |
| function | test_agent_matching_only_volk_id_still_resolves |
283 | |
| function | test_alias_precedence_over_volk_id_on_a_different_node |
312 | A string matching an alias on node A AND a volk_id on node B resolves |
| function | test_event_with_no_agent_fields_gets_in_thread_but_no_volk_edge |
344 | The ToolCall/Artifact shape — (None, None) in the source-label table. |
| function | test_null_thread_id_is_untouched |
377 | |
| function | test_empty_string_thread_id_is_untouched |
400 | |
| function | test_human_sender_gets_no_by_volk_but_keeps_in_thread |
423 | |
| function | test_nonexistent_alias_gets_no_edge_and_creates_no_volk |
449 | |
| function | test_dry_run_matches_real_run_and_writes_nothing |
476 | |
| function | test_second_run_is_idempotent |
535 | |
| function | test_missing_project_hub_aborts_with_zero_writes |
574 | |
| function | test_cross_project_isolation_creates_two_distinct_threads |
602 | The multi-project-invariant proof: the same bare thread_id under two |
| function | test_vocabulary_purity_no_bare_thread_literals |
645 | AST scan: the script must import every Thread-wave vocabulary |
| function | test_main_dry_run_against_real_graph |
670 | Order-dependence fix: the original version of this test called |
| function | test_main_aborts_and_returns_1_for_a_nonexistent_project |
720 | The hub guard runs before any write regardless of --apply — a |