0xBUFF / retention

Integration

Connect review projections to host-owned history, authorization and delivery.

For a local study tool, start with the quick start. You can pass practice observations directly to Retention.

Bind the scope, assign durable unique event IDs and sequences, and supply a clock in integer Unix milliseconds. Store the complete history in your application and rebuild whenever the policy changes.

For advisory candidate readiness, configure an eligibility policy and supply only independently admitted credited retrievals. A successful practice event cannot satisfy eligibility. A model report, a tag or the canonical watermark cannot establish evidence authenticity. The packed consumer fixture includes synthetic practice and credited observations to illustrate the distinction.

For corrections, revocations and deletion, supply the complete durable history including controls. A scheduler result must not update official grades or credentials. The host owns stale-generation checks, history completeness, tenant authorization, physical erasure and delivery.

Failures and privacy

Check result.ok before consuming a value. On failure, retain authoritative host records unchanged; do not apply a partial projection. Do not log raw payloads or canonical history watermarks. Bound incoming serialized data before materializing it; the validator is not a JavaScript sandbox. See the security policy.

Runtime

Use the ESM root in Node.js 24 or a browser with ES2022 support and a bundler or import map. The package has no mandatory runtime dependencies. Version 0.0.2 was tested with Node.js 24.22.3 and Chromium (Google Chrome 158.0.8127.36). Other browsers have not been verified by the release checks.

Host integration checklist

  • Admit evidence and authorize the scope before constructing events.
  • Persist durable sequences and complete relevant history, including lifecycle controls.
  • Rebuild with an explicit clock when policy content changes. Verify the prior prefix when using advance.
  • Reject stale generations before applying results or sending notifications.
  • Handle physical deletion and backups in the host. A replay suppression control does not erase stored records.
  • Keep official credit, grades and credentials outside advisory projections.

On this page