Move runtime assets behind the live backend #479

Merged
nelsong6 merged 15 commits from codex/live-asset-backend into main 2026-07-12 15:38:47 -07:00
nelsong6 commented 2026-07-12 11:06:49 -07:00 (Migrated from github.com)

Outcome

Moves runtime, review, candidate, and source-media binaries behind the live backend catalog and private immutable Blob storage. Postgres owns semantic slots, versions, lifecycle state, metadata, provenance, revisions, and audit. Git keeps code, deterministic geometry, prompts, and contracts only.

The repository now contains no tracked product-media bytes. The temporary importer, generated asset catalogs, static review manifests, and filesystem fallbacks are deleted. The application fails honestly when required live content is absent or incomplete.

One live data plane

  • the current Postgres/Blob pair is the app's content authority; there is no permanent dev/prod content split
  • isolated test-slot databases and local object stores exist only as disposable validation projections
  • public runtime reads use stable semantic /assets/<slot> URLs backed by revisioned catalog state
  • accepted bytes are immutable/content-addressed; candidates and archives require authentication
  • live catalog snapshots, readiness, thumbnails, map hashes, and OG hashes share the same renderer validation and serialized critical section

Owner-operable content

  • Unit Art promotion is fully typed and revision-safe
  • Water side art promotes as one atomic eight-slot group with hash/native-pixel/proof evidence
  • prop-seat documents are DB-only, complete, dimension-validated, and CAS-protected
  • groundcover runtime geometry and immutable URLs come from version metadata
  • SFX runtime profiles are DB-authoritative; browser state is draft-only
  • Chrome and wall-decor review read the live catalog instead of static Git candidate manifests

Other product/theme roster metadata remains deterministic Git configuration where it does not own bytes or active version pointers. Those surfaces still need typed promotion instruments before they are honestly owner-editable; this PR does not pretend otherwise.

Terrain edge completion

  • renders south/east exposed terrain faces independently
  • uses a native thin-cap abrupt Water boundary without implying a waterfall
  • clips top seam repair to the occupied diamond footprint
  • gives gameplay, Studio, editor, and thumbnails one shared face contract
  • uses semantic draw layers instead of inferring ownership from asset URLs
  • stages an eight-slot Water proof as candidates only; acceptance waits for owner verification of this exact final image

Imported live inventory

  • frozen sources: 3,984 paths / 428,728,479 canonical Git bytes
  • migration records: 4,025 (1,608 legacy bridges, 273 candidates, 2,144 private archives)
  • unique blobs: 3,601 / 359,065,564 bytes
  • inventory digest: 0f1a017089b5b59bcc17d8e2ebcb2b1a9536fe5c627ad7af7bf2e279cb9ad446
  • imported inventory passed exact stream-hash verification after a fresh process restart

Final-head validation

At 8b8c70f90f5ca1fe86f35cd0970ed8e03e1e6c69:

  • frontend check: 139 files; 1,254 passed, 3 skipped; TypeScript green
  • frontend production build green; strict no-packaged-media guard green
  • media-guard tests 30/30
  • frontend trainer build green
  • board-render build and typecheck green
  • backend thumbnail 28/28
  • backend live-media policy 6/6
  • readiness/render mutex 3/3
  • inventory verifier 8/8
  • exact-image release gate 5/5
  • workflow/Kubernetes YAML syntax green; git diff --check green
  • Docker Build Check and the full disposable-Postgres smoke are green
  • immutable candidate: fingerprint f495ae6bf0b5dd7636974d7b7fc0fa771dd71f4659bfbe7574b96914ca1e990f, digest sha256:5054239161afe7452fb84667134e705b7dcd828a84a0b0ab7edee6fa40bbb57a

The full Postgres smoke path and immutable image build run in CI. Raw Helm rendering was not available locally.

Merge gate

Keep this PR draft. Do not merge until CI binds the final head to an immutable image digest, that exact digest is run against the live data plane in an unserved maintenance window, the owner explicitly verifies it on the board, and the trusted exact-image approval marker is recorded. Water acceptance occurs only after that verified digest is deployed and healthy.

