@fuzdev/fuz_app 0.150.0 → 0.152.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/CLAUDE.md +324 -299
  3. package/dist/actions/action_bridge.d.ts +5 -86
  4. package/dist/actions/action_bridge.d.ts.map +1 -1
  5. package/dist/actions/action_bridge.js +4 -84
  6. package/dist/actions/action_codegen.d.ts +8 -166
  7. package/dist/actions/action_codegen.d.ts.map +1 -1
  8. package/dist/actions/action_codegen.js +19 -95
  9. package/dist/actions/action_dispatcher.d.ts +10 -0
  10. package/dist/actions/action_dispatcher.d.ts.map +1 -1
  11. package/dist/actions/action_dispatcher.js +9 -6
  12. package/dist/actions/action_event.d.ts +1 -2
  13. package/dist/actions/action_event.d.ts.map +1 -1
  14. package/dist/actions/action_event.js +7 -13
  15. package/dist/actions/action_event_helpers.d.ts +1 -40
  16. package/dist/actions/action_event_helpers.d.ts.map +1 -1
  17. package/dist/actions/action_event_helpers.js +1 -25
  18. package/dist/actions/action_rpc.d.ts +10 -215
  19. package/dist/actions/action_rpc.d.ts.map +1 -1
  20. package/dist/actions/action_rpc.js +56 -111
  21. package/dist/actions/action_spec.d.ts +2 -2
  22. package/dist/actions/action_spec.js +2 -2
  23. package/dist/actions/action_types.d.ts +229 -8
  24. package/dist/actions/action_types.d.ts.map +1 -1
  25. package/dist/actions/action_types.js +56 -5
  26. package/dist/actions/broadcast_api.d.ts +22 -17
  27. package/dist/actions/broadcast_api.d.ts.map +1 -1
  28. package/dist/actions/broadcast_api.js +16 -27
  29. package/dist/actions/cancel.d.ts +4 -13
  30. package/dist/actions/cancel.d.ts.map +1 -1
  31. package/dist/actions/cancel.js +5 -17
  32. package/dist/actions/compile_action_registry.d.ts +1 -2
  33. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  34. package/dist/actions/connection_closer.d.ts +120 -50
  35. package/dist/actions/connection_closer.d.ts.map +1 -1
  36. package/dist/actions/connection_closer.js +139 -31
  37. package/dist/actions/{transports_ws_backend.d.ts → connection_registry.d.ts} +120 -132
  38. package/dist/actions/connection_registry.d.ts.map +1 -0
  39. package/dist/actions/{transports_ws_backend.js → connection_registry.js} +149 -152
  40. package/dist/actions/frontend_rpc_client.d.ts +52 -2
  41. package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
  42. package/dist/actions/frontend_rpc_client.js +42 -4
  43. package/dist/actions/peer_ping.d.ts +7 -9
  44. package/dist/actions/peer_ping.d.ts.map +1 -1
  45. package/dist/actions/peer_ping.js +6 -8
  46. package/dist/actions/peer_request.d.ts +6 -5
  47. package/dist/actions/peer_request.d.ts.map +1 -1
  48. package/dist/actions/peer_request.js +6 -5
  49. package/dist/actions/perform_action.d.ts +36 -28
  50. package/dist/actions/perform_action.d.ts.map +1 -1
  51. package/dist/actions/perform_action.js +60 -34
  52. package/dist/actions/protocol.d.ts +14 -0
  53. package/dist/actions/protocol.d.ts.map +1 -1
  54. package/dist/actions/protocol.js +18 -0
  55. package/dist/actions/register_action_ws.d.ts +137 -298
  56. package/dist/actions/register_action_ws.d.ts.map +1 -1
  57. package/dist/actions/register_action_ws.js +155 -923
  58. package/dist/actions/socket.svelte.d.ts +9 -0
  59. package/dist/actions/socket.svelte.d.ts.map +1 -1
  60. package/dist/actions/socket.svelte.js +16 -5
  61. package/dist/actions/transports.d.ts +88 -34
  62. package/dist/actions/transports.d.ts.map +1 -1
  63. package/dist/actions/transports.js +76 -76
  64. package/dist/actions/transports_http.d.ts +48 -12
  65. package/dist/actions/transports_http.d.ts.map +1 -1
  66. package/dist/actions/transports_http.js +75 -44
  67. package/dist/actions/transports_ws.d.ts +29 -0
  68. package/dist/actions/transports_ws.d.ts.map +1 -1
  69. package/dist/actions/transports_ws.js +34 -8
  70. package/dist/actions/ws_endpoint_spec.d.ts +52 -75
  71. package/dist/actions/ws_endpoint_spec.d.ts.map +1 -1
  72. package/dist/actions/ws_endpoint_spec.js +27 -10
  73. package/dist/actions/ws_outbound_writer.d.ts +3 -3
  74. package/dist/actions/ws_outbound_writer.js +3 -3
  75. package/dist/actions/ws_socket_session.d.ts +321 -0
  76. package/dist/actions/ws_socket_session.d.ts.map +1 -0
  77. package/dist/actions/ws_socket_session.js +783 -0
  78. package/dist/auth/CLAUDE.md +70 -44
  79. package/dist/auth/account_action_specs.d.ts +2 -0
  80. package/dist/auth/account_action_specs.d.ts.map +1 -1
  81. package/dist/auth/account_actions.d.ts +1 -1
  82. package/dist/auth/account_actions.d.ts.map +1 -1
  83. package/dist/auth/account_actions.js +9 -3
  84. package/dist/auth/account_queries.d.ts +10 -0
  85. package/dist/auth/account_queries.d.ts.map +1 -1
  86. package/dist/auth/account_queries.js +27 -17
  87. package/dist/auth/account_routes.d.ts +2 -1
  88. package/dist/auth/account_routes.d.ts.map +1 -1
  89. package/dist/auth/account_routes.js +14 -17
  90. package/dist/auth/account_schema.d.ts +5 -5
  91. package/dist/auth/account_schema.d.ts.map +1 -1
  92. package/dist/auth/account_schema.js +5 -2
  93. package/dist/auth/actor_lookup_actions.d.ts +1 -1
  94. package/dist/auth/actor_lookup_actions.d.ts.map +1 -1
  95. package/dist/auth/actor_lookup_actions.js +1 -1
  96. package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
  97. package/dist/auth/actor_search_action_specs.js +2 -1
  98. package/dist/auth/actor_search_actions.d.ts +1 -1
  99. package/dist/auth/actor_search_actions.d.ts.map +1 -1
  100. package/dist/auth/actor_search_actions.js +1 -1
  101. package/dist/auth/actor_search_queries.d.ts +5 -5
  102. package/dist/auth/actor_search_queries.d.ts.map +1 -1
  103. package/dist/auth/actor_search_queries.js +7 -7
  104. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  105. package/dist/auth/admin_action_specs.js +3 -1
  106. package/dist/auth/admin_actions.d.ts +1 -1
  107. package/dist/auth/admin_actions.d.ts.map +1 -1
  108. package/dist/auth/admin_actions.js +12 -42
  109. package/dist/auth/all_cell_actions.d.ts +6 -4
  110. package/dist/auth/all_cell_actions.d.ts.map +1 -1
  111. package/dist/auth/all_cell_actions.js +1 -1
  112. package/dist/auth/api_token_queries.d.ts +1 -0
  113. package/dist/auth/api_token_queries.d.ts.map +1 -1
  114. package/dist/auth/api_token_queries.js +1 -0
  115. package/dist/auth/audit_emitter.d.ts +3 -3
  116. package/dist/auth/audit_emitter.js +2 -2
  117. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  118. package/dist/auth/audit_log_route_schema.js +3 -2
  119. package/dist/auth/audit_log_routes.d.ts +20 -11
  120. package/dist/auth/audit_log_routes.d.ts.map +1 -1
  121. package/dist/auth/audit_log_routes.js +49 -29
  122. package/dist/auth/audit_log_schema.d.ts +13 -21
  123. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  124. package/dist/auth/audit_log_schema.js +10 -18
  125. package/dist/auth/bearer_auth.d.ts +7 -4
  126. package/dist/auth/bearer_auth.d.ts.map +1 -1
  127. package/dist/auth/bearer_auth.js +21 -15
  128. package/dist/auth/cell_action_helpers.d.ts +89 -0
  129. package/dist/auth/cell_action_helpers.d.ts.map +1 -0
  130. package/dist/auth/cell_action_helpers.js +113 -0
  131. package/dist/auth/cell_actions.d.ts +22 -13
  132. package/dist/auth/cell_actions.d.ts.map +1 -1
  133. package/dist/auth/cell_actions.js +105 -167
  134. package/dist/auth/cell_audit_actions.d.ts +1 -1
  135. package/dist/auth/cell_audit_actions.d.ts.map +1 -1
  136. package/dist/auth/cell_audit_actions.js +3 -12
  137. package/dist/auth/cell_audit_metadata.d.ts +1 -1
  138. package/dist/auth/cell_audit_metadata.js +1 -1
  139. package/dist/auth/cell_field_actions.d.ts +1 -1
  140. package/dist/auth/cell_field_actions.d.ts.map +1 -1
  141. package/dist/auth/cell_field_actions.js +16 -66
  142. package/dist/auth/cell_grant_action_specs.d.ts +2 -2
  143. package/dist/auth/cell_grant_action_specs.js +3 -3
  144. package/dist/auth/cell_grant_actions.d.ts +73 -11
  145. package/dist/auth/cell_grant_actions.d.ts.map +1 -1
  146. package/dist/auth/cell_grant_actions.js +63 -55
  147. package/dist/auth/cell_grant_audit_metadata.d.ts +6 -3
  148. package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -1
  149. package/dist/auth/cell_grant_audit_metadata.js +7 -4
  150. package/dist/auth/cell_item_actions.d.ts +1 -1
  151. package/dist/auth/cell_item_actions.d.ts.map +1 -1
  152. package/dist/auth/cell_item_actions.js +21 -82
  153. package/dist/auth/cleanup.d.ts +1 -1
  154. package/dist/auth/cleanup.d.ts.map +1 -1
  155. package/dist/auth/cleanup.js +6 -3
  156. package/dist/auth/credential_deadline.d.ts +3 -3
  157. package/dist/auth/credential_deadline.js +3 -3
  158. package/dist/auth/credential_type_schema.d.ts +5 -5
  159. package/dist/auth/credential_type_schema.js +5 -5
  160. package/dist/auth/daemon_token_middleware.d.ts +12 -6
  161. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  162. package/dist/auth/daemon_token_middleware.js +28 -17
  163. package/dist/auth/deps.d.ts +4 -4
  164. package/dist/auth/fail_floor.d.ts +55 -0
  165. package/dist/auth/fail_floor.d.ts.map +1 -0
  166. package/dist/auth/fail_floor.js +63 -0
  167. package/dist/auth/invite_queries.d.ts +3 -15
  168. package/dist/auth/invite_queries.d.ts.map +1 -1
  169. package/dist/auth/invite_queries.js +3 -21
  170. package/dist/auth/middleware.d.ts +12 -7
  171. package/dist/auth/middleware.d.ts.map +1 -1
  172. package/dist/auth/middleware.js +42 -29
  173. package/dist/auth/migrations.d.ts +5 -33
  174. package/dist/auth/migrations.d.ts.map +1 -1
  175. package/dist/auth/migrations.js +9 -16
  176. package/dist/auth/request_context.d.ts +101 -71
  177. package/dist/auth/request_context.d.ts.map +1 -1
  178. package/dist/auth/request_context.js +137 -140
  179. package/dist/auth/resolved_auth.d.ts +122 -36
  180. package/dist/auth/resolved_auth.d.ts.map +1 -1
  181. package/dist/auth/resolved_auth.js +89 -38
  182. package/dist/auth/role_grant_offer_action_specs.d.ts +99 -14
  183. package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
  184. package/dist/auth/role_grant_offer_action_specs.js +26 -13
  185. package/dist/auth/role_grant_offer_actions.d.ts +13 -7
  186. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  187. package/dist/auth/role_grant_offer_actions.js +14 -12
  188. package/dist/auth/role_grant_offer_notifications.d.ts +3 -3
  189. package/dist/auth/role_grant_offer_notifications.js +1 -1
  190. package/dist/auth/role_grant_offer_queries.d.ts +0 -5
  191. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  192. package/dist/auth/role_grant_offer_queries.js +9 -41
  193. package/dist/auth/role_grant_queries.d.ts +17 -67
  194. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  195. package/dist/auth/role_grant_queries.js +34 -106
  196. package/dist/auth/role_grant_sql.d.ts +42 -0
  197. package/dist/auth/role_grant_sql.d.ts.map +1 -0
  198. package/dist/auth/role_grant_sql.js +54 -0
  199. package/dist/auth/scope_kind_schema.d.ts +1 -1
  200. package/dist/auth/scope_kind_schema.js +1 -1
  201. package/dist/auth/self_service_role_actions.d.ts +1 -1
  202. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  203. package/dist/auth/self_service_role_actions.js +1 -1
  204. package/dist/auth/session_queries.d.ts +2 -1
  205. package/dist/auth/session_queries.d.ts.map +1 -1
  206. package/dist/auth/session_queries.js +2 -1
  207. package/dist/auth/signup_routes.d.ts +2 -1
  208. package/dist/auth/signup_routes.d.ts.map +1 -1
  209. package/dist/auth/signup_routes.js +14 -13
  210. package/dist/auth/standard_rpc_actions.d.ts +1 -1
  211. package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
  212. package/dist/auth/token_scope.d.ts +19 -46
  213. package/dist/auth/token_scope.d.ts.map +1 -1
  214. package/dist/auth/token_scope.js +23 -41
  215. package/dist/db/CLAUDE.md +9 -4
  216. package/dist/db/cell_ddl.d.ts +5 -142
  217. package/dist/db/cell_ddl.d.ts.map +1 -1
  218. package/dist/db/cell_ddl.js +17 -16
  219. package/dist/db/cell_field_queries.d.ts +0 -13
  220. package/dist/db/cell_field_queries.d.ts.map +1 -1
  221. package/dist/db/cell_field_queries.js +0 -16
  222. package/dist/db/cell_grant_queries.d.ts +10 -5
  223. package/dist/db/cell_grant_queries.d.ts.map +1 -1
  224. package/dist/db/cell_grant_queries.js +13 -7
  225. package/dist/db/cell_item_queries.d.ts +0 -7
  226. package/dist/db/cell_item_queries.d.ts.map +1 -1
  227. package/dist/db/cell_item_queries.js +0 -10
  228. package/dist/db/cell_queries.d.ts +12 -48
  229. package/dist/db/cell_queries.d.ts.map +1 -1
  230. package/dist/db/cell_queries.js +24 -55
  231. package/dist/db/cell_view_sql.d.ts +1 -6
  232. package/dist/db/cell_view_sql.d.ts.map +1 -1
  233. package/dist/db/cell_view_sql.js +1 -2
  234. package/dist/db/fact_ddl.d.ts +5 -30
  235. package/dist/db/fact_ddl.d.ts.map +1 -1
  236. package/dist/db/fact_ddl.js +14 -13
  237. package/dist/db/fact_store.d.ts +11 -0
  238. package/dist/db/fact_store.d.ts.map +1 -1
  239. package/dist/db/fact_store.js +4 -1
  240. package/dist/db/migrate.d.ts +44 -6
  241. package/dist/db/migrate.d.ts.map +1 -1
  242. package/dist/db/migrate.js +63 -4
  243. package/dist/dev/setup.d.ts +18 -14
  244. package/dist/dev/setup.d.ts.map +1 -1
  245. package/dist/dev/setup.js +42 -39
  246. package/dist/env/dotenv.d.ts +2 -2
  247. package/dist/env/dotenv.js +2 -2
  248. package/dist/env/update_env_variable.d.ts +33 -21
  249. package/dist/env/update_env_variable.d.ts.map +1 -1
  250. package/dist/env/update_env_variable.js +54 -35
  251. package/dist/hono_context.d.ts +15 -90
  252. package/dist/hono_context.d.ts.map +1 -1
  253. package/dist/hono_context.js +9 -56
  254. package/dist/http/CLAUDE.md +35 -20
  255. package/dist/http/auth_shape.d.ts +1 -8
  256. package/dist/http/auth_shape.d.ts.map +1 -1
  257. package/dist/http/auth_shape.js +6 -12
  258. package/dist/http/common_routes.d.ts.map +1 -1
  259. package/dist/http/common_routes.js +3 -2
  260. package/dist/http/db_routes.d.ts +3 -3
  261. package/dist/http/db_routes.js +3 -3
  262. package/dist/http/error_schemas.d.ts +1 -2
  263. package/dist/http/error_schemas.d.ts.map +1 -1
  264. package/dist/http/error_schemas.js +1 -2
  265. package/dist/http/health_schema.d.ts +16 -0
  266. package/dist/http/health_schema.d.ts.map +1 -0
  267. package/dist/http/health_schema.js +12 -0
  268. package/dist/http/jsonrpc_errors.d.ts +22 -2
  269. package/dist/http/jsonrpc_errors.d.ts.map +1 -1
  270. package/dist/http/jsonrpc_errors.js +41 -3
  271. package/dist/http/jsonrpc_helpers.d.ts +60 -17
  272. package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
  273. package/dist/http/jsonrpc_helpers.js +67 -25
  274. package/dist/http/origin.d.ts +30 -1
  275. package/dist/http/origin.d.ts.map +1 -1
  276. package/dist/http/origin.js +46 -9
  277. package/dist/http/origin_wildcard.d.ts +97 -0
  278. package/dist/http/origin_wildcard.d.ts.map +1 -0
  279. package/dist/http/origin_wildcard.js +142 -0
  280. package/dist/http/pending_effects.d.ts +28 -0
  281. package/dist/http/pending_effects.d.ts.map +1 -1
  282. package/dist/http/pending_effects.js +32 -1
  283. package/dist/http/route_spec.d.ts +4 -3
  284. package/dist/http/route_spec.d.ts.map +1 -1
  285. package/dist/http/route_spec.js +54 -45
  286. package/dist/http/surface.d.ts +1 -1
  287. package/dist/http/surface.d.ts.map +1 -1
  288. package/dist/http/surface_query.d.ts +9 -50
  289. package/dist/http/surface_query.d.ts.map +1 -1
  290. package/dist/http/surface_query.js +48 -94
  291. package/dist/realtime/audit_log_sse.d.ts +180 -0
  292. package/dist/realtime/audit_log_sse.d.ts.map +1 -0
  293. package/dist/realtime/audit_log_sse.js +154 -0
  294. package/dist/realtime/sse.d.ts +21 -6
  295. package/dist/realtime/sse.d.ts.map +1 -1
  296. package/dist/realtime/sse.js +33 -10
  297. package/dist/realtime/sse_constants.d.ts +29 -2
  298. package/dist/realtime/sse_constants.d.ts.map +1 -1
  299. package/dist/realtime/sse_constants.js +35 -2
  300. package/dist/realtime/{subscriber_registry.d.ts → sse_registry.d.ts} +12 -12
  301. package/dist/realtime/sse_registry.d.ts.map +1 -0
  302. package/dist/realtime/{subscriber_registry.js → sse_registry.js} +4 -4
  303. package/dist/schema_meta.d.ts +30 -10
  304. package/dist/schema_meta.d.ts.map +1 -1
  305. package/dist/schema_meta.js +85 -21
  306. package/dist/sensitivity.d.ts +9 -3
  307. package/dist/sensitivity.d.ts.map +1 -1
  308. package/dist/sensitivity.js +3 -2
  309. package/dist/server/app_backend.d.ts +8 -5
  310. package/dist/server/app_backend.d.ts.map +1 -1
  311. package/dist/server/app_backend.js +6 -12
  312. package/dist/server/app_server.d.ts +62 -51
  313. package/dist/server/app_server.d.ts.map +1 -1
  314. package/dist/server/app_server.js +84 -71
  315. package/dist/server/app_server_context.d.ts +1 -1
  316. package/dist/server/app_server_context.d.ts.map +1 -1
  317. package/dist/server/env.d.ts +24 -20
  318. package/dist/server/env.d.ts.map +1 -1
  319. package/dist/server/env.js +24 -34
  320. package/dist/server/serve_fact_route.d.ts +12 -16
  321. package/dist/server/serve_fact_route.d.ts.map +1 -1
  322. package/dist/server/serve_fact_route.js +59 -34
  323. package/dist/server/static.d.ts.map +1 -1
  324. package/dist/server/static.js +2 -2
  325. package/dist/testing/CLAUDE.md +179 -158
  326. package/dist/testing/admin_integration.d.ts.map +1 -1
  327. package/dist/testing/admin_integration.js +10 -19
  328. package/dist/testing/adversarial_headers.d.ts.map +1 -1
  329. package/dist/testing/adversarial_headers.js +8 -0
  330. package/dist/testing/app_server.d.ts +9 -77
  331. package/dist/testing/app_server.d.ts.map +1 -1
  332. package/dist/testing/app_server.js +31 -112
  333. package/dist/testing/attack_surface.d.ts.map +1 -1
  334. package/dist/testing/attack_surface.js +3 -4
  335. package/dist/testing/audit_completeness.d.ts.map +1 -1
  336. package/dist/testing/audit_completeness.js +4 -5
  337. package/dist/testing/auth_apps.d.ts +3 -3
  338. package/dist/testing/auth_apps.d.ts.map +1 -1
  339. package/dist/testing/auth_apps.js +9 -6
  340. package/dist/testing/connection_closer_helpers.d.ts +8 -16
  341. package/dist/testing/connection_closer_helpers.d.ts.map +1 -1
  342. package/dist/testing/connection_closer_helpers.js +7 -20
  343. package/dist/testing/cross_backend/action_manifest.d.ts +15 -4
  344. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  345. package/dist/testing/cross_backend/action_manifest.js +13 -3
  346. package/dist/testing/cross_backend/action_manifest_parity.d.ts +15 -7
  347. package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
  348. package/dist/testing/cross_backend/action_manifest_parity.js +8 -1
  349. package/dist/testing/cross_backend/body_size.d.ts.map +1 -1
  350. package/dist/testing/cross_backend/body_size.js +25 -22
  351. package/dist/testing/cross_backend/build_test_backend_paths.d.ts +22 -3
  352. package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -1
  353. package/dist/testing/cross_backend/build_test_backend_paths.js +34 -11
  354. package/dist/testing/cross_backend/capabilities.d.ts +13 -7
  355. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  356. package/dist/testing/cross_backend/cell_grant_role.js +2 -2
  357. package/dist/testing/cross_backend/cell_grant_steward.d.ts +4 -0
  358. package/dist/testing/cross_backend/cell_grant_steward.d.ts.map +1 -0
  359. package/dist/testing/cross_backend/cell_grant_steward.js +120 -0
  360. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
  361. package/dist/testing/cross_backend/cell_relations.js +21 -0
  362. package/dist/testing/cross_backend/conformance_table.d.ts +1 -1
  363. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  364. package/dist/testing/cross_backend/default_backend_configs.d.ts +18 -4
  365. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  366. package/dist/testing/cross_backend/default_backend_configs.js +29 -9
  367. package/dist/testing/cross_backend/default_spine_surface.d.ts +7 -7
  368. package/dist/testing/cross_backend/default_spine_surface.js +2 -2
  369. package/dist/testing/cross_backend/fact_serving.d.ts.map +1 -1
  370. package/dist/testing/cross_backend/fact_serving.js +48 -0
  371. package/dist/testing/cross_backend/full_spine_mount.d.ts +3 -4
  372. package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
  373. package/dist/testing/cross_backend/full_spine_mount.js +9 -2
  374. package/dist/testing/cross_backend/origin_scope.d.ts.map +1 -1
  375. package/dist/testing/cross_backend/origin_scope.js +5 -13
  376. package/dist/testing/cross_backend/peer_ping_ws.d.ts.map +1 -1
  377. package/dist/testing/cross_backend/peer_ping_ws.js +29 -4
  378. package/dist/testing/cross_backend/postgres_database.d.ts +32 -0
  379. package/dist/testing/cross_backend/postgres_database.d.ts.map +1 -1
  380. package/dist/testing/cross_backend/postgres_database.js +56 -1
  381. package/dist/testing/cross_backend/query_shape.d.ts.map +1 -1
  382. package/dist/testing/cross_backend/query_shape.js +18 -1
  383. package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
  384. package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +23 -1
  385. package/dist/testing/cross_backend/rpc_success_fixtures.js +2 -2
  386. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
  387. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  388. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts +17 -5
  389. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
  390. package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +5 -4
  391. package/dist/testing/cross_backend/session_cap.d.ts +8 -0
  392. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  393. package/dist/testing/cross_backend/session_cap.js +66 -2
  394. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  395. package/dist/testing/cross_backend/setup.js +5 -4
  396. package/dist/testing/cross_backend/spine_suites.d.ts +4 -1
  397. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  398. package/dist/testing/cross_backend/spine_suites.js +21 -0
  399. package/dist/testing/cross_backend/spine_surface_constants.d.ts +22 -7
  400. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  401. package/dist/testing/cross_backend/spine_surface_constants.js +22 -7
  402. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  403. package/dist/testing/cross_backend/sse_round_trip.js +4 -3
  404. package/dist/testing/cross_backend/standard.d.ts +6 -12
  405. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  406. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts +8 -0
  407. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts.map +1 -0
  408. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.js +22 -0
  409. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  410. package/dist/testing/cross_backend/testing_backdoor.js +4 -6
  411. package/dist/testing/cross_backend/testing_origin_check.d.ts +1 -1
  412. package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
  413. package/dist/testing/cross_backend/testing_origin_check.js +1 -1
  414. package/dist/testing/cross_backend/testing_reset_actions.d.ts +10 -5
  415. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  416. package/dist/testing/cross_backend/testing_reset_actions.js +7 -6
  417. package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
  418. package/dist/testing/cross_backend/testing_server_bun.js +5 -4
  419. package/dist/testing/cross_backend/testing_server_core.d.ts +6 -7
  420. package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
  421. package/dist/testing/cross_backend/testing_server_core.js +1 -1
  422. package/dist/testing/cross_backend/testing_server_node.d.ts.map +1 -1
  423. package/dist/testing/cross_backend/testing_server_node.js +13 -2
  424. package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
  425. package/dist/testing/cross_backend/token_lifetime.js +68 -0
  426. package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
  427. package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
  428. package/dist/testing/cross_backend/transport_composition.js +45 -3
  429. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +16 -2
  430. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
  431. package/dist/testing/cross_backend/ts_spine_backend_config.js +11 -8
  432. package/dist/testing/cross_backend/ws_action_rate_limit.d.ts.map +1 -1
  433. package/dist/testing/cross_backend/ws_action_rate_limit.js +30 -12
  434. package/dist/testing/cross_backend/ws_connection_cap.d.ts.map +1 -1
  435. package/dist/testing/cross_backend/ws_connection_cap.js +5 -7
  436. package/dist/testing/cross_backend/ws_endpoint.d.ts +2 -3
  437. package/dist/testing/cross_backend/ws_endpoint.d.ts.map +1 -1
  438. package/dist/testing/cross_backend/ws_envelope.d.ts +17 -0
  439. package/dist/testing/cross_backend/ws_envelope.d.ts.map +1 -0
  440. package/dist/testing/cross_backend/ws_envelope.js +172 -0
  441. package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts +16 -0
  442. package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts.map +1 -1
  443. package/dist/testing/cross_backend/ws_inbound_dispatch.js +8 -4
  444. package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
  445. package/dist/testing/cross_backend/ws_outbound_overflow.js +5 -8
  446. package/dist/testing/cross_backend/ws_role_gated.js +2 -2
  447. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  448. package/dist/testing/cross_backend/ws_round_trip.js +6 -4
  449. package/dist/{cli/daemon.d.ts → testing/daemon_info.d.ts} +15 -47
  450. package/dist/testing/daemon_info.d.ts.map +1 -0
  451. package/dist/testing/daemon_info.js +108 -0
  452. package/dist/testing/daemon_token_rotation.js +1 -1
  453. package/dist/testing/data_exposure.d.ts.map +1 -1
  454. package/dist/testing/data_exposure.js +3 -4
  455. package/dist/testing/db.js +2 -2
  456. package/dist/testing/integration.d.ts.map +1 -1
  457. package/dist/testing/integration.js +35 -65
  458. package/dist/testing/integration_helpers.d.ts +0 -15
  459. package/dist/testing/integration_helpers.d.ts.map +1 -1
  460. package/dist/testing/integration_helpers.js +2 -42
  461. package/dist/testing/middleware.d.ts +20 -12
  462. package/dist/testing/middleware.d.ts.map +1 -1
  463. package/dist/testing/middleware.js +49 -40
  464. package/dist/testing/rate_limiting.d.ts.map +1 -1
  465. package/dist/testing/rate_limiting.js +13 -22
  466. package/dist/testing/resolved_auth.d.ts +30 -0
  467. package/dist/testing/resolved_auth.d.ts.map +1 -0
  468. package/dist/testing/resolved_auth.js +41 -0
  469. package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
  470. package/dist/testing/rpc_envelope_cases.js +3 -0
  471. package/dist/testing/rpc_helpers.d.ts +1 -1
  472. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  473. package/dist/testing/rpc_helpers.js +2 -1
  474. package/dist/testing/sse_round_trip.d.ts +5 -4
  475. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  476. package/dist/testing/sse_round_trip.js +2 -2
  477. package/dist/testing/stubs.d.ts +2 -2
  478. package/dist/testing/stubs.d.ts.map +1 -1
  479. package/dist/testing/stubs.js +24 -21
  480. package/dist/testing/test_origin.d.ts +25 -0
  481. package/dist/testing/test_origin.d.ts.map +1 -0
  482. package/dist/testing/test_origin.js +28 -0
  483. package/dist/testing/transports/raw_http.d.ts +54 -0
  484. package/dist/testing/transports/raw_http.d.ts.map +1 -1
  485. package/dist/testing/transports/raw_http.js +58 -0
  486. package/dist/testing/transports/ws_raw_client.d.ts +8 -0
  487. package/dist/testing/transports/ws_raw_client.d.ts.map +1 -1
  488. package/dist/testing/transports/ws_raw_client.js +13 -0
  489. package/dist/testing/transports/ws_transport.d.ts +15 -2
  490. package/dist/testing/transports/ws_transport.d.ts.map +1 -1
  491. package/dist/testing/transports/ws_transport.js +4 -2
  492. package/dist/testing/ws_round_trip.d.ts +27 -25
  493. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  494. package/dist/testing/ws_round_trip.js +34 -26
  495. package/dist/ui/AccountSessions.svelte +48 -19
  496. package/dist/ui/AccountSessions.svelte.d.ts +2 -17
  497. package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
  498. package/dist/ui/AdminAccounts.svelte +6 -1
  499. package/dist/ui/AdminAuditLog.svelte +61 -22
  500. package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
  501. package/dist/ui/AdminInvites.svelte +1 -1
  502. package/dist/ui/AdminOverview.svelte +76 -37
  503. package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
  504. package/dist/ui/AdminRoleGrantHistory.svelte +6 -1
  505. package/dist/ui/AdminSessions.svelte +1 -1
  506. package/dist/ui/AppShell.svelte +3 -2
  507. package/dist/ui/AppShell.svelte.d.ts +3 -2
  508. package/dist/ui/AppShell.svelte.d.ts.map +1 -1
  509. package/dist/ui/CLAUDE.md +121 -35
  510. package/dist/ui/Datatable.svelte +33 -18
  511. package/dist/ui/Datatable.svelte.d.ts +2 -14
  512. package/dist/ui/Datatable.svelte.d.ts.map +1 -1
  513. package/dist/ui/OpenSignupToggle.svelte +10 -1
  514. package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
  515. package/dist/ui/PopoverButton.svelte +13 -8
  516. package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
  517. package/dist/ui/RoleGrantOfferForm.svelte +3 -2
  518. package/dist/ui/RoleGrantOfferForm.svelte.d.ts +3 -2
  519. package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
  520. package/dist/ui/RoleGrantOfferHistory.svelte +3 -3
  521. package/dist/ui/RoleGrantOfferInbox.svelte +19 -15
  522. package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
  523. package/dist/ui/SurfaceExplorer.svelte +66 -27
  524. package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
  525. package/dist/ui/account_sessions_state.svelte.d.ts +7 -14
  526. package/dist/ui/account_sessions_state.svelte.d.ts.map +1 -1
  527. package/dist/ui/admin_accounts_state.svelte.d.ts +14 -9
  528. package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
  529. package/dist/ui/admin_accounts_state.svelte.js +6 -4
  530. package/dist/ui/admin_invites_state.svelte.d.ts +2 -2
  531. package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
  532. package/dist/ui/admin_rpc_adapters.d.ts +9 -9
  533. package/dist/ui/admin_rpc_adapters.d.ts.map +1 -1
  534. package/dist/ui/admin_rpc_adapters.js +9 -9
  535. package/dist/ui/app_settings_state.svelte.d.ts +2 -2
  536. package/dist/ui/app_settings_state.svelte.d.ts.map +1 -1
  537. package/dist/ui/audit_log_state.svelte.d.ts +70 -13
  538. package/dist/ui/audit_log_state.svelte.d.ts.map +1 -1
  539. package/dist/ui/audit_log_state.svelte.js +239 -47
  540. package/dist/ui/backend_probe.svelte.d.ts +93 -0
  541. package/dist/ui/backend_probe.svelte.d.ts.map +1 -0
  542. package/dist/ui/backend_probe.svelte.js +140 -0
  543. package/dist/ui/format_scope.d.ts +7 -7
  544. package/dist/ui/format_scope.d.ts.map +1 -1
  545. package/dist/ui/format_scope.js +4 -4
  546. package/dist/ui/keyed_async_slot.svelte.d.ts +2 -2
  547. package/dist/ui/keyed_async_slot.svelte.js +2 -2
  548. package/dist/ui/popover.svelte.d.ts +18 -19
  549. package/dist/ui/popover.svelte.d.ts.map +1 -1
  550. package/dist/ui/popover.svelte.js +103 -16
  551. package/dist/ui/role_grant_offers_state.svelte.d.ts +41 -46
  552. package/dist/ui/role_grant_offers_state.svelte.d.ts.map +1 -1
  553. package/dist/ui/role_grant_offers_state.svelte.js +37 -19
  554. package/dist/ui/ui_format.d.ts +17 -0
  555. package/dist/ui/ui_format.d.ts.map +1 -1
  556. package/dist/ui/ui_format.js +20 -0
  557. package/package.json +9 -8
  558. package/dist/actions/register_ws_endpoint.d.ts +0 -79
  559. package/dist/actions/register_ws_endpoint.d.ts.map +0 -1
  560. package/dist/actions/register_ws_endpoint.js +0 -109
  561. package/dist/actions/transports_ws_auth_guard.d.ts +0 -96
  562. package/dist/actions/transports_ws_auth_guard.d.ts.map +0 -1
  563. package/dist/actions/transports_ws_auth_guard.js +0 -141
  564. package/dist/actions/transports_ws_backend.d.ts.map +0 -1
  565. package/dist/cli/args.d.ts +0 -55
  566. package/dist/cli/args.d.ts.map +0 -1
  567. package/dist/cli/args.js +0 -100
  568. package/dist/cli/config.d.ts +0 -47
  569. package/dist/cli/config.d.ts.map +0 -1
  570. package/dist/cli/config.js +0 -77
  571. package/dist/cli/daemon.d.ts.map +0 -1
  572. package/dist/cli/daemon.js +0 -181
  573. package/dist/cli/help.d.ts +0 -124
  574. package/dist/cli/help.d.ts.map +0 -1
  575. package/dist/cli/help.js +0 -215
  576. package/dist/cli/logger.d.ts +0 -46
  577. package/dist/cli/logger.d.ts.map +0 -1
  578. package/dist/cli/logger.js +0 -48
  579. package/dist/cli/util.d.ts +0 -36
  580. package/dist/cli/util.d.ts.map +0 -1
  581. package/dist/cli/util.js +0 -50
  582. package/dist/realtime/sse_auth_guard.d.ts +0 -197
  583. package/dist/realtime/sse_auth_guard.d.ts.map +0 -1
  584. package/dist/realtime/sse_auth_guard.js +0 -239
  585. package/dist/realtime/subscriber_registry.d.ts.map +0 -1
  586. package/dist/testing/bootstrap_success.d.ts +0 -29
  587. package/dist/testing/bootstrap_success.d.ts.map +0 -1
  588. package/dist/testing/bootstrap_success.js +0 -144
  589. package/dist/testing/mock_fs.d.ts +0 -20
  590. package/dist/testing/mock_fs.d.ts.map +0 -1
  591. package/dist/testing/mock_fs.js +0 -28
  592. package/dist/testing/standard.d.ts +0 -122
  593. package/dist/testing/standard.d.ts.map +0 -1
  594. package/dist/testing/standard.js +0 -73
  595. package/dist/testing/testing_rate_limiter.d.ts +0 -65
  596. package/dist/testing/testing_rate_limiter.d.ts.map +0 -1
  597. package/dist/testing/testing_rate_limiter.js +0 -80
