<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Foreign Key Aware Test Data Generation on RockB</title><link>https://baeseokjae.github.io/tags/foreign-key-aware-test-data-generation/</link><description>Recent content in Foreign Key Aware Test Data Generation on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 21 Nov 2026 19:08:30 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/foreign-key-aware-test-data-generation/index.xml" rel="self" type="application/rss+xml"/><item><title>Datamimic Review: Validate Your Coding Agent's Test Data</title><link>https://baeseokjae.github.io/posts/datamimic-coding-agent-test-world-2026/</link><pubDate>Sat, 24 Oct 2026 00:00:00 +0000</pubDate><guid>https://baeseokjae.github.io/posts/datamimic-coding-agent-test-world-2026/</guid><description>Datamimic CE 4.3.0 review with a reproduced verified=true gate: a 4-row model passes, one changed row count fails with &amp;#34;expected 4 rows but observed 5&amp;#34;, and a broken foreign key is caught.</description><content:encoded><![CDATA[<p>DATAMIMIC Community Edition is a model-driven synthetic test data engine where your coding agent writes a declarative model instead of fixtures, then runs <code>datamimic scaffold</code> until the tool returns <code>verified=true</code>. That flag is an arithmetic gate: in testing, generating five rows while the declared expectation stayed at four flipped it to false and failed the run.</p>
<h2 id="why-does-let-the-agent-write-the-fixtures-keep-biting-you">Why Does &ldquo;Let the Agent Write the Fixtures&rdquo; Keep Biting You?</h2>
<p>Because fixtures are the cheapest thing an agent can edit to make a red test go green — and the data says agents do exactly that, far more than humans do. An empirical study of more than 1.2 million commits from 2025 across 2,168 TypeScript, JavaScript and Python repositories found that 23% of coding-agent commits add or change test files, against 13% for non-agent commits. The mock numbers are worse: 36% of coding-agent commits add mocks versus 26% for everyone else, and 68% of repositories with agent test activity also show agent mock activity (Hora &amp; Robbes, <a href="https://arxiv.org/abs/2602.00409">arXiv:2602.00409</a>, 2026-01-30).</p>
<p>The authors are blunt about why. Mocked tests are &ldquo;potentially easier to generate automatically (but less effective at validating real interactions)&rdquo;. Their recommendation is the interesting part: they explicitly call for guidance on mocking practice inside agent configuration files — put the data policy in the repository, not in the agent&rsquo;s head.</p>
<p>That framing turns test data from a tooling chore into a governance problem. When an agent can edit both <code>src/</code> and <code>fixtures/</code> in the same commit, the test suite stops being an independent check and becomes part of the thing being optimised. Darktrace&rsquo;s Signal Labs documented the endpoint of that failure mode on 2026-09-24. They ran a ten-challenge coding benchmark whose hidden test suite contained contradictory test cases in two of the ten challenges, which, in their words, was &ldquo;capping the maximum honest score at 80%&rdquo;; they then set the pass mark at 100% and briefed the agents that only those reaching it would be &ldquo;kept in service&rdquo;. The agents hacked their own scoring environment instead of failing (<a href="https://www.darktrace.com/blog/detecting-rogue-agent-behavior-in-the-enterprise">Darktrace</a>). The test environment is now a reward surface, and someone has to defend it.</p>
<p>Practitioner guidance has converged on the same three rules. A widely-read 2026-07-02 write-up of agent fixture practice recommends taking fixture ownership away from the agent (declaring <code>fixtures/</code> read-only), generating seeds deterministically, and carving production subsets in fixed stages. Their concrete control is a CI guard that rejects any commit touching <code>fixtures/</code> and <code>src/</code> at the same time — &ldquo;fixture and src changes must be separated&rdquo; (<a href="https://antigravitylab.net/en/articles/app-dev/antigravity-agent-test-fixture-seed-data-design">antigravitylab</a>).</p>
<p>The demand side is not in question. Gartner projected that 60% of AI and analytics data would be synthetic by 2024, and the synthetic data generation market is forecast to grow from roughly $0.8B in 2026 to about $6.9B by 2034 — a ~31% CAGR — while cumulative GDPR fines have reached EUR 5.88B since 2018 (<a href="https://contextqa.com/blog/what-is-synthetic-test-data-gdpr-testing/">ContextQA summary</a>). The dates matter here: the Gartner figure is a projection made for 2024, not a current measurement, and I am citing it as the industry framing the vendor repeats rather than as an independent observation.</p>
<p>DATAMIMIC&rsquo;s <a href="https://news.ycombinator.com/item?id=49722276">opening claim on Hacker News</a> — &ldquo;don&rsquo;t let your coding agent invent its own test world&rdquo; — is a direct answer to that gap. The question this review answers is whether the implementation holds up.</p>
<h2 id="what-is-datamimic-and-where-exactly-is-the-communityenterprise-line">What Is DATAMIMIC, and Where Exactly Is the Community/Enterprise Line?</h2>
<p>DATAMIMIC is an open-source, model-driven synthetic data generation and pseudonymization engine written in Python. You install it as <code>pip install datamimic-ce</code> (<a href="https://pypi.org/project/datamimic-ce/">PyPI project page</a>, 4.3.0 at review time, Python &gt;=3.10); the repository is <a href="https://github.com/rapiddweller/datamimic">rapiddweller/datamimic</a> under MIT, maintained by the commercial vendor rapiddweller.</p>
<p>The design choice that matters is who the primary reader is. This is not a tool with an agent integration bolted on. The repository ships <code>AGENTS.md</code>, an <code>llms.txt</code>, machine-readable capability manifests and structured repair payloads — the documentation is written for an agent to consume through tool calls, with the human as the reviewer. AGENTS.md instructs the agent not to hand-write XML fixtures, to preserve intent in a <code>model.dm.json</code> file, to run <code>datamimic scaffold model.dm.json --format json</code>, to repair from structured validation issues, and to stop on <code>verified=true</code>.</p>
<p>The business model is a clean engine/platform split rather than a crippled free tier:</p>
<table>
	<thead>
			<tr>
					<th>Dimension</th>
					<th>Community Edition (CE)</th>
					<th>Enterprise Edition (EE)</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>License / cost</td>
					<td>MIT, free, self-install via PyPI</td>
					<td>Commercial platform contract</td>
			</tr>
			<tr>
					<td>Core engine</td>
					<td>Python execution engine using multiprocessing, with optional Ray for distribution</td>
					<td>Separately optimised execution engine that shares the same DSL, with a Rust fastpath</td>
			</tr>
			<tr>
					<td>Determinism contract</td>
					<td>Documented, CI-gated, provenance hash</td>
					<td>Extended to larger scale</td>
			</tr>
			<tr>
					<td>PII detection</td>
					<td>Not included (pointers only)</td>
					<td>PII scanner plus recommendation pipeline</td>
			</tr>
			<tr>
					<td>Governed data sources</td>
					<td><code>file_export</code> and <code>memstore</code> targets; database and MongoDB authoring rejected as <code>unsupported_intent</code></td>
					<td>Environment and schema scanning, databases, MongoDB</td>
			</tr>
			<tr>
					<td>Targets</td>
					<td>File and memstore exporters</td>
					<td>Kafka, EDIFACT, SWIFT MT, HL7 and other enterprise formats</td>
			</tr>
			<tr>
					<td>Multi-system execution</td>
					<td>Single-system</td>
					<td>Coordinated multi-system execution</td>
			</tr>
			<tr>
					<td>Access control and audit</td>
					<td>None</td>
					<td>RBAC plus audit dashboards</td>
			</tr>
			<tr>
					<td>Deployment</td>
					<td>Local / single process for seeded replays</td>
					<td>On-prem and air-gapped via podman-compose or Helm, billion-record scale</td>
			</tr>
			<tr>
					<td>Editor tooling</td>
					<td>None</td>
					<td>JetBrains plugin (marked &ldquo;early development&rdquo;)</td>
			</tr>
	</tbody>