## Outcome Moves runtime, review, candidate, and source-media binaries behind the live backend catalog and private immutable Blob storage. Postgres owns semantic slots, versions, lifecycle state, metadata, provenance, revisions, and audit. Git keeps code, deterministic geometry, prompts, and contracts only. The repository now contains no tracked product-media bytes. The temporary importer, generated asset catalogs, static review manifests, and filesystem fallbacks are deleted. The application fails honestly when required live content is absent or incomplete. ## One live data plane - the current Postgres/Blob pair is the app's content authority; there is no permanent dev/prod content split - isolated test-slot databases and local object stores exist only as disposable validation projections - public runtime reads use stable semantic `/assets/<slot>` URLs backed by revisioned catalog state - accepted bytes are immutable/content-addressed; candidates and archives require authentication - live catalog snapshots, readiness, thumbnails, map hashes, and OG hashes share the same renderer validation and serialized critical section ## Owner-operable content - Unit Art promotion is fully typed and revision-safe - Water side art promotes as one atomic eight-slot group with hash/native-pixel/proof evidence - prop-seat documents are DB-only, complete, dimension-validated, and CAS-protected - groundcover runtime geometry and immutable URLs come from version metadata - SFX runtime profiles are DB-authoritative; browser state is draft-only - Chrome and wall-decor review read the live catalog instead of static Git candidate manifests Other product/theme roster metadata remains deterministic Git configuration where it does not own bytes or active version pointers. Those surfaces still need typed promotion instruments before they are honestly owner-editable; this PR does not pretend otherwise. ## Terrain edge completion - renders south/east exposed terrain faces independently - uses a native thin-cap abrupt Water boundary without implying a waterfall - clips top seam repair to the occupied diamond footprint - gives gameplay, Studio, editor, and thumbnails one shared face contract - uses semantic draw layers instead of inferring ownership from asset URLs - stages an eight-slot Water proof as candidates only; acceptance waits for owner verification of this exact final image ## Imported live inventory - frozen sources: 3,984 paths / 428,728,479 canonical Git bytes - migration records: 4,025 (1,608 legacy bridges, 273 candidates, 2,144 private archives) - unique blobs: 3,601 / 359,065,564 bytes - inventory digest: `0f1a017089b5b59bcc17d8e2ebcb2b1a9536fe5c627ad7af7bf2e279cb9ad446` - imported inventory passed exact stream-hash verification after a fresh process restart ## Final-head validation At `8b8c70f90f5ca1fe86f35cd0970ed8e03e1e6c69`: - frontend check: 139 files; 1,254 passed, 3 skipped; TypeScript green - frontend production build green; strict no-packaged-media guard green - media-guard tests 30/30 - frontend trainer build green - board-render build and typecheck green - backend thumbnail 28/28 - backend live-media policy 6/6 - readiness/render mutex 3/3 - inventory verifier 8/8 - exact-image release gate 5/5 - workflow/Kubernetes YAML syntax green; `git diff --check` green - Docker Build Check and the full disposable-Postgres smoke are green - immutable candidate: fingerprint `f495ae6bf0b5dd7636974d7b7fc0fa771dd71f4659bfbe7574b96914ca1e990f`, digest `sha256:5054239161afe7452fb84667134e705b7dcd828a84a0b0ab7edee6fa40bbb57a` The full Postgres smoke path and immutable image build run in CI. Raw Helm rendering was not available locally. ## Merge gate Keep this PR draft. Do not merge until CI binds the final head to an immutable image digest, that exact digest is run against the live data plane in an unserved maintenance window, the owner explicitly verifies it on the board, and the trusted exact-image approval marker is recorded. Water acceptance occurs only after that verified digest is deployed and healthy.
nelsong6 commented 2026-07-12 15:38:36 -07:00 (Migrated from github.com)
No description provided.
<!-- exact-image-approval:v1 head=8b8c70f90f5ca1fe86f35cd0970ed8e03e1e6c69 fingerprint=f495ae6bf0b5dd7636974d7b7fc0fa771dd71f4659bfbe7574b96914ca1e990f digest=sha256:5054239161afe7452fb84667134e705b7dcd828a84a0b0ab7edee6fa40bbb57a -->
Sign in to join this conversation.
No description provided.