Sacral
Workflow 1

Intelligent assisted onboarding

A deposit-account application moves through consent, identity and document facts, and a next action. The workflow, not a model, decides what happens next, and it can always say why.

Real: the engine and its tests

  • Deterministic workflow engine with explicit consent blocking.
  • Facts carry a source citation and a confidence score; missing or low-confidence facts route to review.
  • Market rules are isolated per country (US and India policies in the repository).
  • Core write-back is idempotent: a repeat returns the original result.
  • Ordered audit events for every step. 67 executable tests pass on the current code (covering consent, KYC gating, provenance, missing fields, resume, idempotency, market isolation and audit order).

Synthetic: the data and the partners

  • Applicants come from four generated fixtures.
  • The ID check score and the core-banking write are simulated.

Cohort check

A seeded cohort of synthetic applicants runs through the same engine: some complete with a core write, the rest route to review or decline handling. Reproduce it with the repository command npm run cohort (fixed seed 20260915); rerunning gives the same outcomes.

Fixed seed 20260915 with the repository command npm run cohort; rerunning gives the same outcomes. The generated applicants are all in the India market, with consent given and every extracted fact at full confidence, so the outcomes follow labels assigned in the generator. These are deterministic synthetic results, not business metrics. Live demonstration access is by request.

An illustrative record

What the example shows

One synthetic applicant journey, India market: consent is ticked before anything else happens, then five cited facts (name, date of birth, tax ID, stated need, KYC outcome), each with a source reference and a confidence score.

Decision

The workflow completes the application and sets the next action to card discovery. The engine, not a model, takes the decision; the fixture asserts the expected status and next action.

Comparison with synthetic cases

This journey is one of four generated fixtures, and the same engine ran the seeded cohort above. This is a format comparison, not external validation.

Evidence

67 executable tests pass on the current code. The journey is reproducible from the repository: npm run demo for the browser demo, npm run cohort with fixed seed 20260915 for the cohort.

Illustrative record ID

fixture onboard-happy-001 in fixtures/onboarding-cases.json - synthetic, not a customer record.

The audit export

What it is

The same synthetic journey above, replayed through the case-record engine (packages/workflow/case-record.mjs) and exported as a hash-chained audit trail: sacral-audit-onboard-happy-001-2026-10-18.json. The export carries event metadata and source references only - never fact values - and is labeled SYNTHETIC DEMO DATA ONLY. Three more synthetic fixtures (consent denied, low-confidence review, prohibited feature) export the same way and load in the lens.

Verify it yourself

(1) Recompute the file's SHA-256 and compare with b6462739cf78fd89a68a70c6428efd87f2a1f2409f1e42daddb117e30f6981f3. (2) Regenerate it byte-for-byte: node scripts/build-audit-export.mjs in the repository. (3) The hash chain and contents are re-verified by the automated suite (tests/audit-export-artifact.test.mjs). (4) Replay it in your browser with the Audit Lens: it recomputes the hash chain locally - nothing is uploaded - and fails on any edit.

What it is not

A process-local artifact, not a bank record or durable storage. The hashes detect edits to the file; they do not authenticate the source or signer.