@@ -28,7 +28,7 @@ import '../assert_dev_env.js';
28
28
  *
29
29
  * Gated on `capabilities.peer_request`, which a backend declares once it
30
30
  * mounts `peer/ping` on a WS endpoint and the HTTP RPC endpoint — the TS
31
- * spine binaries (`BackendWebsocketTransport.request_connection`) and the
31
+ * spine binaries (`ConnectionRegistry.request_connection`) and the
32
32
  * Rust spine both do. Cross-process only: `create_ws_transport` needs a real bound
33
33
  * socket, so wire it from a `*.cross.test.ts`.
34
34
  *
@@ -53,6 +53,11 @@ const PEER_PING_METHOD = 'peer/ping';
53
53
  const REASON_PEER_TIMEOUT = 'peer_timeout';
54
54
  const REASON_PEER_PING_INVALID_REPLY = 'peer_ping_invalid_reply';
55
55
  const REASON_PEER_NO_TRANSPORT = 'peer_no_transport';
56
+ /**
57
+ * The server-side deadline of the per-connection isolation case — generous,
58
+ * so the forged reply and the barrier behind it land inside it under load.
59
+ */
60
+ const ISOLATION_DEADLINE_MS = 5000;
56
61
  /** A reply payload that satisfies the Rust `PingResponse` shape. */
