# Next Steps After v13

## Immediate next step — required

Run full PHP/MySQL staging regression.

Use these files in order:

1. `FINAL_HANDOFF_SUMMARY.md`
2. `FINAL_REGRESSION_PLAN.md`
3. `STAGING_TEST_REPORT_TEMPLATE.md`
4. `RELEASE_CHECKLIST.md`
5. `CPANEL_DEPLOYMENT.md`
6. `GO_LIVE_RUNBOOK.md`

## Commands to run in staging

```bash
cd mvc
./scripts/static_preflight.sh
./scripts/php_lint_all.sh
DB_NAME=aarjay_gdp_regression MYSQL_USER=root ./scripts/test_install_sql.sh
BASE_URL=https://staging.example.com ./scripts/regression_smoke_test.sh
```

## Browser checks

- Login as admin
- Visit `/system-health`
- Visit `/gdp-gap-analysis`
- Visit every main sidebar module
- Create/edit/view test records in high-risk modules

## Main pending work

### Blocking before production

- Runtime PHP lint
- MySQL import validation
- Installer validation
- Route smoke test
- Permission matrix test
- Upload folder permission test

### Optional future enhancements

- Real Xero/QuickBooks OAuth integration
- Real cold-chain portal API integration
- Real QR-code library integration
- Real LLM/API-backed AI report writing
- More polished Excel/PDF accountant export formats
- Data migration from legacy spreadsheets/production system

## Recommended next package

If staging reveals bugs, the next ZIP should be a patch release, e.g. `v13.1.zip`, containing only fixes from regression findings.
