@fuzdev/fuz_app 0.181.0 → 0.183.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 (267) hide show
  1. package/README.md +2 -0
  2. package/dist/actions/CLAUDE.md +28 -10
  3. package/dist/actions/action_rpc.d.ts +11 -1
  4. package/dist/actions/action_rpc.d.ts.map +1 -1
  5. package/dist/actions/action_rpc.js +3 -2
  6. package/dist/actions/action_types.d.ts +16 -1
  7. package/dist/actions/action_types.d.ts.map +1 -1
  8. package/dist/actions/action_types.js +1 -1
  9. package/dist/actions/notification_sender.d.ts +83 -0
  10. package/dist/actions/notification_sender.d.ts.map +1 -0
  11. package/dist/actions/notification_sender.js +85 -0
  12. package/dist/actions/perform_action.d.ts +9 -0
  13. package/dist/actions/perform_action.d.ts.map +1 -1
  14. package/dist/actions/perform_action.js +22 -13
  15. package/dist/actions/register_action_ws.d.ts +14 -0
  16. package/dist/actions/register_action_ws.d.ts.map +1 -1
  17. package/dist/actions/register_action_ws.js +3 -2
  18. package/dist/actions/ws_socket_session.d.ts +3 -0
  19. package/dist/actions/ws_socket_session.d.ts.map +1 -1
  20. package/dist/actions/ws_socket_session.js +2 -1
  21. package/dist/auth/CLAUDE.md +113 -70
  22. package/dist/auth/account_actions.d.ts.map +1 -1
  23. package/dist/auth/account_actions.js +13 -3
  24. package/dist/auth/account_queries.d.ts +158 -16
  25. package/dist/auth/account_queries.d.ts.map +1 -1
  26. package/dist/auth/account_queries.js +189 -18
  27. package/dist/auth/account_routes.d.ts +6 -4
  28. package/dist/auth/account_routes.d.ts.map +1 -1
  29. package/dist/auth/account_routes.js +98 -92
  30. package/dist/auth/admin_actions.d.ts.map +1 -1
  31. package/dist/auth/admin_actions.js +93 -45
  32. package/dist/auth/api_token_queries.d.ts +13 -5
  33. package/dist/auth/api_token_queries.d.ts.map +1 -1
  34. package/dist/auth/api_token_queries.js +24 -9
  35. package/dist/auth/audit_emitter.d.ts +75 -84
  36. package/dist/auth/audit_emitter.d.ts.map +1 -1
  37. package/dist/auth/audit_emitter.js +83 -71
  38. package/dist/auth/audit_log_schema.d.ts +10 -5
  39. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  40. package/dist/auth/audit_log_schema.js +22 -6
  41. package/dist/auth/bearer_auth.d.ts.map +1 -1
  42. package/dist/auth/bearer_auth.js +3 -2
  43. package/dist/auth/bootstrap_account.d.ts +31 -13
  44. package/dist/auth/bootstrap_account.d.ts.map +1 -1
  45. package/dist/auth/bootstrap_account.js +34 -15
  46. package/dist/auth/bootstrap_routes.d.ts +1 -1
  47. package/dist/auth/bootstrap_routes.d.ts.map +1 -1
  48. package/dist/auth/bootstrap_routes.js +7 -14
  49. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  50. package/dist/auth/daemon_token_middleware.js +12 -1
  51. package/dist/auth/deps.d.ts +18 -5
  52. package/dist/auth/deps.d.ts.map +1 -1
  53. package/dist/auth/deps.js +3 -2
  54. package/dist/auth/request_context.d.ts +73 -73
  55. package/dist/auth/request_context.d.ts.map +1 -1
  56. package/dist/auth/request_context.js +78 -96
  57. package/dist/auth/resolved_auth.d.ts +16 -11
  58. package/dist/auth/resolved_auth.d.ts.map +1 -1
  59. package/dist/auth/resolved_auth.js +6 -6
  60. package/dist/auth/role_grant_offer_action_specs.d.ts +1 -1
  61. package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
  62. package/dist/auth/role_grant_offer_action_specs.js +2 -1
  63. package/dist/auth/role_grant_offer_actions.d.ts +32 -12
  64. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  65. package/dist/auth/role_grant_offer_actions.js +91 -116
  66. package/dist/auth/role_grant_offer_notifications.d.ts +87 -38
  67. package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
  68. package/dist/auth/role_grant_offer_notifications.js +75 -22
  69. package/dist/auth/role_grant_offer_queries.d.ts +155 -18
  70. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  71. package/dist/auth/role_grant_offer_queries.js +262 -73
  72. package/dist/auth/role_grant_offer_schema.js +1 -1
  73. package/dist/auth/role_grant_queries.d.ts +43 -52
  74. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  75. package/dist/auth/role_grant_queries.js +50 -74
  76. package/dist/auth/role_grant_sql.d.ts +21 -0
  77. package/dist/auth/role_grant_sql.d.ts.map +1 -1
  78. package/dist/auth/role_grant_sql.js +21 -0
  79. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  80. package/dist/auth/self_service_role_actions.js +17 -21
  81. package/dist/auth/session_queries.d.ts +40 -16
  82. package/dist/auth/session_queries.d.ts.map +1 -1
  83. package/dist/auth/session_queries.js +68 -29
  84. package/dist/auth/signup_routes.d.ts.map +1 -1
  85. package/dist/auth/signup_routes.js +90 -38
  86. package/dist/auth/standard_rpc_actions.d.ts +6 -19
  87. package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
  88. package/dist/auth/standard_rpc_actions.js +5 -6
  89. package/dist/auth/token_scope.d.ts +1 -1
  90. package/dist/auth/token_scope.js +1 -1
  91. package/dist/db/sql_columns.d.ts +1 -1
  92. package/dist/db/sql_columns.js +1 -1
  93. package/dist/http/CLAUDE.md +22 -16
  94. package/dist/http/auth_shape.d.ts +1 -1
  95. package/dist/http/db_routes.d.ts +7 -22
  96. package/dist/http/db_routes.d.ts.map +1 -1
  97. package/dist/http/db_routes.js +72 -72
  98. package/dist/http/error_schemas.d.ts +9 -21
  99. package/dist/http/error_schemas.d.ts.map +1 -1
  100. package/dist/http/error_schemas.js +14 -24
  101. package/dist/http/pending_effects.d.ts +42 -4
  102. package/dist/http/pending_effects.d.ts.map +1 -1
  103. package/dist/http/pending_effects.js +34 -4
  104. package/dist/http/route_spec.d.ts +2 -2
  105. package/dist/server/app_backend.d.ts.map +1 -1
  106. package/dist/server/app_backend.js +3 -1
  107. package/dist/server/app_server.d.ts +69 -18
  108. package/dist/server/app_server.d.ts.map +1 -1
  109. package/dist/server/app_server.js +74 -10
  110. package/dist/server/serve_fact_route.d.ts +3 -3
  111. package/dist/server/serve_fact_route.js +12 -12
  112. package/dist/testing/CLAUDE.md +259 -790
  113. package/dist/testing/adversarial_404.d.ts +6 -1
  114. package/dist/testing/adversarial_404.d.ts.map +1 -1
  115. package/dist/testing/adversarial_404.js +38 -17
  116. package/dist/testing/app_server.d.ts +20 -140
  117. package/dist/testing/app_server.d.ts.map +1 -1
  118. package/dist/testing/app_server.js +48 -125
  119. package/dist/testing/audit_drift_guard.d.ts +11 -6
  120. package/dist/testing/audit_drift_guard.d.ts.map +1 -1
  121. package/dist/testing/audit_drift_guard.js +15 -8
  122. package/dist/testing/auth_apps.js +1 -1
  123. package/dist/testing/cross_backend/account_lifecycle.d.ts.map +1 -1
  124. package/dist/testing/cross_backend/account_lifecycle.js +43 -0
  125. package/dist/testing/cross_backend/audit_cross_helpers.d.ts +12 -9
  126. package/dist/testing/cross_backend/audit_cross_helpers.d.ts.map +1 -1
  127. package/dist/testing/cross_backend/audit_cross_helpers.js +13 -14
  128. package/dist/testing/cross_backend/capabilities.d.ts +9 -6
  129. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  130. package/dist/testing/cross_backend/capabilities.js +11 -7
  131. package/dist/testing/cross_backend/capability_mounts.d.ts +103 -0
  132. package/dist/testing/cross_backend/capability_mounts.d.ts.map +1 -0
  133. package/dist/testing/cross_backend/capability_mounts.js +423 -0
  134. package/dist/testing/cross_backend/cell_moderate.js +2 -2
  135. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
  136. package/dist/testing/cross_backend/cell_relations.js +12 -11
  137. package/dist/testing/cross_backend/conformance_principal.d.ts +54 -0
  138. package/dist/testing/cross_backend/conformance_principal.d.ts.map +1 -0
  139. package/dist/testing/cross_backend/conformance_principal.js +283 -0
  140. package/dist/testing/cross_backend/conformance_table.d.ts +2 -50
  141. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  142. package/dist/testing/cross_backend/conformance_table.js +2 -270
  143. package/dist/testing/cross_backend/credential_deadline.d.ts.map +1 -1
  144. package/dist/testing/cross_backend/credential_deadline.js +2 -0
  145. package/dist/testing/cross_backend/credential_wire.d.ts +1 -1
  146. package/dist/testing/cross_backend/credential_wire.d.ts.map +1 -1
  147. package/dist/testing/cross_backend/db_state_diff.d.ts +72 -0
  148. package/dist/testing/cross_backend/db_state_diff.d.ts.map +1 -0
  149. package/dist/testing/cross_backend/db_state_diff.js +444 -0
  150. package/dist/testing/cross_backend/declared_skips.d.ts +68 -0
  151. package/dist/testing/cross_backend/declared_skips.d.ts.map +1 -0
  152. package/dist/testing/cross_backend/declared_skips.js +132 -0
  153. package/dist/testing/cross_backend/default_spine_surface.d.ts +1 -26
  154. package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
  155. package/dist/testing/cross_backend/default_spine_surface.js +2 -6
  156. package/dist/testing/cross_backend/differential.d.ts +11 -2
  157. package/dist/testing/cross_backend/differential.d.ts.map +1 -1
  158. package/dist/testing/cross_backend/differential.js +35 -11
  159. package/dist/testing/cross_backend/differential_normalize.d.ts +12 -0
  160. package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
  161. package/dist/testing/cross_backend/differential_normalize.js +16 -0
  162. package/dist/testing/cross_backend/full_spine_mount.d.ts +3 -10
  163. package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
  164. package/dist/testing/cross_backend/full_spine_mount.js +4 -4
  165. package/dist/testing/cross_backend/in_process_setup.d.ts +22 -12
  166. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  167. package/dist/testing/cross_backend/in_process_setup.js +151 -134
  168. package/dist/testing/cross_backend/login_security.d.ts +12 -0
  169. package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
  170. package/dist/testing/cross_backend/login_security.js +21 -4
  171. package/dist/testing/cross_backend/request_target_conformance_wire.d.ts +0 -2
  172. package/dist/testing/cross_backend/request_target_conformance_wire.d.ts.map +1 -1
  173. package/dist/testing/cross_backend/request_target_conformance_wire.js +3 -1
  174. package/dist/testing/cross_backend/revocation_drivers.d.ts +18 -5
  175. package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
  176. package/dist/testing/cross_backend/revocation_drivers.js +18 -10
  177. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts +1 -1
  178. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts.map +1 -1
  179. package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
  180. package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +33 -1
  181. package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts +5 -4
  182. package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts.map +1 -1
  183. package/dist/testing/cross_backend/role_grant_offer_notification_ws.js +183 -30
  184. package/dist/testing/cross_backend/role_grant_participation.js +4 -4
  185. package/dist/testing/cross_backend/rpc_adversarial.js +1 -1
  186. package/dist/testing/cross_backend/session_cap.d.ts +2 -2
  187. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  188. package/dist/testing/cross_backend/session_cap.js +48 -16
  189. package/dist/testing/cross_backend/setup.d.ts +31 -1
  190. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  191. package/dist/testing/cross_backend/setup.js +32 -1
  192. package/dist/testing/cross_backend/spine_suites.d.ts +123 -12
  193. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  194. package/dist/testing/cross_backend/spine_suites.js +454 -57
  195. package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
  196. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  197. package/dist/testing/cross_backend/spine_surface_constants.js +1 -0
  198. package/dist/testing/cross_backend/sse_round_trip.d.ts +9 -1
  199. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  200. package/dist/testing/cross_backend/sse_round_trip.js +123 -27
  201. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  202. package/dist/testing/cross_backend/testing_backdoor.js +4 -2
  203. package/dist/testing/cross_backend/testing_reset_actions.d.ts +59 -27
  204. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  205. package/dist/testing/cross_backend/testing_reset_actions.js +66 -42
  206. package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
  207. package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
  208. package/dist/testing/cross_backend/transport_composition.js +7 -3
  209. package/dist/testing/cross_backend/ws_round_trip.d.ts +5 -0
  210. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  211. package/dist/testing/cross_backend/ws_round_trip.js +54 -8
  212. package/dist/testing/data_exposure.d.ts.map +1 -1
  213. package/dist/testing/data_exposure.js +3 -0
  214. package/dist/testing/db.d.ts +0 -32
  215. package/dist/testing/db.d.ts.map +1 -1
  216. package/dist/testing/db.js +0 -86
  217. package/dist/testing/db_entities.d.ts +14 -0
  218. package/dist/testing/db_entities.d.ts.map +1 -1
  219. package/dist/testing/db_entities.js +17 -0
  220. package/dist/testing/db_invariant_queries.d.ts +259 -0
  221. package/dist/testing/db_invariant_queries.d.ts.map +1 -0
  222. package/dist/testing/db_invariant_queries.js +400 -0
  223. package/dist/testing/db_invariants.d.ts +106 -0
  224. package/dist/testing/db_invariants.d.ts.map +1 -0
  225. package/dist/testing/db_invariants.gen.sql.d.ts +11 -0
  226. package/dist/testing/db_invariants.gen.sql.d.ts.map +1 -0
  227. package/dist/testing/db_invariants.gen.sql.js +13 -0
  228. package/dist/testing/db_invariants.js +141 -0
  229. package/dist/testing/db_invariants.sql +152 -0
  230. package/dist/testing/describe_db.d.ts +36 -0
  231. package/dist/testing/describe_db.d.ts.map +1 -0
  232. package/dist/testing/describe_db.js +71 -0
  233. package/dist/testing/integration.d.ts +6 -9
  234. package/dist/testing/integration.d.ts.map +1 -1
  235. package/dist/testing/integration.js +9 -13
  236. package/dist/testing/integration_helpers.d.ts +1 -1
  237. package/dist/testing/integration_helpers.d.ts.map +1 -1
  238. package/dist/testing/middleware.d.ts +1 -1
  239. package/dist/testing/middleware.js +5 -5
  240. package/dist/testing/rate_limiting.d.ts +1 -1
  241. package/dist/testing/rate_limiting.d.ts.map +1 -1
  242. package/dist/testing/rate_limiting.js +3 -2
  243. package/dist/testing/resolved_auth.d.ts +3 -1
  244. package/dist/testing/resolved_auth.d.ts.map +1 -1
  245. package/dist/testing/resolved_auth.js +4 -4
  246. package/dist/testing/role_grant_helpers.d.ts +1 -1
  247. package/dist/testing/role_grant_helpers.d.ts.map +1 -1
  248. package/dist/testing/round_trip.d.ts.map +1 -1
  249. package/dist/testing/round_trip.js +3 -0
  250. package/dist/testing/rpc_attack_surface.d.ts +8 -6
  251. package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
  252. package/dist/testing/rpc_attack_surface.js +69 -6
  253. package/dist/testing/rpc_round_trip.d.ts +1 -1
  254. package/dist/testing/rpc_round_trip.d.ts.map +1 -1
  255. package/dist/testing/rpc_round_trip.js +3 -0
  256. package/dist/testing/sse_round_trip.d.ts +1 -1
  257. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  258. package/dist/testing/sse_round_trip.js +13 -4
  259. package/dist/testing/stubs.d.ts +4 -2
  260. package/dist/testing/stubs.d.ts.map +1 -1
  261. package/dist/testing/stubs.js +15 -7
  262. package/dist/testing/test_app.d.ts +166 -0
  263. package/dist/testing/test_app.d.ts.map +1 -0
  264. package/dist/testing/test_app.js +124 -0
  265. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  266. package/dist/testing/ws_round_trip.js +8 -4
  267. package/package.json +1 -1