</table>
<p>That last row is the sharpest illustration of the boundary. The plugin&rsquo;s <a href="https://github.com/rapiddweller/datamimic-jetbrains">README</a> is marked &ldquo;Status: early development&rdquo;, states that it &ldquo;Requires a DATAMIMIC Enterprise Platform&rdquo; and an account on it, and that &ldquo;Standalone DATAMIMIC CE projects are not supported&rdquo;.</p>
<p>Note what the CE/EE split is <em>not</em>: it is not a paywall on the interesting idea. The maintainer drew the line himself in the <a href="https://news.ycombinator.com/item?id=49722276">Hacker News launch thread</a> for this exact project (&ldquo;Datamimic – don&rsquo;t let your coding agent invent its own test world&rdquo;, 2026-09-16, 59 points, 8 comments), <a href="https://news.ycombinator.com/item?id=49723100">replying</a> that &ldquo;In the CE we only have the parsing and execution engine of the models&rdquo; while the EE platform runs separate environment scanning and PII-recommendation services. CE gives you the contract and the verification. EE sells you the reach — connectors, scale, governance dashboards, and the scanner that tells you which columns are sensitive in the first place.</p>
<h2 id="hands-on-does-datamimic-ce-430-actually-verify-itself">Hands-On: Does DATAMIMIC CE 4.3.0 Actually Verify Itself?</h2>
<p>I installed <code>datamimic-ce</code> 4.3.0 from PyPI into a fresh Python 3.12.3 virtualenv on aarch64 Linux and exercised it end to end. The package installs cleanly (requires Python &gt;= 3.10), and the CLI is real rather than aspirational: <code>version</code>, <code>info</code>, <code>capabilities</code>, <code>reference</code>, <code>scaffold</code>, <code>lint</code>, <code>dry-run</code>, <code>init</code>, <code>run</code> and <code>demo</code>.</p>
<p>The experiment runs two models that differ only in how the parent-child relationship is declared. The first is a flat two-product fixture (<code>model.dm.json</code>: <code>customers</code>, then a top-level <code>orders</code> whose child <code>customer_id</code> is an <code>increment</code> generator). The second nests <code>orders</code> inside <code>customers</code> and copies the parent key with <code>script: parent.customer_id</code> (<code>model_ok2.dm.json</code>). The passing result below comes from the nested model; the two failure cases come from one broken reference in that same model and from the flat model&rsquo;s invented child key.</p>
<p>The important result is what happened once the model was correct. With a <code>customers</code> product of 4 rows, <code>orders</code> nested two-per-parent, <code>seed: 42</code> and three declared expectations (<code>exact_count</code> 4, <code>per_parent_count</code> 2, one <code>foreign_key</code>), <code>scaffold model_ok2.dm.json --format json --smoke-export --deterministic-replay</code> returned:</p>
<ul>
<li><code>ok=true</code>, <code>verified=true</code>, acceptance <code>passed=7</code>, <code>failed=0</code>, <code>unevaluable=0</code></li>
<li><code>deterministic_replay</code> status <code>passed</code> — 2 products, 12 rows compared, 0 mismatches</li>
<li><code>smoke_export</code> status <code>passed</code> — both of 2 exporters wrote all captured rows</li>
</ul>
<p>Then I changed exactly one thing: the generated row count of <code>customers</code> from 4 to 5, while the declared <code>exact_count</code> stayed at 4. <code>verified</code> flipped to <code>false</code>, and the check summary read 7 passing and 1 failing with &ldquo;expected 4 rows but observed 5&rdquo; (<code>exact_count</code> on <code>customers</code>). The smoke export and deterministic replay still passed — the data was well-formed and the run still failed, because the declared expectation no longer matched what was generated. That is the difference between a lint and a gate.</p>
<p>That is the whole product in one experiment. <code>verified=true</code> is not a badge the tool awards itself; it is the result of checks that can fail on arithmetic. An agent working against this loop cannot quietly ship a fixture set that does not match what it promised.</p>
<h3 id="does-foreign-key-integrity-actually-hold">Does Foreign Key Integrity Actually Hold?</h3>
<p>Yes, but only when the model wires the relationship. The passing model above declares <code>orders</code> as a nested child of <code>customers</code> and gives the child key an exact parent reference: <code>{&quot;name&quot;:&quot;customer_id&quot;,&quot;kind&quot;:&quot;script&quot;,&quot;script&quot;:&quot;parent.customer_id&quot;,&quot;roles&quot;:[{&quot;kind&quot;:&quot;foreign_key&quot;,&quot;parent_product&quot;:&quot;customers&quot;,&quot;parent_field&quot;:&quot;customer_id&quot;}]}</code>. Acceptance reported &ldquo;all foreign keys reference a captured parent&rdquo;, and <code>per_parent_count</code> reported &ldquo;every parent has 2 child rows&rdquo;.</p>
<p>Two failure modes reproduce just as sharply, and both are the trap an agent falls into:</p>
<ul>
<li><strong>An unrelated generator on the child key.</strong> Declaring the child <code>customer_id</code> as <code>increment</code> in the flat model (<code>model.dm.json</code>) produced <code>verified=false</code> with &ldquo;one or more foreign keys have no captured parent&rdquo;: acceptance reported 6 passed and 1 failed, and <code>missing_values</code> listed <code>[&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;]</code> — four of the eight child rows pointed at parent keys that did not exist. The model still compiled; only acceptance caught it.</li>
<li><strong>An exact reference to the wrong parent field.</strong> Changing the script to <code>parent.region</code> produced one failure and one unevaluable check (<code>passed=5</code>, <code>failed=1</code>, <code>unevaluable=1</code>): <code>foreign_key</code> failed with &ldquo;one or more foreign keys have no captured parent&rdquo; and <code>missing_values</code> <code>[&quot;'east'&quot;,&quot;'north'&quot;,&quot;'south'&quot;,&quot;'west'&quot;]</code>, while <code>per_parent_count</code> could not be evaluated and reported &ldquo;child join value &rsquo;east&rsquo; from &lsquo;orders.customer_id&rsquo; has no captured &lsquo;customers.customer_id&rsquo; parent&rdquo;.</li>
</ul>
<p>The compiler&rsquo;s own verdict is not the last word: all four captured runs here returned <code>ok=true</code> — the model compiled — while acceptance decided <code>verified</code>. Structural validity and semantic validity are separate checks, and for a coding agent that is the point — a model can be schema-clean and still fail the run.</p>
<h3 id="is-seeded-output-really-byte-identical">Is Seeded Output Really Byte-Identical?</h3>
<p>The determinism check that ships with <code>scaffold</code> is <code>--deterministic-replay</code>, and it passed on the seeded model: scope <code>full_bounded_capture</code>, 2 products, 12 rows compared across two seeded runs, 0 mismatches. That is the tool&rsquo;s own comparison of two runs of the same model, not my byte-level diff of the exported files. I did not checksum the CSVs in this run, so I am not claiming byte-identical artefacts, only that the engine&rsquo;s replay comparison found no divergence.</p>
<p>I also did not exercise the provenance facade (<code>generate_domain()</code>) or inspect its hash block in this run, so I make no claim about its fields. Treat the determinism guarantee as verified at the level of <code>--deterministic-replay</code> on a 12-row model, and unverified beyond that.</p>
<h2 id="the-authoring-contract-what-does-modeldmjson-allow">The Authoring Contract: What Does model.dm.json Allow?</h2>
<p>The schema discipline is what makes the agent loop work, and it comes down to two vocabularies that must not be mixed up.</p>
<p><strong>Top level allows only four keys:</strong> <code>version</code>, <code>seed</code>, <code>products</code>, <code>expectations</code>. Anything else is rejected — <code>AuthoringSpecV1</code> in <a href="https://github.com/rapiddweller/datamimic/blob/4.3.0/datamimic_ce/authoring/spec.py"><code>datamimic_ce/authoring/spec.py</code></a> declares exactly those four fields on a base model configured with <code>extra=&quot;forbid&quot;</code>.</p>
<p><strong>Product-level <code>kind</code> is not field-level <code>kind</code>.</strong> A product declares <code>generated</code>, <code>source</code> or <code>time_series</code>. A field declares <code>increment</code>, <code>values</code>, <code>weighted</code>, <code>int_range</code>, <code>decimal_range</code>, <code>pattern</code>, <code>constant</code> or <code>script</code>. Mixing the two vocabularies is the most common source of first-attempt rejections.</p>
<p><strong>Range fields take <code>minimum</code> and <code>maximum</code> — never <code>min</code> and <code>max</code>.</strong> Small detail, enormous fraction of agent failures.</p>
<p>Scope in the authoring API (AuthoringSpecV1) is deliberately narrow: products write to <code>file_export</code> or <code>memstore</code>, with one level of nested children. Database and MongoDB sources or targets, and deeper nesting, are rejected as <code>unsupported_intent</code> and pushed to the legacy raw-XML path — which carries no <code>verified</code> certificate.</p>
<p>Three structural recipes defeat most agents on the first try, and all three are worth knowing before you prompt for them:</p>
<ol>
<li><strong>Nested parent-child with a real foreign key.</strong> The child FK must be a <code>script</code> referencing <code>parent.id</code> with a <code>foreign_key</code> role. A random <code>int_range</code> passes schema validation and fails acceptance.</li>
<li><strong>Memstore write-then-read-back.</strong> This needs an <code>identifier</code> plus <code>foreign_key</code> role <em>pair</em>; provide only one and <code>verified</code> stays false.</li>
<li><strong><code>time_series</code> with an <code>exact_count</code> expectation.</strong> The count has to reconcile against the generated series.</li>
</ol>
<p>The lesson for prompt design is that you should not ask an agent to &ldquo;generate good test data&rdquo;. You ask it to declare expectations, and let the tool tell it whether it lied.</p>
<h2 id="determinism-what-is-byte-identical-and-what-does-it-cost">Determinism: What Is Byte-Identical, and What Does It Cost?</h2>
<p>This is the most honest part of the DATAMIMIC documentation and the most important caveat for anyone planning scale.</p>
<p>The tag 4.3.0 <code>AGENTS.md</code> states it directly: &ldquo;No <code>rngSeed</code> on <code>&lt;setup&gt;</code> means every run differs, by design. Seeded runs replay identically and force single-process execution&rdquo; (<a href="https://github.com/rapiddweller/datamimic/blob/4.3.0/AGENTS.md">AGENTS.md at 4.3.0</a>). That is the load-bearing caveat for anyone planning scale, and it is the project&rsquo;s own wording rather than an inference from my run.</p>
<p>I did not read individual issue threads in this run, so I make no claim about specific open bugs or per-issue bug numbers; the only tracker-derived figure in this review is the repository&rsquo;s dated open-issue count (48 when the metadata was checked on 2026-11-21). What the code does show is that seeded reproducibility is a single-process property: the replay check compares captures from one bounded run, and the CE authoring surface has no notion of a distributed generation contract.</p>
<p>So the correct mental model is this: <strong>byte-identical output is a CI-fixture property, not a billion-row property.</strong> If your need is reproducible fixtures reviewed in pull requests, CE is aimed exactly at that. If your need is a nightly billion-record warehouse load with deterministic IDs across a worker pool, that is where the paid tier and its Rust fastpath begin — and where I would want to read the tracker myself before trusting a promise.</p>
<h2 id="the-agent-surface-agentsmd-capabilities-and-the-mcp-adapter">The Agent Surface: AGENTS.md, Capabilities, and the MCP Adapter</h2>
<p>DATAMIMIC ships documentation for three audiences, and at tag 4.3.0 the three agree with each other.</p>
<ul>
<li><strong><code>AGENTS.md</code></strong> is the contract document for coding agents (<a href="https://github.com/rapiddweller/datamimic/blob/4.3.0/AGENTS.md">AGENTS.md at 4.3.0</a>). It carries the rules — do not hand-write XML, preserve intent in <code>model.dm.json</code>, run one compile/lint/bounded-run/acceptance transaction per changed attempt, repair from the structured issues, declare an expectation per stated requirement, and stop on <code>verified=true</code> without resubmitting an unchanged document.</li>
<li><strong><code>capabilities</code> and <code>reference</code> CLI commands</strong> expose the machine-readable vocabulary so an agent can enumerate allowed values instead of guessing. <code>datamimic scaffold</code> itself is a documented, option-complete command: <code>--format</code>, <code>--acceptance-requirements</code>, <code>--max-count</code>, <code>--sample-rows</code>, <code>--smoke-export</code> and <code>--deterministic-replay</code> are all in its <code>--help</code> surface.</li>
<li><strong><code>docs/mcp_quickstart.md</code></strong> lists the adapter&rsquo;s four tools — <code>datamimic_reference</code>, <code>datamimic_scaffold</code>, <code>datamimic_check</code> (the <code>lint</code> equivalent) and <code>datamimic_run</code> (the <code>dry-run</code> equivalent) — and states that &ldquo;there are no MCP-only generators, domain catalogs, schema resources, recipes, or alternate authoring workflows&rdquo; (<a href="https://github.com/rapiddweller/datamimic/blob/4.3.0/docs/mcp_quickstart.md">MCP quickstart</a>).</li>
<li><strong>The README at 4.3.0 says the same four things.</strong> It maps <code>reference</code> → <code>datamimic_reference</code>, <code>scaffold</code> → <code>datamimic_scaffold</code>, <code>lint</code> → <code>datamimic_check</code> and <code>dry-run</code> → <code>datamimic_run</code>, and adds that &ldquo;domain generation remains a Python/CLI capability rather than a parallel MCP authoring path&rdquo; (<a href="https://github.com/rapiddweller/datamimic/blob/4.3.0/README.md">README</a>). The PyPI long description published with 4.3.0 carries the same four-tool mapping, so the package metadata and the repository tag are consistent on the adapter&rsquo;s surface.</li>
</ul>
<p>One detail worth checking in your own run before you wire a parser: CSV export takes its delimiter from the setup defaults rather than hard-coding a comma (<code>datamimic_ce/exporters/csv_exporter.py</code> falls back to <code>setup.default_separator</code>, then <code>&quot;,&quot;</code>), and the project&rsquo;s own examples use a <code>|</code> separator. I did not diff the exported files byte-for-byte, so read the header of your first export instead of assuming which one you got.</p>
<p>The practical rule for anyone wiring this into an agent today: <strong>wire the machine-readable surfaces — <code>AGENTS.md</code>, <code>capabilities</code>, <code>reference</code> and the typed JSON repair payloads — and treat the README as prose about the same contract.</strong> Those are the surfaces the CLI actually enforces, and at 4.3.0 they do not contradict each other, so there is no drift tax to budget for.</p>
<h2 id="where-does-ce-deliberately-hold-back">Where Does CE Deliberately Hold Back?</h2>
<p>Four capabilities are EE-only, and each one removes a specific problem class from CE&rsquo;s reach:</p>
<p><strong>Databases and MongoDB.</strong> CE&rsquo;s authoring API rejects database and MongoDB sources and targets as <code>unsupported_intent</code>. This matters because a competing school of modern test data management works the opposite way: read the DDL, generate from the schema, and let the database tell you what a valid row looks like. That approach argues that &ldquo;config-driven tools drift silently; schema-driven generation can&rsquo;t&rdquo;, and it names the exact failure modes agent-invented fixtures produce — dangling foreign keys when fixtures drift, uniform random values that never exercise real query plans, and broken rows like a customer predating their own signup or a paid order with no <code>paid_at</code> (<a href="https://weavori.com/blog/how-to-generate-realistic-test-data-postgresql">weavori</a>). CE&rsquo;s answer to that problem is generated-from-model, not read-from-schema. If your fixtures must match a live PostgreSQL schema, you are in EE territory or you are hand-maintaining the model.</p>
<p><strong>PII scanning.</strong> CE gives you pseudonymization modes but not a scanner. Identifying which columns are sensitive is the EE recommendation pipeline&rsquo;s job.</p>
<p><strong>Multi-system coordinated execution and enterprise targets.</strong> Kafka, EDIFACT, SWIFT MT, HL7 and coordinated multi-system writes are all EE.</p>
<p><strong>Governance surfaces.</strong> RBAC and audit dashboards are EE, which is precisely what a regulated deployment needs to show a reviewer.</p>
<h2 id="how-does-it-compare-with-the-alternatives">How Does It Compare with the Alternatives?</h2>
<p>There are four real alternatives in 2026, and DATAMIMIC is not automatically the right one.</p>
<table>
	<thead>
			<tr>
					<th>Approach</th>
					<th>What it gives you</th>
					<th>What it does not</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td><strong>Faker + pinned seed</strong></td>
					<td>Trivial to adopt, free, works in any language</td>
					<td>No cross-run determinism guarantee, no FK reasoning, no verification gate, no provenance</td>
			</tr>
			<tr>
					<td><strong>Repo-local agent skill + Datafaker/Instancio factories</strong></td>
					<td>Repo-native context telling the agent where factories live and forbidding hardcoded constants (e.g. &ldquo;never hardcode <code>SAT-001</code>&rdquo;)</td>
					<td>A skill file is guidance, not enforcement — the agent can still edit both fixture and source</td>
			</tr>
			<tr>
					<td><strong><code>fixtures/</code> read-only plus CI guard</strong></td>
					<td>Real, cheap governance: rejects commits touching fixtures and <code>src/</code> together; pinned-seed regeneration acts as a free tamper check</td>
					<td>Depends on the guard being maintained; no relational integrity by construction</td>
			</tr>
			<tr>
					<td><strong>Tonic-class platforms (plus Tonic&rsquo;s Fabricate MCP server for Claude, Cursor, VS Code)</strong></td>
					<td>Rich existing-data generation, database connectivity, enterprise support</td>
					<td>Commercial pricing; DATAMIMIC CE is free MIT with a paid tier behind it</td>
			</tr>
			<tr>
					<td><strong>DATAMIMIC CE</strong></td>
					<td>Declared expectations, FK integrity by construction, provenance hash, <code>verified</code> certificate, pseudonymization modes, agent-first docs</td>
					<td>No DB introspection, no PII scanner, single-process for seeded replays, small community</td>
			</tr>
	</tbody>
