@fuzdev/fuz_app 0.184.0 → 0.186.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 (174) hide show
  1. package/dist/actions/CLAUDE.md +18 -3
  2. package/dist/actions/perform_action.d.ts.map +1 -1
  3. package/dist/actions/perform_action.js +36 -5
  4. package/dist/actions/register_action_ws.d.ts +14 -7
  5. package/dist/actions/register_action_ws.d.ts.map +1 -1
  6. package/dist/actions/ws_socket_session.d.ts +17 -4
  7. package/dist/actions/ws_socket_session.d.ts.map +1 -1
  8. package/dist/actions/ws_socket_session.js +41 -7
  9. package/dist/auth/CLAUDE.md +18 -9
  10. package/dist/auth/account_queries.d.ts +53 -40
  11. package/dist/auth/account_queries.d.ts.map +1 -1
  12. package/dist/auth/account_queries.js +57 -50
  13. package/dist/auth/account_routes.d.ts.map +1 -1
  14. package/dist/auth/account_routes.js +59 -25
  15. package/dist/auth/admin_actions.d.ts.map +1 -1
  16. package/dist/auth/admin_actions.js +26 -9
  17. package/dist/auth/audit_emitter.js +2 -2
  18. package/dist/auth/audit_log_queries.d.ts +11 -3
  19. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  20. package/dist/auth/audit_log_queries.js +4 -4
  21. package/dist/auth/audit_log_routes.d.ts +1 -1
  22. package/dist/auth/audit_log_routes.d.ts.map +1 -1
  23. package/dist/auth/audit_log_routes.js +3 -2
  24. package/dist/auth/audit_log_schema.js +1 -1
  25. package/dist/auth/auth_ddl.d.ts.map +1 -1
  26. package/dist/auth/auth_ddl.js +4 -0
  27. package/dist/auth/cleanup.d.ts +34 -3
  28. package/dist/auth/cleanup.d.ts.map +1 -1
  29. package/dist/auth/cleanup.js +12 -4
  30. package/dist/auth/migrations.d.ts.map +1 -1
  31. package/dist/auth/migrations.js +35 -0
  32. package/dist/auth/role_grant_offer_queries.d.ts +13 -13
  33. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  34. package/dist/auth/role_grant_offer_queries.js +12 -13
  35. package/dist/auth/role_grant_queries.d.ts +16 -9
  36. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  37. package/dist/auth/role_grant_queries.js +16 -9
  38. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  39. package/dist/auth/self_service_role_actions.js +15 -0
  40. package/dist/auth/session_queries.d.ts +24 -0
  41. package/dist/auth/session_queries.d.ts.map +1 -1
  42. package/dist/auth/session_queries.js +28 -0
  43. package/dist/db/CLAUDE.md +3 -3
  44. package/dist/db/cell_ddl.d.ts +8 -3
  45. package/dist/db/cell_ddl.d.ts.map +1 -1
  46. package/dist/db/cell_ddl.js +10 -5
  47. package/dist/http/CLAUDE.md +1 -1
  48. package/dist/http/body_limit.d.ts +4 -4
  49. package/dist/http/body_limit.js +4 -4
  50. package/dist/http/pending_effects.d.ts +8 -4
  51. package/dist/http/pending_effects.d.ts.map +1 -1
  52. package/dist/http/route_spec.d.ts +3 -3
  53. package/dist/http/route_spec.d.ts.map +1 -1
  54. package/dist/realtime/audit_log_sse.d.ts +1 -1
  55. package/dist/realtime/sse.d.ts +2 -2
  56. package/dist/realtime/sse.d.ts.map +1 -1
  57. package/dist/realtime/sse_constants.d.ts +1 -1
  58. package/dist/realtime/sse_constants.js +1 -1
  59. package/dist/server/app_server.d.ts +59 -71
  60. package/dist/server/app_server.d.ts.map +1 -1
  61. package/dist/server/app_server.js +52 -60
  62. package/dist/server/shutdown_drain.d.ts +69 -0
  63. package/dist/server/shutdown_drain.d.ts.map +1 -0
  64. package/dist/server/shutdown_drain.js +77 -0
  65. package/dist/testing/CLAUDE.md +197 -66
  66. package/dist/testing/admin_integration.d.ts +2 -2
  67. package/dist/testing/admin_integration.d.ts.map +1 -1
  68. package/dist/testing/admin_integration.js +36 -20
  69. package/dist/testing/app_server.d.ts +5 -7
  70. package/dist/testing/app_server.d.ts.map +1 -1
  71. package/dist/testing/app_server.js +5 -7
  72. package/dist/testing/auth_apps.d.ts +3 -1
  73. package/dist/testing/auth_apps.d.ts.map +1 -1
  74. package/dist/testing/auth_apps.js +22 -5
  75. package/dist/testing/cross_backend/backend_config.d.ts +8 -0
  76. package/dist/testing/cross_backend/backend_config.d.ts.map +1 -1
  77. package/dist/testing/cross_backend/backend_log.d.ts +71 -0
  78. package/dist/testing/cross_backend/backend_log.d.ts.map +1 -0
  79. package/dist/testing/cross_backend/backend_log.js +134 -0
  80. package/dist/testing/cross_backend/backend_swap.d.ts +41 -0
  81. package/dist/testing/cross_backend/backend_swap.d.ts.map +1 -0
  82. package/dist/testing/cross_backend/backend_swap.js +431 -0
  83. package/dist/testing/cross_backend/body_size_smuggling.js +3 -3
  84. package/dist/testing/cross_backend/bootstrap_backend.d.ts +3 -1
  85. package/dist/testing/cross_backend/bootstrap_backend.d.ts.map +1 -1
  86. package/dist/testing/cross_backend/bootstrap_backend.js +9 -5
  87. package/dist/testing/cross_backend/conformance_case.d.ts +11 -6
  88. package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
  89. package/dist/testing/cross_backend/conformance_case.js +4 -0
  90. package/dist/testing/cross_backend/conformance_principal.d.ts +2 -2
  91. package/dist/testing/cross_backend/conformance_principal.d.ts.map +1 -1
  92. package/dist/testing/cross_backend/conformance_principal.js +27 -10
  93. package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts +10 -1
  94. package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts.map +1 -1
  95. package/dist/testing/cross_backend/create_dual_spawn_global_setup.js +33 -7
  96. package/dist/testing/cross_backend/default_backend_configs.d.ts +38 -5
  97. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  98. package/dist/testing/cross_backend/default_backend_configs.js +50 -15
  99. package/dist/testing/cross_backend/in_process_setup.d.ts +1 -1
  100. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  101. package/dist/testing/cross_backend/in_process_setup.js +53 -31
  102. package/dist/testing/cross_backend/revocation_drivers.d.ts +14 -2
  103. package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
  104. package/dist/testing/cross_backend/revocation_drivers.js +36 -8
  105. package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
  106. package/dist/testing/cross_backend/rpc_success_fixtures.js +2 -1
  107. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts +7 -0
  108. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
  109. package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +4 -2
  110. package/dist/testing/cross_backend/setup.d.ts +44 -43
  111. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  112. package/dist/testing/cross_backend/setup.js +64 -62
  113. package/dist/testing/cross_backend/spawn_backend.d.ts +19 -1
  114. package/dist/testing/cross_backend/spawn_backend.d.ts.map +1 -1
  115. package/dist/testing/cross_backend/spawn_backend.js +138 -11
  116. package/dist/testing/cross_backend/spine_suites.d.ts +17 -14
  117. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  118. package/dist/testing/cross_backend/spine_suites.js +37 -15
  119. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  120. package/dist/testing/cross_backend/sse_round_trip.js +4 -2
  121. package/dist/testing/cross_backend/standard.d.ts +18 -82
  122. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  123. package/dist/testing/cross_backend/standard.js +6 -21
  124. package/dist/testing/cross_backend/standard_auth.d.ts +74 -0
  125. package/dist/testing/cross_backend/standard_auth.d.ts.map +1 -0
  126. package/dist/testing/cross_backend/standard_auth.js +28 -0
  127. package/dist/testing/cross_backend/standard_bundle.d.ts +48 -0
  128. package/dist/testing/cross_backend/standard_bundle.d.ts.map +1 -0
  129. package/dist/testing/cross_backend/standard_bundle.js +43 -0
  130. package/dist/testing/cross_backend/testing_reset_actions.d.ts +18 -6
  131. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  132. package/dist/testing/cross_backend/testing_reset_actions.js +23 -8
  133. package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
  134. package/dist/testing/cross_backend/testing_server_bun.js +7 -30
  135. package/dist/testing/cross_backend/testing_server_core.d.ts +16 -3
  136. package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
  137. package/dist/testing/cross_backend/testing_server_core.js +20 -4
  138. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +6 -2
  139. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
  140. package/dist/testing/cross_backend/ts_spine_backend_config.js +7 -3
  141. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  142. package/dist/testing/cross_backend/ws_round_trip.js +4 -3
  143. package/dist/testing/data_exposure.d.ts +4 -1
  144. package/dist/testing/data_exposure.d.ts.map +1 -1
  145. package/dist/testing/data_exposure.js +93 -25
  146. package/dist/testing/db_invariants.d.ts +5 -5
  147. package/dist/testing/db_invariants.js +5 -5
  148. package/dist/testing/error_coverage.d.ts +5 -0
  149. package/dist/testing/error_coverage.d.ts.map +1 -1
  150. package/dist/testing/error_coverage.js +2 -1
  151. package/dist/testing/integration.d.ts +4 -20
  152. package/dist/testing/integration.d.ts.map +1 -1
  153. package/dist/testing/integration.js +49 -79
  154. package/dist/testing/integration_helpers.d.ts +16 -0
  155. package/dist/testing/integration_helpers.d.ts.map +1 -1
  156. package/dist/testing/integration_helpers.js +29 -1
  157. package/dist/testing/logged_errors.d.ts +61 -0
  158. package/dist/testing/logged_errors.d.ts.map +1 -0
  159. package/dist/testing/logged_errors.js +285 -0
  160. package/dist/testing/middleware_gate_probes.d.ts +55 -1
  161. package/dist/testing/middleware_gate_probes.d.ts.map +1 -1
  162. package/dist/testing/middleware_gate_probes.js +76 -3
  163. package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
  164. package/dist/testing/rpc_attack_surface.js +41 -16
  165. package/dist/testing/stubs.d.ts +5 -1
  166. package/dist/testing/stubs.d.ts.map +1 -1
  167. package/dist/testing/stubs.js +6 -3
  168. package/dist/testing/test_app.d.ts +39 -9
  169. package/dist/testing/test_app.d.ts.map +1 -1
  170. package/dist/testing/test_app.js +70 -12
  171. package/dist/testing/transports/fetch_transport.d.ts +10 -0
  172. package/dist/testing/transports/fetch_transport.d.ts.map +1 -1
  173. package/dist/testing/transports/fetch_transport.js +13 -0
  174. package/package.json +4 -3