57
62
  const valid_reply = (nonce) => ({ nonce, protocol_version: 1 });
58
63
  /**
@@ -182,9 +187,21 @@ export const describe_peer_ping_ws_tests = (options) => {
182
187
  const ws_a = await open_ws(fixture);
183
188
  const ws_b = await open_ws(fixture, echo_responder);
184
189
  try {
185
- // A invokes peer/ping with a short server-side deadline; don't
186
- // await yet — observe the server→client request first.
187
- const ping_promise = ping_raw(ws_a, 6, { nonce: 1, timeout_ms: 1200 });
190
+ // A invokes peer/ping; don't await yet — observe the
191
+ // server→client request first. The deadline is long enough
192
+ // that B's forged reply below is processed well inside it,
193
+ // so A's timeout can only come from isolation.
194
+ const ping_promise = ping_raw(ws_a, 6, {
195
+ nonce: 1,
196
+ timeout_ms: ISOLATION_DEADLINE_MS
197
+ });
198
+ let a_answered = false;
199
+ void ping_promise.then(() => {
200
+ a_answered = true;
201
+ },
202
+ // a failure elsewhere closes the socket under this wait; that case's
203
+ // own error is the one to report
204
+ () => { });
188
205
  // The server-initiated request A received (id "sN", nonce 1).
189
206
  const inbound = await ws_a.wait_for((m) => is_jsonrpc_request(m) && m.method === PEER_PING_METHOD, 5000);
190
207
  // B replies for A's id — a cross-connection echo. Correct
@@ -194,9 +211,17 @@ export const describe_peer_ping_ws_tests = (options) => {
194
211
  id: inbound.id,
195
212
  result: valid_reply(inbound.params.nonce)
196
213
  });
214
+ // The barrier: a round-trip on B the server answers only after
215
+ // reading the forged reply ahead of it on the same socket, so
216
+ // once it lands the forged reply has been processed.
217
+ const barrier = await ws_b.request(7, PEER_PING_METHOD, { nonce: 7 }, 8000);
218
+ assert.strictEqual(barrier.nonce, 7);
219
+ const answered_before_barrier = a_answered;
197
220
  const frame = await ping_promise;
198
221
  assert.ok('error' in frame, "B's cross-connection reply must not resolve A's request");
199
222
  assert.strictEqual(error_reason(frame), REASON_PEER_TIMEOUT);
223
+ assert.ok(!answered_before_barrier, `A's ${ISOLATION_DEADLINE_MS}ms deadline ran out before B's forged reply was ` +
224
+ 'processed, so the timeout proves nothing about isolation');
200
225
  }
201
226
  finally {
202
227
  await ws_a.close();
@@ -82,4 +82,36 @@ export declare const ensure_database: (database: string, server_url?: string, de
82
82
  * @returns whether the URL named a Postgres database to ensure
83
83
  */
