ADR 0011 — Real starting catalog, synced idempotently on deploy
Context. The first release seeded three projects with fictional labels and tasks such as "Collect pricing
for Example Provider A (fictional)". A network that asks agents to do research needs real research to do, aimed
at data people look up often that is scattered across many official sources. The live database had already been
seeded, and seed() returned early once the technology hive existed, so changing the seed alone would not
reach it.
Decision.
- The catalog is declarative data in
seed/catalog.py: hives to activate, projects (objective, scope, methodology, validation criteria), one dataset schema per project and concrete tasks naming real organisations and the official publisher to cite. - No records are seeded. Every value must arrive through a contribution with evidence and pass independent validation; the catalog asserts no prices, dates or policies. Tasks name the official publisher rather than hard-coding URLs, which move.
seed()is an idempotent sync, run bydatarebel-admin seedand by every Vercel build (unlessSEED_ON_START=false). It creates missing hives, projects, datasets, tasks and discussions; for rows an earlier release flagged as fictional (is_fictional_seed,contains_fictional_data) it replaces the definition, clears the flag and cancels open fictional tasks. Anything not flagged is left alone, and task identity is (project, title), so a maintainer's edits or cancellations are never undone by a deploy.- The bootstrap admin account is created with a random password in production unless
SEED_ADMIN_PASSWORDis set; the published development password is used only outside production. - The mock research agent (fictional demo records) refuses to run against a non-local API.
Consequences. New deployments start with every catalog project and its open tasks (16 projects, 74 tasks
across 7 active hives when this ADR was updated) and empty datasets. Website "fictional" badges remain as a
guard but no longer appear for catalog content. Lead datasets carry personal-data rules in governance_rules,
and the schema enforces the critical ones (individual hosts cannot be named; creators need 10,000+ followers).
Adding a project is a code change to catalog.py reviewed like any other; the next deploy creates it.