Skip to content

Production beta vertical slice and integration proof - #1

Merged
anaschatz merged 36 commits into
mainfrom
codex/production-beta-vertical-slice
Aug 3, 2026
Merged

Production beta vertical slice and integration proof#1
anaschatz merged 36 commits into
mainfrom
codex/production-beta-vertical-slice

Conversation

@anaschatz

@anaschatz anaschatz commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Scope freeze

This PR is the production-beta vertical slice. Merge preparation added only
documentation consistency, release metadata and the render.yaml deployment
branch correction. It did not change video output, FFmpeg arguments, ranking,
HookGate policies, providers or applied migration contents.

Implemented

  • async web/worker/migrate composition root
  • PostgreSQL repositories, scoped idempotency and checksummed migrations
  • PostgreSQL SKIP LOCKED queue, fenced leases, retries, cancellation and DLQ
  • OIDC Authorization Code + PKCE sessions, CSRF and owner isolation
  • S3/R2 multipart artifacts, validation, cleanup and session-bound delivery
  • editorially distinct football candidates, bounded previews and atomic approval/render enqueue
  • bounded observability plus durable usage and cost events
  • one web service and two independent workers in render.yaml

Evidence for head 099015ff63504e40b764c820891eda46e06327dd

Local clean-checkout verification:

  • npm ci: passed with locked dependencies
  • npm run lint: passed
  • npm run build: passed
  • npm test: 1,690 tests; 1,683 passed; 7 explicit external/opt-in skips; 0 failed
  • python -m unittest discover -s tests -v: 501 passed
  • python scripts/run_python_tests_isolated.py: 51/51 modules passed
  • python research/eval.py: 96.2981; hard guardrails passed
  • README relative links/assets: all present

The exact-SHA GitHub Release gate, Python isolation/HookGate and disposable
PostgreSQL/S3 multi-worker jobs must all complete successfully before merge.

Security and dependency review

  • exact-history gitleaks scanning is part of the GitHub workflows
  • .env.example contains placeholders/empty secret values only
  • production composition fails closed unless PostgreSQL queue/persistence, R2,
    OIDC and durable PostgreSQL telemetry are selected
  • local/development authentication is rejected by the strict production root
  • npm audit reports 0 high, 0 critical and 3 moderate findings from the
    transitive HyperFrames/Hono static-server chain; the affected Windows static
    path is not exposed by the Linux production runtime. Upgrading HyperFrames may
    change rendering behavior and is intentionally deferred to a separate tested PR.

.gitleaksignore retains commit-bound fingerprints only for synthetic strings in
existing history. A merge commit preserves those object IDs; no new allowlist was
added.

Migration compatibility

The canonical greenfield chain is 0001_identity_sessions_audit.sql through
0007_production_controls_telemetry.sql. Fresh migration, rerun, concurrent lock,
rollback and checksum mismatch behavior are tested.

The former 0001_production_beta.sql prototype is not an upgrade base for the new
chain. GitHub deployment records show no staging deployment after that legacy file
entered main. If any manually managed external database contains that legacy
migration, deployment must stop and use a reviewed additive migration strategy;
the database must not be reset or destructively modified.

Readiness boundary

Status: production beta — integration-proven, external staging pending.

This PR does not claim fully production-ready. Real managed PostgreSQL/R2, an
external OIDC provider, two deployed workers, restart/lease recovery, Range
delivery and durable telemetry still require protected exact-commit staging proof.

Rollback

If post-merge verification fails, stop new worker claims and redeploy the previous
main commit. Revert the merge with a normal revert commit; do not rewrite history
and do not roll back or delete PostgreSQL data destructively. Keep unpublished R2
artifacts private and run the existing reconciliation/cleanup path after the
application rollback.

anaschatz added 30 commits July 26, 2026 20:19
# Conflicts:
#	docs/DARK_CURIOSITY_ANIMATION_ARCHITECTURE.md
#	package-lock.json
#	package.json
#	renderer/hyperframes/animation-ir-adapter.mjs
#	renderer/hyperframes/browser-seek-harness.mjs
#	renderer/hyperframes/render-worker.mjs
#	server/app.cjs
#	server/job-worker.cjs
#	server/pipelines/narrated-short/animation/benchmark-qa.cjs
#	server/pipelines/narrated-short/animation/compiler.cjs
#	server/pipelines/narrated-short/animation/comprehension-pacing.cjs
#	server/pipelines/narrated-short/animation/contract.cjs
#	server/pipelines/narrated-short/animation/payload-bindings.cjs
#	server/pipelines/narrated-short/animation/production-plan-compiler.cjs
#	server/pipelines/narrated-short/animation/providers/hyperframes.cjs
#	server/pipelines/narrated-short/animation/render-service.cjs
#	server/pipelines/narrated-short/animation/semantic-narrative.cjs
#	server/pipelines/narrated-short/animation/template-validator.cjs
#	server/pipelines/narrated-short/narration/tts/pacing-plan.cjs
#	server/pipelines/narrated-short/pilot/local-runtime.cjs
#	server/pipelines/narrated-short/pilot/orchestrator.cjs
#	server/pipelines/narrated-short/render-job.cjs
#	server/pipelines/pipeline-registry.cjs
#	server/repositories/content-artifact-repository.cjs
#	server/storage/artifact-store.cjs
#	tests/dark-curiosity-animation-benchmark.test.cjs
#	tests/dark-curiosity-animation-browser-seek.test.mjs
#	tests/dark-curiosity-animation-version-binding.test.cjs
#	tests/dark-curiosity-hyperframes-provider.test.cjs
#	tests/dark-curiosity-production-animation.test.cjs
#	tests/dark-curiosity-tts.test.cjs
#	tests/narration-alignment.test.cjs
#	tools/dark-curiosity-animation-seek.mjs
#	tools/dark-curiosity-animation-timing.mjs
#	tools/dark-curiosity-animation.mjs
@anaschatz
anaschatz marked this pull request as ready for review August 2, 2026 23:56
@anaschatz
anaschatz merged commit 92988d8 into main Aug 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant