Architecture and integration guide

AI ReconcilerTechnical guide

A suite of modules on the Phoenix platform: intake, extraction, matching, agents, workflow and a change-controlled posting module. Models read and challenge; fixed rules decide; only the connector writes to the ERP.

Modular suitePrivate or approved modelsRules enforced by testsBack-tested learning
Architecture

Modules, boundaries and the only two ways out

SOURCESMailboxesGraph or IMAPUploadsPDFs, check scansBank feedDeposits, addendaCard batchesProcessor reportsReviewersERP add-on, webPeopleAI RECONCILER ยท PLUGIN SUITEModules split by how often they changeIngestionIntake, dedupeExtractionRead cascade, OCRMatchingPayer, invoicesAgentsCritic, linterWorkflowGate, line workPostingIdempotent writesPersistenceOwn schema, logNotificationsAlerts, digestsUIInbox, settingsAbstractions: contracts only ยท nothing depends on the UI ยท no floating-point moneyMODEL INFERENCESelf-hostedPrivate gatewayCloud modelIf you approveSYSTEM OF RECORDERP connectorSAP Business OneERP ledgerPayments, invoices
Data flow AI Reconciler modules External systems and people Only inference components call models; only the connector writes to the ERP (both enforced by tests)
Rule 1

Feature-flagged

Behaviour changes ship behind settings that default to off.

Rule 2

Idempotent writes

Every external write can be retried without a second posting.

Rule 3

Fully logged

Each agent step is recorded with its evidence and provenance.

Rule 4

No direct egress

Bank and ERP are reached only through existing connectors.

Example dataAgent settings. Gate thresholds, tolerance and hold-anomalies, with configuration keys.

AI Reconciler ยท Technical guideClarity VenturesPage 1 of 5
AI pipeline

Models read and challenge; rules decide

Guard, triageDedupe, sender,remittance or notFixed rulesRead cascadeText layer, textmodel, visionAI modelRead checksTotals, fields,consistencyFixed rulesResolve, matchPayer, invoices,tolerance, claimsFixed rulesCriticChallenges; mayonly lower scoreAI modelLinter, auditorHard checksblock any postFixed rulesConfidence gateOne threshold,hold-anomaliesFixed rulesPost by policyLevel, pilot list, capsReview queueLeast certain firstEscalation agentsRank options for review
Fixed rules: deterministic code AI model: reads and challenges, never decides to post
Data flow

What is stored, and how it moves

DataContentsHandling
Remittance documentsE-mail parts, PDFs, images, sheetsContent hash per document; re-reads never overwrite a person's work
Extracted linesPayer, invoice, amount, notesPer-field confidence; label lines removed before scoring
ERP mirrorOpen invoices, customers, creditsRead for matching; the ERP stays the system of record
Proposals, run stepsAllocations, scores, evidenceSnapshot per version; who produced each step
Posting instructionsPayments, allocations, journalsPolicy-checked, idempotent, confirmed or refused by the ERP

Example dataCheck reading. Each field read from a check image, compared with what was expected.

What a model sees: page images and text of the remittance, and the payer's own open invoices as candidates. Bank numbers are masked where the task does not need them and are parsed by fixed rules. Card numbers never enter the system.

Gate defaults

Auto-post at or above 98%, review at or above 90%, both configurable. A critic can only ever lower a score, and any hard linter error blocks posting.

Escalation budget

Escalation agents run only on held items, least certain first, within a per-run model budget.

AI Reconciler ยท Technical guideClarity VenturesPage 2 of 5
Feature matrix

Capabilities by module: 56 in total

FeatureWhat it doesCategory / module
Capture and intake
Remittance mailbox intake
Polls Microsoft 365 (Graph) or IMAP mailboxes on a schedule (default 5 min)Email.Receiver
Sender and attachment guard
Sender domains, recipient routing, size and type limits; quarantine modeEmail.Receiver
Forwarded bundles split
Inline-forward reader; each inner e-mail classified with its own payer hintEmail.Parser
Remittance classification
Scores amounts, invoice patterns and vocabulary; bank-export classifierEmail.Parser
Every common format
PDF text layer, images by signature, spreadsheet reader, ZIP expansionExtraction
Check image reading
Vision OCR prompt: courtesy and legal amounts read separately, MICR parsedExtraction
ACH addenda and EDI 820
CCD+ RMR and EDI 820 REF/RMR/BPR/TRN parsing; candidates checked vs ERPExtraction
Card deposit breakdown
ICardBatchReader plug-in per processor's batch report formatAbstractions
Duplicate recognition
Message-ID dedupe plus remittance content hash before any readExtraction
Intake health and self-healing
Heal pass every 15 min: retries, re-reads by newer readers, verdictsEmail.Receiver
AI reading
Read cascade
Text layer, then text model, then vision; first read passing checks winsWorkflow
Vision extraction
Vision parser on an OpenAI-compatible or Ollama model, JSON outputExtraction
Per-field confidence
Per-field scores; extracted vs expected comparison for check fieldsExtraction
Payment channel inference
Channel read from the document's own wordingExtraction
Joined invoice lines
Split only when every number resolves to one ERP invoiceWorkflow
Matching
Payer identification
Resolver over invoice refs, sender, signature, ACH IDs and name wordsMatching
Customer synonyms
Payer fingerprints and aliases; confirmed beats learned; conflicts flaggedWorkflow
Payer groups
Group roll-up resolved from the customer-code map, not new schemaMatching
Open-invoice matching
Deterministic allocator with tolerance; candidate sets, nearest due firstMatching
Short-pay reasons
Classifier over the line's own annotation and the varianceMatching
Credit memos and on-account
Credit-memo netting; on-account reconciled to invoice when advice arrivesWorkflow
Contested invoices
Live claim ledger across advice lines and bank allocationsMatching
Advice-to-deposit pairing
One-fit pairing; advice combinations that sum to a credit; late advicesWorkflow
Deposit tie-out
Deposit integrity check; decimal money types only, never floating pointWorkflow
Partial-clue suggestions
Partial invoice numbers, amount-only advices, older invoicesMatching
Agents and confidence
Multi-agent review
Deterministic reconciler; critic may only lower confidence; linter, auditorAgents
Confidence gate
Single deterministic gate; thresholds (default 98% / 90%); hold-anomaliesWorkflow
Escalation agents
Payer investigator, re-reader, invoice hunter, options strategistWorkflow
Explainable trace
Run steps with evidence, timing and who produced themPersistence

