OWNER_ROLLUP Auto-Confirm — Deploy + Prod Proof
Feature: Auto-confirm OWNER_ROLLUP on save (run-scoped). Business becomes Ready for Ingest immediately after save with no extra confirmation step. Tenant: creative_benefit_strategiesPeriod: 2025-12-01
0. Pre-deploy (completed)
| Item | Value |
|---|---|
| Branch | feat/owner-rollup-auto-confirm |
| Commit | 8bb30da |
| PR link | https://github.com/abundy1/payroll-pipeline-cbs/pull/new/feat/owner-rollup-auto-confirm |
| Deploy workflow | .github/workflows/deploy_cloudrun.yml (triggers on push to main) |
1. Deploy Proof
| Item | Value |
|---|---|
| Workflow run ID | 21974556831 |
| Job ID | 63483190259 |
| Workflow run link | https://github.com/abundy1/payroll-pipeline-cbs/actions/runs/21974556831 |
| Cloud Run service | payroll-pipeline-cbs-api (payroll-bi-gauntlet, us-central1) |
| Cloud Run revision | (from “Creating Revision” step; run gcloud run revisions list --service=payroll-pipeline-cbs-api --region=us-central1 --limit=1 to get latest) |
| GIT_COMMIT_SHA | d2ced18 (full: d2ced1892a8d6e3e694d4e7886ff0f04978425da) |
| Validation date/time | (when prod validation was performed) |
/api/health returns matching git_commit_sha.
Note: This deploy used commit d2ced18. If the auto-confirm patch (84357df on feat/owner-rollup-auto-confirm) has not yet been merged to main, a separate deploy will run after merge with the new SHA.
2. Prod Validation — Save → Ready immediately
Prerequisite: Active run exists for tenant + period (batch_id present). Steps:- Save OWNER_ROLLUP for a business (e.g. via Business Onboarding save API or wizard).
- Call readiness for that batch_id.
- Business Onboarding row becomes Ready immediately (no separate confirm step).
is_ready == True,reasons == []for that business.
- business_id: ___________
- batch_id: ___________
- readiness response snippet: ___________
3. Idempotency Proof — No duplicate confirmations
Steps:- Save same OWNER_ROLLUP payload again for the same business.
- Verify still Ready; no duplicate confirmation artifacts.
4. Stop Conditions (report back if any occur)
- Row still shows Not Ready after save; readiness reason mentions confirmation
- Save returns 409/500 unexpectedly
- Duplicate confirmation rows after re-save
- Deployed SHA doesn’t match expected commit
5. Completion Checklist
| Criterion | Status |
|---|---|
| Deployed via GitHub Actions | □ |
| OWNER_ROLLUP save → Ready immediately | □ |
| Idempotent save; no duplicate confirmations | □ |
| BQ proof captured | □ |