84
84
  export declare const ensure_database_for_url: (database_url: string, deps?: EnsureDatabaseDeps) => boolean;
85
+ /** Options for `empty_owned_database`. */
86
+ export interface EmptyOwnedDatabaseOptions {
87
+ /**
88
+ * The one database name the call may empty — the setup's own. A URL naming
89
+ * any other database is refused before anything connects.
90
+ */
91
+ readonly owned_name: string;
92
+ /** Prefixes every error message, naming the setup (e.g. `'schema parity setup'`). */
93
+ readonly label: string;
94
+ /**
95
+ * Appended to the fix a connect failure suggests — another way to reach a
96
+ * usable server, such as the env var that points the setup elsewhere.
97
+ */
98
+ readonly hint?: string;
99
+ }
100
+ /**
101
+ * Drop and recreate the `public` schema of a database a setup owns, so a
102
+ * backend that does not wipe its own database migrates and bootstraps from
103
+ * nothing on every run — bootstrap refuses a database that already holds an
104
+ * account.
105
+ *
106
+ * The wipe takes everything, so it is tied to `owned_name`, the one database
107
+ * the setup owns, rather than to whatever URL reaches it. Create the database
108
+ * first (`ensure_database_for_url`); a missing one, a server that cannot be
109
+ * reached and a role that cannot connect all fail with what to check.
110
+ *
111
+ * @param database_url - a `postgres://` URL naming the owned database
112
+ * @param options - the owned name, the setup's label, and an optional hint
113
+ * @throws Error when the URL names another database, or when the database
114
+ * cannot be emptied (with what to check)
115
+ */
116
+ export declare const empty_owned_database: (database_url: string, options: EmptyOwnedDatabaseOptions) => Promise<void>;
85
117
  //# sourceMappingURL=postgres_database.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgres_database.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/postgres_database.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAgB9B,8DAA8D;AAC9D,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAyC,CAAC;AAEjG;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,OACyB,CAAC;AAExE;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,MAI3E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,YAAY,MAAM,KAAG,MACtB,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,cAAc,MAAM,KAAG,MAK1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,EAAE,UAAU,MAAM,KAAG,OACrB,CAAC;AAE1D,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,GAC3B,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,OAAM,kBAAiD,KACrD,OAyBF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GACnC,cAAc,MAAM,EACpB,OAAO,kBAAkB,KACvB,OAMF,CAAC"}
