Skip to content

fix(deploy): gate public builds on browser candidates - #9831

Merged
Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
Git-on-my-level:codex/issue-9824-candidate-acceptance
Jul 15, 2026
Merged

Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
Git-on-my-level:codex/issue-9824-candidate-acceptance

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #9824.

This is stacked on #9828. Its base is main because the parent branch is in the contributor fork; merge #9828 first, then GitHub will reduce this PR to the candidate-verification commit.

  • Makes the complete browser-public build input set a checked-in, versioned configuration source for development and production. No browser build input may fall back to a GitHub variable or a console-only value.
  • Replaces per-workflow ad hoc argument assembly with one preparation action that reads the configuration at the exact deploying commit through a read-only GitHub API request.
  • Extends the deterministic contract check to reject unclassified inputs, missing or empty reviewed values, Docker/workflow bypasses, missing input coverage, missing Docker guards, and missing client canaries.
  • Deploys admin, app, frontend, and personas as uniquely tagged Cloud Run revisions with zero traffic. It resolves the exact candidate endpoint, runs a headless-browser smoke against its client initialization marker, verifies it is still the latest revision, and only then shifts traffic to that exact revision.
  • Adds scheduled and PR validation plus documentation for the source, candidate, and promotion contract.

Root cause and durable guard

The issue class was not a single missing environment variable: browser-delivered values were independently named, stored, injected, and verified across Dockerfiles and deployment workflows. That made a green build insufficient evidence that the served client initialized with the intended configuration.

The durable boundary is now explicit: one reviewed configuration document defines every declared browser input, the static contract binds it to the Dockerfiles/workflows/client canaries, and deployment promotion is gated by a smoke of the exact no-traffic candidate. A deploy cannot silently substitute a console value, skip a newly added input, or promote an artifact whose real browser client failed to initialize.

Verification

  • make preflight
  • actionlint for all five public-build workflows
  • public-build contract fixtures and static check
  • deployment secret-boundary and concurrency checks
  • targeted client lint/type checks; the existing web/app next lint command is incompatible with its installed Next version, while its TypeScript check passes
  • live read-only configuration preflight for all four targets on the pushed branch in both development and prod (values not logged)

Review in cubic

Boundary Test added 3 commits July 16, 2026 01:28
Move browser-public build configuration into a reviewed, versioned source and enforce its contract locally and in CI. Deploy each public target as a no-traffic candidate, prove the built client initializes in a browser, then promote only that revision.

Verification: public-build fixtures and static contract check; deployment secret-boundary and concurrency checks; actionlint; targeted client lint/type checks (the web/app legacy next lint runner is incompatible with its installed Next version).
@Git-on-my-level
Git-on-my-level merged commit 3390ab1 into BasedHardware:main Jul 15, 2026
21 of 24 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.

fix(deploy): establish a canonical public-build deployment contract

1 participant