Skip to content

Runtime registry

build/v8s.json is the generated runtime registry consumed by the Worker. Humans edit source files such as custom/v8s-links.txt; the build validates and compiles those files into this runtime shape.

Schema 3.0

Schema 3.0 is tree-first:

FieldPurpose
schema_versionRuntime registry contract version, currently 3.0
generated_atBuild timestamp
generated_timezoneOperator timezone used by protected dashboards when displaying build time
default_stateFallback lifecycle state, normally permanent
routingState-to-outcome map used by the Worker
treeCanonical nested lookup structure for runtime resolution
links[]Compatibility array for dashboards, local helpers, and review workflows

Each tree node has a children object and may have a link. Each link keeps the same fields exposed in links[], including slug, match, target, state, metadata, and optional schedule.

Compatibility

The Worker prefers tree when present and falls back to links[] when absent. That keeps rollback safe across the 2.x to 3.x boundary and lets local tools continue using the compatibility array during the 3.x series.

links[] remains part of the 3.x compatibility contract. Removing it would require a future major release.

Validation

npm run check builds the registry and validates:

  • required routing states
  • tree shape
  • compatibility links[]
  • safe redirect targets
  • splat target placeholders
  • schedule rule shape
  • blocklist policy violations

The implementation contract lives in the code repository generator and validator.

Edit this page Last modified: