The Compliance Lab
The second segment of Inflowenger, and the project it is built on. SurfStat is an authoring substrate for governed data: one fixed machine — two generic tables, a graph engine and an execution record — standing as the orchestrator of a thousand handles into heterogeneous, distributed places, and bent to an organization's own structure by authoring rather than by shipping. Regulatory technology is where the desire for it came from, and it turned out to be the first thing the substrate carries rather than the size of it.
Three complete compliance frameworks, built over one synthetic bank branch: fraud surveillance, credit risk and IFRS 9, supervisory returns. Nine flows, 102 nodes. One pair of database tables, one set of node kinds, and no schema change between them — the three regimes differ only in what they say.
That exercise is the reason this post exists, and the thing it tested isn't really a compliance product. It's the machine underneath: an authoring substrate for governed data, which is what SurfStat became once the regtech work had been going a few months. Regulatory technology is the origin of the desire for it and the reason it exists at all. It stopped being the size of it somewhere around the point where the third framework needed nothing new.
This post introduces both: the Compliance Lab, which is the segment doing that work, and the substrate it's built on.
Why a lab and not just a product
Venapce was the first product where all of the business logic lives in FloMorphic workflows and the product itself is only the view. It worked well enough that the interesting question stopped being "can a whole product be a graph" and became "which domain needs that most."
Regulatory work needs it most, for a reason anyone who has sat in a bank's compliance function will recognise. The person who understands a control is never the person who can deploy one. A regulator amends a reporting requirement, or the internal policy committee tightens a threshold, and the path from we know what has to change to the system does it runs through a backlog, a sprint, a release window and a test cycle. Six weeks later the control is live and the regulator has moved again. Everyone involved knows this is absurd and nobody can individually fix it, because the control lives in code and code is engineering's to change.
So the Compliance Lab is the regulatory segment of Inflowenger: regulated processes, supervisory reporting, risk and fraud surveillance, and the evidence trail all three produce. The thing it works on, and the thing that outgrew it, is SurfStat.
SurfStat, in one shape
The definition that survived contact with the three frameworks is deliberately not a category: an authoring substrate for governed data. One fixed machine that an organization bends to its own structure by authoring rather than by shipping.
It's forked from Venapce and is the same computation with different nouns. Venapce faces the same problem through security tooling, none of it authoritative either, and in both the valuable act is turning that raw signal into a judged, evidenced, deduplicated record a person can act on and defend.
Fixed at the core, though, and not at the edge. The same install is an orchestrator holding a thousand handles into heterogeneous and distributed places, and in the real world a handle is whatever the data happens to live in: a branch's SQL Server, a database nobody has documented since 2011, a questionnaire a counterparty fills in, a folder where somebody drops an Excel file every Thursday, a service that polls and caches sensor readings, a vendor's own estate. None of those agree with each other, most of them were never designed to be read by anything, and none of them are in this building.
What makes that tractable instead of a thousand integrations is that every handle is the same kind of thing. Each one is a plugin speaking inflowv1, which is the protocol the whole Inflowenger platform is extended through, and the plugin runs where its data lives rather than here. The catalog already covers a good deal of that surface. Postgres, MySQL, SQL Server, MongoDB, ClickHouse and Qdrant for the databases. Gmail for a mail intake, Google Workspace for Sheets and Drive, so a returned questionnaire or a dropped workbook arrives the same way a query result does. And the IT estate, which is where a lot of technical control evidence actually is: Nuclei, the security scanner, running template-driven vulnerability checks against targets a flow hands it; scrapli to log into routers, switches and firewalls over SSH and query them, with the output parsed to structured data rather than left as terminal text; osquery for endpoint facts; Playwright for the system whose only interface is a web UI somebody clicks through.
The osquery one is worth a sentence, because SurfStat deliberately removed it. Venapce's fleet, its node enrolment and its osctrl broker were deleted outright rather than left dormant, since a regtech install shouldn't ship a security product's agent estate. But the capability didn't go anywhere. If a control needs endpoint facts, osquery comes back as an ordinary plugin behind an ordinary channel, which is the clearest demonstration I have that the handle shape is doing real work. A source nobody has written yet is a plugin written once against a published SDK, and it then runs on any host that speaks the protocol.
a branch's SQL Server a questionnaire a counterparty fills in
an undocumented database a folder someone drops an .xlsx into
a sensor-data cache a router, a switch, an endpoint
a vendor's own estate a web UI that has no API at all
────────────────────────────────────────────────────────────────────
heterogeneous · distributed · none of it in this building
│
one protocol — inflowv1
│
┌───────────────────────▼──────────────────────────┐
│ plugin backends, one per handle │
│ each one runs where its data already lives │
│ holds no logic, stores no secret │
└───────────────────────┬──────────────────────────┘
│ SurfStat registers the extension,
│ FloMorphic mints the identity,
│ the credential is handed outward
┌───────────────────────▼──────────────────────────┐
│ CHANNELS — one row each, `kind` is vocabulary │
└───────────────────────┬──────────────────────────┘
│
┌───────────────────────▼──────────────────────────┐
│ FloMorphic — the flow a compliance expert drew │
└───────────────────────┬──────────────────────────┘
│
┌───────────────────────▼──────────────────────────┐
│ records → cases · activities are the evidence │
│ one schema, one appliance, inside the building │
└──────────────────────────────────────────────────┘
Read that from the bottom and it's the whole product: one schema, one appliance, and an execution record. Read it from the top and it's a thousand places that will never be consistent with each other. The protocol in the middle is what lets the bottom stay fixed while the top keeps changing, and a channel row is where one of those handles gets a name, a kind and a credential.
The machine is three parts.
- Two generic tables.
recordsis everything that came in.casesis what somebody has to do something about. Venapce's three-levelstage → findings → issuesbecameintake → exceptions → casesand then lost its middle level, because "exception" turned out to be one organization's word for one organization's intermediate step, and hard-coding it asserted that every firm draws its pipeline the same way. A firm that wants that level now defines a term in its own vocabulary, stamps it on a record and names a saved view over it. A firm that doesn't never sees it. - A graph engine. The process is a graph somebody drew rather than code somebody deployed, and every stage of it is a node on that graph.
- An execution record. Every run leaves one, and that record is the evidence.
The schema never moves. The vocabulary, the classifications, the flows, the views and the pages are all rows, so fitting the system to an organization costs a row rather than a release. That's the claim the three frameworks were built to attack.
The two tables are generic on purpose, and they aren't a collection point. A new regime doesn't get its own tables or its own data structure; it gets terms in tags and saved views, each of which is a filter over the same pair. And underneath them the estate stays where it is: through FloMorphic and its plugins a deployment holds thousands of handles into data sources and databases in other systems and other branches, so an honest count of databases and tables across an organization runs to hundreds and thousands of each. What ends up in records is the top layer — the cleanest data there is — and it got there by travelling from somewhere deep in the organization through several flows that read it, correlated it and judged it. The pair of tables is the end of that road rather than a lake at the start of it.
What the substrate carries, stated as four things rather than one market:
- Regulatory control, authored and evidenced. A regulated process is a graph the compliance expert draws, each validation stage is a node on it, and the execution record of every run is the evidence. Digitalising a control becomes an authoring act instead of a release cycle.
- Supervisory returns, a thousand branches wide. Every return has its own columns and its own reporting period.
entity,periodandbatchare base columns and everything particular to a return is terminology, so a new return is a vocabulary and a flow rather than a migration. The same install runs inside a single branch, computing the figures it sends upward. - Risk, fraud, trace. One records-to-cases journey with a different vocabulary stamped on it. The intermediate step an organization calls its own, whether that's exception or alert or referral, is a term and a saved view.
- Evidence that stays inside the building. A single-container appliance, collection by plugin in each branch reporting to a core the data is required to remain in, and no phone-home.
Only the first of those is regtech in the narrow sense, and that ordering is the honest history rather than a widening of the pitch. The RegTech study in the repository is where the whole thing came from — the argument, the capability inventory, the panel design, in English and Persian. The substrate is what was left after that study was built twice and the parts specific to any one regime kept turning out to be rows. I'm wary of the word "platform" for the same reason I'm wary of claiming TPRM below, so here is the limit: what generalised is governed data with a decision trail over it. Nothing about this machine makes it good at anything that isn't that.
What the three frameworks actually showed
The data isn't noise with a few bad rows in it. The branch is a SQL Server install with 180 days of synthetic banking data: 40 borrowers, 93 facilities, 319 covenants, 17,163 transactions. It carries 38 planted findings with an answer key, and it's deliberately built so that lazy rules score badly. The fraud rate is about 1.0%, so flagging everything is useless. Six legitimate five-day foreign trips produce 54 card-present purchases, so a naive "foreign card-present" rule flags all 54 and learns nothing. Investment-grade borrowers sit at 0.8–2.0× leverage with DSCR of 5 to 15, so there's a real population to not flag. Two revolvers are in arrears with no payment rows at all, so a rule driven by payment history misses them silently.
Against that, three things came out of the exercise that I didn't fully expect.
The sweep flows are all the same eleven-node graph. Read the branch, turn rows into findings, write a record per finding, digest the sweep, ask whether it warrants cases, open a case per high-severity finding, mark the record promoted, report the judgement back to the branch. A new rule is a query and a scoring function. It isn't a new topology, and that re-use is the part worth pointing at.
The loop is a scope, not a canvas structure. $.hits[*] on the record-writer runs it once per finding, which is a queue inside one node. The promotion policy is $.hits[?(@.severity=='high')], which is a JSONPath filter you can read off the graph without opening a node. The rule that decides record-becomes-case is visible at a glance, which matters more in compliance than it does anywhere else, because that rule is exactly what an auditor will ask about.
Terminology is the only thing that differs structurally. Not one of the nine flows adds a column. A framework's vocabulary is stamps in tags, written <axis>.<value>: risk.fraud and rule.card-testing for the fraud batch, risk.credit and rule.covenant-breach for credit, return.kri and rule.sector-limit for returns. Three regimes, three vocabularies, one schema.
And one mistake, because it's the most useful thing in the exercise. Every finding carries source plus external_id as an idempotency key, so a sweep can be re-run without duplicating findings. The impossible-travel sweep first keyed on the arrival transaction, which collides: an A→B→C journey yields both B→C and A→C on the same arrival. The unique index caught it. Its key is the pair, not the arrival. I'd rather have a constraint surface a modelling error than discover it later as duplicate rows in front of a regulator.
The supervisory-returns batch is worth one note of its own: no LLM node, no writeback. A return is arithmetic against declared limits, reported upward. Nothing there needs prose and nothing goes back to the branch — which is a reasonable sanity check on a platform built around AI nodes.
Where this sits against Vanta and Drata
The honest version of this comparison isn't that SurfStat is better at their game.
| Dimension | Vanta | Drata | SurfStat |
|---|---|---|---|
| Deployment | Multi-tenant cloud SaaS | Multi-tenant cloud SaaS | On-prem single-container appliance |
| Where evidence lives | Vanta's cloud | Drata's cloud | Inside the building, never leaves |
| Evidence model | Automated API pulls + attestation | Automated API pulls + attestation | Execution record of a run |
| Framework content | Large pre-built library, auditor network | Large library, 120–180+ integrations, 20+ frameworks | You author it |
| Collection across branches | Cloud connectors + workstation agent | Cloud connectors + workstation agent | A plugin per branch, reporting to the on-prem core |
| AI | Vanta AI | Agentic AI + AI evidence collection | Recommendation over on-prem evidence, local models |
| Third-party risk | Vendor module: questionnaires, uploaded reports, monitoring from their cloud | Agentic TPRM, same shape | ★ No module. A channel of kind TPRM, plus a framework that works its data |
| Auditor experience | Polished portal, auditor relationships | Deep-linked evidence, control reasoning | A decision table shaped with the auditors who sign it off |
| Languages | English-first | English-first | English, Persian, Arabic; two of them right-to-left |
★ is the row where the answer isn't a feature but a shape, and it needs the section after this one to make sense.
Read that table as a competitive scorecard and SurfStat loses most rows. Framework library, auditor network, integration count, polish: those are years of accumulated product and relationships, and a fork of a security product doesn't have them. (The integration row in particular is one I've argued is a vanity metric, and I'm not going to start counting now that it's inconvenient.)
The two rows that matter are the first two, and they aren't feature wins. A bank under a data-residency regime, a ministry, a central bank's supervised entity, a healthcare system in a jurisdiction that forbids it — these organizations cannot legally ship control evidence to a US-hosted multi-tenant SaaS. For that buyer Vanta and Drata aren't worse options. They're disqualified at procurement, before anyone looks at a feature list. That's a different market rather than a better product, and it's the strongest card the Lab holds.
What makes the wedge real rather than rhetorical is narrower than the pitch: a single container, self-hosted, no phone-home, and collection by plugin in each branch reporting to a core the data is required to remain in. Vanta and Drata both do multi-entity too. They do it in their cloud.
Third-party risk, which is a framework rather than a module
So, the starred row. Third-party risk management is normally a product of its own: a vendor module, bought separately, with its own screens. SurfStat has no such module and doesn't need one, because every trait TPRM requires is already in the substrate. Installing TPRM means installing a framework, which makes this the cleanest test of the substrate claim anywhere in the product.
A third party is a channel. A channel in SurfStat isn't a connector in the usual sense. It is a FloMorphic extension of type plugin: SurfStat registers it, FloMorphic mints the inflowv1 identity, SurfStat mints the runtime credential and keeps it encrypted, and that credential is an install payload handed to whoever stands the remote end up. Nothing is connected in-process. The bank branch in the demo is one instance of that shape; a vendor, a processor, an outsourced service provider is the same shape pointed one hop further out. And because a handle is whatever the data lives in, the counterparty who will run a collector and the counterparty who will only return a questionnaire arrive through the same door — one as a plugin on their own host, the other as a mail or spreadsheet channel — which is why the assessment flow doesn't need to care which kind of vendor it's reading. And kind is a terminology term rather than a hard-coded enum, so a channel of kind TPRM is a row an administrator writes on the Terminology screen. An institution that thinks in processor and sub-processor, or in its regulator's outsourcing vocabulary, writes those instead, and neither needs a release.
The concepts and the policy arrive as a framework. A framework is a compliance regime installed whole, distributed as a package: a manifest, a README, and one FloMorphic export per flow. It carries its own rules, its own connections, the channels and resources it reads, the vocabulary it stamps, and the actions a person can apply to a row. A TPRM framework declares vendor.tier, control.access, review.substantiated on its own axes, the same way the fraud batch declares risk.fraud and rule.card-testing. Terminology supports more than dropdowns here, which matters for this domain: an axis can be entered as an ordered progress, a 1–10 scale, a percentage range or a plain number, and the value still lands in the row's tags as a term id, so the index, the terminology columns and the saved views keep working untouched.
The outcome is a record or a case. That's the whole contract. A control test against a vendor's estate writes a record. The ones that warrant someone's attention become cases, by the same JSONPath promotion filter you can read off the graph. Every run leaves an activity, and that execution record is the evidence. Assessment of risk is a scoring function and a threshold in a js node, which is the same mechanism the credit batch uses to decide whether a covenant breach is worth raising.
So the model is unglamorous to describe: add a channel of kind TPRM, install the framework, let its flows work that channel's data, and read the cases. No new table, no vendor module, no second pipeline.
What that buys is an inversion of how the category normally works. Vanta and Drata learn about a vendor by asking it — a questionnaire, an uploaded SOC 2, public signals watched from their cloud, scored into a rating. A channel of kind TPRM learns about a vendor by running a check inside the vendor's own estate and keeping the execution record, while the vendor's raw data stays at the vendor. For a counterparty that can't ship data to a US-hosted cloud either, which describes most intra-group outsourcing and a lot of correspondent and processor relationships inside one jurisdiction, the questionnaire is the only option they're offered today. Assurance by instrumentation is a different thing from assurance by attestation, and it's available here because the substrate already treats a remote estate as an ordinary source.
Three things a framework can't author, and I'd rather name them than let the model sound complete:
- The vendor as a subject.
entityis a base column on both pipeline tables and a scope in access control. It isn't a registry. A framework can stamp, score and case a vendor's findings today; a vendor register — the party, its tier, its owner, its renewal date — wants a first-class row type that doesn't exist yet, and modelling it as a record conflates the thing being assessed with the findings about it. - The counterparty who won't install anything. The intake itself isn't the problem, because a questionnaire that comes back by mail and a workbook dropped in a shared folder are channels like any other — the Gmail and Google Workspace plugins already do that shape, and in an install with no outside connectivity it's an internal mail server or a file drop instead. What's missing is the lifecycle around it: an invitation, a chase when the answer is late, partial answers that can be saved, and a screen that presents an inbound questionnaire as something to review. Human-in-the-loop covers an internal reviewer, not a third party on the other side of a contract.
- The contract dates. Review cadence, SLA deadlines and DPA clauses live in the obligation register and the calendar and submissions that hang off it, and those are authored per organization, because one firm's renewal cadence and another's are not the same document. A TPRM framework tests controls continuously on its own; the dates come from the register the firm writes.
One sizing note while I'm being precise: a terminology value lives in a tag array and filters by equality rather than by range, and each pipeline table carries one typed score. So one risk number routes and sorts, and inherent-versus-residual-versus-criticality reporting belongs in the analytics store rather than in four indexed columns. The schema already tried the other design and retreated from it.
The ISO package, and why it will refuse to be fully automated
The proof of the authoring claim is an ISO 27001 package. Drata markets roughly 85–90% automated evidence collection, and one review of it contains the caveat that the whole category lives with: the readiness score "can signal that we are fully prepared when certain controls still require manual evidence."
I want to be exact about this, because it's tempting to answer that with a bigger number. ISO 27001:2022 Annex A is 93 controls and a large share of them are organizational, people and physical. Risk assessment performed. Management review held. Policies approved. Training completed. Supplier agreements signed. No plugin can check those by inspection; they need a document, a signature, an attestation from a named human. "Fully automated ISO" inherits exactly the credibility problem that caveat describes — a green score that's partly hollow.
So the package goes the other way around. It automates the technical subset — access control, logging, crypto, backup, vulnerability and patch state, endpoint configuration — through branch plugins that produce an execution record per check, which is a run that happened rather than a screenshot someone took. For the organizational subset it generates the obligation and the attestation task, with a due date and a named owner, so the un-automatable controls are tracked as governed records instead of being quietly marked done.
That's a smaller claim than Drata's and a more defensible one: nothing is ever green on an attestation it didn't actually receive. Being honest about the manual subset is the feature here, and a compliance officer who has ever been surprised during an audit will understand immediately why that's worth more than a higher percentage.
The AI, and the one way it could void the whole thing
"AI suggests remediation, maps findings to controls, drafts the obligation" is not distinctive. Vanta and Drata ship that already.
What's distinctive is AI reasoning over evidence that is never allowed to leave the building, and that's an architecture decision rather than a prompt. For a sovereign buyer, sending control evidence to a cloud model API is the same disqualification as the SaaS was. If the AI calls out to a hosted model, it reopens the exact hole the appliance was built to close, and no amount of careful prompting repairs that.
Which is why the framework demo runs its models locally — Ollama with qwen3.8 for prose and nimble for decisions, nothing external. In those flows the model gates rather than reasons: findings are already written to the records table by the time the decision node is asked, so an unavailable decider costs the promotion step, not the data, and the exception branch is drawn on the canvas rather than assumed. It's the discipline the claims walkthrough calls "money is not a model's job", and the one behind glass-box agents: scores computed in code, routes chosen by rules, the model's discretion bounded to the judgment it's actually good at.
What ships, and what gets authored
The parts that work and have been exercised: the API builds and its tests pass, the schema applies, the boot sequence seeds roles and bootstraps the first administrator, sign-in and the full access-control path were run end to end against Postgres, and the panel typechecks and builds with right-to-left output confirmed. Access control is the piece Venapce never had — one permission catalog declared in Go and served to the UI so there's nothing to drift, roles plus per-user overrides where a deny beats every role, five dual-control actions that record a pending approval instead of executing, entity-scoped assignments, and sessions as rows so suspending a user ends their access on the next request.
Above that substrate, everything an organization needs governed data for arrives as flow design rather than as a product feature: the obligation register, the controls, the evidence a particular regime expects, the calendar a particular supervisor imposes, the returns it submits. The menu carries them in that order — Obligations, Controls, Evidence, Calendar and deadlines, Submissions, Retention — because an estate has to be reachable before anything written over it means much.
Obligations is the clearest case of why that order is the honest one. Which instrument an obligation derives from, which entities it binds, who owns it, how often it must be tested: all of that is particular to the firm, and nobody can write it from outside the building or before the firm's resources are reachable. Data governance is the part we provide. The programme over it is authored to the requirements of the environment it runs in, by the people who own the obligation, and it travels as flows and packages — which is why the ISO package is content that attaches each check to a row in that register rather than a library handed over whole.
Three pieces of engineering carry the evidence claim, and they're where our own work goes next:
- Tamper-proof retention. Evidence has to be provably unchanged since the run that produced it, and that guarantee is what makes evidence kept inside the building stronger than evidence signed in somebody else's cloud.
- Exactly-once on anything that leaves the building. A branch plugin reporting a check must not double-count or drop one. The idempotency key work in the demo is the foundation of that guarantee; the end-to-end version is the next piece of it.
- A decision table an external auditor already recognises. The output has to render as something an ISO or supervisory auditor accepts without being taught, so it's being shaped with the people who sign it off rather than guessed at.
One choice belongs to the organization rather than to us: what happens to a run that's already parked on a human when the control it was executing gets amended. Resume under the old control, restart under the new one, or park it harder and escalate. Each is right in some setting and wrong in another, which is exactly why it's a decision taken in the flow, per environment, instead of a default buried in an engine nobody can see into.
The sentence worth saying is this: Vanta and Drata can't be deployed where this buyer must keep their evidence, SurfStat can, it proves controls with execution records instead of attestations, it's honest about the manual subset, and its AI reasons over that evidence without any of it leaving the building.
If you work in a regulated function and the six-week path from we know what changed to the system does it is familiar, I'd like to hear where you think this breaks.
The Compliance Lab · the regulatory segment of Inflowenger. SurfStat is in development; scope and dates will shift. Comparison figures for Vanta and Drata are from their own current materials — Drata's AI page and a published Drata compliance guide — and will age.