2.9 KiB
2.9 KiB
Release coherence baseline (2026-09-23)
Verified before Phase 5 edits. Only fields and paths that exist in the live tree are listed.
Identity tuple
| Source | Where it is read | Boot-critical identity fields |
|---|---|---|
| HTML + hashed JS (build) | src/contracts/env.ts getBuildConfig() (VITE_BUILD_ID) |
buildId; optional expected assetManifestHash (LoadReleaseManifestOptions.expectedAssetManifestHash) |
Runtime config (/config.json) |
src/bootstrap/load-runtime-config.ts, src/bootstrap/runtime-config-schema.ts |
BUILD_ID (optional in schema, always written by scripts/generate-runtime-config.ts), RELEASE_ID (same), CONFIG_SCHEMA_VERSION |
Release manifest (/release-manifest.json) |
src/bootstrap/load-release-manifest.ts |
buildId, releaseId, configSchemaVersion, assetManifestHash, contractSet (V2) / legacyApiContractVersion (V1) |
Existing checks before Phase 5:
loadRuntimeConfig: configBUILD_IDvs buildbuildId→CONFIG_BUILD_MISMATCH.loadReleaseManifest(order: build, config schema, V1 API contract, release, assets, then contract set):MANIFEST_BUILD_MISMATCH,MANIFEST_CONFIG_SCHEMA_MISMATCH,MANIFEST_API_CONTRACT_MISMATCH,MANIFEST_RELEASE_MISMATCH,MANIFEST_ASSET_MISMATCH,CONTRACT_SET_*.src/contracts/compatibility.tsverifyCompatibilityTuple()treatsreleaseIdas a warning only; it is used by release tooling, not by boot.- Boot failure renders
BootErrorShellfromsrc/bootstrap/main.tsx; there was no automatic boot reload, so no loop, but also no bounded recovery for a stale HTML document during a rolling release. - Runtime chunk recovery already has a reload-once guard (
src/application/use-cases/decide-chunk-recovery.ts, storage keyCHUNK_RELOAD_GUARD).
Cache directives
| Surface | config/hosting/cache-policy.json |
config/hosting/response-headers.fixture.json |
|---|---|---|
/ (HTML) |
no-cache |
no-cache |
/config.json |
no-store |
no-store |
/release-manifest.json |
no-store |
no-store |
/assets/* (hashed) |
public, max-age=31536000, immutable |
same |
Client side, src/bootstrap/read-bounded-boot-json.ts fetches config and manifest with cache: "no-store".
Existing tests exercised before changes
tests/runtime-schema/release-manifest.test.ts,tests/runtime-schema/runtime-config.test.ts(boot loaders),tests/unit/release-coherence.test.tsandtests/unit/compatibility.test.ts(release tooling tuple),tests/unit/read-bounded-boot-json.test.ts(no-store boot reads),scripts/verify-hosting-headers.ts(fixture headers).
Phase 5 ruling
No new identity format is introduced. Phase 5 extracts the existing comparisons into one pure validator (src/platform/release/release-coherence.ts) that both boot loaders delegate to, keeps the existing error codes and precedence, and adds a bounded reload-once recovery keyed by the mismatch.