@fuzdev/fuz_app 0.182.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 (191) hide show
  1. package/README.md +2 -0
  2. package/dist/actions/CLAUDE.md +4 -4
  3. package/dist/auth/CLAUDE.md +58 -34
  4. package/dist/auth/account_routes.d.ts +5 -3
  5. package/dist/auth/account_routes.d.ts.map +1 -1
  6. package/dist/auth/account_routes.js +71 -66
  7. package/dist/auth/admin_actions.d.ts.map +1 -1
  8. package/dist/auth/admin_actions.js +22 -17
  9. package/dist/auth/audit_emitter.d.ts +75 -84
  10. package/dist/auth/audit_emitter.d.ts.map +1 -1
  11. package/dist/auth/audit_emitter.js +83 -71
  12. package/dist/auth/audit_log_schema.d.ts +10 -5
  13. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  14. package/dist/auth/audit_log_schema.js +22 -6
  15. package/dist/auth/bootstrap_account.d.ts +31 -13
  16. package/dist/auth/bootstrap_account.d.ts.map +1 -1
  17. package/dist/auth/bootstrap_account.js +34 -15
  18. package/dist/auth/bootstrap_routes.d.ts +1 -1
  19. package/dist/auth/bootstrap_routes.d.ts.map +1 -1
  20. package/dist/auth/bootstrap_routes.js +7 -14
  21. package/dist/auth/deps.d.ts +8 -5
  22. package/dist/auth/deps.d.ts.map +1 -1
  23. package/dist/auth/deps.js +3 -2
  24. package/dist/auth/resolved_auth.d.ts +7 -7
  25. package/dist/auth/resolved_auth.d.ts.map +1 -1
  26. package/dist/auth/resolved_auth.js +4 -4
  27. package/dist/auth/role_grant_offer_actions.d.ts +25 -1
  28. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  29. package/dist/auth/role_grant_offer_actions.js +40 -33
  30. package/dist/auth/role_grant_offer_queries.d.ts +60 -4
  31. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  32. package/dist/auth/role_grant_offer_queries.js +79 -5
  33. package/dist/auth/role_grant_queries.d.ts +3 -52
  34. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  35. package/dist/auth/role_grant_queries.js +5 -80
  36. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  37. package/dist/auth/self_service_role_actions.js +11 -22
  38. package/dist/auth/session_queries.d.ts +6 -3
  39. package/dist/auth/session_queries.d.ts.map +1 -1
  40. package/dist/auth/session_queries.js +20 -11
  41. package/dist/auth/signup_routes.d.ts.map +1 -1
  42. package/dist/auth/signup_routes.js +90 -38
  43. package/dist/db/sql_columns.d.ts +1 -1
  44. package/dist/db/sql_columns.js +1 -1
  45. package/dist/http/CLAUDE.md +15 -10
  46. package/dist/http/db_routes.d.ts +7 -22
  47. package/dist/http/db_routes.d.ts.map +1 -1
  48. package/dist/http/db_routes.js +72 -72
  49. package/dist/http/pending_effects.d.ts +42 -4
  50. package/dist/http/pending_effects.d.ts.map +1 -1
  51. package/dist/http/pending_effects.js +34 -4
  52. package/dist/server/app_server.d.ts +43 -2
  53. package/dist/server/app_server.d.ts.map +1 -1
  54. package/dist/server/app_server.js +57 -3
  55. package/dist/testing/CLAUDE.md +255 -786
  56. package/dist/testing/adversarial_404.d.ts +6 -1
  57. package/dist/testing/adversarial_404.d.ts.map +1 -1
  58. package/dist/testing/adversarial_404.js +38 -17
  59. package/dist/testing/app_server.d.ts +20 -140
  60. package/dist/testing/app_server.d.ts.map +1 -1
  61. package/dist/testing/app_server.js +45 -124
  62. package/dist/testing/audit_drift_guard.d.ts +11 -6
  63. package/dist/testing/audit_drift_guard.d.ts.map +1 -1
  64. package/dist/testing/audit_drift_guard.js +15 -8
  65. package/dist/testing/cross_backend/audit_cross_helpers.d.ts +12 -9
  66. package/dist/testing/cross_backend/audit_cross_helpers.d.ts.map +1 -1
  67. package/dist/testing/cross_backend/audit_cross_helpers.js +13 -14
  68. package/dist/testing/cross_backend/capabilities.d.ts +9 -6
  69. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  70. package/dist/testing/cross_backend/capabilities.js +11 -7
  71. package/dist/testing/cross_backend/capability_mounts.d.ts +103 -0
  72. package/dist/testing/cross_backend/capability_mounts.d.ts.map +1 -0
  73. package/dist/testing/cross_backend/capability_mounts.js +423 -0
  74. package/dist/testing/cross_backend/cell_moderate.js +2 -2
  75. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
  76. package/dist/testing/cross_backend/cell_relations.js +12 -11
  77. package/dist/testing/cross_backend/conformance_principal.d.ts +54 -0
  78. package/dist/testing/cross_backend/conformance_principal.d.ts.map +1 -0
  79. package/dist/testing/cross_backend/conformance_principal.js +283 -0
  80. package/dist/testing/cross_backend/conformance_table.d.ts +2 -50
  81. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  82. package/dist/testing/cross_backend/conformance_table.js +2 -270
  83. package/dist/testing/cross_backend/credential_deadline.d.ts.map +1 -1
  84. package/dist/testing/cross_backend/credential_deadline.js +2 -0
  85. package/dist/testing/cross_backend/credential_wire.d.ts +1 -1
  86. package/dist/testing/cross_backend/credential_wire.d.ts.map +1 -1
  87. package/dist/testing/cross_backend/db_state_diff.d.ts +72 -0
  88. package/dist/testing/cross_backend/db_state_diff.d.ts.map +1 -0
  89. package/dist/testing/cross_backend/db_state_diff.js +444 -0
  90. package/dist/testing/cross_backend/declared_skips.d.ts +68 -0
  91. package/dist/testing/cross_backend/declared_skips.d.ts.map +1 -0
  92. package/dist/testing/cross_backend/declared_skips.js +132 -0
  93. package/dist/testing/cross_backend/differential.d.ts +11 -2
  94. package/dist/testing/cross_backend/differential.d.ts.map +1 -1
  95. package/dist/testing/cross_backend/differential.js +35 -11
  96. package/dist/testing/cross_backend/differential_normalize.d.ts +12 -0
  97. package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
  98. package/dist/testing/cross_backend/differential_normalize.js +16 -0
  99. package/dist/testing/cross_backend/in_process_setup.d.ts +22 -12
  100. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  101. package/dist/testing/cross_backend/in_process_setup.js +151 -134
  102. package/dist/testing/cross_backend/login_security.d.ts +12 -0
  103. package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
  104. package/dist/testing/cross_backend/login_security.js +21 -4
  105. package/dist/testing/cross_backend/request_target_conformance_wire.d.ts +0 -2
  106. package/dist/testing/cross_backend/request_target_conformance_wire.d.ts.map +1 -1
  107. package/dist/testing/cross_backend/request_target_conformance_wire.js +3 -1
  108. package/dist/testing/cross_backend/revocation_drivers.d.ts +18 -5
  109. package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
  110. package/dist/testing/cross_backend/revocation_drivers.js +18 -10
  111. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts +1 -1
  112. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts.map +1 -1
  113. package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
  114. package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +33 -1
  115. package/dist/testing/cross_backend/role_grant_participation.js +4 -4
  116. package/dist/testing/cross_backend/rpc_adversarial.js +1 -1
  117. package/dist/testing/cross_backend/session_cap.d.ts +2 -2
  118. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  119. package/dist/testing/cross_backend/session_cap.js +22 -11
  120. package/dist/testing/cross_backend/setup.d.ts +31 -1
  121. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  122. package/dist/testing/cross_backend/setup.js +32 -1
  123. package/dist/testing/cross_backend/spine_suites.d.ts +123 -12
  124. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  125. package/dist/testing/cross_backend/spine_suites.js +454 -57
  126. package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
  127. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  128. package/dist/testing/cross_backend/spine_surface_constants.js +1 -0
  129. package/dist/testing/cross_backend/sse_round_trip.d.ts +9 -1
  130. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  131. package/dist/testing/cross_backend/sse_round_trip.js +123 -27
  132. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  133. package/dist/testing/cross_backend/testing_backdoor.js +4 -2
  134. package/dist/testing/cross_backend/testing_reset_actions.d.ts +59 -27
  135. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  136. package/dist/testing/cross_backend/testing_reset_actions.js +66 -42
  137. package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
  138. package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
  139. package/dist/testing/cross_backend/transport_composition.js +7 -3
  140. package/dist/testing/cross_backend/ws_round_trip.d.ts +5 -0
  141. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  142. package/dist/testing/cross_backend/ws_round_trip.js +54 -8
  143. package/dist/testing/data_exposure.d.ts.map +1 -1
  144. package/dist/testing/data_exposure.js +3 -0
  145. package/dist/testing/db.d.ts +0 -32
  146. package/dist/testing/db.d.ts.map +1 -1
  147. package/dist/testing/db.js +0 -86
  148. package/dist/testing/db_entities.d.ts +14 -0
  149. package/dist/testing/db_entities.d.ts.map +1 -1
  150. package/dist/testing/db_entities.js +17 -0
  151. package/dist/testing/db_invariant_queries.d.ts +259 -0
  152. package/dist/testing/db_invariant_queries.d.ts.map +1 -0
  153. package/dist/testing/db_invariant_queries.js +400 -0
  154. package/dist/testing/db_invariants.d.ts +106 -0
  155. package/dist/testing/db_invariants.d.ts.map +1 -0
  156. package/dist/testing/db_invariants.gen.sql.d.ts +11 -0
  157. package/dist/testing/db_invariants.gen.sql.d.ts.map +1 -0
  158. package/dist/testing/db_invariants.gen.sql.js +13 -0
  159. package/dist/testing/db_invariants.js +141 -0
  160. package/dist/testing/db_invariants.sql +152 -0
  161. package/dist/testing/describe_db.d.ts +36 -0
  162. package/dist/testing/describe_db.d.ts.map +1 -0
  163. package/dist/testing/describe_db.js +71 -0
  164. package/dist/testing/integration.d.ts +6 -9
  165. package/dist/testing/integration.d.ts.map +1 -1
  166. package/dist/testing/integration.js +9 -13
  167. package/dist/testing/integration_helpers.d.ts +1 -1
  168. package/dist/testing/integration_helpers.d.ts.map +1 -1
  169. package/dist/testing/rate_limiting.d.ts +1 -1
  170. package/dist/testing/rate_limiting.d.ts.map +1 -1
  171. package/dist/testing/rate_limiting.js +3 -2
  172. package/dist/testing/role_grant_helpers.d.ts +1 -1
  173. package/dist/testing/role_grant_helpers.d.ts.map +1 -1
  174. package/dist/testing/round_trip.d.ts.map +1 -1
  175. package/dist/testing/round_trip.js +3 -0
  176. package/dist/testing/rpc_attack_surface.d.ts +8 -6
  177. package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
  178. package/dist/testing/rpc_attack_surface.js +69 -6
  179. package/dist/testing/rpc_round_trip.d.ts +1 -1
  180. package/dist/testing/rpc_round_trip.d.ts.map +1 -1
  181. package/dist/testing/rpc_round_trip.js +3 -0
  182. package/dist/testing/sse_round_trip.d.ts +1 -1
  183. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  184. package/dist/testing/sse_round_trip.js +13 -4
  185. package/dist/testing/stubs.d.ts +4 -2
  186. package/dist/testing/stubs.d.ts.map +1 -1
  187. package/dist/testing/stubs.js +10 -5
  188. package/dist/testing/test_app.d.ts +166 -0
  189. package/dist/testing/test_app.d.ts.map +1 -0
  190. package/dist/testing/test_app.js +124 -0
  191. package/package.json +1 -1
