P0 Discovery Deployment & Validation Report
Part 1: Deployment Status
Deployment Method
Cloud Build (viacloudbuild.yaml)
Commit Information
- Short SHA:
65c90d3 - Full SHA:
65c90d3351bc3981491bf8a047828300683f3da2 - Commit Message:
fix(p0): discover businesses from intake batch into onboarding registry
Deployment Command
Build Status
Status: ⏳ IN PROGRESS (running in background) To Check Build Status:git-sha=65c90d3
Verification Commands
1. Verify Revision SHA:GIT_COMMIT_SHA=65c90d3351bc3981491bf8a047828300683f3da2 (or GIT_COMMIT_SHA=65c90d3)
Part 2: Runtime Validation Steps
⚠️ MANUAL STEPS REQUIRED
The following steps require manual execution with real data and authentication:Step 2.1: Upload December Payroll
- Navigate to intake UI:
https://payroll-pipeline-cbs.vercel.app - Upload December payroll file
- Capture
batch_idfrom:- API response
- Browser network tab
- Backend logs
batch_id: UUID format (e.g., a1b2c3d4-e5f6-7890-abcd-ef1234567890)
Step 2.2: Debug Discovery Endpoint (Dry-Run)
Endpoint:- ✅
discovered_count > 0 - ✅ At least one of: AIC, Motor Medics, Auto Intensive Care of Savannah present
- ✅
invalid_period_countpresent (should be0ideally) - ✅
dry_run: truepresent - ✅
dim_upserted_count: 0(dry-run, no writes) - ✅
onboarding_upserted_count: 0(dry-run, no writes)
Step 2.3: Verify Discovery Auto-Runs on Intake
Discovery should run automatically after intake processing completes. Check Backend Logs:invalid_period_count > 0:
Step 2.4: Preflight / Readiness Check
- Navigate to Preflight / Readiness UI
- Refresh readiness check
- Expected: Newly discovered businesses appear under “Not ready for ingest”
- Businesses show as “Not ready”
- Reasons include: missing agent assignment, missing PEPM configuration, etc.
Step 2.5: Idempotency Check (No Duplicates)
Option A: Re-upload Same December Payroll- Upload same December payroll file again
- Refresh Preflight
- Expected: No duplicate entries in UI
- Call debug endpoint again with same
batch_id - Expected: Same
discovered_count, no new rows in BigQuery
Part 3: Success Criteria
✅ P0 Fully Closed if ALL are true:- ✅ Deployment: Latest revision shows
git-sha=65c90d3 - ✅ Debug Endpoint: Returns discovered businesses (dry-run verified, no writes)
- ✅ Auto-Discovery: Runs automatically on intake completion
- ✅ Preflight: Shows missing businesses as “Not ready for ingest”
- ✅ Idempotency: No duplicates on re-run (verified via BigQuery)
- ✅ Tenant Isolation: No cross-tenant data leakage
Part 4: Rollback (If Needed)
If validation fails or issues are discovered:Report Template
When validation is complete, report:- Cloud Run Revision ID:
{revision_name}withgit-sha=65c90d3✅ - Debug Endpoint JSON:
{snippet showing discovered business} - Preflight Screenshot/Log:
{evidence of business in "Not ready"} - Duplicate Check Result:
0 rows returned✅