@@ -28,7 +28,17 @@ import '../assert_dev_env.js';
28
28
  *
29
29
  * The child's stderr is kept as a bounded tail (`STDERR_TAIL_MAX_BYTES`):
30
30
  * a startup failure reports it with the exit code or signal, and an exit
31
- * after startup that teardown didn't cause is logged with it.
31
+ * after startup that teardown didn't cause is logged with it. With
32
+ * `config.log`, its stdout and stderr are also teed into `config.log.path`,
33
+ * and teardown fails on each error-level line there that no
34
+ * `config.log.allow_errors` entry matches (`backend_log.ts`).
35
+ *
36
+ * Teardown holds the backend to a clean exit: a spine whose graceful
37
+ * shutdown gave up on work still running, or threw, exits `1` (the TS core's
38
+ * `start_testing_server`, the Rust spine's `StartupError::ShutdownGivenUp`),
39
+ * and `teardown` rejects on anything but exit code `0` — naming the backend,
40
+ * its exit code or signal, and its stderr tail — as it does for a backend
41
+ * that exited during the run or had to be killed.
32
42
  *
33
43
  * Bootstrapping (`POST /api/account/bootstrap`) is a separate concern —
34
44
  * the caller composes `bootstrap()` from `testing/transports/bootstrap.ts`
@@ -39,9 +49,11 @@ import '../assert_dev_env.js';
39
49
  * @module
40
50
  */
41
51
  import { spawn } from 'node:child_process';
52
+ import { createWriteStream } from 'node:fs';
42
53
  import { readFile, writeFile, mkdir, rm } from 'node:fs/promises';
43
54
  import { connect } from 'node:net';
44
55
  import { dirname } from 'node:path';
56
+ import { create_log_line_splitter, find_unexpected_backend_errors, format_unexpected_backend_errors } from './backend_log.js';
45
57
  /** Number of ms between health-probe attempts. Tuned to be cheap on busy CI runners. */
46
58
  const HEALTH_PROBE_INTERVAL_MS = 100;
47
59
  /**
@@ -67,6 +79,8 @@ export const STDERR_TAIL_MAX_BYTES = 16 * 1024;
67
79
  * the await below can't strand the whole run forever.
68
80
  */
69
81
  const TEARDOWN_SIGKILL_GRACE_MS = 3_000;
82
+ /** How long teardown waits for the child's stdio to end before reading its log (ms). */
83
+ const LOG_DRAIN_WAIT_MS = 1_000;
70
84
  /** How often teardown checks whether the process group has exited (ms). */
71
85
  const TEARDOWN_POLL_INTERVAL_MS = 20;
72
86
  /**
@@ -261,6 +275,50 @@ export const spawn_backend = async (config) => {
261
275
  // a token a previous run left would read as this binary's
262
276
  await rm(config.bootstrap.daemon_token_path, { force: true });
263
277
  install_process_handlers();
278
+ // the log file, rewritten per spawn, opened before the child so no output is missed
279
+ let log_stream = null;
280
+ let log_write_error = null;
281
+ if (config.log) {
282
+ await mkdir(dirname(config.log.path), { recursive: true });
283
+ log_stream = createWriteStream(config.log.path, { flags: 'w' });
284
+ // a failed open or write (a full disk) fails teardown, never the process
285
+ log_stream.on('error', (error) => {
286
+ log_write_error ??= error;
287
+ });
288
+ }
289
+ // whole lines only, per stream (`create_log_line_splitter`)
290
+ const log_line_writer = () => {
291
+ const splitter = create_log_line_splitter();
292
+ return {
293
+ write: (chunk) => {
294
+ if (!log_stream || log_stream.writableEnded || log_write_error)
295
+ return;
296
+ const lines = splitter.push(chunk);
297
+ if (lines !== '')
298
+ log_stream.write(lines);
299
+ },
300
+ flush: () => {
301
+ const rest = splitter.end();
302
+ if (log_stream && !log_stream.writableEnded && !log_write_error && rest !== '') {
303
+ log_stream.write(rest);
304
+ }
305
+ }
306
+ };
307
+ };
308
+ const stdout_log = log_line_writer();
309
+ const stderr_log = log_line_writer();
310
+ let log_stream_closing = null;
311
+ const log_stream_closed = () => (log_stream_closing ??= new Promise((resolve) => {
312
+ if (!log_stream || log_stream.closed || log_stream.destroyed) {
313
+ resolve();
314
+ return;
315
+ }
316
+ stdout_log.flush();
317
+ stderr_log.flush();
318
+ // `'close'` follows a failed stream too, which never calls back `end`'s callback
319
+ log_stream.once('close', () => resolve());
320
+ log_stream.end();
321
+ }));
264
322
  const [command, ...args] = config.start_command;
265
323
  const spawned_at = performance.now();
266
324
  const child = spawn(command, args, {
@@ -272,8 +330,12 @@ export const spawn_backend = async (config) => {
272
330
  });
273
331
  // Keep a bounded stderr tail so a crash surfaces with context.
274
332
  const stderr_tail = create_output_tail(STDERR_TAIL_MAX_BYTES);
333
+ // `'close'` follows the exit once the child's stdio has ended, so its last
334
+ // output is in the log file before teardown reads it
335
+ const child_closed = new Promise((resolve) => child.once('close', () => resolve()));
275
336
  child.stderr?.on('data', (chunk) => {
276
337
  stderr_tail.push(chunk);
338
+ stderr_log.write(chunk);
277
339
  });
278
340
  const format_stderr_tail = () => {
279
341
  const text = stderr_tail.text();
@@ -293,13 +355,17 @@ export const spawn_backend = async (config) => {
293
355
  // long-lived binary — so it hides in short/isolated runs. We discard
294
356
  // rather than buffer (unlike stderr): stdout carries high-volume
295
357
  // operational logging whose unbounded retention would leak across a
296
- // long suite.
297
- child.stdout?.on('data', () => { });
358
+ // long suite. The log file, when configured, is on disk, not in memory.
359
+ child.stdout?.on('data', (chunk) => {
360
+ stdout_log.write(chunk);
361
+ });
298
362
  // how the child ended: an exit, or a spawn that never produced a process
299
363
  // (a command that doesn't exist emits `'error'` and never `'exit'`)
300
364
  let exit_info = null;
301
365
  let started = false;
302
366
  let teardown_invoked = false;
367
+ // an exit after startup that teardown didn't cause — a teardown failure
368
+ let exited_during_run = false;
303
369
  // The child leads its own process group (`detached: true`), so its pid is
304
370
  // the group id; a descendant stays in the group after the child exits. Once
305
371
  // the group is seen empty it is never signalled again: its id is a pid the
@@ -335,6 +401,7 @@ export const spawn_backend = async (config) => {
335
401
  // a startup failure is reported by the throw below; an exit teardown
336
402
  // caused is expected
337
403
  if (started && !teardown_invoked) {
404
+ exited_during_run = true;
338
405
  console.error(`spawn_backend(${config.name}): backend exited unexpectedly (${format_exit(code, signal)})` +
339
406
  format_stderr_tail());
340
407
  }
@@ -369,12 +436,71 @@ export const spawn_backend = async (config) => {
369
436
  // already exited, and would hold the port or the database
370
437
  signal_group('SIGTERM');
371
438
  };
372
- let teardown_done = null;
373
- const teardown = () => {
439
+ /** Tear the group down, resolving how the wait ended; never rejects. */
440
+ let stopped = null;
441
+ const stop = () => {
374
442
  teardown_sync();
375
443
  live_teardowns.delete(teardown_sync);
376
- return (teardown_done ??= wait_for_group_exit());
444
+ return (stopped ??= wait_for_group_exit());
445
+ };
446
+ /** Why the child's exit was not the clean one teardown requires, or `null`. */
447
+ const describe_unclean_exit = (wait) => {
448
+ if (wait === 'gave_up') {
449
+ return `teardown gave up with the process group still running ${TEARDOWN_SIGKILL_GRACE_MS}ms after SIGKILL`;
450
+ }
451
+ if (exit_info === null)
452
+ return 'never exited';
453
+ if (exit_info.kind === 'spawn_error')
454
+ return `failed to spawn (${exit_info.message})`;
455
+ const exit = format_exit(exit_info.code, exit_info.signal);
456
+ if (exited_during_run)
457
+ return `exited during the run (${exit}), before teardown`;
458
+ const clean = exit_info.signal === null && exit_info.code === 0;
459
+ // ahead of the clean check: a child that exited 0 can leave its group
460
+ // running, and the SIGKILL that ended the group is still a failure
461
+ if (wait === 'killed') {
462
+ return clean
463
+ ? `exited (${exit}) at teardown, but its process group outlived it and was killed ` +
464
+ `${TEARDOWN_SIGKILL_GRACE_MS}ms after SIGTERM — a descendant that did not exit on SIGTERM`
465
+ : `exited (${exit}) at teardown — its shutdown did not finish within ` +
466
+ `${TEARDOWN_SIGKILL_GRACE_MS}ms of SIGTERM, so its group was killed`;
467
+ }
468
+ if (clean)
469
+ return null;
470
+ if (exit_info.signal !== null) {
471
+ return (`died by ${exit} at teardown — the process did not handle SIGTERM ` +
472
+ '(a wrapper that dies by the signal, e.g. `gro run`)');
473
+ }
474
+ return `exited (${exit}) at teardown, not code=0 — a shutdown that gave up on work still running or failed`;
377
475
  };
476
+ let teardown_done = null;
477
+ /** The log's error lines no allowance names, as a failure message, or `null`. */
478
+ const check_log = async () => {
479
+ if (!config.log)
480
+ return null;
481
+ // bounded: a descendant that left the group can hold the pipe open
482
+ await Promise.race([child_closed, sleep(LOG_DRAIN_WAIT_MS)]);
483
+ await log_stream_closed();
484
+ if (log_write_error) {
485
+ return `spawn_backend(${config.name}): its log ${config.log.path} failed to write: ${log_write_error.message}`;
486
+ }
487
+ const unexpected = find_unexpected_backend_errors(await readFile(config.log.path, 'utf-8'), config.log.allow_errors);
488
+ return unexpected.length === 0
489
+ ? null
490
+ : format_unexpected_backend_errors(config.name, config.log.path, unexpected);
491
+ };
492
+ const teardown = () => (teardown_done ??= stop().then(async (wait) => {
493
+ const unclean = describe_unclean_exit(wait);
494
+ const log_problem = await check_log();
495
+ const problems = [
496
+ ...(unclean === null
497
+ ? []
498
+ : [`spawn_backend(${config.name}): ${unclean}${format_stderr_tail()}`]),
499
+ ...(log_problem === null ? [] : [log_problem])
500
+ ];
501
+ if (problems.length > 0)
502
+ throw new Error(problems.join('\n\n'));
503
+ }));
378
504
  // Wait for the child and every process left in its group to exit, so callers
379
505
  // can be sure the port is free. A backend that ignores SIGTERM — or whose
380
506
  // graceful shutdown wedges (e.g. a runtime whose `server.stop()` never
@@ -390,16 +516,15 @@ export const spawn_backend = async (config) => {
390
516
  let killed = false;
391
517
  while (is_group_running()) {
392
518
  const now = Date.now();
393
- if (now >= give_up_at) {
394
- console.error(`spawn_backend(${config.name}): teardown gave up with the process group still running`);
395
- return;
396
- }
519
+ if (now >= give_up_at)
520
+ return 'gave_up';
397
521
  if (!killed && now >= kill_at) {
398
522
  killed = true;
399
523
  signal_group('SIGKILL');
400
524
  }
401
525
  await sleep(TEARDOWN_POLL_INTERVAL_MS);
402
526
  }
527
+ return killed ? 'killed' : 'exited';
403
528
  };
404
529
  live_teardowns.add(teardown_sync);
405
530
  try {
@@ -410,7 +535,9 @@ export const spawn_backend = async (config) => {
410
535
  return { config, child, daemon_token, teardown };
411
536
  }
412
537
  catch (err) {
413
- await teardown();
538
+ // the startup failure is the report, whatever the exit
539
+ await stop();
540
+ await log_stream_closed();
414
541
  throw new Error(`spawn_backend(${config.name}) failed: ${err.message}${format_stderr_tail()}`);
415
542
  }
416
543
  };
@@ -39,7 +39,8 @@ import { type CrossProcessSetupOptions, type ReconstructedBootstrappedBackendHan
39
39
  import { type SimpleRequestCrossTestOptions } from './simple_request.js';
40
40
  import { type TestingBackdoorMethod } from './spine_surface_constants.js';
41
41
  import { type CrossProcessSseTestOptions } from './sse_round_trip.js';
42
- import { type StandardCrossProcessTestOptions } from './standard.js';
42
+ import { type StandardCrossTestOptions } from './standard.js';
43
+ import { type StandardAuthCrossTestOptions } from './standard_auth.js';
43
44
  import { type TestingBackdoorCrossTestOptions } from './testing_backdoor.js';
44
45
  import { type TokenLifetimeCrossTestOptions } from './token_lifetime.js';
45
46
  import { type TokenScopeSurfaceCrossTestOptions } from './token_scope_surface.js';
@@ -53,15 +54,16 @@ import { type CrossProcessWsTestOptions } from './ws_round_trip.js';
53
54
  /**
54
55
  * Every shipped suite `describe_spine_cross_suites` runs, each named by its
55
56
  * module under `testing/cross_backend/` (`ws_round_trip` is
56
- * `describe_cross_process_ws_tests`, `standard` the standard bundle). Closed: a
57
+ * `describe_cross_process_ws_tests`; `standard_auth` and `standard` the two
58
+ * halves of the standard bundle, its auth suites and the rest). Closed: a
57
59
  * guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
58
60
  * exports a `describe_*` suite, so a new suite fails until it is registered.
59
61
  */
60
- export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "capability_mounts", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_conformance", "credential_conformance_wire", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "request_header_conformance_wire", "request_target_conformance_wire", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rooms_ws", "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"];
62
+ export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "capability_mounts", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_conformance", "credential_conformance_wire", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "request_header_conformance_wire", "request_target_conformance_wire", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rooms_ws", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "standard_auth", "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"];
61
63
  /** A shipped single-backend cross suite, named by its module. */
