Skip to content

ci(PER-21): controlled Production CD and single Vercel deploy controller - #29

Merged
febriyadi merged 1 commit into
mainfrom
chore/PER-21-autonomous-production-cd
Nov 21, 2026
Merged

febriyadi merged 1 commit into
mainfrom
chore/PER-21-autonomous-production-cd

Conversation

@pebbDev

@pebbDev pebbDev commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary / Scope (PER-21 Minimum Public MVP)

  • Synced this worktree by fast-forward onto latest main@fa0483e (merged PR fix: restore preview scroll state and simplify Work hash navigation #28); the existing Home footer/scroll restoration and /#work navigation are therefore inherited, not reintroduced or duplicated.
  • Add disabled-by-default, gated GitHub Actions Production deployment in .github/workflows/production.yml: controlled manual First Release; future automatic deployments only after separate activation via PRODUCTION_CD_ENABLED=true, required PUBLIC_CONTENT_APPROVED=true, and protected production environment. Verify exact team/project/SHA; prebuilt stage with --prod --skip-domain, READY provenance, latest main before promotion, then public-domain anonymous HTTP smoke.
  • Routing update: smoke-check / only. PR fix: restore preview scroll state and simplify Work hash navigation #28 intentionally removed /work.html; /#work and /#meet-me are client-side fragment tabs (not separate HTTP routes). No Work route or frontend changes in this PR.
  • Harden and simplify protected Preview CD: reject any source public/ path before build; inline Vercel project-ID/team/native all-SSO protection verification before upload; retain post-deployment anonymous SSO redirect check. Delete superseded asset-gate/preflight helpers.
  • Add tracked CI contract tests under .github/tests/ and a quality workflow step; update narrowly scoped AGENTS.md MVP release exception.
  • Add vercel.json git.deploymentEnabled:false to prevent the currently observed Vercel Git auto-deploy controller from competing with GitHub Actions for Production. This is a repository configuration change pending live verification after merge, not a cloud setting change performed from this draft.

Local verification (not GitHub-hosted execution)

  • Node contract suite: 14 total, 13 passed, 0 failed, 1 skipped (POSIX/symlink guard must run on Linux CI).
  • pnpm lint, pnpm exec next typegen, pnpm typecheck, pnpm format:check, pnpm build, Prettier check of workflow/test/config files, and git diff --check: passed on synced branch.
  • Production build routes: /, /_not-found, /icon.svg; /work.html intentionally no longer resolves. The earlier stale .next/dev/types cache was cleared in this worktree only, then typecheck/build passed.
  • Vercel project inspection: Git integration previously created CANCELED Production deployment attempts on main merges, including main@fa0483e; this does not establish successful Production release.
  • Scope verified in GitHub comparison: 9 files, exactly 1 commit ahead of main; no src/ changes, local tests/ folder, screenshots, or ignored Superpowers docs in PR. The two .github/tests/* contract files are intentionally tracked as governance-required Linux CI evidence.

Review focus and release blockers (MUST remain unresolved until verified)

  1. Independent workflow/security review, Linux PR CI (including skipped POSIX case), and actionlint/equivalent Actions schema validation. Tests only assert specified local contracts; no hosted Preview/Production deploy was performed.
  2. Deployment-controller exclusivity: verify git.deploymentEnabled:false actually suppresses Git-connected deployments for this project after merge. Confirm CLI via Actions remains the only authorized Production deployment path. Do not activate until confirmed.
  3. Protected Preview: independently confirm native Vercel SSO/all setting and postdeploy anonymous 302 behavior, without exposing private assets.
  4. Production project currently reports SSO for all deployments and no live public release; owner-approved public access configuration, exact domain/alias and prebuilt staging/promotion behavior must be separately validated only after rights/Production GO. A READY build or GitHub status is not proof of public availability.
  5. PER-7 content/identity/asset rights remain unapproved. Public release remains blocked, independent of this PR.
  6. GitHub protected-main review/rulesets, production Environment approvals, tokens/vars, rollback drill, and human visual acceptance must be verified before First Release.
  7. Do not enable PRODUCTION_CD_ENABLED or PUBLIC_CONTENT_APPROVED, do not dispatch production.yml, and do not merge merely because CI passes. Separate explicit Production First Release GO and later autonomous activation GO remain required.

Status

DRAFT — code review and hosted CI only; NO MERGE / NO PRODUCTION DEPLOY AUTHORIZATION.
Linear: https://linear.app/bobona/issue/PER-21/vercel-cd-protected-preview-controlled-first-release-autonomous
Vercel config docs: https://vercel.com/docs/project-configuration/git-configuration

Add controlled First Release and disabled-by-default autonomous Vercel Actions, protect Preview pre-upload, track workflow contract tests, and disable duplicate Vercel Git deployments. Sync with main after PR #28 and remove obsolete /work.html smoke expectation.
@linear-code

linear-code Bot commented Nov 21, 2026

Copy link
Copy Markdown

PER-21

@pebbDev
pebbDev marked this pull request as ready for review November 21, 2026 09:44
@pebbDev
pebbDev requested a review from febriyadi as a code owner November 21, 2026 09:44
Copilot AI balanced review requested due to automatic review settings November 21, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@febriyadi
febriyadi merged commit cf86311 into main Nov 21, 2026
1 check 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.

3 participants