Deployment Proof Steps - Readiness Org Header Fix
Date
2026-02-07Objective
Verify that/api/v1/intake/* endpoints (specifically readiness) include x-org-id header after deployment, and that readiness correctly reflects saved business configurations.
Prerequisites
- Frontend deployed to Vercel (production URL:
https://payroll-pipeline-cbs.vercel.app) - User logged in with org context (
cbs-main) - Test business ID:
a7ac092572c6fa5c - Test period:
2025-12-01
Verification Steps
Step 1: Open Browser DevTools
- Navigate to:
https://payroll-pipeline-cbs.vercel.app/ingestion - Open Chrome DevTools (F12)
- Go to Network tab
- Clear network log (trash icon)
- Filter by:
readinessorsave
Step 2: Navigate to Preflight Step
- Set period to:
2025-12-01 - Click through wizard steps until you reach Preflight step
- Note the
batch_idfrom the URL or network requests
Step 3: Save Business Configuration
- Find business
a7ac092572c6fa5cin the preflight list - Click Configure (or equivalent button)
- Set configuration:
- Mode:
AGENT_PEPM - PEPM Rate:
12.00 - Effective Start Date:
2025-12-01
- Mode:
- Click Save
Step 4: Verify Save Request Headers
In Network tab, find thePUT request to:
- ✅ Status:
200 OK - ✅ Request Headers include:
x-org-id: cbs-main - ✅ Response includes
assignment_idsandpepm_assignment_ids
x-org-id: cbs-main
Step 5: Verify Readiness Request Headers
In Network tab, find theGET request(s) to:
- ✅ Status:
200 OK - ✅ Request Headers include:
x-org-id: cbs-main⚠️ CRITICAL - This was missing before fix - ✅ Response includes
readinessobject with business IDs
x-org-id: cbs-main on readiness endpoint
Step 6: Verify Readiness Response
Inspect the readiness response JSON: Required assertions:- ✅ Business
a7ac092572c6fa5cexists inreadinessobject - ✅
readiness[a7ac092572c6fa5c].is_ready === true⚠️ CRITICAL - Was false before fix - ✅
readiness[a7ac092572c6fa5c].reasonsdoes NOT include “Business not onboarded” - ✅ Summary shows
ready_count > 0(not0/113)
is_ready: true for the saved business
Step 7: Verify UI State
- Check the preflight UI:
- ✅ Readiness count updates (e.g.,
1/113 readyinstead of0/113) - ✅ Business
a7ac092572c6fa5cshows as “Ready” or green indicator
- ✅ Readiness count updates (e.g.,
- Close and reopen the drawer for the same business:
- ✅ Saved PEPM rate (
12.00) is visible - ✅ Configuration persists
- ✅ Saved PEPM rate (
Step 8: Hard Refresh Test
- Hard refresh the page (Ctrl+Shift+R or Cmd+Shift+R)
- Navigate back to Preflight step
- Open drawer for business
a7ac092572c6fa5c
- ✅ Configuration still persists (PEPM rate
12.00visible) - ✅ Readiness still shows
is_ready: true
Expected Network Flow
Failure Indicators
If any of these occur, the fix did not work:- ❌ Readiness
GETrequest does NOT includex-org-idheader - ❌ Readiness response shows
is_ready: falsefor saved business - ❌ Readiness response shows
reasons: ["Business not onboarded"]for saved business - ❌ Readiness count remains
0/113after save - ❌ UI does not update to show business as ready
Success Criteria
✅ All assertions pass → Fix is working correctlyPost-Verification
After successful verification:- Update
docs/READINESS_ORG_HEADER_FIX_SUMMARY.md:- Change status to:
✅ VERIFIED IN PRODUCTION - Add verification date and tester name
- Attach screenshots
- Change status to:
- Commit verification evidence:
Rollback Plan
If verification fails:- Check Vercel deployment logs for build errors
- Verify frontend SHA matches expected commit
- Check browser console for JavaScript errors
- Verify
x-org-idheader is being injected by checkingapiClient.tscode - If needed, rollback to previous deployment