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.
| Milestone | What it involves | Target | Status |
|---|---|---|---|
| Schema corpus | Synthetic schemas and publicly licensed open-source schemas, labelled with column meanings. Labels for rules between columns are next | January 2027 | Column meanings done |
| Evaluation suite | Held-out schemas and metrics for column meaning, rule recall, constraint validity and CPU run time. Column meaning and run time are measured | January 2027 | Two of four measured |
| Schema model | Fine-tune a compact open model for column meaning and quantise it to run on a laptop CPU (gr-col-1) | February 2027 | Shipped in 1.0.2 |
| Code-aware rules | Read Zod, Pydantic, Django and Laravel validators to extract rules the schema can’t express | February 2027 | Shipped in 1.0 |
| Haunt v1 | Edge-case generation driven by inferred rules, with a failing-test report | February 2027 | Shipped in 1.0 |
| Engine matrix in CI | Run every release against Postgres, MySQL, SQLite and SQL Server versions in CI | March 2027 | Planned |
| Twin | Measure column statistics locally and generate synthetic copies that match their shape | After launch | Shipped 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.