1
+ {"version":3,"file":"postgres_database.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/postgres_database.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAoB9B,8DAA8D;AAC9D,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAyC,CAAC;AAEjG;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,OACyB,CAAC;AAExE;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,MAI3E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,YAAY,MAAM,KAAG,MACtB,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,cAAc,MAAM,KAAG,MAK1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,EAAE,UAAU,MAAM,KAAG,OACrB,CAAC;AAE1D,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,GAC3B,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,OAAM,kBAAiD,KACrD,OAyBF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GACnC,cAAc,MAAM,EACpB,OAAO,kBAAkB,KACvB,OAMF,CAAC;AAEF,0CAA0C;AAC1C,MAAM,WAAW,yBAAyB;IACzC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,GAChC,cAAc,MAAM,EACpB,SAAS,yBAAyB,KAChC,OAAO,CAAC,IAAI,CAqCd,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import '../assert_dev_env.js';
2
2
  /**
3
3
  * Postgres database helpers for cross-backend global setups — creating the
4
- * database a backend's URL names, and printing such a URL safely.
4
+ * database a backend's URL names, emptying one a setup owns, and printing
5
+ * such a URL safely.
5
6
  *
6
7
  * The harness never creates a database by itself: a setup opts in
7
8
  * (`create_cross_backend_global_setup`'s `ensure_databases`, or a call to
@@ -11,6 +12,8 @@ import '../assert_dev_env.js';
11
12
  * @module
12
13
  */
13
14
  import { execFileSync } from 'node:child_process';
15
+ import { create_db } from '../../db/create_db.js';
16
+ import { pg_error_code } from '../../db/pg_error.js';
14
17
  /** The URL protocols a Postgres connection string carries. */
15
18
  export const POSTGRES_URL_PROTOCOLS = new Set(['postgres:', 'postgresql:']);
16
19
  /**
@@ -138,3 +141,55 @@ export const ensure_database_for_url = (database_url, deps) => {
138
141
  ensure_database(database, database_url, deps);
139
142
  return true;
140
143
  };
144
+ /** A connection failure's text — a refused connection carries a `code` and an empty message. */
145
+ const describe_connect_error = (error) => (error instanceof Error && error.message) || pg_error_code(error) || String(error);
146
+ /**
147
+ * Drop and recreate the `public` schema of a database a setup owns, so a
148
+ * backend that does not wipe its own database migrates and bootstraps from
149
+ * nothing on every run — bootstrap refuses a database that already holds an
150
+ * account.
151
+ *
152
+ * The wipe takes everything, so it is tied to `owned_name`, the one database
153
+ * the setup owns, rather than to whatever URL reaches it. Create the database
154
+ * first (`ensure_database_for_url`); a missing one, a server that cannot be
155
+ * reached and a role that cannot connect all fail with what to check.
156
+ *
157
+ * @param database_url - a `postgres://` URL naming the owned database
158
+ * @param options - the owned name, the setup's label, and an optional hint
159
+ * @throws Error when the URL names another database, or when the database
160
+ * cannot be emptied (with what to check)
161
+ */
162
+ export const empty_owned_database = async (database_url, options) => {
163
+ const { owned_name, label, hint } = options;
164
+ const database = decodeURIComponent(new URL(database_url).pathname.slice(1));
165
+ if (database !== owned_name) {
166
+ throw new Error(`${label}: refusing to empty database "${database}" — only "${owned_name}" is wiped`);
167
+ }
168
+ try {
169
+ // inside the `try`, so a connect error thrown here gets the fix too
170
+ const { db, close } = await create_db(database_url);
171
+ try {
172
+ // loaded here, not at module load: `../db.ts` pulls in `vitest`, which a
173
+ // global setup that only ensures databases must not load
174
+ const { reset_public_schema } = await import('../db.js');
175
+ await reset_public_schema(db);
176
+ }
177
+ finally {
178
+ await close();
179
+ }
180
+ }
181
+ catch (error) {
182
+ // 3D000 invalid_catalog_name — the server answered, the database is missing
183
+ const maintenance_url = redact_database_url(to_maintenance_database_url(database_url));
184
+ const fix = pg_error_code(error) === '3D000'
185
+ ? `the database does not exist and \`createdb\` did not create it — run ` +
186
+ `\`createdb --maintenance-db=${maintenance_url} ${owned_name}\` to see why ` +
187
+ `(the URL's role needs to be allowed to create databases), or create it ` +
188
+ `there as another role`
189
+ : `check that Postgres is running there and that the URL's role can connect ` +
190
+ `and owns the database` +
191
+ (hint ? `, ${hint}` : '');
192
+ throw new Error(`${label}: the Postgres database ${redact_database_url(database_url)} could not be ` +
193
+ `emptied: ${describe_connect_error(error)}. To fix: ${fix}.`, { cause: error });
194
+ }
195
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"query_shape.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/query_shape.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwC9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAG1E;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,uCAAuC,CAAC;AAKjF,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAqJtF,CAAC"}
1
+ {"version":3,"file":"query_shape.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/query_shape.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAyC9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAG1E;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,uCAAuC,CAAC;AAYjF,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAwKtF,CAAC"}
@@ -18,7 +18,8 @@ import '../assert_dev_env.js';
18
18
  * - **the JSON-RPC GET endpoint** — `method` / `id` / `params` read
19
19
  * first-wins; a duplicated `method` must dispatch the first one on every
20
20
  * backend (a last-wins reader dispatches a different method per backend on
21
- * the same request).
21
+ * the same request). Every response the GET handler writes — a dispatched
22
+ * answer and its own query refusal alike — is `Cache-Control: no-store`.
22
23
  * - **`GET /api/facts/:hash`** (gated on `capabilities.fact_serving_admin_hash`) —
23
24
  * strict query schema: unknown keys and a malformed `acting` are 400
