Get started

npm run witness:seed

Source

The registry: classes, providers, sources, dimensions, skus, and the curated market log.

bash
npm run witness:seed
npm run witness:seed -- --hold-new

Idempotent by construction

Safe to run after every deploy. Curated log rows carry a partial unique index on the day and the headline, so a second run inserts nothing.

--hold-new

Inserts a newly added source disabled.

A source arrives with an adapter nobody has watched run against the live page. Landing it enabled means the first collector run after a deploy is also its first real test, and a bad parse enters the record before anyone looks. Held, it is read only by an explicit single-source run.

What it does not do

It does not remove anything. A source that leaves the seed data stays in the database, because rows already point at it and the record does not lose history to a config edit.