@@ -2,27 +2,32 @@ import './assert_dev_env.js';
2
2
  import { assert, beforeEach, afterEach } from 'vitest';
3
3
  import { format_issue, nullable, object, parse } from '@fuzdev/fuz_schema/schema.ts';
4
4
  import { get_audit_metadata_validation_failures, get_audit_unknown_event_type_failures, reset_audit_metadata_validation_failures, reset_audit_unknown_event_type_failures } from '../auth/audit_log_queries.js';
5
- import { get_audit_write_failures, reset_audit_write_failures } from '../auth/audit_emitter.js';
5
+ import { get_audit_success_outside_transaction, get_audit_write_failures, reset_audit_success_outside_transaction, reset_audit_write_failures } from '../auth/audit_emitter.js';
6
6
  import { audit_metadata_schemas } from '../auth/audit_log_schema.js';
7
7
  /**
8
8
  * Register per-test `beforeEach` + `afterEach` hooks that catch any audit
9
9
  * emission with a metadata shape that fails its `audit_metadata_schemas`
10
- * entry, an `event_type` not present in the active `AuditLogConfig`, or a
11
- * row the emitter failed to write.
10
+ * entry, an `event_type` not present in the active `AuditLogConfig`, a
11
+ * row the emitter failed to write, or a success row written outside a
12
+ * transaction (`emit` with none open, or `emit_pool`).
12
13
  *
13
14
  * The production validation in `query_audit_log` is fail-open — it bumps
14
15
  * process-wide counters and proceeds, so a regression that emits an
15
16
  * undeclared metadata field or a typo'd event-type lands a row that
16
17
  * passes downstream queries but breaks forensics. The emitter's pool write
17
18
  * is fail-open too: a refused `INSERT` is logged and counted, the request
18
- * succeeds, and the row is gone. Tests that exercise audit emits should fail
19
- * loudly when either happens.
19
+ * succeeds, and the row is gone. A success row belongs in the transaction of
20
+ * the change it reports; `emit` refuses one with no transaction open by
21
+ * throwing, which a caller can swallow, and `emit_pool` writes one on the
22
+ * pool. Tests that exercise audit emits should fail loudly when any of these
23
+ * happens.
20
24
  *
21
25
  * Call at the top of every `describe` / `describe_db` block that fires
22
26
  * audit writes through `deps.audit.emit`. Resets counters before each
23
27
  * test and asserts zero on completion. A test that makes a write fail on
24
28
  * purpose calls `reset_audit_write_failures` (`auth/audit_emitter.ts`) once
25
- * it has asserted the count.
29
+ * it has asserted the count, and one that writes a success row outside a
30
+ * transaction on purpose calls `reset_audit_success_outside_transaction`.
26
31
  *
27
32
  * Pair with `await_pending_effects: true` (the default for
28
33
  * `create_test_app`) so fire-and-forget audit writes have completed by
@@ -33,6 +38,7 @@ export const install_audit_drift_guard = () => {
33
38
  reset_audit_metadata_validation_failures();
34
39
  reset_audit_unknown_event_type_failures();
35
40
  reset_audit_write_failures();
41
+ reset_audit_success_outside_transaction();
36
42
  });
37
43
  afterEach(assert_no_audit_drift);
38
44
  };
@@ -47,6 +53,7 @@ export const assert_no_audit_drift = () => {
47
53
  assert.strictEqual(get_audit_metadata_validation_failures(), 0, 'audit metadata failed schema validation — see audit_log_schema.audit_metadata_schemas');
48
54
  assert.strictEqual(get_audit_unknown_event_type_failures(), 0, 'audit emitted an unknown event_type — see AUDIT_EVENT_TYPES');
49
55
  assert.strictEqual(get_audit_write_failures(), 0, 'an audit row failed to write and was lost — the emitter logged the database error');
56
+ assert.strictEqual(get_audit_success_outside_transaction(), 0, 'a success audit row was emitted outside a transaction — write it in the transaction of the change it reports');
50
57
  };
51
58
  /**
52
59
  * Build a no-op `AuditEmitter` that records every `emit`, `emit_pool`, and
@@ -65,7 +72,7 @@ export const assert_no_audit_drift = () => {
65
72
  * `listener_count` reports, and returns a remover with the production
66
73
  * semantics (per registration, idempotent) — registered listeners never fire,
67
74
  * since this emitter captures `emit` shapes, not fan-out. `drain_inflight` resolves at once
68
- * and `is_tracking_inflight` answers `false`: a recorded call writes nothing, so nothing is
75
+ * and `inflight_count` answers 0: a recorded call writes nothing, so nothing is
69
76
  * ever in flight.
70
77
  *
71
78
  * `emit` AND `emit_pool` both append to `calls`, so a test reads either
@@ -122,7 +129,7 @@ export const create_recording_audit_emitter = (calls_ref) => {
122
129
  },
123
130
  listener_count: () => listeners.length,
124
131
  drain_inflight: () => Promise.resolve(),
125
- is_tracking_inflight: () => false
132
+ inflight_count: () => 0
126
133
  };
127
134
  return { emitter, calls };
128
135
  };
@@ -13,16 +13,19 @@ export interface AuditReadFixture {
13
13
  readonly reject_unknown_audit_metadata_keys?: boolean;
14
14
  }
15
15
  /**
16
- * Await the backend's in-flight audit writes via `_testing_drain_effects`, so
17
- * a following `audit_log_list` sees every row emitted before the call. The
18
- * backend must mount the action — every spine test binary does; in-process
19
- * suites mount `create_testing_drain_effects_action`.
16
+ * Await the backend's in-flight detached writes (audit rows; on the Rust
17
+ * spine also the token touch and the bootstrap write) via
18
+ * `_testing_drain_effects`, so a following `audit_log_list` sees every row
19
+ * emitted before the call. The backend must mount the action — every spine
20
+ * test binary does; in-process suites mount
21
+ * `create_testing_drain_effects_action`.
20
22
  *
21
- * Refuses an answer without `tracked: true`. A binary whose audit emitter was
22
- * built without in-flight tracking answers the drain at once, waiting on
23
- * nothing, and its audit reads race the writes — an absent row then reads as
24
- * a pass. Every audit read runs through here, so each one checks the barrier
25
- * is live.
23
+ * Refuses any answer but exactly `{ok: true}` — what both spines answer once
24
+ * their drains have awaited the backend's in-flight detached writes. A backend
25
+ * answering anything else (an unknown key included) is not the drain this
26
+ * contract names, and its audit reads could race the writes — an absent row
27
+ * then reading as a pass. Every audit read runs through here, so each one
28
+ * checks the barrier is live.
26
29
  *
27
30
  * @param fixture - the per-test fixture, whose daemon token authorizes the drain
28
31
  * @param rpc_path - the RPC endpoint the drain action is mounted on
@@ -1 +1 @@
1
- {"version":3,"file":"audit_cross_helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/audit_cross_helpers.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAsB9B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAErF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,6EAA6E;AAC7E,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,cAAc,CAAC;IAC5F,2FAA2F;IAC3F,QAAQ,CAAC,sBAAsB,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5F,QAAQ,CAAC,2BAA2B,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjG,8FAA8F;IAC9F,QAAQ,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CACtD;AAED;;;;;;;;;;;;;;GAcG;A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AM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjG,8FAA8F;IAC9F,QAAQ,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CACtD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,mBAAmB,GAC/B,SAAS,gBAAgB,EACzB,WAAU,MAAuB,KAC/B,OAAO,CAAC,IAAI,CAcd,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B,GACxC,SAAS,IAAI,CAAC,gBAAgB,EAAE,oCAAoC,CAAC,EACrE,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACxC,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,SAAQ,aAAa,CAAC,MAAM,CAAM,KAChC,IASF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,GAC7B,SAAS,gBAAgB,EACzB,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,WAAU,MAAuB,KAC/B,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAe/C,CAAC"}
@@ -21,16 +21,19 @@ import { assert_audit_event_metadata } from '../audit_drift_guard.js';
21
21
  import { cross_rpc_call, expect_output } from './cross_rpc.js';
22
22
  import { SPINE_RPC_PATH } from './spine_surface_constants.js';
23
23
  /**
24
- * Await the backend's in-flight audit writes via `_testing_drain_effects`, so
25
- * a following `audit_log_list` sees every row emitted before the call. The
26
- * backend must mount the action — every spine test binary does; in-process
27
- * suites mount `create_testing_drain_effects_action`.
24
+ * Await the backend's in-flight detached writes (audit rows; on the Rust
25
+ * spine also the token touch and the bootstrap write) via
26
+ * `_testing_drain_effects`, so a following `audit_log_list` sees every row
27
+ * emitted before the call. The backend must mount the action — every spine
28
+ * test binary does; in-process suites mount
29
+ * `create_testing_drain_effects_action`.
28
30
  *
29
- * Refuses an answer without `tracked: true`. A binary whose audit emitter was
30
- * built without in-flight tracking answers the drain at once, waiting on
31
- * nothing, and its audit reads race the writes — an absent row then reads as
32
- * a pass. Every audit read runs through here, so each one checks the barrier
33
- * is live.
31
+ * Refuses any answer but exactly `{ok: true}` — what both spines answer once
32
+ * their drains have awaited the backend's in-flight detached writes. A backend
33
+ * answering anything else (an unknown key included) is not the drain this
34
+ * contract names, and its audit reads could race the writes — an absent row
35
+ * then reading as a pass. Every audit read runs through here, so each one
36
+ * checks the barrier is live.
34
37
  *
35
38
  * @param fixture - the per-test fixture, whose daemon token authorizes the drain
36
39
  * @param rpc_path - the RPC endpoint the drain action is mounted on
@@ -38,11 +41,7 @@ import { SPINE_RPC_PATH } from './spine_surface_constants.js';
38
41
  export const cross_drain_effects = async (fixture, rpc_path = SPINE_RPC_PATH) => {
39
42
  const drained = await cross_rpc_call(fixture.fresh_transport({ origin: null }), rpc_path, '_testing_drain_effects', undefined, fixture.create_daemon_token_headers());
40
43
  assert.ok(drained.ok, `_testing_drain_effects failed: ${JSON.stringify(drained.error)}`);
41
- const tracked = typeof drained.result === 'object' && drained.result !== null
42
- ? drained.result.tracked
43
- : undefined;
44
- assert.strictEqual(tracked, true, "_testing_drain_effects must answer tracked: true — the backend's audit emitter does not " +
45
- `track in-flight writes, so the drain waits on nothing (got ${JSON.stringify(drained.result)})`);
44
+ assert.deepStrictEqual(drained.result, { ok: true }, `_testing_drain_effects must answer exactly {ok: true} (got ${JSON.stringify(drained.result)})`);
46
45
  };
47
46
  /**
48
47
  * Assert an audit row's `metadata` carries `expected` — each field compared
@@ -294,7 +294,9 @@ export interface BackendCapabilities {
294
294
  * (`_testing_origin_check`), `ws_outbound_overflow`
295
295
  * (`_testing_flood_notifications`) — and requires `_testing_put_fact` of a
296
296
  * backend declaring `fact_serving` and `_testing_room_evict` of one
297
- * declaring `rooms`.
297
+ * declaring `rooms`. `default_cross_process_setup` requires
298
+ * `_testing_db_invariants`, its per-test invariant check, unless the setup
299
+ * turns the check off (`exclude_db_invariants: {all: reason}`).
298
300
  *
299
301
  * fuz_app's spine presets declare every one; the in-process transport none
300
302
  * (the backdoor suites are cross-process only).
@@ -344,12 +346,13 @@ export type FamilyDefaultCapabilities = Omit<BackendCapabilities, MountFlag | 't
344
346
  export declare const in_process_capabilities: BackendCapabilities;
345
347
  /**
346
348
  * Conditional `test()` wrapper — registers a vitest case only when
347
- * `cond` is true; otherwise registers it as `.skip` so the run still
348
- * surfaces the gated coverage in the report.
349
+ * `cond` is true; otherwise registers it as a gated skip
350
+ * (`test_skip_gated`), so the run still surfaces the gated coverage in the
351
+ * report and `check_declared_skips` can hold the skip to a declaration.
349
352
  *
350
- * Thin wrapper around vitest's `test.skipIf(!cond)` with the argument
351
- * order flipped to match the more readable `test_if(capabilities.ws, ...)`
352
- * call pattern.
353
+ * `test.skipIf(!cond)` with the argument order flipped to match the more
354
+ * readable `test_if(capabilities.ws, ...)` call pattern, and the skip tagged
355
+ * at registration.
353
356
  */
