Repository navigation
fix: validate exact Origin deployment probe target - #2546
groupthinking with Copilot wants to merge 3 commits into
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 |

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.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.