@@ -25,7 +25,7 @@ export declare const TESTING_ACTION_AUTH: {
25
25
  * fuz_app's spine binary mounts, so an action added there fails until it is
26
26
  * listed here.
27
27
  */
28
- export declare const TESTING_BACKDOOR_METHODS: readonly ["_testing_reset", "_testing_drain_effects", "_testing_mint_session", "_testing_put_fact", "_testing_flood_notifications", "_testing_schema_snapshot", "_testing_migration_tracker", "_testing_action_manifest", "_testing_origin_check", "_testing_credential_read", "_testing_shorten_credential_expiry", "_testing_room_evict"];
28
+ export declare const TESTING_BACKDOOR_METHODS: readonly ["_testing_reset", "_testing_drain_effects", "_testing_mint_session", "_testing_put_fact", "_testing_flood_notifications", "_testing_schema_snapshot", "_testing_migration_tracker", "_testing_db_invariants", "_testing_action_manifest", "_testing_origin_check", "_testing_credential_read", "_testing_shorten_credential_expiry", "_testing_room_evict"];
29
29
  /** A `_testing_*` backdoor the shipped cross suites know — see `TESTING_BACKDOOR_METHODS`. */
30
30
  export type TestingBackdoorMethod = (typeof TESTING_BACKDOOR_METHODS)[number];
31
31
  /** RPC endpoint mount path — matches the binary's `/api/rpc`. */
@@ -1 +1 @@
1
- {"version":3,"file":"spine_surface_constants.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_surface_constants.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA4B9B;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;CAIF,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,6UAa3B,CAAC;AAEX,8FAA8F;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,iEAAiE;AACjE,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,+EAA+E;AAC/E,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,wBAAwB;AACxB,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,yBAAyB;AACzB,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,kCAAkC;AAClC,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAEnE,iCAAiC;AACjC,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,yBAAyB;AACzB,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,yEAAyE;AACzE,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,QAAc,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,MAAM,CAG1D,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,EAAE,GAAwD,CAAC;AAEjG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,uCAAuC,CAAC;AAEvF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6BAA6B,CAAC"}
1
+ {"version":3,"file":"spine_surface_constants.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_surface_constants.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA4B9B;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;CAIF,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,uWAc3B,CAAC;AAEX,8FAA8F;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,iEAAiE;AACjE,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC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AAC"}
@@ -33,6 +33,7 @@ export const TESTING_BACKDOOR_METHODS = [
33
33
  '_testing_flood_notifications',
34
34
  '_testing_schema_snapshot',
35
35
  '_testing_migration_tracker',
36
+ '_testing_db_invariants',
36
37
  '_testing_action_manifest',
37
38
  '_testing_origin_check',
38
39
  '_testing_credential_read',
@@ -41,11 +41,19 @@ export interface CrossProcessSseTestOptions {
41
41
  readonly logout_path?: string;
42
42
  /** REST password-change route path, for its close case. Default `/api/account/password`. */
43
43
  readonly password_path?: string;
44
+ /**
45
+ * A role the stream is not gated on, which the keep case assigns globally
46
+ * and revokes, the stream staying open — one the backend's registry holds
47
+ * with the `admin` grant path. Default `SPINE_PARTICIPANT_ROLE`, the
48
+ * spine's own; `ROLE_ADMIN`, the stream's own gate, skips that case.
49
+ */
50
+ readonly other_role?: string;
44
51
  }
45
52
  /**
46
53
  * Register the cross-process SSE round-trip suite. Its cases run over a
47
54
  * real streaming `fetch`: connected-comment, audit data frame, account-wide
48
- * close-on-revoke, session-scoped close-on-revoke, close on account delete,
55
+ * close-on-revoke, session-scoped close-on-revoke, close on a revoke of the
56
+ * gating role's global grant and not on other role revokes, close on account delete,
49
57
  * close on admin token revoke-all, logout, password change and purge, and the
50
58
  * per-session cap.
51
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAmG9B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,mBAAmB,CAAC;AAGtE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAWzD,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,2EAA2E;IAC3E,QAAQ,CAAC,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,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,+GAA+G;IAC/G,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,wFAAwF;IACxF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAwID;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAsdtF,CAAC"}
@@ -33,23 +33,32 @@ import '../assert_dev_env.js';
33
33
  * stream registered under the named session's hash, while the caller's own
34
34
  * stream stays open and still receives a broadcast — so a backend closing
35
35
  * the whole account, or the caller's streams, on a session revoke fails it.
36
- * 5. **close on account delete** (gated on `rpc_path` and
36
+ * 5. **close on a role revoke** (gated on `rpc_path`) — `role_grant_revoke`
37
+ * of a second admin's global `admin` grant, the role the stream is gated on,
38
+ * closes its stream; a revoke of its global grant of a role the stream
39
+ * isn't gated on (`other_role`, skipped when it is `admin`) leaves the
40
+ * stream open and still receiving. The stream's gate is global-only
41
+ * (`admin` can't be scoped), so scope matching is held on the role-gated
42
+ * WebSocket by `describe_ws_role_gated_cross_tests`.
43
+ * 6. **close on account delete** (gated on `rpc_path` and
37
44
  * `capabilities.account_lifecycle`) — the keeper soft-deletes a second
38
45
  * admin whose stream is open; the delete revokes its credentials and
39
46
  * closes its stream.
40
- * 6. **close on the other account-wide revocations** (gated on `rpc_path`;
41
- * purge also on `capabilities.account_lifecycle`) — `admin_token_revoke_all`,
42
- * `POST /logout`, `POST /password`, and `account_purge` of a second admin
43
- * each close its stream — the rows `create_account_revocations` shares with
44
- * the WS suite.
45
- * 7. **per-session cap** — one stream past `max_per_scope` on one session
47
+ * 7. **close on the shared revocations** (gated on `rpc_path`; purge also
48
+ * on `capabilities.account_lifecycle`) — `admin_token_revoke_all`,
49
+ * `POST /password`, and `account_purge` of a second admin each close its
50
+ * stream, and its `POST /logout` closes the stream of the session it ends
51
+ * while a second session's stream stays open and still receives a
52
+ * broadcast — the rows `create_account_revocations` shares with the WS
53
+ * suite.
54
+ * 8. **per-session cap** — one stream past `max_per_scope` on one session
46
55
  * closes the oldest (evict-oldest, no final frame) and leaves every other
47
56
  * stream open. With `rpc_path`, each stream is proven admitted as it opens
48
57
  * and each survivor proven open after the overflow by a broadcast frame;
49
58
  * without it, by the connect comment and a short silence.
50
59
  *
51
- * Cases 2–6 need `rpc_path` (each drives an RPC method); 1 and 7 run without
52
- * it. Every close case (3–6, and 7 when `rpc_path` is given) first proves its
60
+ * Cases 2–7 need `rpc_path` (each drives an RPC method); 1 and 8 run without
61
+ * it. Every close case (3–7, and 8 when `rpc_path` is given) first proves its
53
62
  * stream **admitted**: after the connect comment, an admin writes one audit
54
63
  * row (`app_settings_update`, `open_signup` set to its reset value) and the
55
64
  * stream must deliver its frame. The comment alone proves nothing — a
@@ -57,12 +66,12 @@ import '../assert_dev_env.js';
57
66
  * then ends — so a close observed without it can't tell a working revocation
58
67
  * from a broken admission.
59
68
  *
60
- * The close-on-revoke matrix is layered: cases 3–6 exercise the account-wide
61
- * and session-scoped paths cross-process; `token_revoke` (token-scoped — the
62
- * stock stream admits sessions only, so its bearer close is covered on the
63
- * WebSocket by `describe_cross_process_ws_tests`) and `role_grant_revoke`
64
- * (role-matched) are covered by the spine's `fuz_realtime` SSE-registry unit
65
- * tests and the in-process guard self-test.
69
+ * The close-on-revoke matrix is layered: cases 3–7 exercise the account-wide,
70
+ * session-scoped and role-matched paths cross-process; `token_revoke`
71
+ * (token-scoped — the stock stream admits sessions only) has its bearer close
72
+ * covered on the WebSocket by `describe_cross_process_ws_tests`. A close seen
73
+ * cross-process is the union of the revoking handler's and the audit guard's
74
+ * (`create_revocation_guard`), so a case goes red only when both miss.
66
75
  *
67
76
  * Gated on `capabilities.sse` — backends without an end-to-end SSE stream
68
77
  * skip (the cases still surface as `.skip` in the report). Cross-process
@@ -75,6 +84,7 @@ import { assert, describe } from 'vitest';
75
84
  import { parse } from '@fuzdev/fuz_schema/schema.ts';
76
85
  import { account_session_list_action_spec, account_session_revoke_action_spec, account_session_revoke_all_action_spec } from '../../auth/account_action_specs.js';
77
86
  import { account_delete_action_spec, admin_session_revoke_all_action_spec, app_settings_update_action_spec } from '../../auth/admin_action_specs.js';
87
+ import { role_grant_assign_action_spec, role_grant_revoke_action_spec } from '../../auth/role_grant_offer_action_specs.js';
78
88
  import { ROLE_ADMIN } from '../../auth/role_schema.js';
79
89
  import { AUDIT_LOG_SSE_MAX_PER_SCOPE, audit_log_event_specs } from '../../realtime/audit_log_sse.js';
80
90
  import { SSE_CONNECTED_COMMENT } from '../../realtime/sse_constants.js';
@@ -83,8 +93,9 @@ import { create_rpc_post_init } from '../rpc_helpers.js';
83
93
  import { DEFAULT_TEST_PASSWORD } from '../test_credentials.js';
84
94
  import { test_if } from './capabilities.js';
85
95
  import { create_account_revocations } from './revocation_drivers.js';
96
+ import { create_active_role_grant } from './role_grant_cross_helpers.js';
86
97
  import { login_fresh_session } from './session_login.js';
87
- import { SPINE_ACCOUNT_LOGIN_PATH, SPINE_ACCOUNT_LOGOUT_PATH, SPINE_ACCOUNT_PASSWORD_PATH, SPINE_SSE_PATH } from './spine_surface_constants.js';
98
+ import { SPINE_ACCOUNT_LOGIN_PATH, SPINE_ACCOUNT_LOGOUT_PATH, SPINE_ACCOUNT_PASSWORD_PATH, SPINE_PARTICIPANT_ROLE, SPINE_SSE_PATH } from './spine_surface_constants.js';
88
99
  /** The audit event a session revoke-all writes, what the data-frame and cap cases read. */
89
100
  const SESSION_REVOKE_ALL_EVENT = 'session_revoke_all';
90
101
  /** The `data:` payload of a frame, or `null` for a comment frame. */
@@ -183,7 +194,8 @@ const open_admitted_stream = async (options) => {
183
194
  /**
184
195
  * Register the cross-process SSE round-trip suite. Its cases run over a
185
196
  * real streaming `fetch`: connected-comment, audit data frame, account-wide
186
- * close-on-revoke, session-scoped close-on-revoke, close on account delete,
197
+ * close-on-revoke, session-scoped close-on-revoke, close on a revoke of the
198
+ * gating role's global grant and not on other role revokes, close on account delete,
187
199
  * close on admin token revoke-all, logout, password change and purge, and the
188
200
  * per-session cap.
189
201
  */
@@ -191,6 +203,7 @@ export const describe_cross_process_sse_tests = (options) => {
191
203
  const { setup_test, capabilities, base_url, rpc_path, origin, login_path = SPINE_ACCOUNT_LOGIN_PATH, logout_path = SPINE_ACCOUNT_LOGOUT_PATH, password_path = SPINE_ACCOUNT_PASSWORD_PATH } = options;
192
204
  const sse_path = options.sse_path ?? SPINE_SSE_PATH;
193
205
  const max_per_scope = options.max_per_scope === undefined ? AUDIT_LOG_SSE_MAX_PER_SCOPE : options.max_per_scope;
206
+ const other_role = options.other_role ?? SPINE_PARTICIPANT_ROLE;
194
207
  /** `open_admitted_stream` on this suite's endpoint, the keeper as the probe's admin. */
195
208
  const open_admitted = (fixture, cookies, label) => open_admitted_stream({
196
209
  base_url,
@@ -272,8 +285,6 @@ export const describe_cross_process_sse_tests = (options) => {
272
285
  // stream on each, and the second revokes the first: the named session's
273
286
  // stream must close and the caller's own stay open and receiving, which a
274
287
  // backend closing the whole account, or the caller's streams, fails.
275
- // `role_grant_revoke`'s role-matched close is covered by `fuz_realtime`'s
276
- // SSE registry unit tests.
277
288
  test_if(capabilities.sse && rpc_path !== undefined, 'stream closes on a single session_revoke of the subscriber session', async () => {
278
289
  const fixture = await setup_test();
279
290
  const target = await fixture.create_account({
@@ -323,6 +334,69 @@ export const describe_cross_process_sse_tests = (options) => {
323
334
  await Promise.all(streams.map((sse) => sse.close()));
324
335
  }
325
336
  });
337
+ // The stream is gated on `ROLE_ADMIN` and never rechecks it, so revoking a
338
+ // subscriber's global admin grant must close it — the role-matched close
339
+ // (`{kind: 'role'}`), which reaches only a stream whose gate is the role.
340
+ // The keeper's own admin grant can't be revoked, so the subscriber is a
341
+ // second admin, its grant the one `create_account` gave it.
342
+ test_if(capabilities.sse && rpc_path !== undefined, 'stream closes when a global grant of its gating role is revoked', async () => {
343
+ const fixture = await setup_test();
344
+ const target = await fixture.create_account({
345
+ username: 'sse_role_revoke',
346
+ roles: [ROLE_ADMIN]
347
+ });
348
+ // idempotent on the admin grant the account already holds
349
+ const role_grant_id = await create_active_role_grant(fixture, target, { rpc_path });
350
+ const cookie = target.create_session_headers().cookie;
351
+ assert.ok(cookie, 'expected a session cookie for the target account');
352
+ const sse = await open_admitted(fixture, [cookie]);
353
+ try {
354
+ const res = await fixture.transport(rpc_path, create_rpc_post_init(role_grant_revoke_action_spec.method, {
355
+ actor_id: target.actor.id,
356
+ role_grant_id
357
+ }));
358
+ assert.strictEqual(res.status, 200, `role_grant_revoke RPC failed (status=${res.status})`);
359
+ const closed = await sse.wait_for_close(2000);
360
+ assert.ok(closed, 'stream did not close within 2s after role_grant_revoke');
361
+ }
362
+ finally {
363
+ await sse.close();
364
+ }
365
+ });
366
+ // Only a grant of the gating role reaches the stream: a global revoke of
367
+ // a role the stream isn't gated on closes nothing, and the stream stays
368
+ // open and still receives a broadcast. Scope matching can't be held here
369
+ // (`admin` is global-only); `describe_ws_role_gated_cross_tests` holds it.
370
+ test_if(capabilities.sse && rpc_path !== undefined && other_role !== ROLE_ADMIN, 'a revoke of a global grant of another role leaves the stream open', async () => {
371
+ const fixture = await setup_test();
372
+ const target = await fixture.create_account({
373
+ username: 'sse_role_keep',
374
+ roles: [ROLE_ADMIN]
375
+ });
376
+ const assigned = await fixture.transport(rpc_path, create_rpc_post_init(role_grant_assign_action_spec.method, {
377
+ to_account_id: target.account.id,
378
+ role: other_role
379
+ }));
380
+ const body = (await assigned.json());
381
+ assert.strictEqual(assigned.status, 200, `role_grant_assign failed: ${JSON.stringify(body)}`);
382
+ const role_grant_id = body.result?.role_grant_id;
383
+ assert.ok(typeof role_grant_id === 'string', JSON.stringify(body));
384
+ const cookie = target.create_session_headers().cookie;
385
+ assert.ok(cookie, 'expected a session cookie for the target account');
386
+ const sse = await open_admitted(fixture, [cookie]);
387
+ try {
388
+ const res = await fixture.transport(rpc_path, create_rpc_post_init(role_grant_revoke_action_spec.method, {
389
+ actor_id: target.actor.id,
390
+ role_grant_id
391
+ }));
392
+ assert.strictEqual(res.status, 200, `role_grant_revoke of ${other_role} failed (status=${res.status})`);
393
+ // still open, and still broadcast to
394
+ await read_probe_frame(sse, fixture.transport, rpc_path, 'the kept stream');
395
+ }
396
+ finally {
397
+ await sse.close();
398
+ }
399
+ });
326
400
  // A soft-deleted account's credentials stop authenticating, and a stream
327
401
  // never rechecks its own — so the delete must close it. The keeper
328
402
  // deletes a second admin whose stream is open; the keeper's own admin
@@ -348,18 +422,22 @@ export const describe_cross_process_sse_tests = (options) => {
348
422
  await sse.close();
349
423
  }
350
424
  });
351
- // The account-wide revocations past session revoke-all and delete
352
- // (`revocation_drivers.ts`, shared with the WS suite) each close the
353
- // target admin's stream. Without `rpc_path` the rows still register, as
354
- // skipped cases, and never run — so the empty path is never sent.
425
+ // The revocations of `revocation_drivers.ts`, shared with the WS suite,
426
+ // each close the target admin's stream on the session they were sent on.
427
+ // A session-scoped one (logout) leaves a second session's stream open and
428
+ // receiving, so a backend closing the whole account on it fails. Without
429
+ // `rpc_path` the rows still register, as skipped cases, and never run —
430
+ // so the empty path is never sent.
355
431
  const revocations = create_account_revocations({
356
432
  capabilities,
357
433
  rpc_path: rpc_path ?? '',
358
434
  logout_path,
359
435
  password_path
360
436
  });
361
- for (const { label, slug, gate, revoke } of revocations) {
362
- test_if(capabilities.sse && gate && rpc_path !== undefined, `stream closes on ${label} of the subscriber account`, async () => {
437
+ for (const { label, slug, gate, closes, revoke } of revocations) {
438
+ test_if(capabilities.sse && gate && rpc_path !== undefined, closes === 'session'
439
+ ? `stream closes on ${label} of its session, and the account's other session's stays`
440
+ : `stream closes on ${label} of the subscriber account`, async () => {
363
441
  const fixture = await setup_test();
364
442
  const target = await fixture.create_account({
365
443
  username: `sse_revoke_${slug}`,
@@ -368,14 +446,32 @@ export const describe_cross_process_sse_tests = (options) => {
368
446
  });
369
447
  const cookie = target.create_session_headers().cookie;
370
448
  assert.ok(cookie, 'expected a session cookie for the target account');
371
- const sse = await open_admitted(fixture, [cookie]);
449
+ const streams = [];
372
450
  try {
451
+ const sse = await open_admitted(fixture, [cookie]);
452
+ streams.push(sse);
453
+ let survivor = null;
454
+ if (closes === 'session') {
455
+ // a second login, a second session of the same account on its own jar
456
+ const second_transport = await login_fresh_session(fixture, {
457
+ login_path,
458
+ username: target.account.username,
459
+ password: DEFAULT_TEST_PASSWORD,
460
+ label: 'the second login'
461
+ });
462
+ survivor = await open_admitted(fixture, second_transport.cookies(), 'second session stream');
463
+ streams.push(survivor);
464
+ }
373
465
  await revoke(fixture, target);
374
466
  const closed = await sse.wait_for_close(2000);
375
467
  assert.ok(closed, `stream did not close within 2s after ${label}`);
468
+ if (survivor !== null) {
469
+ // still open, and still broadcast to
470
+ await read_probe_frame(survivor, fixture.transport, rpc_path, 'second session stream');
471
+ }
376
472
  }
377
473
  finally {
378
- await sse.close();
474
+ await Promise.all(streams.map((stream) => stream.close()));
379
475
  }
380
476
  });
381
477
  }
@@ -1 +1 @@
1
- {"version":3,"file":"testing_backdoor.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/testing_backdoor.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA2F9B,OAAO,KAAK,EAAE,uCAAuC,EAAe,MAAM,YAAY,CAAC;AAMvF,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAiD1E;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC1B;AAkDD,8CAA8C;AAC9C,MAAM,WAAW,+BAAgC,SAAQ,uCAAuC;IAC/F;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAC7D;AAqDD;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC,GACjD,SAAS,+BAA+B,KACtC,IAgHF,CAAC"}
1
+ {"version":3,"file":"testing_backdoor.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/testing_backdoor.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA2F9B,OAAO,KAAK,EAAE,uCAAuC,EAAe,MAAM,YAAY,CAAC;AAMvF,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAmD1E;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC1B;AAkDD,8CAA8C;AAC9C,MAAM,WAAW,+BAAgC,SAAQ,uCAAuC;IAC/F;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAC7D;AAqDD;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC,GACjD,SAAS,+BAA+B,KACtC,IAgHF,CAAC"}
@@ -6,13 +6,13 @@ import '../assert_dev_env.js';
6
6
  * `TESTING_BACKDOOR_METHODS` (`_testing_reset`, `_testing_drain_effects`,
7
7
  * `_testing_mint_session`, `_testing_put_fact`,
8
8
  * `_testing_flood_notifications`, `_testing_schema_snapshot`,
9
- * `_testing_migration_tracker`, `_testing_action_manifest`,
9
+ * `_testing_migration_tracker`, `_testing_db_invariants`, `_testing_action_manifest`,
10
10
  * `_testing_origin_check`, `_testing_credential_read`,
11
11
  * `_testing_shorten_credential_expiry`, `_testing_room_evict`) are privileged test-binary actions the production
12
12
  * wire never exposes — direct DB writes (full auth wipe, forged session row,
13
13
  * raw fact insert), the audit barrier, a flood of the caller's own connection,
14
14
  * introspection reads (the live schema, the `schema_version` migration
15
- * tracker, and the live RPC registry — the highest info-leak of the set were
15
+ * tracker, the database invariant rows, and the live RPC registry — the highest info-leak of the set were
16
16
  * the gate to break), a probe of the origin allowlist parser, a rewrite of
17
17
  * an account's credential expiries, and an eviction from the room registry. Their only structural fence
18
18
  * is the **daemon-token** credential gate on
@@ -110,6 +110,8 @@ const BACKDOOR_PARAMS = {
110
110
  _testing_schema_snapshot: {},
111
111
  // The migration-tracker-dump read — its input is void, so the call carries no params.
112
112
  _testing_migration_tracker: undefined,
113
+ // The database-invariants read — its input is void, so the call carries no params.
114
+ _testing_db_invariants: undefined,
113
115
  // The RPC-registry-dump read — its input is void, so the call carries no params.
114
116
  _testing_action_manifest: undefined,
115
117
  // The origin conformance probe — a valid `{patterns, origin}` pair, so it
@@ -91,31 +91,26 @@ export declare const testing_reset_action_spec: {
91
91
  readonly description: "Test-binary only — wipe auth tables, re-bootstrap a fresh keeper (+ optional extras), fire the domain-state reset.";
92
92
  };
93
93
  /**
94
- * `_testing_drain_effects` — await in-flight fire-and-forget audit writes so
95
- * a following `audit_log_list` is authoritative. The deterministic barrier
96
- * the cross-backend conformance suite uses in place of a poll/sleep before
97
- * asserting on audit rows.
94
+ * `_testing_drain_effects` — await in-flight fire-and-forget writes so a
95
+ * following `audit_log_list` or database read is authoritative. The
96
+ * deterministic barrier the cross-backend conformance suite uses in place of
97
+ * a poll/sleep before asserting on audit rows.
98
98
  *
99
99
  * The handler awaits `AuditEmitter.drain_inflight`, which waits until no
100
- * tracked `emit` write is outstanding — so the binary's emitter must be built
101
- * with `track_inflight: true`, or the drain resolves at once and is no barrier.
102
- * Tracking is what makes it a barrier whatever the transport: an **HTTP**
103
- * mutation on a binary running `await_pending_effects: true` has its writes
104
- * settled by the time it responds, but a **WS** mutation is answered before
105
- * its effects flush (reply-then-close for a self-revocation), so its audit
106
- * write can still be in flight when the caller reads the reply. The Rust
107
- * spine does the same await in `AuditEmitter::drain_inflight`, over an
108
- * emitter built with `new_with_inflight_tracking`.
100
+ * pool write of the emitter's is outstanding — every emitter counts them, so
101
+ * the drain is always a barrier. It matters whatever the transport: both
102
+ * test binaries settle an **HTTP** answer's writes before it responds (the
103
+ * TS binary through `await_pending_effects: true`, the Rust stub through its
104
+ * `await_background_writes_layer`), but a **WS** mutation is answered
105
+ * before its effects flush (reply-then-close for a self-revocation), so its
106
+ * audit write can still be in flight when the caller reads the reply. The
107
+ * Rust spine does the same await in `AuditEmitter::drain_inflight`.
109
108
  *
110
109
  * Covered: every `emit` that ran before the drain was dispatched, and any
111
110
  * started while it waits. A write that starts after the drain resolves is
112
- * not — nor are eager writes outside `emit` (session touch, token usage),
113
- * which only the dispatching transport's own flush awaits.
114
- *
115
- * The output's `tracked` is `AuditEmitter.is_tracking_inflight` — whether the
116
- * drain could wait on anything. `cross_drain_effects` refuses `tracked: false`,
117
- * so a binary whose emitter was built without tracking fails its first audit
118
- * read instead of racing it. The Rust twin answers the same shape.
111
+ * not — nor, on TS, the bearer leg's token touch, which rides its request's
112
+ * `pending_effects`. The Rust spine spawns its touch on the same tracker as
113
+ * its audit writes, so its drain awaits that too.
119
114
  *
120
115
  * `auth` gates on the daemon-token credential, matching `_testing_reset`.
121
116
  */
@@ -132,10 +127,9 @@ export declare const testing_drain_effects_action_spec: {
132
127
  readonly input: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
133
128
  readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
134
129
  ok: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
135
- tracked: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
136
130
  }>;
137
131
  readonly async: true;
138
- readonly description: "Test-binary only — await in-flight fire-and-forget audit writes so a following audit_log_list read is authoritative.";
132
+ readonly description: "Test-binary only — await in-flight fire-and-forget writes so a following audit_log_list or database read is authoritative.";
139
133
  };
140
134
  /**
141
135
  * `_testing_mint_session` — mint an expired-by-construction server-side
@@ -189,11 +183,10 @@ export declare const testing_mint_session_action_spec: {
189
183
  };
190
184
  /**
191
185
  * Build the standalone `_testing_drain_effects` action over `audit` — the
192
- * emitter the backend's handlers emit through (`deps.audit`), built with
193
- * `track_inflight: true` (see the spec doc). Mount it on any test endpoint
186
+ * emitter the backend's handlers emit through (`deps.audit`). Mount it on any test endpoint
194
187
  * whose suite asserts on audit rows (the spine binary bundles it via
195
188
  * `create_testing_actions`; in-process suites mount it directly). Answers
196
- * `{ok: true, tracked}`, `tracked` read from `audit.is_tracking_inflight()`.
189
+ * `{ok: true}`.
197
190
  *
198
191
  * @param audit - the backend's emitter, whose in-flight writes the action awaits
199
192
  */
@@ -497,6 +490,46 @@ export declare const testing_migration_tracker_action_spec: {
497
490
  * `create_testing_actions`; mount directly for in-process use.
498
491
  */
499
492
  export declare const create_testing_migration_tracker_action: () => RpcAction;
493
+ /**
494
+ * `_testing_db_invariants` — run the database invariant statement
495
+ * (`DB_INVARIANTS_SQL`, the one `db_invariants.sql` holds) and answer every
496
+ * violating row, `{rows: [{invariant, row}]}`, unfiltered: the harness drops
497
+ * the invariants its setup excludes. The per-test check of a cross-process
498
+ * setup reads it, so a backend whose database the test process can't reach
499
+ * (`memory://`) is checked like one it can. Read-only, writing no audit row.
500
+ * A row's key order is not part of the contract (the spines' JSON maps order
501
+ * keys differently); compare rows as objects.
502
+ *
503
+ * `auth` gates on the daemon-token credential, matching `_testing_reset`. The
504
+ * Rust mirror is `fuz_testing::create_testing_db_invariants_action_spec`,
505
+ * running the same statement from its byte-identical copy of the file.
506
+ */
507
+ export declare const testing_db_invariants_action_spec: {
508
+ readonly method: "_testing_db_invariants";
509
+ readonly kind: "request_response";
510
+ readonly initiator: "frontend";
511
+ readonly auth: {
512
+ readonly account: "required";
513
+ readonly actor: "none";
514
+ readonly credential_types: readonly ["daemon_token"];
515
+ };
516
+ readonly side_effects: false;
517
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
518
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
519
+ rows: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
520
+ invariant: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
521
+ row: import("@fuzdev/fuz_schema/schema.ts").RecordSchema<import("@fuzdev/fuz_schema/schema.ts").UnknownSchema>;
522
+ }>>;
523
+ }>;
524
+ readonly async: true;
525
+ readonly description: string;
526
+ };
527
+ /**
528
+ * Build the standalone `_testing_db_invariants` action. No deps — reads
529
+ * `ctx.db` via `query_db_invariant_rows`. Bundled by
530
+ * `create_testing_actions`; mount directly for in-process use.
531
+ */
532
+ export declare const create_testing_db_invariants_action: () => RpcAction;
500
533
  /** The shortest expiry `_testing_shorten_credential_expiry` sets, in seconds from now. */
501
534
  export declare const TESTING_SHORTEN_CREDENTIAL_EXPIRY_MIN_SECONDS = 1;
502
535
  /**
@@ -683,8 +716,7 @@ export interface CreateTestingActionsOptions {
683
716
  *
684
717
  * Returns the bundled `_testing_*` actions (module doc). The test binary
685
718
  * calls this at server-assembly time and registers the result on its
686
- * dispatcher. `_testing_drain_effects` drains `deps.audit`, so the binary's
687
- * `audit_factory` builds the emitter with `track_inflight: true`.
719
+ * dispatcher. `_testing_drain_effects` drains `deps.audit`.
688
720
  *
689
721
  * The reset action's table-wipe list mirrors
690
722
  * `auth_integration_truncate_tables` from `testing/db.ts` — the
@@ -1 +1 @@
1
- {"version":3,"file":"testing_reset_actions.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/testing_reset_actions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAmF9B,OAAO,EAcN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAc,KAAK,SAAS,EAAE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AA2F;AAC3F,eAAO,MAAM,+CAA+C,QAAO,SAGjE,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;CAaF,CAAC;AAkB/C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qCAAqC,GACjD,SAAS,aAAa,CAAC,SAAS,CAAC,EACjC,UAAS,aAAa,CAAC,SAAS,CAAM,KACpC,SASF,CAAC;AAEF,4CAA4C;AAC5C,MAAM,WAAW,2BAA2B;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IAC9C;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACxD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,GAClC,MAAM,OAAO,EACb,SAAS,2BAA2B,KAClC,KAAK,CAAC,SAAS,CAwJjB,CAAC"}
1
+ {"version":3,"file":"testing_reset_actions.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/testing_reset_actions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqF9B,OAAO,EAcN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAK3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,C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