# AARJAY GDP Portal — Controlled Baseline Freeze

**Status:** Identified / baseline captured  
**Label:** Advanced GDP portal validation candidate undergoing controlled remediation  
**UTC:** 2026-07-18T23:15:49Z  

## Identity

| Item | Value |
|------|--------|
| Source tree | `/Users/sagar/Downloads/AARJAY_GDP_Portal/mvc` |
| Application label | `validation-candidate-pre-remediation` |
| Git commit | **Not available** — `.git` was not present at freeze time |
| Remediation branch | **Deferred** until `git init` / remote baseline is authorised |
| Migration floor (filenames) | **282** (`282_phase1bk_product_redesign_floor_282.sql`) |
| `schema_migrations_applied` count | **256** |
| Max applied numeric key | **282** |
| Live DB | `aarjay_gdp` (MySQL 9.5 via `/Users/sagar/gdp-portal-runtime/mysql.sock`) |

## Artefacts

| Artefact | Path |
|----------|------|
| Primary restore dump (GTID-safe) | `db/aarjay_gdp_20260718_161531_nogtid.sql` (+ `.gz` if present) |
| Earlier dump (GTID may block restore) | `db/aarjay_gdp_20260718_161504.sql` — **do not use for restore** |
| Uploads archive | `uploads/uploads_20260718_161504.tar.gz` |
| Source tree fingerprint | `source_tree.sha256` |
| Restore evidence | `evidence/restore_verify.txt` |
| PHP lint evidence | `evidence/php_lint_all.txt` |
| Meta | `BASELINE_META.txt` |

## Restore verification (executed)

1. Created separate DB `aarjay_gdp_baseline_restore_verify`.
2. Imported GTID-safe dump with `--set-gtid-purged=OFF`.
3. Compared row counts for core tables vs live — **MISMATCH_COUNT=0**.
4. Confirmed `schema_migrations_applied` max key **282**, count **256**, tables **150**.

## Post-freeze note

Immediately after freeze capture, release-blocker view syntax errors were corrected:

- `app/Views/dispatches/view.php` — removed orphan `endif`
- `app/Views/goods_receivings/view.php` — removed orphan `endif`

Full-tree `scripts/php_lint_all.sh` then passed (see evidence). Treat those two file edits as the first remediation delta after baseline, not as part of the frozen byte-identical tree.

## Controlled description (mandatory)

> Advanced GDP portal validation candidate undergoing controlled remediation, security hardening, transactional-integrity testing and formal UAT.

Do **not** describe this baseline as production-ready, MHRA approved, certified compliant, or fully validated.
