# AGENT-PROMPT-v5-P1-1a-d2 — Closure

**Date:** 2026-08-05
**Follows:** `docs/AGENT-PROMPT-v5-P1-1a-d2.md` + `docs/AGENT-PROMPT-v5-P1-1a-d2-amendment-1.md`
**Authority:** Miguel. The base prompt and Amendment 1 remain in force; this closure prompt adds
the commit authorization and lists the outstanding duties verbatim. Nothing here reopens design.

## Standing of the work

Deliverable 2 is implemented and verified in the working tree — `docs/p1-1a-d2-status.md` records
the sixteen checks with per-check source citation, the resolved source differences, both
adversarial review rounds (the second, `proc_06a923bbda7a`, already incorporated), and the clean
verification: 28/28 focused, 629/629 unit, 10/10 disposable-PostgreSQL, 0 warnings, 0 residual
containers, prototype worktree untouched at the pin. That work is accepted for commit as it
stands. What remains is closure: the diff is uncommitted and four record duties from the base
prompt's Step 2 and Amendment 1 §4 were not performed. Do them now, in this order.

## 1 · Record corrections (before the commit, so they ride in it)

1. **`docs/p1-1a-status.md` — the Step 2 amendment, still missing.** Its Scope section still
   reads "No shared/persistent database migration, live-data import, external deletion,
   deployment, commit, push, merge, or rebase was performed" — git records `e2f4c2a` committed
   and pushed at 17:08:56 UTC. Amend it to state what actually happened, keeping the true parts
   (no shared or persistent database migrated, no live data, no external deletion, no deployment,
   no merge, no rebase). Do not delete the section — correct it and say it was corrected.
2. **`docs/PROJECT-STATE.md` — O6 and the changelog.** Rewrite the O6 row: not a mechanical
   clone block but a P1-0c-class category error — `Scripts/validate_registry.py` never existed
   as a tracked file anywhere; Amendment 1 replaced the source gate with the documented check
   set; the validation service is implemented and verified, and O6 closes with this commit.
   Update the §1 header line and the P1-1a phase-table row to match. Add changelog rows dated
   2026-08-05 for: the rediagnosis + Amendment 1, and the d2 implementation (checks, review
   rounds, verification numbers, and the fact the records were corrected in this closure).
   Record the escalated open decision: `CaptureQuality` nullable-with-default versus backfill —
   Miguel's, blocks nothing else.
3. **`docs/project-todo.md` — the validation-service item.** Tick it, and annotate per
   Amendment 1 §4: "port of the documented check set — the script never existed"; note the two
   session-derived counts ("640 rows", "1,425 of 1,475") are indicative, not authoritative; the
   orphan-DOCLOG and bijection items are implemented per `docs/p1-1a-d2-status.md`.
4. **`docs/p1-1a-d2-status.md` — final state line.** Update its State line from "uncommitted"
   to record the commit hash and push once step 2 below completes, and note the record
   corrections above were performed with it.

## 2 · Commit and push

One commit on `feature/p1-0d-follow-up` containing the d2 diff plus the record corrections
above, pushed to origin. Constraints:

- A clean multi-line commit body with real newlines — `e2f4c2a`'s literal `\n` escape defect
  must not recur. Verify with `git log -1 --format=%B` after committing.
- No history rewrite: `e2f4c2a` stays as it is, defect recorded.
- Before committing: rerun `dotnet build` (0 warnings), the default test suite, and the
  disposable-database runner; confirm 0 residual containers and `git diff --check` clean.
  If any of these regress, stop and report — do not commit a red tree.
- No real prototype value in the commit message, the diff, or any document. The prototype
  clone stays untouched.

## 3 · Out of scope, unchanged

Everything in "What you may not do" stands: no P1-1b import, no shared/persistent database, no
live data, no draft changes, no prototype edits (its SKILL.md false live-gate claims remain the
prototype owner's, tracked on his roadmap). The `CaptureQuality` decision is escalated, not
taken. After the push, report: commit hash, verification numbers, and the exact list of what
P1-1a acceptance still waits on.
