Summary
Track the fork-first rollout of the Global Dataset Contract Registry in lspassos1/worldmonitor before any upstream proposal. This issue owns the problem statement, rollout slices, invariants, validation bar, and upstream-readiness criteria.
Why one issue
This work is one architectural problem with a phased implementation. The issue should stay consolidated so the problem, success criteria, and rollout order live in one place. The implementation can still land as multiple focused PRs.
Problem
Bootstrap keys, health keys, seed metadata, and tier definitions drifted across manual maps in api/bootstrap.js, api/health.js, server/_shared/cache-keys.ts, and tests. That makes parity fixes and new dataset additions depend on synchronized edits across unrelated files.
Goals
- move dataset identity, bootstrap registration, health registration, and seed freshness expectations into a single authored source of truth
- generate deterministic edge/server artifacts from that source
- eliminate manual registry drift across runtime files and tests
- keep this phase compile-time and test-time only; no coordinator or runtime locking yet
Constraints
- fork-first only; no upstream proposal until the fork proves parity
api/*.js must stay edge-safe and self-contained
- generated artifacts are read-only and deterministic
- behavioral parity comes before stricter enforcement
PR plan
chore(registry): stabilize dataset contract foundation and bootstrap parity
refactor(health): load generated health registry in fork
ci(registry): enforce generated registry freshness in fork
docs(registry): document full dataset workflow
Implementation checklist
Validation
npm run registry:check
node --test tests/bootstrap.test.mjs
node --test tests/edge-functions.test.mjs
npm run test:data
npm run typecheck
npm run typecheck:api
Upstream readiness
- generated artifacts are stable and deterministic
- no unresolved parity regressions remain in bootstrap, health, or seed freshness handling
- the rollout can be replayed upstream as a series of smaller focused PRs
Summary
Track the fork-first rollout of the Global Dataset Contract Registry in
lspassos1/worldmonitorbefore any upstream proposal. This issue owns the problem statement, rollout slices, invariants, validation bar, and upstream-readiness criteria.Why one issue
This work is one architectural problem with a phased implementation. The issue should stay consolidated so the problem, success criteria, and rollout order live in one place. The implementation can still land as multiple focused PRs.
Problem
Bootstrap keys, health keys, seed metadata, and tier definitions drifted across manual maps in
api/bootstrap.js,api/health.js,server/_shared/cache-keys.ts, and tests. That makes parity fixes and new dataset additions depend on synchronized edits across unrelated files.Goals
Constraints
api/*.jsmust stay edge-safe and self-containedPR plan
chore(registry): stabilize dataset contract foundation and bootstrap parityrefactor(health): load generated health registry in forkci(registry): enforce generated registry freshness in forkdocs(registry): document full dataset workflowImplementation checklist
registry/datasets.tsas the authored source of truthapi/health.jsto importsnpm run registry:checkin pre-push and CIValidation
npm run registry:checknode --test tests/bootstrap.test.mjsnode --test tests/edge-functions.test.mjsnpm run test:datanpm run typechecknpm run typecheck:apiUpstream readiness