354
357
  export declare const test_if: (cond: boolean, name: string, fn: () => void | Promise<void>) => void;
355
358
  //# sourceMappingURL=capabilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAmD9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,yBAA0B,CAAC;AAEnE,4CAA4C;AAC5C,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnF;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,QAAQ,CAAC,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AQ,CAAC,iBAAiB,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACjE;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,IAAI,CACjC,mBAAmB,EACjB,IAAI,GACJ,KAAK,GACL,WAAW,GACX,gBAAgB,GAChB,mBAAmB,GACnB,cAAc,GACd,yBAAyB,GACzB,OAAO,GACP,cAAc,GACd,oBAAoB,GACpB,eAAe,GACf,OAAO,CACT,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,mBAAmB,CAAC,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,mBAwCpC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,OAAO,EAAE,MAAM,MAAM,EAAE,IAAI,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAG,IAMrF,CAAC"}
@@ -30,7 +30,9 @@ import '../assert_dev_env.js';
30
30
  * **Mount flags have no default.** A flag naming something a backend mounts
31
31
  * (a `MountFlag`) is never inherited, nor is the `testing_backdoors` list: the
32
32
  * family defaults are `FamilyDefaultCapabilities`, which omits them, so every
33
- * backend config states each one. The family defaults carry only what the family guarantees — the
33
+ * backend config states each one, and `describe_capability_mounts_cross_tests`
34
+ * holds each a request can observe to what the backend mounts, `false` as
35
+ * much as `true`. The family defaults carry only what the family guarantees — the
34
36
  * declared spine surface's mounts, fallback and host gate (`account_lifecycle`,
