Build on the supported package contract
Use @absolutejs/secure-messaging-store-conformance through its supported public entry points.
@absolutejs/secure-messaging-store-conformancev0.2.0betaMessagingRepeatable atomicity, replay, concurrency, and crash-boundary drills for SecureMessagingStore adapters.
bun add @absolutejs/secure-messaging-store-conformanceFramework-neutral, repeatable drills for every SecureMessagingStore adapter. The runner checks atomic state/replay/outbox commits, revision compare-and-swap, replay conflicts, rollback, concurrent writers, idempotent outbox acknowledgement, revision rollback rejection, revision-checked deletion, cloning, and ambiguous commit retries.
runSecureMessagingDurabilityUncertaintyConformance() injects the real post-mutation acknowledgement-loss boundary. It requires the adapter to throw SecureMessagingDurabilityUncertainError, resolves the authoritative store, handles both the already-applied and safe-to-retry outcomes, and proves the final state and outbox effect exist exactly once.
Use an isolated tenant or freshly reset database for every scenario. Run this suite in adapter CI, before PaaS releases, and during scheduled durability drills.
Backup drills can call seedSecureMessagingStoreRecovery, capture an operator-controlled backup, call mutateSecureMessagingStoreAfterRecoveryPoint against the source, restore into an isolated target, and then call verifySecureMessagingStoreRecovery against that target. The fixture contains only synthetic identifiers and encrypted bytes, so drill evidence never needs tenant data or key material.
Licensed under Apache-2.0.
Outcomes
Use @absolutejs/secure-messaging-store-conformance through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/secure-messaging-store-conformance
await runSecureMessagingStoreConformance({
createStore: (scenario) => createStoreForIsolatedTenant(scenario),
});Supported entry points declared by this package manifest.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.