@@ -88,8 +88,7 @@ async fn main() -> Result<(), GenericError> {
8888
8989 // Bootstrap-integration probe: proves the Antithesis SDK is linked, cataloging works, and the
9090 // instrumentation path is wired.
91- #[ cfg( feature = "antithesis" ) ]
92- antithesis_sdk:: assert_reachable!( "agent-data-plane completed bootstrap" , & serde_json:: json!( { } ) ) ;
91+ saluki_antithesis:: reachable!( "agent-data-plane completed bootstrap" ) ;
9392
9493 // Run the given subcommand. The bootstrap supervisor is forwarded by value; only the long-lived `run`
9594 // subcommand actually drives it (it is added as a child of the internal supervisor inside
@@ -118,7 +117,7 @@ async fn main() -> Result<(), GenericError> {
118117/// ideally before any panics are possible.
119118#[ cfg( feature = "antithesis" ) ]
120119fn initialize_antithesis ( ) {
121- antithesis_sdk :: antithesis_init ( ) ;
120+ saluki_antithesis :: init ( ) ;
122121
123122 let default_hook = std:: panic:: take_hook ( ) ;
124123 std:: panic:: set_hook ( Box :: new ( move |info| {
@@ -129,9 +128,9 @@ fn initialize_antithesis() {
129128 . map ( |s| ( * s) . to_string ( ) )
130129 . or_else ( || payload. downcast_ref :: < String > ( ) . cloned ( ) )
131130 . unwrap_or_else ( || "<non-string panic payload>" . to_string ( ) ) ;
132- antithesis_sdk :: assert_unreachable !(
131+ saluki_antithesis :: unreachable !(
133132 "agent-data-plane panicked" ,
134- & serde_json :: json! ( { "message" : message, "location" : location } )
133+ { "message" : message, "location" : location }
135134 ) ;
136135 default_hook ( info) ;
137136 } ) ) ;
@@ -151,11 +150,10 @@ fn load_bootstrap_config(bootstrap_config_path: &Path) -> Result<ConfigurationLo
151150 . error_context ( "Environment variable prefix should not be empty." )
152151 } ) ;
153152 // A graceful config rejection exits 1 rather than crashing; classify that against a clean boot.
154- #[ cfg( feature = "antithesis" ) ]
155- antithesis_sdk:: assert_always_or_unreachable!(
153+ saluki_antithesis:: always_or_unreachable!(
156154 loaded. is_ok( ) ,
157155 "agent-data-plane boots under sampled config" ,
158- & serde_json :: json! ( { "phase" : "config_load" , "error" : loaded. as_ref( ) . err( ) . map( |e| format!( "{e:?}" ) ) } )
156+ { "phase" : "config_load" , "error" : loaded. as_ref( ) . err( ) . map( |e| format!( "{e:?}" ) ) }
159157 ) ;
160158 loaded
161159}
@@ -196,11 +194,10 @@ async fn run_inner(
196194 Err ( e) => {
197195 error ! ( "{:?}" , e) ;
198196 // Same boot property as the config-load gate, distinguished by `phase` in the details.
199- #[ cfg( feature = "antithesis" ) ]
200- antithesis_sdk:: assert_always_or_unreachable!(
197+ saluki_antithesis:: always_or_unreachable!(
201198 false ,
202199 "agent-data-plane boots under sampled config" ,
203- & serde_json :: json! ( { "phase" : "run_setup" , "error" : format!( "{e:?}" ) } )
200+ { "phase" : "run_setup" , "error" : format!( "{e:?}" ) }
204201 ) ;
205202 Some ( 1 )
206203 }
0 commit comments