62
64
  export type SuiteName = (typeof SUITE_NAMES)[number];
63
65
  /** A shipped suite module `describe_spine_cross_suites` leaves out. */
64
- export type StandaloneSuiteName = 'conformance_table' | 'differential' | 'login_security' | 'ws_action_rate_limit';
66
+ export type StandaloneSuiteName = 'backend_swap' | 'conformance_table' | 'differential' | 'login_security' | 'standard_bundle' | 'ws_action_rate_limit';
65
67
  /**
66
68
  * The shipped suite modules `describe_spine_cross_suites` leaves out, each with
67
69
  * why. Their entry points stay as they are; a consumer calls them beside the
@@ -123,7 +125,8 @@ export interface SuiteOptionsMap {
123
125
  session_cookie_codec: SessionCookieCodecCrossTestOptions;
124
126
  simple_request: SimpleRequestCrossTestOptions;
125
127
  sse_round_trip: CrossProcessSseTestOptions;
126
- standard: StandardCrossProcessTestOptions;
128
+ standard: StandardCrossTestOptions;
129
+ standard_auth: StandardAuthCrossTestOptions;
127
130
  testing_backdoor: TestingBackdoorCrossTestOptions;
128
131
  token_lifetime: TokenLifetimeCrossTestOptions;
129
132
  token_scope_surface: TokenScopeSurfaceCrossTestOptions;
@@ -195,11 +198,11 @@ export interface SpineSuiteRoles {
195
198
  }
196
199
  /** Options for `describe_spine_cross_suites`. */
