Teaching a small model to read databases.

Ghostrow understands a schema with a rule-based engine and, since 1.0.2, with gr-col-1: a small model that runs on your machine and proposes what each column means. Next, the model learns the rules between columns and the intent in your validation code. This page tracks that work and what is still ahead.

The questions we’re answering

How small can it be?
The first model has 32 million parameters and is a 32.5 MB download. It labels a column in about 1.6 ms on a desktop CPU and was as accurate on held-out columns as a model almost five times its size.
Can it read intent from code?
Validation rules often live in application code, not the schema. We’re teaching the model to extract them.
How do we measure it honestly?
Held-out schemas the model never saw, labels and results published alongside the method, and the weak spots reported with the gains.
How do we keep output repeatable?
The model proposes rules; a seeded generator writes rows. We test that the same inputs give identical output.

Roadmap

Each status changes only when the work ships, and the changelog records it.

Milestones in order
MilestoneWhat it involvesTargetStatus
Schema corpusSynthetic schemas and publicly licensed open-source schemas, labelled with column meanings. Labels for rules between columns are nextJanuary 2027Column meanings done
Evaluation suiteHeld-out schemas and metrics for column meaning, rule recall, constraint validity and CPU run time. Column meaning and run time are measuredJanuary 2027Two of four measured
Schema modelFine-tune a compact open model for column meaning and quantise it to run on a laptop CPU (gr-col-1)February 2027Shipped in 1.0.2
Code-aware rulesRead Zod, Pydantic, Django and Laravel validators to extract rules the schema can’t expressFebruary 2027Shipped in 1.0
Haunt v1Edge-case generation driven by inferred rules, with a failing-test reportFebruary 2027Shipped in 1.0
Engine matrix in CIRun every release against Postgres, MySQL, SQLite and SQL Server versions in CIMarch 2027Planned
TwinMeasure column statistics locally and generate synthetic copies that match their shapeAfter launchShipped in 1.0

Where compute goes

Training
The first schema model was fine-tuned on one workstation GPU (an NVIDIA RTX 4070, 12 GB) in five minutes. Comparing base models, larger training sets, rule labels and hyperparameter sweeps need cloud GPUs.
Evaluation
Repeated evaluation runs on held-out schemas for every model and release candidate.
Engine matrix
CI jobs that spin up Postgres, MySQL, SQLite and SQL Server to test generated data against real constraints.
Licensing and docs
Hosting ghostrow.com, the documentation and the license service. Customer data never reaches these systems.

Training data policy

We train only on synthetic schemas and on schemas and code published under licenses that allow it. We never train on customer data, and the product never sends us your schemas, code or data.

Read the model card and evaluation