Fragmented process
The agreement lives in a PDF, the figures live in a spreadsheet, and the decision lives in an email thread. Nothing binds the final ratio back to the exact covenant clause or the attested financial inputs.
AI-assisted covenant monitoring for credit teams. The model interprets. Code calculates. Cryptography proves. A human approves.
Synthetic borrower records only. Invite-only staff access for analysts, credit managers, and auditors.

Baseline leverage
3.07x ≤ 3.50x
ZK predicate
Signals 1 · 35000
Audit chain
Ed25519 VALID
End-to-end covenant pipeline
01 Upload → 02 Redact → 03 Extract → 04 Calculate → 05 Prove → 06 Approve → 07 Audit
PDF or UTF-8 text validated and sealed with AES-256-GCM before storage.
Reduced-profile Presidio tokenizes identifiers; an analyst confirms every page.
NEAR AI Cloud extracts terms with fresh Intel TDX and NVIDIA NRAS attestation.
Decimal.js and an independent BigInt verifier compute baseline and stress ratios.
Fixed Groth16 circuit proves the leverage inequality without exposing raw figures.
A credit manager reviews the restricted summary and records one row-locked decision.
Every event is SHA-256 hash-chained and Ed25519-signed per borrower.
The status quo
Every quarter, credit teams pull leverage covenants out of hundred-page agreements, copy figures into ad-hoc models, and route approvals over chat and email. Pasting a credit agreement into a generic chatbot is worse: it leaks borrower data, hallucinates arithmetic, and leaves nothing an auditor can verify.
The agreement lives in a PDF, the figures live in a spreadsheet, and the decision lives in an email thread. Nothing binds the final ratio back to the exact covenant clause or the attested financial inputs.
Two analysts can read the same Adjusted EBITDA definition and permitted add-back caps differently. Unchecked model summaries blur definitions instead of enforcing source-quoted terms.
When a compliance decision is questioned weeks later, there is no machine-readable record of how the terms were extracted, how caps were applied, or which snapshot the manager approved.
No deterministic engine. No proof. No tamper-evident record.
The Assay architecture
Assay composes local PII redaction, TEE-attested extraction, deterministic integer arithmetic, zero-knowledge compliance proofs, and an Ed25519-signed audit chain into a single state machine. Each stage produces a cryptographic or deterministic artifact before the next stage can unlock.
Integer minor-unit arithmetic and permitted add-back caps run in deterministic application code with an independent BigInt reference verifier — never inside a language model.
Sensitive extraction routes only redacted text to NEAR AI Cloud and verifies fresh Intel TDX and NVIDIA NRAS evidence, nonce binding, and the ECDSA response signature on every call.
A fixed Circom Groth16 circuit proves that total debt and adjusted EBITDA satisfy the confirmed threshold so a manager can verify compliance without seeing the borrower's raw figures.
Step-by-step execution
Every state transition is enforced server-side in Fastify and Neon Postgres. No step can be skipped, and every artifact is bound to the exact snapshot version.
Assay checks magic bytes, 10 MiB size and 40-page limits, rejects scanned or password-protected PDFs, and encrypts the document under a per-borrower AES-256-GCM data key before writing ciphertext to private storage.
Presidio runs in a deliberately reduced profile with custom financial recognizers. The analyst inspects and confirms the tokenized pages before any external inference request can be queued.
NEAR AI Cloud extracts one maximum leverage covenant with verbatim page quotes. Assay verifies Intel TDX and NVIDIA NRAS attestation bound to a fresh 32-byte nonce, then gates routing through SERV Reasoning.
Analyst-attested figures are sealed in minor units. Decimal.js computes baseline leverage and two sensitivity scenarios (-10% EBITDA, +10% Debt), while an independent BigInt evaluator verifies every number.
A one-shot worker generates a Groth16 proof over the fixed leverage-v1 circuit (`debt * 10000 <= adjustedEbitda * thresholdBps`). The private witness is passed over stdin and never persisted to disk.
The credit manager sees only the restricted summary, scenario bands, and proof status. Approving locks the analysis row, re-verifies the stored proof, enforces stress-breach acknowledgement, and appends an Ed25519-signed audit event.
System guarantees
Designed around strict operational boundaries: typed Zod contracts, row-locked Postgres transactions, idempotent mutations, and role-shaped response DTOs.
The language model never calculates the ratio. Deterministic code converts inputs to integer minor units, enforces add-back caps, and cross-checks results with an independent BigInt verifier.
Every borrower owns a sequential SHA-256 hash chain signed with Ed25519. Auditors verify the entire chain and every signature without decrypting sealed payloads.
Deleting a borrower's wrapped DEK renders its encrypted documents, financial snapshots, and sealed audit payloads unreadable through the key store while keeping the hash chain verifiable.
Analysts inspect source evidence and financial figures; credit managers see only threshold, compliance status, proof state, and stress bands; auditors verify cryptographic provenance.
Self-approval is blocked, stressed breaches require explicit risk acknowledgement and rationale, and row-level locking ensures concurrent manager requests cannot race.
Analyst corrections can be submitted as de-identified, field-level traces after a 50 KB preflight check for independent multi-evaluator scoring on Reppo.
Five defense-in-depth privacy layers
Sensitive inference is routed to NEAR AI Cloud's TEE-attested gateway. Each request can be verified against Intel TDX and NVIDIA NRAS attestation evidence. OpenRouter receives only structured, already-extracted data for SERV judgement and generation — never raw documents or token maps.
Documents are parsed locally and tokenized by a reduced-model Presidio service (`REDUCED_PII_MODE`) plus deterministic financial recognizers. Mandatory analyst review blocks any model call until redaction is confirmed.
Sensitive inference is routed to NEAR AI Cloud's TEE-attested gateway. Each request is verified against fresh Intel TDX and NVIDIA NRAS attestation evidence bound to a client nonce and a signed response.
The Groth16 proof proves that the private witness satisfies the fixed leverage inequality for the confirmed threshold. It allows manager verification without exposing raw debt or EBITDA.
Sensitive payloads are sealed under a per-borrower AES-256-GCM key while canonical envelope metadata and ciphertext digests are chained with SHA-256 and signed with Ed25519.
No model or external evaluator can approve a covenant, override a baseline breach, or alter policy. A human manager records the decision against a server-verified proof and immutable snapshot version.
Verifiable stack
Every external provider sits behind a strict adapter and health boundary. Provider failures surface visibly and are never masked with fabricated receipts.
Workflow orchestration and audit — gates extraction routing and confirms post-calculation scenario coherence.
TEE-attested confidential inference — runs covenant extraction with per-request Intel TDX and NVIDIA NRAS verification.
Independent evaluation of corrections — scores de-identified field-level feedback traces without raw borrower data.
One verified LoneStar Oracle payment on Arc Mainnet — standard x402 exact, USDC EIP-3009, deterministic policy, provider receipt and onchain authorizationState. The separate Arc Testnet/Circle Gateway adapter is preserved.
Free public XBRL provider — source-linked parsing, period validation, content hash and private-borrower limits are implemented; SEC returned HTTP 403 from both tested egresses, so no live result is claimed.
Postgres, auth, object storage — canonical relational store, `FOR UPDATE SKIP LOCKED` job queue, managed Better Auth, and private ciphertext storage.
Buyer & auditor FAQ
Direct answers on scope, cryptographic boundaries, provider failure handling, and how to test the deployed workspace.
Ready to inspect a live run?
Use the invited synthetic analyst, credit manager, or auditor credentials on the sign-in page to walk the full workflow.
Go to /loginNo. Assay is a synthetic-data MVP built for credit covenant operations around one maximum Debt / Adjusted EBITDA covenant. It uses synthetic borrower records only and is not a production credit decision system.
No. Language models never perform authoritative arithmetic in Assay. Total debt, reported EBITDA, and permitted add-backs are converted to integer minor units and calculated deterministically with Decimal.js, then cross-checked by an independent BigInt reference verifier.
The fixed Circom Groth16 circuit proves only that the supplied private witness (total debt and adjusted EBITDA in minor units) satisfies the inequality debt * 10000 <= adjustedEbitda * thresholdBps for the public covenant threshold. It does not prove the authenticity of the source PDF or the truth of the analyst-entered figures.
The analysis run fails visibly or pauses in an explicit pending state (`ATTESTATION_FAILED`, `PROVIDER_UNAVAILABLE`, or `CALCULATED_SERV_PENDING`). Assay never fabricates a provider response, attestation report, Reppo verdict, or payment receipt.
Yes. Sign in at /login using the invited synthetic workspace accounts provided for evaluation: analyst@assay.test, manager@assay.test, or auditor@assay.test. Public sign-up is disabled at the auth service.
Assay completed one real 0.05 USDC LoneStar Oracle purchase on Arc Mainnet using standard x402 exact and USDC EIP-3009. The transaction, provider receipt, authorization state, retrieved Apple fundamentals and VALID audit chain are recorded in the repository. The provider's actual 402 requirement is still evaluated by a deterministic policy that checks provider, exact endpoint, network, asset, recipient, per-payment cap, aggregate budget, expiry, idempotency and duplicate nonce. A rejection never reaches execution. A timeout becomes RECONCILIATION_REQUIRED and is looked up, not paid again. A separate Arc Testnet/Circle Gateway adapter is preserved; no live Testnet financial-data retrieval is claimed. SEC EDGAR is implemented but returned HTTP 403 from both tested egresses, so no live SEC result is claimed.
To run reliably within the 512 MB Render free-tier memory envelope, Assay pairs Presidio Analyzer (en_core_web_sm) with deterministic custom recognizers for borrower references, account numbers, and emails, and requires mandatory human analyst confirmation before any model call.
Read the agreement. Confirm the terms. Verify the proof. Your authority stays yours.