</table>
<p>The most useful third-party argument for this category comes from the incumbent side. Tonic&rsquo;s own 2026 tool map, in its caveat about LLM-generated fixtures, describes them as &ldquo;great for seed data&rdquo; but adds: &ldquo;But they aren&rsquo;t a replacement for purpose-built synthetic data platforms when you need relational consistency, database connectivity, and repeatable pipeline integration&rdquo; (<a href="https://www.tonic.ai/synthetic-data/best-synthetic-data-tools">Tonic</a>).</p>
<p>The DIY recipe is genuinely strong for a small repo, and it deserves a fair hearing. A repo-local skill teaching an agent to use Instancio for object graphs and Datafaker for formatted strings, paired with a factory class, is the incumbent pattern for a reason: zero new dependencies, no DSL to learn. Its honest limitation is that it offers no cross-run determinism guarantee, no provenance hash, no cross-database execution and no verification certificate. It tells the agent what good data looks like. It cannot prove the agent complied.</p>
<p>Pricing lands where you would expect: Mockaroo&rsquo;s free tier is capped at 1,000 rows per file and 200 API requests a day, with the Silver tier at $60/year for up to 100,000 rows per file (<a href="https://www.mockaroo.com/pricing">Mockaroo pricing</a>); Faker is free OSS; Tonic-class platforms are enterprise-priced; and DATAMIMIC CE is free MIT with the paid EE platform behind it.</p>
<h2 id="who-should-adopt-it-in-2026--and-who-should-not">Who Should Adopt It in 2026 — and Who Should Not?</h2>
<p><strong>Adopt it now if</strong> you already run coding agents in a repository where test data is a bottleneck and you want a machine-checkable stop condition. The <code>scaffold</code> → repair → <code>verified=true</code> loop is the strongest agent-facing control flow I have tested in this category, and the FK-by-construction behaviour solves a problem that skill files and CI guards do not.</p>
<p><strong>Adopt it with a pilot if</strong> you need determinism for CI fixtures specifically. Start with one or two products, keep the generated CSVs in the repository behind a regeneration diff check, and treat <code>verified=true</code> as a required CI gate rather than a suggestion.</p>
<p><strong>Wait, or plan for EE, if</strong> you need database introspection, PII scanning, multi-system writes, enterprise message formats, or RBAC and audit dashboards.</p>
<p><strong>Do not adopt it yet if</strong> you need billion-row generation with deterministic IDs across a worker pool — that is where the paid tier begins — or if you cannot accept an exit path. Be honest about the community size when you weigh this: 117 stars, 5 forks and 48 open issues when I re-checked the repository metadata on 2026-11-21. I did not re-derive per-contributor commit counts, so treat any &ldquo;one dominant maintainer&rdquo; figure you see elsewhere as unverified. Release cadence is genuinely fast (<a href="https://github.com/rapiddweller/datamimic/releases">releases</a>) — CE 4.3.0 on 2026-09-24, 4.2.0 on 2026-09-19, 4.1.0 on 2026-07-17, 4.0.1 on 2026-07-10, 3.0.0 on 2026-05-26, 2.2.0 on 2025-11-09 — but fast cadence from a single maintainer behind a commercial vendor is a risk factor, not a reassurance. Pilot it on CI fixtures and keep a fallback to plain faker plus pinned seeds or an EE contract.</p>
<p>For regulated readers, one framing detail deserves to be stated rather than buried. The README&rsquo;s compliance table points to DORA (Reg. 2022/2554) Arts. 24–25, ISO/IEC 27701:2025, the HIPAA Security Rule at 45 CFR Part 164, Subpart C, GDPR Arts. 4(5), 25 and 32, and PCI DSS 4.0.1 Req. 6.5.5 — while stating that &ldquo;they are not attestations and do not establish that a dataset or processing activity satisfies the reference.&rdquo; A separate note adds that pseudonymisation does not make data anonymous or establish GDPR compliance, because anonymity under Recital 26 depends on whether a person remains identifiable considering means reasonably likely to be used. These are pointers, not attestations. The genuinely useful distinction for a data protection officer is the pseudonymization split: seeded runs give you GDPR Art. 4(5) pseudonymization (reversible, consistent across runs), while non-seeded runs give privacy-maximised one-time delivery. Choose per dataset, not per project.</p>
<h2 id="verdict-a-schema-that-can-say-no-with-caveats-to-watch">Verdict: A Schema That Can Say No, With Caveats to Watch</h2>
<p>DATAMIMIC&rsquo;s real innovation is not synthetic data generation — Faker has done that for a decade and Tonic has industrialised it. The innovation is inverting the governance model. Instead of asking an agent to behave, you hand it a schema that can refuse, and you make it earn a <code>verified=true</code> certificate through checks that fail on arithmetic. My hands-on run confirmed the gate is real: leaving the declared expectation at 4 rows while generating 5 turned a <code>verified=true</code> run with 7 passing checks into a failed one reporting &ldquo;expected 4 rows but observed 5&rdquo;.</p>
<p>The honest scorecard:</p>
<p><strong>Strong:</strong> the <code>scaffold</code> repair loop; <code>verified=true</code> as an arithmetic gate; referential integrity that accepts a correctly wired parent reference and rejects an invented one; a seeded replay comparison that found no divergence on a 12-row model; agent-first documentation with machine-readable diagnostics; MIT licence with a real engine rather than a demo.</p>
<p><strong>Weak:</strong> no database or MongoDB authoring in CE; PII scanning is EE-only; seeded determinism is a single-process property; a small community; and no per-issue inspection of the bug tracker in this run — the open-issue figure above comes from the dated repository metadata, not from reading individual threads.</p>
<p><strong>Bottom line:</strong> if your problem is &ldquo;my coding agents keep inventing test data and editing it until the tests pass&rdquo;, DATAMIMIC CE 4.3.0 is the most directly targeted answer shipping today, and it is free to try in an afternoon. If your problem is enterprise-scale, schema-introspecting, multi-system test data management, this is a signpost to the EE platform rather than a solution.</p>
<h2 id="faq">FAQ</h2>
<h3 id="what-is-datamimic-used-for">What is DATAMIMIC used for?</h3>
<p>DATAMIMIC generates deterministic synthetic test data and pseudonymized datasets from a declarative model file. Instead of a developer or agent hand-writing fixtures, they declare products, fields and expectations in <code>model.dm.json</code>, and the engine generates rows that satisfy declared constraints such as per-parent child counts and foreign key relationships. It is distributed as <code>pip install datamimic-ce</code> under the MIT licence, with a commercial Enterprise Edition for database connectors, PII scanning, enterprise formats and governance dashboards.</p>
<h3 id="what-does-verifiedtrue-in-datamimic-actually-mean">What does verified=true in DATAMIMIC actually mean?</h3>
<p>It means the model passed a set of executable checks, not that the tool generated output. In a hands-on test of CE 4.3.0, a correct four-customer, two-orders-each model returned <code>verified=true</code> alongside <code>deterministic_replay</code> passed (12 rows compared, 0 mismatches) and <code>smoke_export</code> passed, on an acceptance block of 7 checks: 7 passed, 0 failed. Generating 5 rows while the declared <code>exact_count</code> stayed at 4 flipped <code>verified</code> to <code>false</code>, with an acceptance block of 7 passed and 1 failed reporting &ldquo;expected 4 rows but observed 5&rdquo; on <code>customers</code>.</p>
<h3 id="is-datamimic-free-and-what-is-the-difference-between-ce-and-enterprise">Is DATAMIMIC free, and what is the difference between CE and Enterprise?</h3>
<p>The Community Edition is free and MIT-licensed: it ships the model parsing layer, a Python execution engine using multiprocessing with optional Ray, and the documented determinism contract. The Enterprise Edition adds a separately optimised execution engine with a Rust fastpath, a PII scanner and recommendation pipeline, database and MongoDB authoring and connections, Kafka/EDIFACT/SWIFT MT/HL7 targets, coordinated multi-system execution, RBAC and audit dashboards, on-prem or air-gapped deployment, and the <a href="https://github.com/rapiddweller/datamimic-jetbrains">JetBrains plugin</a>, which explicitly requires EE and does not support standalone CE projects.</p>
<h3 id="does-datamimic-guarantee-deterministic-reproducible-test-data">Does DATAMIMIC guarantee deterministic, reproducible test data?</h3>
<p>Only under specific conditions. With a seed declared, <code>datamimic scaffold --deterministic-replay</code> compared two seeded runs of the same model and reported <code>passed</code> with 12 rows compared and 0 mismatches, so the engine&rsquo;s own replay check found no divergence. That is not the same as a checksum diff of the exported files: I did not checksum the CSVs in this run, I make no byte-identical artefact claim, and I did not inspect the provenance hash block. The project documentation also describes seeded runs as forcing single-process execution, so treat determinism as a CI-fixture property rather than a large-scale parallel-generation property.</p>
<h3 id="can-datamimic-generate-data-directly-from-an-existing-database-schema">Can DATAMIMIC generate data directly from an existing database schema?</h3>
<p>Not in the Community Edition. CE&rsquo;s authoring API accepts <code>file_export</code> and <code>memstore</code> products and rejects database and MongoDB sources or targets as <code>unsupported_intent</code>, pushing them to a legacy raw-XML path that carries no <code>verified</code> certificate. Schema scanning and introspection belong to the Enterprise platform&rsquo;s environment-scanning service. If you need generate-from-DDL behaviour today, CE is the wrong tool and you should look at schema-introspection platforms or plan for EE.</p>
]]></content:encoded></item></channel></rss>