Posting allow-list. Restrict posting to chosen customers and named approvers.

AI Reconciler ยท Technical guideClarity VenturesPage 3 of 5
Feature matrix, continued

Review, control, learning, measurement and platform

FeatureWhat it doesCategory / module
Review and work
Reconcile Inbox and Today
Inbox ordered by confidence; Today digest of one business dayUi
Match and Reconcile board
Each payment in exactly one state; search, saved views, layoutsWorkflow
Line-by-line workbench
Apply, partial, on account, credit memo; re-map, split, re-classifyWorkflow
Short-pay investigation
Investigation tasks; journal write-off only when preconditions are metWorkflow
Alerts and daily digest
Notification log rows; delivered by the platform notification serviceNotifications
Works inside the ERP
B1 add-on with server-signed, single-use launch; or the web consoleUi
Posting and control
Five posting levels
Level capped by an environment ceiling; reason required; pause all postingPosting
Pilot lists and approvals
Allow-lists, per-payment caps, second-approver threshold, role-gated adminPosting
Earned autonomy
Per-kind record of confirmed vs contradicted; one miss keeps reviewWorkflow
ERP posting
Idempotent instructions via the connector or add-on queue; journal entriesPosting
Payment Run and daily run
Wizard: dates, deposits, customers, report, execute; daily run at level 5Workflow
Reversal
Reopens the invoice, un-applies cash, posts the reversing entryWorkflow
Already-paid detection
Reads ERP payments and balances before any posting is queuedPosting
Learning
One-click feedback
Structured reason codes stored against the exact proposal versionWorkflow
Learns from corrections
Payer alias learner, rule and prompt drafts, learning from ERP historyWorkflow
Versioned prompts and rules
Draft, Backtested, Active, Archived; diff, rollback, return to shippedPersistence
Back-test before go-live
Golden set replay; only a version with no false auto-post can activateWorkflow
Measurement
Day back-test
Answer key from ERP journal or balance report; wrong postings headlineWorkflow
Shadow mode and scorecard
Shadow postings, determinism check, live shadow scorer per bank dayWorkflow
Daily bank and balance reports
Daily bank, balance and posting reports; .xlsx export with totalsWorkflow
Agent performance
Learning views: proposals, corrections, active versions, performanceWorkflow
Platform
Pluggable AI models
OpenAI-compatible gateway, Ollama or Gemini; deterministic mock offlineAgents
Private inference option
Self-hosted models; outbound egress default-deny in hosted deploymentsHosting
Architecture rules in tests
No direct bank/ERP egress; HTTP only in inference; no float moneyArchitectureTests
Settings with impact preview
Feature flags default off; impact preview; posting admin roleUi
Full decision log
Agent runs, model and prompt version, posting-level changes, approvalsPersistence
Diagnostics
Diagnostics screen; add-on health report and log uploadUi

Intake health. The recurring health pass: verified, healing, needs a person, duplicates and quarantined.

AI Reconciler ยท Technical guideClarity VenturesPage 4 of 5
Integrations

Interfaces and settings

E-mailMicrosoft 365 (Graph) or IMAP; poll interval, accepted recipients, allowed sender domains, Off or Quarantine
BankBank connector supplies deposits, ACH addenda and check images; bank exports sent by e-mail are recognised
CardICardBatchReader per processor batch-report format opens merchant deposits
ERPSAP Business One: Service Layer connector and B1 add-on. Other ERPs via Phoenix connectors: proposed configuration
ModelsOpenAI-compatible gateway (vision and text), Ollama, Gemini or the offline mock
Governance

How a lesson becomes a rule

FeedbackReasons, correctionsDraftproposed rule or promptBack-testedreplayed on golden setActiveone version in useArchivedkept for rollbackA version activates only with no false auto-post on the golden set; rollback copies an archived version forward.

Version history. Every rule set and prompt is versioned: compare any two, roll back, or return to shipped defaults.

Hosting

Clarity-hosted: application, database and inference on Clarity infrastructure.

Access

Role-scoped sessions; each add-on launch is signed, single-use and short-lived.

Data

Bank details masked in lists; customer identity kept out of URLs.

Kill switch

Pause all posting, or cap the level per environment, without a deployment.

Talk to Clarity Ventures about a guided demo

Review the architecture, security controls and deployment options with Clarity's engineers.

Request a guided demo
AI Reconciler ยท Technical guideClarity VenturesPage 5 of 5