@@ -36,7 +36,7 @@ pub const AGENT_GOAL_SCHEME: &str = "dev.schickling.agent-goal";
3636/// Maximum resolver module bytes admitted by both catalog transactions and the wasm runtime.
3737pub const DEFAULT_MODULE_LIMIT_BYTES : usize = 16 * 1024 * 1024 ;
3838/// Descriptor ABI implemented by this host.
39- pub const PROFILE_DESCRIPTOR_ABI_VERSION : u32 = 2 ;
39+ pub const PROFILE_DESCRIPTOR_ABI_VERSION : u32 = 3 ;
4040/// Maximum canonical compact JSON bytes accepted for one binding selector.
4141pub const DEFAULT_SELECTOR_LIMIT_BYTES : usize = 16 * 1024 ;
4242
@@ -1091,7 +1091,7 @@ mod tests {
10911091 use super :: * ;
10921092
10931093 const VALID_DESCRIPTOR_JSON : & str = r#"{
1094- "abiVersion": 2 ,
1094+ "abiVersion": 3 ,
10951095 "capabilities": ["resolve", "read", "observe"],
10961096 "selectorSchema": {
10971097 "type": "object",
@@ -1157,7 +1157,7 @@ mod tests {
11571157 }
11581158
11591159 #[ test]
1160- fn valid_v2_descriptor_and_nested_selector_validate ( ) {
1160+ fn valid_v3_descriptor_and_nested_selector_validate ( ) {
11611161 let descriptor = valid_descriptor ( ) ;
11621162 assert_eq ! ( descriptor. abi_version, PROFILE_DESCRIPTOR_ABI_VERSION ) ;
11631163 assert_eq ! ( descriptor. runtime. topology, RuntimeTopology :: Shared ) ;
@@ -1171,7 +1171,7 @@ mod tests {
11711171
11721172 #[ test]
11731173 fn descriptor_rejects_unknown_abi_capability_and_fields ( ) {
1174- let unknown_abi = VALID_DESCRIPTOR_JSON . replace ( "\" abiVersion\" : 2 " , "\" abiVersion\" : 9" ) ;
1174+ let unknown_abi = VALID_DESCRIPTOR_JSON . replace ( "\" abiVersion\" : 3 " , "\" abiVersion\" : 9" ) ;
11751175 assert ! (
11761176 ProfileDescriptor :: from_json( unknown_abi. as_bytes( ) )
11771177 . unwrap_err( )
@@ -1187,7 +1187,7 @@ mod tests {
11871187 ) ;
11881188
11891189 let unknown_field =
1190- VALID_DESCRIPTOR_JSON . replace ( "\" abiVersion\" : 2 ," , "\" abiVersion\" : 2 , \" extra\" : true," ) ;
1190+ VALID_DESCRIPTOR_JSON . replace ( "\" abiVersion\" : 3 ," , "\" abiVersion\" : 3 , \" extra\" : true," ) ;
11911191 assert ! (
11921192 ProfileDescriptor :: from_json( unknown_field. as_bytes( ) )
11931193 . unwrap_err( )
0 commit comments