@@ -4,8 +4,8 @@ use std::fs;
44use std:: path:: Path ;
55
66use compass_core:: {
7- BuildOptions , BuildPurpose , CoreError , ExportInputs , LoadedGraph , SemanticLayer ,
8- build_graph_with_layers,
7+ BuildOptions , BuildPurpose , CoreError , ExportInputs , InferenceLevel , LoadedGraph ,
8+ SemanticLayer , build_graph_with_layers,
99} ;
1010use compass_files:: BuildGuard ;
1111use compass_languages:: { Engine , Extraction , RawEdgeRecord , RawNodeRecord } ;
@@ -476,6 +476,7 @@ fn incremental_mixed_origin_edges_use_fresh_ast_relationship_sites() -> Result<(
476476 ) ?;
477477
478478 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
479+ options. inference_level = InferenceLevel :: Max ;
479480 options. no_cluster = true ;
480481 options. no_viz = true ;
481482 let initial = build_graph_with_layers ( & options, None , & [ ] ) ?;
@@ -545,6 +546,7 @@ fn incremental_deleted_mixed_occurrence_keeps_only_revalidated_semantic_evidence
545546 semantic_owned_edge_extraction ( Path :: new ( "main.rs" ) , initial_source, "calls" ) ?;
546547
547548 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
549+ options. inference_level = InferenceLevel :: Max ;
548550 options. no_cluster = true ;
549551 options. no_viz = true ;
550552 let initial_layer = semantic_layer ( initial_semantic) ?;
@@ -617,6 +619,7 @@ fn incremental_deleted_mixed_occurrence_keeps_only_revalidated_semantic_evidence
617619 evidence. origin == compass_model:: provenance:: EvidenceOrigin :: Heuristic
618620 } ) ) ;
619621 let mut clean_options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
622+ clean_options. inference_level = InferenceLevel :: Max ;
620623 clean_options. output_root = Some ( root. join ( "clean-deletion-out" ) ) ;
621624 clean_options. no_cluster = true ;
622625 clean_options. no_viz = true ;
@@ -645,6 +648,7 @@ fn incremental_deleted_remapped_mixed_occurrence_rebinds_trusted_semantic_residu
645648 semantic_owned_edge_extraction ( Path :: new ( "main.rs" ) , initial_source, "calls" ) ?;
646649
647650 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
651+ options. inference_level = InferenceLevel :: Max ;
648652 options. no_cluster = true ;
649653 options. no_viz = true ;
650654 let initial_layer = semantic_layer ( initial_semantic) ?;
@@ -756,6 +760,7 @@ fn incremental_deleted_remapped_mixed_occurrence_rebinds_trusted_semantic_residu
756760 assert_eq ! ( trusted. target, canonical_target) ;
757761
758762 let mut clean_options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
763+ clean_options. inference_level = InferenceLevel :: Max ;
759764 clean_options. output_root = Some ( root. join ( "clean-deletion-remap-out" ) ) ;
760765 clean_options. no_cluster = true ;
761766 clean_options. no_viz = true ;
@@ -789,6 +794,7 @@ fn incremental_mixed_occurrence_cardinality_matches_exact_sites_and_preserves_re
789794 assert_eq ! ( initial_semantic. edges. len( ) , 3 ) ;
790795
791796 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
797+ options. inference_level = InferenceLevel :: Max ;
792798 options. no_cluster = true ;
793799 options. no_viz = true ;
794800 let initial_layer = semantic_layer ( initial_semantic) ?;
@@ -959,6 +965,7 @@ fn incremental_mixed_occurrence_cardinality_matches_exact_sites_and_preserves_re
959965 ) ;
960966
961967 let mut clean_options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
968+ clean_options. inference_level = InferenceLevel :: Max ;
962969 clean_options. output_root = Some ( root. join ( "clean-cardinality-out" ) ) ;
963970 clean_options. no_cluster = true ;
964971 clean_options. no_viz = true ;
@@ -987,6 +994,7 @@ fn incremental_mixed_origin_alias_edges_use_canonical_fresh_relationship_sites()
987994 assert_eq ! ( initial_semantic. edges. len( ) , 1 ) ;
988995
989996 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
997+ options. inference_level = InferenceLevel :: Max ;
990998 options. no_cluster = true ;
991999 options. no_viz = true ;
9921000 let initial_layer = semantic_layer ( initial_semantic) ?;
@@ -1033,6 +1041,7 @@ fn incremental_mixed_origin_alias_edges_use_canonical_fresh_relationship_sites()
10331041 let final_semantic = semantic_method_alias_extraction ( Path :: new ( "main.rs" ) , final_source) ?;
10341042 assert_eq ! ( final_semantic. edges. len( ) , 1 ) ;
10351043 let mut clean_options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
1044+ clean_options. inference_level = InferenceLevel :: Max ;
10361045 clean_options. output_root = Some ( root. join ( "clean-out" ) ) ;
10371046 clean_options. no_cluster = true ;
10381047 clean_options. no_viz = true ;
@@ -1058,6 +1067,7 @@ fn refreshed_mixed_edge_drops_stale_incremental_endpoint_remap_evidence()
10581067 assert_eq ! ( initial_semantic. edges. len( ) , 1 ) ;
10591068
10601069 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
1070+ options. inference_level = InferenceLevel :: Max ;
10611071 options. no_cluster = true ;
10621072 options. no_viz = true ;
10631073 let initial_layer = semantic_layer ( initial_semantic) ?;
@@ -1127,6 +1137,7 @@ fn refreshed_mixed_edge_drops_stale_incremental_endpoint_remap_evidence()
11271137
11281138 let final_semantic = semantic_edge_extraction ( Path :: new ( "main.rs" ) , final_source, "calls" ) ?;
11291139 let mut clean_options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
1140+ clean_options. inference_level = InferenceLevel :: Max ;
11301141 clean_options. output_root = Some ( root. join ( "clean-remap-out" ) ) ;
11311142 clean_options. no_cluster = true ;
11321143 clean_options. no_viz = true ;
@@ -1220,6 +1231,7 @@ fn incremental_ast_endpoint_remap_retains_exact_typed_rewrite_evidence()
12201231 ..Extraction :: default ( )
12211232 } ;
12221233 let mut options = BuildOptions :: new ( root. to_path_buf ( ) ) ;
1234+ options. inference_level = InferenceLevel :: Max ;
12231235 options. no_cluster = true ;
12241236 options. no_viz = true ;
12251237
0 commit comments