24
25
  * `invalid_query_params` even for an anonymous caller (query precedes the
@@ -36,6 +37,12 @@ import { account_verify_action_spec } from '../../auth/account_action_specs.js';
36
37
  import { ERROR_INVALID_QUERY_PARAMS } from '../../http/error_schemas.js';
37
38
  import { test_if } from './capabilities.js';
38
39
  import { SPINE_ACCOUNT_STATUS_PATH, SPINE_RPC_PATH } from './spine_surface_constants.js';
40
+ /**
41
+ * The `Cache-Control` every RPC `GET` response carries — the value of
42
+ * `actions/action_rpc.ts`'s `RPC_GET_CACHE_CONTROL` and the Rust spine's,
43
+ * spelled out so this suite imports no server module.
44
+ */
45
+ const RPC_GET_CACHE_CONTROL_EXPECTED = 'no-store';
39
46
  /** A well-formed blake3 hash that references no stored fact. */
40
47
  const MISSING_HASH = `blake3:${'a'.repeat(64)}`;
41
48
  export const describe_query_shape_cross_tests = (options) => {
@@ -101,10 +108,20 @@ export const describe_query_shape_cross_tests = (options) => {
101
108
  // reader dispatches the missing method (method_not_found) with id 8.
102
109
  const res = await fixture.transport(`${rpc_path}?method=${method}&method=definitely_missing_method&id=7&id=8`, { method: 'GET', headers: fixture.create_session_headers() });
103
110
  assert.strictEqual(res.status, 200);
111
+ assert.strictEqual(res.headers.get('cache-control'), RPC_GET_CACHE_CONTROL_EXPECTED, 'a GET read is no-store');
104
112
  const body = (await res.json());
105
113
  assert.strictEqual(body.id, 7, 'first id occurrence must win');
106
114
  assert.ok(body.result !== undefined, 'first method occurrence must dispatch');
107
115
  });
116
+ test('rpc GET: the handler refusal is no-store too', async () => {
117
+ const fixture = await setup_test();
118
+ const res = await fixture.transport(`${rpc_path}?id=1`, {
119
+ method: 'GET',
120
+ headers: fixture.create_session_headers()
121
+ });
122
+ assert.strictEqual(res.status, 400);
123
+ assert.strictEqual(res.headers.get('cache-control'), RPC_GET_CACHE_CONTROL_EXPECTED, 'a missing-method refusal is no-store');
124
+ });
108
125
  test_if(capabilities.fact_serving_admin_hash, 'bare-hash facts: unknown query key → 400 invalid_query_params, even anonymous', async () => {
109
126
  const fixture = await setup_test();
110
127
  // Authed admin (the keeper): the strict query schema refuses the
@@ -1 +1 @@
1
- {"version":3,"file":"role_grant_offer_lifecycle.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/role_grant_offer_lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAiE9B,OAAO,KAAK,EAAE,wBAAwB,EAAe,MAAM,YAAY,CAAC;AAMxE,qEAAqE;AACrE,MAAM,WAAW,uCAAwC,SAAQ,wBAAwB;IACxF;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,+CAA+C,GAC3D,SAAS,uCAAuC,KAC9C,IAyYF,CAAC"}
1
+ {"version":3,"file":"role_grant_offer_lifecycle.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/role_grant_offer_lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAuE9B,OAAO,KAAK,EAAE,wBAAwB,EAAe,MAAM,YAAY,CAAC;AAMxE,qEAAqE;AACrE,MAAM,WAAW,uCAAwC,SAAQ,wBAAwB;IACxF;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,+CAA+C,GAC3D,SAAS,uCAAuC,KAC9C,IA+aF,CAAC"}
@@ -14,6 +14,9 @@ import '../assert_dev_env.js';
14
14
  * (`docs/security.md` §"404-over-403 is the general mask"), and the offer is
15
15
  * left pending. The scope check comes before the terminal check, so a
16
16
  * stranger learns nothing of an offer's state either.
17
+ * - **a decline or retract answers the terminal offer** — the offer as the
18
+ * history then lists it, `declined_at` (with any `decline_reason`) or
19
+ * `retracted_at` stamped, as `accept` answers its own.
17
20
  * - **already decided → 400** `invalid_request` with reason
18
21
  * `role_grant_offer_terminal` — a decline or retract after an accept, a
19
22
  * second decline, a second retract, and either one after the other.
@@ -44,7 +47,7 @@ import '../assert_dev_env.js';
44
47
  */
45
48
  import { assert, describe, test } from 'vitest';
46
49
  import { rpc_call } from '../rpc_helpers.js';
47
- import { ERROR_CANNOT_REVOKE_KEEPER_ADMIN, ERROR_ROLE_GRANT_OFFER_NOT_FOUND, ERROR_ROLE_GRANT_OFFER_TERMINAL } from '../../auth/role_grant_offer_action_specs.js';
50
+ import { ERROR_CANNOT_REVOKE_KEEPER_ADMIN, ERROR_ROLE_GRANT_OFFER_NOT_FOUND, ERROR_ROLE_GRANT_OFFER_TERMINAL, RoleGrantOfferDeclineOutput, RoleGrantOfferHistoryOutput, RoleGrantOfferRetractOutput } from '../../auth/role_grant_offer_action_specs.js';
48
51
  import { AdminAccountListOutput } from '../../auth/admin_action_specs.js';
49
52
  import { ROLE_ADMIN } from '../../auth/role_schema.js';
50
53
  import { expect_output } from './cross_rpc.js';
@@ -119,6 +122,25 @@ export const describe_role_grant_offer_lifecycle_cross_tests = (options) => {
119
122
  assert.ok(await is_pending(fixture, recipient, offer.id), 'the refusals leave it pending');
120
123
  assert_ok(await retract(fixture, offer.id, fixture.create_session_headers()), 'retract');
121
124
  });
125
+ test('a decline and a retract answer the terminal offer, as the history lists it', async () => {
126
+ const fixture = await setup_test();
127
+ const recipient = await fixture.create_account({ username: 'lifecycle_answered' });
128
+ const grantor_headers = fixture.create_session_headers();
129
+ const to_decline = await create_offer(fixture, recipient);
130
+ const { offer: declined } = expect_output(await decline(fixture, to_decline.id, recipient.create_session_headers(), 'not now'), RoleGrantOfferDeclineOutput);
131
+ assert.strictEqual(declined.id, to_decline.id);
132
+ assert.ok(declined.declined_at, 'the declined offer carries declined_at');
133
+ assert.strictEqual(declined.decline_reason, 'not now');
134
+ assert.strictEqual(declined.retracted_at, null);
135
+ const to_retract = await create_offer(fixture, recipient);
136
+ const { offer: retracted } = expect_output(await retract(fixture, to_retract.id, grantor_headers), RoleGrantOfferRetractOutput);
137
+ assert.strictEqual(retracted.id, to_retract.id);
138
+ assert.ok(retracted.retracted_at, 'the retracted offer carries retracted_at');
139
+ assert.strictEqual(retracted.declined_at, null);
140
+ const { offers } = expect_output(await rpc(fixture, 'role_grant_offer_history', {}, grantor_headers), RoleGrantOfferHistoryOutput);
141
+ assert.deepStrictEqual(offers.find((o) => o.id === declined.id), declined);
142
+ assert.deepStrictEqual(offers.find((o) => o.id === retracted.id), retracted);
143
+ });
122
144
  test('a decline or retract after accept → 400 role_grant_offer_terminal; a stranger still gets 404', async () => {
123
145
  const fixture = await setup_test();
124
146
  const recipient = await fixture.create_account({ username: 'lifecycle_accepted' });
@@ -13,8 +13,8 @@ import '../assert_dev_env.js';
13
13
  * Spine-generic: the fixtures use only standard RPC actions and the builtin
14
14
  * `ROLE_ADMIN`, so any consumer mounting `create_standard_rpc_actions` can
15
15
  * pass the map to `describe_standard_cross_process_tests` (as
16
- * `rpc_success_fixtures`), `describe_standard_tests`, or
17
- * `describe_rpc_round_trip_tests` (as `success_fixtures`). Each fixture mints
16
+ * `rpc_success_fixtures`) or `describe_rpc_round_trip_tests` (as
17
+ * `success_fixtures`). Each fixture mints
18
18
  * its own accounts and calls as one of them, so none touches or calls as the
19
19
  * suite's shared identities.
20
20
  *
@@ -20,7 +20,7 @@ import '../assert_dev_env.js';
20
20
  *
21
21
  * @module
22
22
  */
23
- import type { RpcAction } from '../../actions/action_rpc.js';
23
+ import type { RpcAction } from '../../actions/action_types.js';
24
24
  import type { ActionSpecUnion } from '../../actions/action_spec.js';
25
25
  import type { RoleSchemaResult } from '../../auth/role_schema.js';
26
26
  import type { SessionOptions } from '../../auth/session_cookie.js';
@@ -1 +1 @@
1
- {"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAMnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,wDAAyD,CAAC;AAU3F,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,uFAAuF;IACvF,QAAQ,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAChG,gEAAgE;IAChE,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACpD,SAAS,oCAAoC,KAC3C,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,eAAe,CAAC,CA+BpD,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,mCAAmC,KAC1C,cAeA,CAAC"}
1
+ {"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAMnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,wDAAyD,CAAC;AAU3F,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,uFAAuF;IACvF,QAAQ,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAChG,gEAAgE;IAChE,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACpD,SAAS,oCAAoC,KAC3C,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,eAAe,CAAC,CA+BpD,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,mCAAmC,KAC1C,cAeA,CAAC"}
@@ -32,7 +32,8 @@ export interface SpineStubBackendConfigOptions {
32
32
  readonly database_url?: string;
33
33
  /**
34
34
  * Backend name — labels the spawn in errors and logs, and names its
35
- * directory under `os.tmpdir()` (`build_test_backend_paths`), which holds
35
+ * directory under `os.tmpdir()` (`default_test_backend_paths`, namespaced
36
+ * by the running repo), which holds
36
37
  * the bootstrap token, the daemon token and the fact store. Default
37
38
  * `RUST_SPINE_STUB_DEFAULT_NAME`. Give each stub spawned alongside another its own name, so
38
39
  * those files don't collide.
@@ -54,10 +55,10 @@ export interface SpineStubBackendConfigOptions {
54
55
  readonly enable_login_rate_limit?: boolean;
55
56
  /**
56
57
  * Comma-separated trusted-proxy allowlist passed as `FUZ_TRUSTED_PROXIES`
57
- * (e.g. `'127.0.0.1,::1'`). Unset by default (the stub leaves XFF parsing
58
- * off, keying on the raw TCP peer). The login-security project sets the
59
- * loopback set so the limiter keys on the `X-Forwarded-For` client IP — the
60
- * TS spine binary wires the equivalent set unconditionally.
58
+ * (e.g. `'127.0.0.1,::1'`). Unset, the stub trusts the loopback set
59
+ * (`127.0.0.1`, `::1`), as the TS spine binary does unconditionally, so a
60
+ * loopback caller's `X-Forwarded-For` names the client; `','` trusts none.
61
+ * The login-security project passes the loopback set explicitly.
61
62
  */
62
63
  readonly trusted_proxies?: string;
63
64
  /**
@@ -75,6 +76,17 @@ export interface SpineStubBackendConfigOptions {
75
76
  * otherwise. Mirrors `TsSpineBackendConfigOptions.action_rate_limit_max_attempts`.
76
77
  */
77
78
  readonly action_rate_limit_max_attempts?: number;
79
+ /**
80
+ * Replace the audit stream's keep-alive interval
81
+ * (`FUZ_AUDIT_SSE_KEEP_ALIVE_MS`). Mirrors
82
+ * `TsSpineBackendConfigOptions.audit_sse_keep_alive_ms`.
83
+ */
84
+ readonly audit_sse_keep_alive_ms?: number;
85
+ /**
86
+ * Replace the WS endpoints' receive timeout (`FUZ_WS_RECEIVE_TIMEOUT_MS`).
87
+ * Mirrors `TsSpineBackendConfigOptions.ws_receive_timeout_ms`.
88
+ */
89
+ readonly ws_receive_timeout_ms?: number;
78
90
  }
79
91
  /**
80
92
  * Build the `BackendConfig` for `testing_spine_stub`. Resolves the binary
@@ -1 +1 @@
1
- {"version":3,"file":"rust_spine_stub_backend_config.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_stub_backend_config.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAczD,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,oCAAoC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,6CAA6C,CAAC;AAE3F;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,6CAA6C,CAAC;AAoCnG,kGAAkG;AAClG,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAEjD,8EAA8E;AAC9E,eAAO,MAAM,4BAA4B,eAAe,CAAC;AAEzD,0FAA0F;AAC1F,eAAO,MAAM,oCAAoC,sDACG,CAAC;AAErD,MAAM,WAAW,6BAA6B;IAC7C,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;OAOG;IACH,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC;;;;;;OAMG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C;;;;;OAKG;IACH,QAAQ,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACjD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,GAC1C,UAAS,6BAAkC,KACzC,aAmDF,CAAC"}
1
+ {"version":3,"file":"rust_spine_stub_backend_config.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_stub_backend_config.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@ -35,9 +35,9 @@ import '../assert_dev_env.js';
35
35
  * @module
36
36
  */
37
37
  import { fileURLToPath } from 'node:url';
38
- import { build_test_backend_paths } from './build_test_backend_paths.js';
38
+ import { default_test_backend_paths } from './build_test_backend_paths.js';
39
39
  import { LOGIN_RATE_LIMIT_ENABLED_ENV, SPINE_EXPECTED_SCHEMA_URL, TESTING_BACKDOOR_METHODS } from './spine_surface_constants.js';
40
- import { action_rate_limit_env, make_default_rust_backend_config, rust_default_capabilities } from './default_backend_configs.js';
40
+ import { action_rate_limit_env, make_default_rust_backend_config, rust_default_capabilities, timing_env } from './default_backend_configs.js';
41
41
  /** Env var naming the prebuilt `testing_spine_stub` binary. Required when `binary_path` is omitted. */
42
42
  export const RUST_SPINE_STUB_BIN_ENV = 'FUZ_TESTING_RUST_SPINE_STUB_BIN';
43
43
  /**
@@ -112,7 +112,7 @@ export const rust_spine_stub_backend_config = (options = {}) => {
112
112
  '`testing_spine_stub` binary (build it with `cargo build -p testing_spine_stub --profile cross-test`) ' +
113
113
  'or pass `binary_path`.');
114
114
  }
115
- const paths = build_test_backend_paths(name);
115
+ const paths = default_test_backend_paths(name);
116
116
  return make_default_rust_backend_config({
117
117
  name,
118
118
  port,
@@ -141,7 +141,8 @@ export const rust_spine_stub_backend_config = (options = {}) => {
141
141
  // resolved `X-Forwarded-For` IP. The stub reads both directly.
142
142
  ...(enable_login_rate_limit ? { [LOGIN_RATE_LIMIT_ENABLED_ENV]: 'true' } : {}),
143
143
  ...(trusted_proxies !== undefined ? { FUZ_TRUSTED_PROXIES: trusted_proxies } : {}),
144
- ...action_rate_limit_env(options)
144
+ ...action_rate_limit_env(options),
145
+ ...timing_env(options)
145
146
  }
146
147
  });
147
148
  };
@@ -15,12 +15,20 @@ export interface SessionCapCrossTestOptions {
15
15
  readonly login_path?: string;
16
16
  /** REST account-status route path. Default `/api/account/status`. */
17
17
  readonly status_path?: string;
18
+ /** JSON-RPC endpoint path, for the session-list case. Default `SPINE_RPC_PATH`. */
19
+ readonly rpc_path?: string;
18
20
  /**
19
21
  * Where the backend's WebSocket endpoint is, for the case that an evicted
20
22
  * session's socket is closed. Pass it when the backend has a WS transport
21
23
  * (`capabilities.ws`); omitted, that case is skipped.
22
24
  */
23
25
  readonly ws?: WsEndpointTarget;
26
+ /**
27
+ * Whether the `ws` endpoint mounts the self-service account actions
28
+ * (`capabilities.ws_account_actions`), so the session-list case also lists
29
+ * over a socket. Default `false`.
30
+ */
31
+ readonly ws_account_actions?: boolean;
24
32
  /**
25
33
  * The roles the account whose socket the `ws` case watches is created with, for a
26
34
  * backend whose WS upgrade requires a role (an admin-gated `/api/ws`
@@ -1 +1 @@
1
- {"version":3,"file":"session_cap.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/session_cap.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0D9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,gDAAgD;AAChD,MAAM,WAAW,0BAA0B;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,qEAAqE;IACrE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAgGtF,CAAC"}
1
+ {"version":3,"file":"session_cap.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/session_cap.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAkE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,gDAAgD;AAChD,MAAM,WAAW,0BAA0B;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,qEAAqE;IACrE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IA2MtF,CAAC"}
@@ -15,6 +15,12 @@ import '../assert_dev_env.js';
15
15
  * - **the evicted session is the oldest** — the first login's cookie no longer
16
16
  * authenticates once the cap is exceeded. A spine with no cap authenticates it
17
17
  * fine, which is exactly the defect this catches.
18
+ * - **the session list marks the caller's own session `is_current`** — each
19
+ * login's `account_session_list` marks exactly one row, its own, over HTTP
20
+ * and (when `ws` mounts the account actions) over a socket the login
21
+ * opened, and a bearer or daemon-token caller's list marks none (no session
22
+ * authenticated it), even when a session cookie rides beside the daemon
23
+ * token. Computed per request, so two logins see different current rows.
18
24
  * - **an evicted session's socket is closed** (when `ws` is supplied) — the cap
19
25
  * deletes the session row, and a WebSocket never re-reads its session, so
20
26
  * the login that evicts it must close the socket it opened
@@ -49,15 +55,18 @@ import { describe, test, assert } from 'vitest';
49
55
  import { heartbeat_action_spec } from '../../actions/heartbeat.js';
50
56
  import { WS_CLOSE_SESSION_REVOKED } from '../../actions/transports.js';
51
57
  import { DEFAULT_MAX_SESSIONS } from '../../auth/account_route_schema.js';
58
+ import { SessionListOutput } from '../../auth/account_action_specs.js';
52
59
  import { DEFAULT_TEST_PASSWORD } from '../test_credentials.js';
53
60
  import { create_ws_transport } from '../transports/ws_transport.js';
54
61
  import { test_if } from './capabilities.js';
55
- import { SPINE_ACCOUNT_LOGIN_PATH, SPINE_ACCOUNT_STATUS_PATH } from './spine_surface_constants.js';
62
+ import { cross_rpc_call, expect_output } from './cross_rpc.js';
63
+ import { SPINE_ACCOUNT_LOGIN_PATH, SPINE_ACCOUNT_STATUS_PATH, SPINE_RPC_PATH } from './spine_surface_constants.js';
56
64
  export const describe_session_cap_cross_tests = (options) => {
57
- const { setup_test, ws, ws_account_roles = [] } = options;
65
+ const { setup_test, ws, ws_account_actions = false, ws_account_roles = [] } = options;
58
66
  const max_sessions = options.max_sessions ?? DEFAULT_MAX_SESSIONS;
59
67
  const login_path = options.login_path ?? SPINE_ACCOUNT_LOGIN_PATH;
60
68
  const status_path = options.status_path ?? SPINE_ACCOUNT_STATUS_PATH;
69
+ const rpc_path = options.rpc_path ?? SPINE_RPC_PATH;
61
70
  // Fresh-keeper-per-test wipes the DB between tests, so a literal username
62
71
  // never collides (see `setup.ts`).
63
72
  const username = 'session_cap_user';
@@ -96,6 +105,61 @@ export const describe_session_cap_cross_tests = (options) => {
96
105
  assert.strictEqual(await status_on(sessions[0]), 401, `the oldest session must be evicted once the account exceeds ${max_sessions} sessions ` +
97
106
  '(a spine with no cap authenticates this cookie)');
98
107
  });
108
+ test("the session list marks the caller's own session current, and none for a bearer or daemon token", async () => {
109
+ const fixture = await setup_test();
110
+ const account = await fixture.create_account({
111
+ username,
112
+ password_value: DEFAULT_TEST_PASSWORD,
113
+ roles: [...ws_account_roles]
114
+ });
115
+ const first = await login(fixture, 'the first login');
116
+ const second = await login(fixture, 'the second login');
117
+ /** `account_session_list` on a transport: the listed ids, and those marked current. */
118
+ const list_on = async (transport, headers, label) => {
119
+ const { sessions } = expect_output(await cross_rpc_call(transport, rpc_path, 'account_session_list', undefined, headers), SessionListOutput);
120
+ assert.ok(sessions.length > 0, `${label}: the account lists its sessions`);
121
+ return {
122
+ ids: sessions.map((s) => s.id).sort(),
123
+ current: sessions.filter((s) => s.is_current).map((s) => s.id)
124
+ };
125
+ };
126
+ const on_first = await list_on(first, {}, 'the first login');
127
+ const on_second = await list_on(second, {}, 'the second login');
128
+ assert.strictEqual(on_first.current.length, 1, 'the first login sees exactly one current session');
129
+ assert.strictEqual(on_second.current.length, 1, 'the second login sees exactly one current session');
130
+ assert.notStrictEqual(on_first.current[0], on_second.current[0], 'each login sees its own session as current — computed per request, not the newest row');
131
+ assert.deepStrictEqual(on_second.ids, on_first.ids);
132
+ const on_bearer = await list_on(fixture.fresh_transport({ origin: null }), account.create_bearer_headers(), 'a bearer caller');
133
+ assert.deepStrictEqual(on_bearer.current, [], 'no session authenticated a bearer caller');
134
+ assert.deepStrictEqual(on_bearer.ids, on_first.ids);
135
+ const on_daemon = await list_on(fixture.fresh_transport({ origin: null }), fixture.create_daemon_token_headers(), 'a daemon-token caller');
136
+ assert.deepStrictEqual(on_daemon.current, [], 'no session authenticated a daemon token');
137
+ // the daemon token wins over a session cookie sent beside it, so the
138
+ // cookie's session — the keeper's own, listed here — isn't current
139
+ const on_keeper = await list_on(fixture.fresh_transport({ origin: null }), fixture.create_session_headers(), "the keeper's session");
140
+ assert.strictEqual(on_keeper.current.length, 1, "the keeper's cookie lists its session");
141
+ const on_daemon_with_cookie = await list_on(fixture.fresh_transport({ origin: null }), fixture.create_daemon_token_headers(fixture.create_session_headers()), 'a daemon-token caller sending a session cookie');
142
+ assert.deepStrictEqual(on_daemon_with_cookie.ids, on_keeper.ids);
143
+ assert.deepStrictEqual(on_daemon_with_cookie.current, [], 'a daemon token authenticated the request, not the cookie beside it');
144
+ if (ws === undefined || !ws_account_actions)
145
+ return;
146
+ const client = await create_ws_transport({
147
+ base_url: ws.base_url,
148
+ ws_path: ws.ws_path,
149
+ cookies: first.cookies(),
150
+ origin: ws.origin
151
+ });
152
+ try {
153
+ const result = await client.request(1, 'account_session_list', undefined);
154
+ const parsed = SessionListOutput.safeParse(result);
155
+ assert.ok(parsed.success, `the socket's session list parses (got ${JSON.stringify(result)})`);
156
+ const current = parsed.data.sessions.filter((s) => s.is_current).map((s) => s.id);
157
+ assert.deepStrictEqual(current, on_first.current, "the first login's socket sees exactly its own session as current");
158
+ }
159
+ finally {
160
+ await client.close();
161
+ }
162
+ });
99
163
  // `max_sessions` further logins leave the watched session outside the
100
164
  // newest `max_sessions`, so it is evicted whatever sessions the account
101
165
  // held before it (`create_account` seeds one on some cradles).
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0B9B,OAAO,EAAE,IAAI,EAAuB,MAAM,4BAA4B,CAAC;AAIvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC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OAmBG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpD;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC1D;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C;;;;;;;;OAQG;IACH,QAAQ,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;IACtD;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,qGAAqG;IACrG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAsFD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,GACnC,QAAQ,sCAAsC,EAC9C,UAAS;IAAE,cAAc,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAO,KACtD,OAAO,CAAC,cAAc,CAcxB,CAAC;AA8BF;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GACnC,QAAQ,sCAAsC,KAC5C,OAAO,CAAC,cAAc,CAC8C,CAAC;AAExE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACrC,QAAQ,sCAAsC,KAC5C,OAAO,CAAC,gBAAgB,CACgD,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAoVlD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,2BAA2B,GACvC,QAAQ,sCAAsC,EAC9C,UAAU,wBAAwB,KAChC,SAsIF,CAAC"}
@@ -142,7 +142,8 @@ const generate_default_username = () => {
142
142
  * harness and doesn't need spec-shape validation (callers narrow the
143
143
  * `unknown` result against the shape they expect).
144
144
  *
145
- * `extra_headers` covers the daemon-token auth case for
145
+ * An `undefined` `params` leaves the key off the envelope — the no-arg call
146
+ * of a void-input method. `extra_headers` covers the daemon-token auth case for
146
147
  * `_testing_reset`; `Content-Type: application/json` is always set.
147
148
  * The JSON-RPC `id` mirrors `method` so server-side logs correlate
148
149
  * cleanly.
@@ -184,8 +185,8 @@ export const capture_schema_snapshot = async (handle, options = {}) => {
184
185
  return raw;
185
186
  };
186
187
  /**
187
- * Capture a no-arg daemon-token introspection RPC and validate the wire
188
- * response against `schema`. The shared shape behind the parse-based
188
+ * Capture a no-arg (void-input) daemon-token introspection RPC, sent with no
189
+ * params, and validate the wire response against `schema`. The shared shape behind the parse-based
189
190
  * `capture_*` cross-impl parity probes: call a `_testing_*` introspection
190
191
  * action over the keeper's daemon-token channel, then `parse` so a shape
191
192
  * drift between the TS and Rust answers fails loud at the boundary.
@@ -196,7 +197,7 @@ export const capture_schema_snapshot = async (handle, options = {}) => {
196
197
  * `exclude_tables` param.)
197
198
  */
198
199
  const capture_via_daemon = async (handle, method, schema) => {
199
- const raw = await rpc_via_transport(handle.keeper_daemon_transport, handle.config.rpc_path, method, {}, handle.config.name, { [DAEMON_TOKEN_HEADER]: handle.daemon_token });
200
+ const raw = await rpc_via_transport(handle.keeper_daemon_transport, handle.config.rpc_path, method, undefined, handle.config.name, { [DAEMON_TOKEN_HEADER]: handle.daemon_token });
200
201
  return schema.parse(raw);
201
202
  };
202
203
  /**
@@ -41,6 +41,7 @@ import { type TokenScopeSurfaceCrossTestOptions } from './token_scope_surface.js
41
41
  import { type TransportCompositionCrossTestOptions } from './transport_composition.js';
42
42
  import { type WsConnectionCapCrossTestOptions } from './ws_connection_cap.js';
43
43
  import { type WsInboundDispatchCrossTestOptions } from './ws_inbound_dispatch.js';
44
+ import { type WsEnvelopeCrossTestOptions } from './ws_envelope.js';
44
45
  import { type WsOutboundOverflowCrossTestOptions } from './ws_outbound_overflow.js';
45
46
  import { type WsRoleGatedCrossTestOptions } from './ws_role_gated.js';
46
47
  import { type CrossProcessWsTestOptions } from './ws_round_trip.js';
@@ -51,7 +52,7 @@ import { type CrossProcessWsTestOptions } from './ws_round_trip.js';
51
52
  * guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
52
53
  * exports a `describe_*` suite, so a new suite fails until it is registered.
53
54
  */
54
- export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "testing_backdoor", "token_lifetime", "token_scope_surface", "transport_composition", "ws_connection_cap", "ws_inbound_dispatch", "ws_outbound_overflow", "ws_role_gated", "ws_round_trip"];
55
+ export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "testing_backdoor", "token_lifetime", "token_scope_surface", "transport_composition", "ws_connection_cap", "ws_envelope", "ws_inbound_dispatch", "ws_outbound_overflow", "ws_role_gated", "ws_round_trip"];
55
56
  /** A shipped single-backend cross suite, named by its module. */
