Browse / Agent tools

nick-developer/relsynth

Bayesian synthetic data for whole relational databases. relsynth reads a database (Oracle, SQL Server, PostgreSQL, SQLite) or a folder of CSV or Parquet files. It identifies the tables, keys, links and business rules, fits one Bayesian model of the whole schema, and writes a synthetic database with the same table structure.

  • bayesian-inference
  • cicd
  • csv
  • data
  • data-engineering
  • database
  • database-management
  • dataset
  • mssql
  • mssql-database
  • mssqlserver
  • oracle
  • oracle-database
  • parquet
  • postgresql
  • python
  • python3
  • sqlalchemy
  • sqlite
  • synthetic-data

Works.Tested on 2026-11-15. From the README alone, on Linux with Luna.

For maintainers

Keep your README agent-ready

Paste this prompt into your coding agent to tighten onboarding time and keep the README reproducible.

Improve the README and setup experience of nick-developer/relsynth so a small coding agent can install and verify it from scratch on a fresh Linux machine (Python 3, Node 22, standard tools).
Latest Coldpass Linux status: Works in 9:26 (tested 2026-11-15).
Please review the README and setup scripts to keep agent onboarding fast and reliable:
1. Fix any documented command that required extra steps or workarounds.
2. Pin dependency versions in a lockfile and document a fast verification command.
3. Keep prerequisites, platform notes, and expected output concise and exact.
Also review the recorded check notes (possible secrets) and address any unintended dependency advisories or committed sample tokens.

Shareable status badge

Add a live Coldpass Linux verification badge to your README.

