FORGE-149: make production delivery acceptance runnable end to end #896

Merged
gmackie merged 1 commit from FORGE-149-production-acceptance into main 2026-10-19 05:10:35 +00:00
Owner

FORGE-149

Production delivery acceptance (the ancestor_deploy receipt for PRs superseded in production) has never run: there are zero verification runs fleet-wide. Bringing it up for Veritas (VERI-9's PRs #99 and #101) exposed three defects on that path:

  • Suites never reached the hub for nix/mise repos. Only the manifest runner shipped [verification.suites]. The hub now reads forge-ci.toml at the commit of each passed default-branch build that didn't ship suites. Feature branches never change suites, because a stale branch would retire a suite and a re-added one would be activated too late to cover existing deployments. A missing file retires suites; a failed read changes nothing.
  • text[] columns come back as their literal ("{playwright}"), because production's client has fetch_types: false. Queuing a run threw when copying a definition's capabilities, and claim matching compared characters. Both now go through capabilityList.
  • Authenticated acceptance needs a credential. A suite can name stage secrets (config.secrets). The claim decrypts them into the suite environment, and only runners on the stage's node or the node that ran the deployment may claim such runs (the agent secrets endpoint's rule). Values never touch the definition, run or attempt rows.

Tests:

  • secrets.database.test.ts drives sync → queue → claim → secret delivery against the real routes on rows shaped like production's.
  • Unit tests cover the manifest reader, ci-report sync rules, and secret holder selection.
  • The local PGlite lane can't run concurrent-writer tests (report-race and latest-ci-build-race time out both with and without this change); CI runs them.

🤖 Generated with Claude Code

FORGE-149 Production delivery acceptance (the `ancestor_deploy` receipt for PRs superseded in production) has never run: there are zero verification runs fleet-wide. Bringing it up for Veritas (VERI-9's PRs #99 and #101) exposed three defects on that path: - **Suites never reached the hub for nix/mise repos.** Only the manifest runner shipped `[verification.suites]`. The hub now reads `forge-ci.toml` at the commit of each passed default-branch build that didn't ship suites. Feature branches never change suites, because a stale branch would retire a suite and a re-added one would be activated too late to cover existing deployments. A missing file retires suites; a failed read changes nothing. - **`text[]` columns come back as their literal** (`"{playwright}"`), because production's client has `fetch_types: false`. Queuing a run threw when copying a definition's capabilities, and claim matching compared characters. Both now go through `capabilityList`. - **Authenticated acceptance needs a credential.** A suite can name stage secrets (`config.secrets`). The claim decrypts them into the suite environment, and only runners on the stage's node or the node that ran the deployment may claim such runs (the agent secrets endpoint's rule). Values never touch the definition, run or attempt rows. Tests: - `secrets.database.test.ts` drives sync → queue → claim → secret delivery against the real routes on rows shaped like production's. - Unit tests cover the manifest reader, ci-report sync rules, and secret holder selection. - The local PGlite lane can't run concurrent-writer tests (report-race and latest-ci-build-race time out both with and without this change); CI runs them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
FORGE-149: make production delivery acceptance runnable end to end
All checks were successful
CI / superseded (pull_request) Successful in 1s
CI / gitleaks (pull_request) Successful in 12s
CI / storybook (pull_request) Successful in 2m11s
CI / go (pull_request) Successful in 1m14s
CI / unit-api (pull_request) Successful in 3m34s
CI / checks (pull_request) Successful in 3m49s
CI / web-build (pull_request) Successful in 4m5s
CI / unit-web (pull_request) Successful in 5m29s
CI / database-d1 (pull_request) Successful in 4m53s
CI / database (pull_request) Successful in 6m34s
forgegraph/ci CI passed
CI / ci (pull_request) Successful in 41s
Preview / cleanup (pull_request) Successful in 30s
Preview / deploy (pull_request) Has been skipped
Preview / e2e (pull_request) Has been skipped
075cd2f210
Production verification had never run (zero runs fleet-wide), so the
ancestor_deploy receipt for superseded PRs could not be produced. Three
defects stood in the way:

- Suites only synced from manifest-runner builds. Nix and mise repos
  could never declare one; the hub now reads forge-ci.toml at each
  passed default-branch build. Feature branches never change suites.
- text[] columns come back as their literal with type fetching off, so
  queuing a run threw on the definition's capabilities and claim
  matching saw characters instead of capabilities.
- Acceptance that exercises authenticated features needs a credential.
  A suite now names stage secrets; the claim resolves them for runners
  on the stage's node or the node that ran the deployment only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Worker Preview: https://pr-896.previews.forgegraf.com (updates on every push; behind Cloudflare Access, D1 fg-pr-896)

<!-- forgegraph-preview --> Worker Preview: https://pr-896.previews.forgegraf.com (updates on every push; behind Cloudflare Access, D1 `fg-pr-896`)
Author
Owner

Preview environment is live: https://pr-896-forgegraph.forgegraf.com

Deployed 075cd2f2 with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.

Preview environment is live: https://pr-896-forgegraph.forgegraf.com Deployed `075cd2f2` with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.
Sign in to join this conversation.
No description provided.