35
37
  * `account_status`, `spine_fallback`, `host_gate`) and the runtime behavior of its
36
38
  * reference runtime (`ws_handshake_pipelining`,
@@ -46,6 +48,7 @@ import '../assert_dev_env.js';
46
48
  * @module
47
49
  */
48
50
  import { test } from 'vitest';
51
+ import { test_skip_gated } from './declared_skips.js';
49
52
  /**
50
53
  * The upgrade refusals a runtime makes before the app runs, which
51
54
  * `BackendCapabilities.ws_upgrade_runtime_refusals` declares: `empty_host`, an
@@ -108,18 +111,19 @@ export const in_process_capabilities = Object.freeze({
108
111
  });
109
112
  /**
110
113
  * Conditional `test()` wrapper — registers a vitest case only when
111
- * `cond` is true; otherwise registers it as `.skip` so the run still
112
- * surfaces the gated coverage in the report.
114
+ * `cond` is true; otherwise registers it as a gated skip
115
+ * (`test_skip_gated`), so the run still surfaces the gated coverage in the
116
+ * report and `check_declared_skips` can hold the skip to a declaration.
113
117
  *
114
- * Thin wrapper around vitest's `test.skipIf(!cond)` with the argument
115
- * order flipped to match the more readable `test_if(capabilities.ws, ...)`
116
- * call pattern.
118
+ * `test.skipIf(!cond)` with the argument order flipped to match the more
119
+ * readable `test_if(capabilities.ws, ...)` call pattern, and the skip tagged
120
+ * at registration.
117
121
  */
118
122
  export const test_if = (cond, name, fn) => {
119
123
  if (cond) {
120
124
  test(name, fn);
121
125
  }
122
126
  else {
123
- test.skip(name, fn);
127
+ test_skip_gated(name, fn);
124
128
  }
125
129
  };
@@ -0,0 +1,103 @@
1
+ import '../assert_dev_env.js';
2
+ import type { BackendCapabilities } from './capabilities.js';
3
+ import type { RpcPathCapabilityGatedCrossSuiteOptions, SetupTest } from './setup.js';
4
+ /** The capability flags a request can observe, each probed in both directions. */
5
+ export type ProbedCapability = keyof Pick<BackendCapabilities, 'ws' | 'sse' | 'cell_crud' | 'cell_relations' | 'fact_serving' | 'fact_serving_admin_hash' | 'ready' | 'account_status' | 'ws_account_actions' | 'ws_role_gated'>;
6
+ /** The capabilities no probe checks — every `BackendCapabilities` key but the probed ones. */
7
+ export type UnprobedCapability = Exclude<keyof BackendCapabilities, ProbedCapability>;
8
+ /**
9
+ * Why each unprobed capability has no probe, shown in the run as a skipped
10
+ * test. Keyed by `UnprobedCapability`, so a new flag fails to compile until it
11
+ * is either probed or listed here.
12
+ */
13
+ export declare const UNPROBED_CAPABILITIES: Readonly<Record<UnprobedCapability, string>>;
14
+ /** Options for the capability mount suite. */
15
+ export interface CapabilityMountsCrossTestOptions extends RpcPathCapabilityGatedCrossSuiteOptions {
16
+ /** Base URL the backend is reachable at (e.g. `http://localhost:1178`), for the upgrade probes. */
17
+ readonly base_url: string;
18
+ /** WebSocket endpoint path. Default `SPINE_WS_PATH`. */
19
+ readonly ws_path?: string;
20
+ /** Audit-log SSE stream path. Default `SPINE_SSE_PATH`. */
21
+ readonly sse_path?: string;
22
+ /** Role-gated WebSocket endpoint path. Default `SPINE_ROLE_GATED_WS_PATH`. */
23
+ readonly gated_ws_path?: string;
24
+ /** Readiness route path. Default `/ready`. */
25
+ readonly ready_path?: string;
26
+ /**
27
+ * A note per flag, added to that probe's failure — where its path came from
28
+ * and how to move it. `describe_spine_cross_suites` sets one for a flag
29
+ * whose path it reads from a sibling suite the call excludes.
30
+ */
31
+ readonly path_notes?: Readonly<Partial<Record<ProbedCapability, string>>>;
32
+ }
33
+ /**
34
+ * The suite's options with every path resolved — where the probes send. Each
35
+ * of these is a declaration as much as a flag is: a probe sent to the wrong
36
+ * path finds nothing mounted there.
37
+ *
38
+ * @internal Used by the suite's own tests and `describe_spine_cross_suites` — not stable API.
39
+ */
40
+ export interface CapabilityMountsTarget {
41
+ readonly base_url: string;
42
+ readonly rpc_path: string;
43
+ readonly ws_path: string;
44
+ readonly sse_path: string;
45
+ readonly gated_ws_path: string;
46
+ readonly ready_path: string;
47
+ }
48
+ /**
49
+ * Resolve the suite's paths, each option's default filled.
50
+ *
51
+ * @param options - the suite's options
52
+ * @returns where every probe sends
53
+ * @internal Used by the suite's own tests and `describe_spine_cross_suites`, which derives the
54
+ * suite's options resolved — not stable API.
55
+ */
56
+ export declare const resolve_capability_mounts_target: (options: Omit<CapabilityMountsCrossTestOptions, "setup_test" | "capabilities">) => CapabilityMountsTarget;
57
+ /**
58
+ * The name the unmounted controls send to: a path segment, RPC method and WS
59
+ * method no backend mounts.
60
+ */
61
+ export declare const CAPABILITY_MOUNTS_ABSENT = "capability_mounts_absent";
62
+ /** Every probed capability, in the order the suite runs them. */
63
+ export declare const PROBED_CAPABILITIES: ReadonlyArray<ProbedCapability>;
64
+ /**
65
+ * One test the suite registers: its describe group, name, and whether it runs.
66
+ *
67
+ * @internal Used by the suite's own tests — not stable API.
68
+ */
69
+ export interface CapabilityMountRow {
70
+ readonly group: 'capability mounts' | 'capability mount controls' | 'capability mounts not probed';
71
+ readonly name: string;
72
+ /**
73
+ * `run` sends and checks; `fail` fails at once (a contradictory
74
+ * declaration); `skip` is shown skipped (a flag no request observes);
75
+ * `gated_skip` is a skip the backend's declarations cause, registered
76
+ * through `test_skip_gated` so `check_declared_skips` holds it.
77
+ */
78
+ readonly mode: 'run' | 'fail' | 'skip' | 'gated_skip';
79
+ /** The check a `run` row makes, or the failure a `fail` row reports. */
80
+ readonly body: (setup_test: SetupTest) => Promise<void>;
81
+ }
82
+ /**
83
+ * Plan the suite's tests from a backend's capabilities and paths — what
84
+ * `describe_capability_mounts_cross_tests` registers, as data, so the
85
+ * classification is checkable without a backend.
86
+ *
87
+ * @param capabilities - the backend's declarations
88
+ * @param target - where the probes send
89
+ * @param path_notes - a note per flag added to its probe's failure
90
+ * @returns every row, in registration order
91
+ * @internal Used by the suite's own tests — not stable API.
92
+ */
93
+ export declare const plan_capability_mount_rows: (capabilities: BackendCapabilities, target: CapabilityMountsTarget, path_notes?: Readonly<Partial<Record<ProbedCapability, string>>>) => Array<CapabilityMountRow>;
94
+ /**
95
+ * Register the capability mount suite: one probe per `ProbedCapability`, each
96
+ * asserting the backend's answer matches its declaration, the same probe again
97
+ * as an unmounted control, and one skipped test per `UNPROBED_CAPABILITIES`
98
+ * entry naming why.
99
+ *
100
+ * @param options - the fixture, the backend's capabilities, and its paths
101
+ */
102
+ export declare const describe_capability_mounts_cross_tests: (options: CapabilityMountsCrossTestOptions) => void;
103
+ //# sourceMappingURL=capability_mounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability_mounts.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/capability_mounts.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