Repository navigation
fix: validate exact Origin deployment probe target - #2546
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
🔍 PR Validation✅ Current validation passed. |
Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
There was a problem hiding this comment.
🟡 Changes recommended
The remaining probe mock returns an unnormalized URL, causing the existing PASS-receipt preservation assertion to receive HOLD and fail.
1 open issue
What changed in this PR
This PR tightens UVAI’s Origin G.A.T.E. evidence validation for #2410: a successful deployment probe must report the canonical signed target URL, otherwise the transition remains on HOLD. Deployment execution and provider ownership verification remain outside scope.
Changes:
- Require the probe’s final URL to match the canonical signed deployment URL.
- Normalize the Origin gate test mock and add regression coverage for substituted URLs.
| File | Description |
|---|---|
apps/web/src/lib/origin-gate.ts |
Holds transitions when the probe fails or reports a different URL. |
apps/web/src/lib/__tests__/origin-gate.test.ts |
Normalizes mock URLs and tests rejection of substituted probe URLs. |
Review effort: Balanced
| } | ||
| const probe = await probeLiveDeploymentUrl(proposal.target.liveUrl); | ||
| if (!probe.ok) { | ||
| if (!probe.ok || probe.finalUrl !== new URL(proposal.target.liveUrl).href) { |
Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
| expect(home).toContain('Your videos know what to do next.'); | ||
| expect(home).toContain('hashed Video Pack'); | ||
| expect(home).toContain('prepares proposed work and build rails for you to review in Studio'); | ||
| expect(home).toContain('Studio prepares proposed work and build rails for you to review.'); |
✅ E2E Test Results: ALL TESTS PASSED
Test Output |

Canonical issue
Linked automatically by the repository workflow.
Outcome
G.A.T.E. only accepts a successful reachability probe when its final URL matches the canonical URL of the signed deployment target. A substituted URL results in HOLD.
Scope
probe.finalUrlagainst the signed target and add a regression test for substituted URLs.ff075bccupdates the two stale assertions inapps/web/src/lib/__tests__/home-sell-surface.test.tsto the hero copy that Align landing hero promise with Studio review capability #2549 put on main (Studio prepares proposed work and build rails for you to review.). That stale test is the onlytest-frontendfailure on main and was the only failure on this PR. Same two-line change as chore(audit): fix stale home-sell-surface test #2568.Risk
Verification
Current head:
1e1b746npm test --workspace=apps/web -- src/lib/__tests__/origin-gate.test.ts src/lib/__tests__/live-deployment-probe.test.ts(130 passed, 26 skipped)Production evidence
No production deployment performed; this change only validates deployment evidence.
Agent handoff
Security dependency evidence
Not applicable; no dependency changes.