Coldpass status for nick-developer/relsynth
[![Coldpass status](https://coldpass.dev/badge/nick-developer--relsynth.svg)](https://coldpass.dev/repo/nick-developer--relsynth/)

What we checked

Is it safe?Review first. Found: possible secrets.Each check
  • Malware: not checked on every setup (its lockfile dependencies and the packages installed during our run).
  • Secrets in its files: 2 possible hardcoded secrets found by gitleaks (values and locations withheld, 2 of them in test, fixture or vendored files).
  • Known vulnerabilities in its dependencies: not checked (OSV found no pinned dependency versions to look up). Packages installed during our run were not checked for ordinary vulnerabilities on every setup.
  • Lines that download and run a program: none found in its source.
  • Planted fake secret files: whether repo code opened them was not recorded for Haiku. Not recorded for Luna.
  • Planted fake credential: whether it was sent out was not recorded for Haiku. Not recorded for Luna.
  • Hosts the repo's own code contacted: not recorded for Haiku. Not recorded for Luna.

From our newest run of each setup (Nov 15, 2026, Nov 7, 2026). A quiet run is not a safety guarantee.

Can a small agent set it up?Yes (Luna, 9:26)The run

1:50 Install finished

1:10 First use worked

Test history

  • Nov 15, 2026 · 5aaf06ee1d9e · linux / Luna · passed · run JSON
Does it do what the README says?19 of 19 claims held up. A claim is one README promise we ran and checked.Evidence

“Generate, write and score a synthetic database from the source spec.”

“README advertised behavior 1: Bayesian synthetic data for whole relational databases. relsynth reads a database (Oracle, SQL Server, PostgreSQL, MySQL, MariaDB, SQLite), a cloud warehouse (Databricks SQL, Microsoft Fabric, Snowflake, BigQuery), a lakehouse table (Apache Iceberg, Delta Lake) or a folder of CSV or Parquet files.”

“README advertised behavior 2: Whole databases. relsynth handles star and snowflake schemas, operational schemas, self-referencing hierarchies (an employee's manager, a category tree), nested facts, order headers with lines, bridges, type 2 slowly changing dimensions, unknown members, views and reference tables, time-stamped facts and free text.”

“README advertised behavior 3: Structure first. Synthetic tables have the source's columns and types. Primary keys are unique, foreign keys resolve, hierarchies have no cycles, and composite and unique keys hold.”

“README advertised behavior 4: Business rules. Rules such as `amount = unit_price * quantity`, `ship_date >= order_date`, lookups, running balances and aggregates (an order total equal to its lines) hold on every row. You can declare rules, or relsynth can find them in the data.”

“README advertised behavior 5: Statistics. Each table's marginals and dependence come from a Bayesian Gaussian copula over mixed types. Links between tables come from latent segments, so customers who buy more of one product kind keep doing so. Counts, participation and multiplicities follow fitted laws.”

“README advertised behavior 6: Bayesian. Each synthetic dataset is one draw from the posterior predictive distribution. Several datasets show the model's own uncertainty, and `posterior.mode: mean` gives stable test data.”

“README advertised behavior 7: Scale. You set the size per table: `--scale 0.1` for a small test database, or `--scale 10` for load tests. Facts follow the tables they hang from by the fitted rates.”

“README advertised behavior 8: Privacy. Rows are drawn from a fitted model; only tables you declare `mode: copy` are copied. Distance-to-closest-record checks compare synthetic rows with real ones, against the real data's own spacing. Text cannot reproduce rare source content, and memorisation guards are on by default. `relsynth privacy` attacks a release per person (membership, attribute inference, singling out, linkability) and writes a report per release context.”

“README advertised behavior 9: Differential privacy (optional). `relsynth run --epsilon 1` gives a user-level (ε, δ) guarantee for each person of the privacy unit and all their rows. The organisation sets ε; there is no default. Releases outside the organisation are refused without it.”

“README advertised behavior 10: Governance. Signed, hash-chained manifests of every run, a privacy budget ledger per domain, an organisation policy and human approvals before release (`relsynth gov`).”

“README advertised behavior 11: Documents. MongoDB, Cosmos DB, DynamoDB (single-table designs included), Couchbase and JSON collections keep their shape: optional fields, unions, nested arrays with their length laws, polymorphic sub-documents, maps and references between collections (`relsynth docs`).”

“README advertised behavior 12: Text. A text column is generated from its row (a billing ticket talks about billing) by a word-level model, a local language model or Private Evolution, optionally with user-level differential privacy; personal data is replaced by typed placeholders and the output is audited for leaks (`relsynth text`).”

“README advertised behavior 13: Agents. `relsynth agent` answers the review questions of a draft spec with evidence, explains reports in plain language and drafts contracts and policies. Agents only propose; a person decides.”

“README advertised behavior 14: Time. Event sequences (a customer's orders) keep their gaps, life times and calendar; meter-style series keep their seasonal profiles and autocorrelation; `relsynth extend` adds new days to a synthetic dataset.”

“README advertised behavior 15: Large tables. Facts larger than memory are fitted from statistics computed inside the database (`GROUP BY`, window functions) plus a uniform sample. Rows never leave the database as a whole. Generation can run in partitions on many processes or Spark, with the same output for any number of workers.”

“README advertised behavior 16: Pluggable and adjustable. Each table's columns come from a generator plug-in (`copula` by default, `independent`, `cart`, or third-party packages). 101 engine settings can be changed in a file, a preset or per table, and `relsynth autotune` tunes them toward your objectives.”

“README advertised behavior 17: Quality gate. A scorecard compares synthetic with real data, check by check, with calibrated limits. `--fail-under 0.98` makes a CI job fail when quality drops.”

“README advertised behavior 18: Explainable. `relsynth model` draws the identified data model, and `relsynth export-model` writes the fitted Bayesian model as PDF, Markdown, JSON and a standalone Python sampler. `relsynth doctor` turns failed checks into spec fixes.”

Does the repo’s own CI pass?Pending.GitHub checks

GitHub’s check status for the default branch at the commit we tested. We did not run their CI.

Needs keys, a login or a browser?No.Details

None seen

What does it depend on?Python 3.12.3, SQLite, relsynth 2.1.0, NumPy, pandas, SciPy, SQLAlchemy, PyYAML, DuckDB, duckdb-engineDependencies

Software the test agent reported the README needed.

Local or hosted?Local: runs on your machineHow we tell

From the README and the endpoint we tested.

Is the README accurate?Yes.Deviations

No step differed.

What did it do when we ran it?Nothing unexpected seen during our run.What we saw

Linux / Haiku

  • Nothing unexpected in the trace for this setup.

Linux / Luna

  • Nothing unexpected in the trace for this setup.

We could not tell whether OSV lists a malware advisory for its dependencies.

What we checked: OSV vulnerability and malware advisories for pinned dependencies, secret-pattern scanning (gitleaks), and the connection attempts, file writes and credential-file reads we traced from repo processes while we installed and ran it. Expected package-manager and cache activity is left out. Where a setup's record is missing, capped or cut short, it says so above, and these checks may not have run for it.

What we didn't check: host name lookups; whether a connection got through; other UDP traffic; environment variables it read; binaries shipped in the repo; or what the code is meant to do.

A quiet run is not a safety guarantee.

Is it maintained?MaintainedActivity

actively maintained: last commit 0 days ago; 48 commits and 40 merged PRs in 90 days; 0 open issues, 1 open PRs; latest release 2026-11-07

AboutStars: not captured · Forks: not captured · Contributors: not captured · Owner account age: not capturedSource

Recorded GitHub repository and owner account metadata.

LicenseSPDX: Apache-2.0 · commercial use: yesSource

From GitHub’s license detection. The repository’s license text gives the terms.

Cost to runFree in this testDetails

Peak guest RAM: not captured

Guest disk change: not captured

GPU need: not captured

Paid service: not captured