# Sprint 4 Closeout

Sprint 4 focused on release discipline, regression safety, and deploy-time confidence.

## Completed

- Added a pre-release gate with PHP lint and full smoke coverage:
  - [scripts/pre_release_gate.ps1](/C:/xampp82/htdocs/CCW/scripts/pre_release_gate.ps1:1)
  - [scripts/ci_pre_release_gate.ps1](/C:/xampp82/htdocs/CCW/scripts/ci_pre_release_gate.ps1:1)
- Added a post-deploy read-only spot check:
  - [scripts/post_deploy_spot_check.ps1](/C:/xampp82/htdocs/CCW/scripts/post_deploy_spot_check.ps1:1)
  - [scripts/ci_post_deploy_spot_check.ps1](/C:/xampp82/htdocs/CCW/scripts/ci_post_deploy_spot_check.ps1:1)
- Expanded smoke coverage to include:
  - order flow
  - customer search
  - booking deposit
  - quick service
  - branch-scope isolation
  - admin/support and service management
- Added persistent branch-scope probe account tooling:
  - [scripts/ensure_branch_scope_probe_account.ps1](/C:/xampp82/htdocs/CCW/scripts/ensure_branch_scope_probe_account.ps1:1)
- Added workflow examples for CI and post-deploy:
  - [.github/workflows/pre-release-gate.yml](/C:/xampp82/htdocs/CCW/.github/workflows/pre-release-gate.yml:1)
  - [.github/workflows/post-deploy-spot-check.yml](/C:/xampp82/htdocs/CCW/.github/workflows/post-deploy-spot-check.yml:1)
- Added release/runbook documentation:
  - [docs/smoke-uat-runbook.md](/C:/xampp82/htdocs/CCW/docs/smoke-uat-runbook.md:1)
  - [docs/release-checklist.md](/C:/xampp82/htdocs/CCW/docs/release-checklist.md:1)
  - [docs/ci-pipeline-gate.md](/C:/xampp82/htdocs/CCW/docs/ci-pipeline-gate.md:1)
  - [docs/branch-scope-probe-account.md](/C:/xampp82/htdocs/CCW/docs/branch-scope-probe-account.md:1)

## CI / Artifact Improvements

- CI wrappers now support transcript and summary export through `CCW_CI_ARTIFACT_DIR`
- Workflow examples upload logs as artifacts even when the gate fails
- Workflow examples append compact summaries to `GITHUB_STEP_SUMMARY`
- Workflow examples now include timeouts so failed runs stop sooner

## Result

- The team can run one command before release and one command after deploy
- Branch-scope isolation can now be checked in both smoke and post-deploy paths
- Failure triage is faster because CI keeps transcripts and summaries as artifacts
- The repo now has a repeatable release gate instead of relying on tribal knowledge

## Verification Baseline

- [scripts/pre_release_gate.ps1](/C:/xampp82/htdocs/CCW/scripts/pre_release_gate.ps1:1)
- [scripts/smoke_system_suite.ps1](/C:/xampp82/htdocs/CCW/scripts/smoke_system_suite.ps1:1)
- [scripts/post_deploy_spot_check.ps1](/C:/xampp82/htdocs/CCW/scripts/post_deploy_spot_check.ps1:1)
- [scripts/ci_pre_release_gate.ps1](/C:/xampp82/htdocs/CCW/scripts/ci_pre_release_gate.ps1:1)
- [scripts/ci_post_deploy_spot_check.ps1](/C:/xampp82/htdocs/CCW/scripts/ci_post_deploy_spot_check.ps1:1)

## Recommended Next Steps

- Wire real staging/production secrets into the workflow examples
- Add one browser-based spot check for critical UI regressions
- Start collecting basic release metrics such as gate duration and flaky test rate