56
57
  export type SuiteName = (typeof SUITE_NAMES)[number];
57
58
  /** A shipped suite module `describe_spine_cross_suites` leaves out. */
@@ -79,6 +80,7 @@ export interface SuiteOptionsMap {
79
80
  cell_crud: RpcPathCapabilityGatedCrossSuiteOptions;
80
81
  cell_gated_create: RpcPathCapabilityGatedCrossSuiteOptions;
81
82
  cell_grant_role: CellGrantRoleCrossTestOptions;
83
+ cell_grant_steward: RpcPathCapabilityGatedCrossSuiteOptions;
82
84
  cell_moderate: RpcPathCapabilityGatedCrossSuiteOptions;
83
85
  cell_ref_admission: RpcPathCapabilityGatedCrossSuiteOptions;
84
86
  cell_relations: RpcPathCapabilityGatedCrossSuiteOptions;
@@ -109,6 +111,7 @@ export interface SuiteOptionsMap {
109
111
  token_scope_surface: TokenScopeSurfaceCrossTestOptions;
110
112
  transport_composition: TransportCompositionCrossTestOptions;
111
113
  ws_connection_cap: WsConnectionCapCrossTestOptions;
114
+ ws_envelope: WsEnvelopeCrossTestOptions;
112
115
  ws_inbound_dispatch: WsInboundDispatchCrossTestOptions;
113
116
  ws_outbound_overflow: WsOutboundOverflowCrossTestOptions;
114
117
  ws_role_gated: WsRoleGatedCrossTestOptions;