197
200
  export interface SpineCrossSuitesOptions {
198
- /** The declared surface — the standard bundle and `rpc_adversarial` enumerate it. */
201
+ /** The declared surface — `standard_auth`, `standard` and `rpc_adversarial` enumerate it. */
199
202
  readonly surface_source: AppSurfaceSpec;
200
- /** The session cookie's name, for the standard bundle. */
203
+ /** The session cookie's name, for `standard_auth` and `standard`. */
201
204
  readonly session_cookie_name: string;
202
- /** The backend's RPC endpoints, for the standard bundle. */
205
+ /** The backend's RPC endpoints, for `standard_auth` and `standard`. */
203
206
  readonly rpc_endpoints: RpcEndpointsSuiteOption;
204
207
  /**
205
208
  * The RPC endpoints the backend live-mounts, for the methods it keeps off
@@ -209,7 +212,7 @@ export interface SpineCrossSuitesOptions {
209
212
  * still runs once, from the declared surface.
210
213
  */
211
214
  readonly live_rpc_endpoints?: RpcEndpointsSuiteOption;
212
- /** The backend's role registry; given, the standard bundle runs its admin suite. */
215
+ /** The backend's role registry; given, `standard_auth` runs its admin suite. */
213
216
  readonly roles?: RoleRegistry;
214
217
  /**
215
218
  * Setup options every suite's `setup_test` starts from — a signup path the
@@ -260,8 +263,8 @@ export interface SpineCrossSuitesOptions {
260
263
  * The backend's request-body cap on `rpc_path`, in bytes, when it isn't the
261
264
  * spine default (`SPINE_BODY_LIMIT_DEFAULT_BYTES`): the boundary
262
265
  * `body_size`, `body_size_smuggling`, `transport_composition`'s RPC
263
- * over-cap row and the standard bundle's body-limit probe of the RPC
264
- * endpoint probe.
266
+ * over-cap row and `standard`'s body-limit probe of the RPC endpoint
267
+ * probe.
265
268
  */
266
269
  readonly rpc_max_body_bytes?: number;
267
270
  /**
@@ -270,12 +273,12 @@ export interface SpineCrossSuitesOptions {
270
273
  * `ws_round_trip`'s oversized-message case sends past.
271
274
  */
272
275
  readonly ws_max_message_bytes?: number;
273
- /** Forwarded to the standard bundle (`StandardCrossProcessTestOptions.rpc_success_fixtures`). */
276
+ /** Forwarded to `standard` (`StandardCrossTestOptions.rpc_success_fixtures`). */
274
277
  readonly rpc_success_fixtures?: RpcSuccessFixtures;
275
- /** Forwarded to the standard bundle (`StandardCrossProcessTestOptions.rpc_skip_methods`). */
278
+ /** Forwarded to `standard` (`StandardCrossTestOptions.rpc_skip_methods`). */
276
279
  readonly rpc_skip_methods?: Array<string>;
277
280
  /**
278
- * Forwarded to the standard bundle (`StandardCrossProcessTestOptions.rpc_input_overrides`)
281
+ * Forwarded to `standard` (`StandardCrossTestOptions.rpc_input_overrides`)
279
282
  * and to `rpc_adversarial` (`RpcAdversarialCrossTestOptions.input_overrides`),
280
283
  * where each override seeds the method's params cases. Those cases are sent
281
284
  * as a single-actor principal, so an override omits `acting`. A key naming a
@@ -1 +1 @@
1
- {"version":3,"file":"spine_suites.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_suites.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwG9B,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAmC,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAEN,KAAK,gCAAgC,EACrC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEN,KAAK,2BAA2B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEN,KAAK,2BAA2B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAkC,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;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AAa,CAAC,cAAc,CAAC,KACnC,IAiCF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,KAAK,SAAS,CAAC;CAChE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,GACjC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,EAChC,cAAc,sBAAsB,KAClC,IAqEF,CAAC;AAmBF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,GACvC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,KAC9B,IAEF,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gDAAgD,CAAC"}
@@ -44,7 +44,7 @@ import '../assert_dev_env.js';
44
44
  * built on a derived value. A required option the merge leaves `undefined`
45
45
  * throws at collection.
46
46
  * - `rpc_success_fixtures` / `rpc_skip_methods` / `rpc_input_overrides` go to
47
- * the standard bundle's RPC round-trip; `rpc_input_overrides` also seeds
47
+ * the `standard` suite's RPC round-trip; `rpc_input_overrides` also seeds
48
48
  * `rpc_adversarial`'s params cases (each override is the valid base they
49
49
  * break one field of). A key naming a method on neither the declared surface
50
50
  * nor `live_rpc_endpoints` throws at collection.
@@ -79,8 +79,9 @@ import '../assert_dev_env.js';
79
79
  * **Not in the one call** (`STANDALONE_CROSS_SUITES`, with the reasons): the
80
80
  * suites that need two handles (the differential), a backend spawned with live
81
81
  * limiters (`login_security`, `ws_action_rate_limit` — the standard suites would
82
- * exhaust them), and the conformance runner, which runs the consumer's own
83
- * cases. Each keeps its own entry point.
82
+ * exhaust them), the backend swap, which spawns and stops its own backends, and
83
+ * the conformance runner, which runs the consumer's own cases. Each keeps its
84
+ * own entry point.
84
85
  *
85
86
  * Suites are registered without a wrapping `describe`, so their test names are
86
87
  * the same as when each is called on its own — and an `exclude_cases` path is
@@ -135,7 +136,8 @@ import { default_cross_process_setup } from './setup.js';
135
136
  import { describe_simple_request_cross_tests } from './simple_request.js';
136
137
  import { SPINE_PARTICIPANT_ROLE, SPINE_ROLE_GATED_WS_PATH, SPINE_ROLE_GATED_WS_ROLES } from './spine_surface_constants.js';
137
138
  import { describe_cross_process_sse_tests } from './sse_round_trip.js';
138
- import { describe_standard_cross_process_tests } from './standard.js';
139
+ import { describe_standard_cross_tests } from './standard.js';
140
+ import { describe_standard_auth_cross_tests } from './standard_auth.js';
139
141
  import { describe_testing_backdoor_cross_tests } from './testing_backdoor.js';
140
142
  import { describe_token_lifetime_cross_tests } from './token_lifetime.js';
141
143
  import { describe_token_scope_surface_cross_tests } from './token_scope_surface.js';
@@ -150,7 +152,8 @@ import { DB_INVARIANTS_EXCLUDE_ALL } from '../db_invariant_queries.js';
150
152
  /**
151
153
  * Every shipped suite `describe_spine_cross_suites` runs, each named by its
152
154
  * module under `testing/cross_backend/` (`ws_round_trip` is
153
- * `describe_cross_process_ws_tests`, `standard` the standard bundle). Closed: a
155
+ * `describe_cross_process_ws_tests`; `standard_auth` and `standard` the two
156
+ * halves of the standard bundle, its auth suites and the rest). Closed: a
154
157
  * guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
155
158
  * exports a `describe_*` suite, so a new suite fails until it is registered.
156
159
  */
@@ -195,6 +198,7 @@ export const SUITE_NAMES = [
195
198
  'simple_request',
196
199
  'sse_round_trip',
197
200
  'standard',
201
+ 'standard_auth',
198
202
  'testing_backdoor',
199
203
  'token_lifetime',
200
204
  'token_scope_surface',
@@ -215,7 +219,9 @@ export const STANDALONE_CROSS_SUITES = {
215
219
  differential: 'compares two backends: it needs both handles of a dual-spawn project, not one backend',
216
220
  login_security: 'needs a backend spawned with the login limiters enabled, which the standard suites would exhaust',
217
221
  ws_action_rate_limit: 'needs a backend spawned with the action limiters enabled, which the standard suites would exhaust',
218
- conformance_table: "a runner over the consumer's own cases, not a suite"
222
+ conformance_table: "a runner over the consumer's own cases, not a suite",
223
+ backend_swap: 'spawns and stops two backends of its own, one at a time over one database, rather than running against one',
224
+ standard_bundle: 'runs `standard_auth` and `standard` in one call, which the registry runs as two suites'
219
225
  };
220
226
  /**
221
227
  * The backdoors `describe_spine_cross_suites` requires of every backend, since
@@ -747,34 +753,50 @@ const SUITE_ENTRIES = {
747
753
  required: { setup_test: true, capabilities: true, base_url: true }
748
754
  },
749
755
  standard: {
750
- // a keeper-only account for the admin suite's keeper ≠ admin probe —
751
- // `ROLE_KEEPER` is bootstrap-only, so it is seeded at reset
752
756
  derive: (c) => ({
753
- setup_test: c.setup({
754
- extra_accounts: [{ username: 'non_admin_keeper', roles: [ROLE_KEEPER] }]
755
- }),
757
+ setup_test: c.setup(),
756
758
  surface_source: c.options.surface_source,
757
- capabilities: c.config.capabilities,
758
759
  session_cookie_name: c.options.session_cookie_name,
759
760
  rpc_endpoints: c.options.rpc_endpoints,
760
- roles: c.options.roles,
761
761
  rpc_success_fixtures: c.options.rpc_success_fixtures,
762
762
  rpc_skip_methods: c.options.rpc_skip_methods,
763
763
  rpc_input_overrides: c.options.rpc_input_overrides,
764
764
  base_url: c.config.base_url,
765
765
  rpc_max_body_bytes: c.options.rpc_max_body_bytes
766
766
  }),
767
- describe: describe_standard_cross_process_tests,
767
+ describe: describe_standard_cross_tests,
768
768
  transcript: TRANSCRIPT_RAW_SOCKET,
769
769
  required: {
770
770
  setup_test: true,
771
771
  surface_source: true,
772
772
  session_cookie_name: true,
773
773
  rpc_endpoints: true,
774
- capabilities: true,
775
774
  base_url: true
776
775
  }
777
776
  },
777
+ standard_auth: {
778
+ // a keeper-only account for the admin suite's keeper ≠ admin probe —
779
+ // `ROLE_KEEPER` is bootstrap-only, so it is seeded at reset
780
+ derive: (c) => ({
781
+ setup_test: c.setup({
782
+ extra_accounts: [{ username: 'non_admin_keeper', roles: [ROLE_KEEPER] }]
783
+ }),
784
+ surface_source: c.options.surface_source,
785
+ capabilities: c.config.capabilities,
786
+ session_cookie_name: c.options.session_cookie_name,
787
+ rpc_endpoints: c.options.rpc_endpoints,
788
+ roles: c.options.roles
789
+ }),
790
+ describe: describe_standard_auth_cross_tests,
791
+ transcript: 'http',
792
+ required: {
793
+ setup_test: true,
794
+ surface_source: true,
795
+ session_cookie_name: true,
796
+ rpc_endpoints: true,
797
+ capabilities: true
798
+ }
799
+ },
778
800
  testing_backdoor: {
779
801
  derive: (c) => ({ ...rpc_gated(c), ws: c.ws }),
780
802
  describe: describe_testing_backdoor_cross_tests,
@@ -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;AAgH9B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,mBAAmB,CAAC;AAItE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAYzD,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,QAAQ,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,QAAQ,CAAC,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,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,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAwID;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAudtF,CAAC"}
@@ -47,7 +47,8 @@ import '../assert_dev_env.js';
47
47
  * 7. **close on the shared revocations** (gated on `rpc_path`; purge also
48
48
  * on `capabilities.account_lifecycle`) — `admin_token_revoke_all`,
49
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
50
+ * stream, and its `POST /logout` and `account_session_revoke` of its own
51
+ * session each close the stream of the session they end
51
52
  * while a second session's stream stays open and still receives a
52
53
  * broadcast — the rows `create_account_revocations` shares with the WS
53
54
  * suite.
@@ -424,7 +425,8 @@ export const describe_cross_process_sse_tests = (options) => {
424
425
  });
425
426
  // The revocations of `revocation_drivers.ts`, shared with the WS suite,
426
427
  // 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
+ // A session-scoped one (logout, a revoke of the current session) leaves a
429
+ // second session's stream open and
428
430
  // receiving, so a backend closing the whole account on it fails. Without
429
431
  // `rpc_path` the rows still register, as skipped cases, and never run —
430
432
  // so the empty path is never sent.