Phase 11: Final Audit Reconciliation
Parent epic: #3588
Goal
Final reconciliation of the audit-coverage work. Every audit row must be evidence-complete or audit-amended with reviewer-visible rationale; every placeholder/no-op assertion group must be removed, implemented, or independently amended out of scope; deterministic final reports must reconcile scenario contracts, expected states, suite steps, assertion modules, and evidence reports without deleting legacy executable E2E tests.
Audit rows in scope
| AQ |
Phase |
Subject |
Required coverage |
Boundary |
Planned scenario/assertion |
| AQ-063 |
11 |
test/e2e/docs/*, coverage reports, expected states, scenarios, suites metadata |
Final reports reconcile all queue rows, expected states, suite steps, scenario metadata — without deleting legacy scripts. |
host CLI |
final reconciliation report assertions |
| AQ-064 |
11 |
Placeholder/probe-only typed assertions |
Placeholder assertion groups removed, implemented, or independently amended out of scope. |
host CLI |
placeholder cleanup assertions |
| AQ-065 |
11 |
Legacy script deletion readiness |
Legacy scripts remain until every queue row is evidence-complete or audit-amended with reviewer-visible rationale. |
host CLI |
deletion readiness assertion |
Reconciliation tasks
Required deliverables
Reports
Docs
Hygiene tests
Validation scenarios — all must pass in PR workflow artifacts
Scenario 11.1 — Final work queue has no completed metadata-only or ownerless unresolved entries (Happy Path)
- Given
docs/e2e-audit-work-queue.md and final scenario evidence reports available.
- When Final hygiene validation runs.
- Then No metadata-only row is presented as complete audit coverage; every unresolved row has owner/follow-up; completed rows have executable evidence or independent audit amendment rationale.
- Steps
- Read queue rows AQ-001…AQ-065; collect final PR workflow evidence reports.
- Run final hygiene tests in workflow.
- Verify every queue row is present in PR workflow evidence with
evidence-complete or approved audit-amended; no completed metadata-only rows; no ownerless unresolved rows remain.
Scenario 11.2 — Placeholder assertion groups are removed, implemented, or independently amended out of scope (Sad Path)
- Given A placeholder/no-op assertion group remains and is marked complete.
- When Final hygiene validation runs.
- Then Validation fails until the placeholder is removed, replaced by a real module, or covered by an independent audit amendment rationale.
- Steps
- Filter rows AQ-063…AQ-065; leave or inject placeholder assertion group in final metadata.
- Run final hygiene tests.
- Verify failure; placeholder group named; affected queue rows unresolved until real module or approved amendment exists.
Scenario 11.3 — Docs and deterministic reports are updated without deleting legacy scripts (Happy Path)
- Given Implementation is complete and legacy scripts remain in place.
- When Docs and reports are checked.
- Then
test/e2e-scenario/docs/README.md and test/e2e-scenario/docs/MIGRATION.md document contract model/status vocabulary/final wave status; generated reports are deterministic; legacy script deletion candidates are listed but scripts are not deleted.
- Steps
- Filter rows AQ-063…AQ-065; render reports twice; list legacy
test/e2e/test-*.sh scripts; collect PR workflow artifacts.
- Compare report outputs and run docs hygiene tests.
- Verify rows evidence-complete only when artifacts prove docs contain required sections, reports are byte-identical, legacy scripts still exist.
Acceptance criteria — issue is NOT DONE until ALL are true
- PR landed in
test/e2e-scenario/ with reports, docs, and hygiene tests above.
- PR CI passing:
- All hygiene tests pass
- Report deterministic (byte-identical across two runs)
- No queue row marked
evidence-complete without stable assertion ID + evidence path
- No unresolved row without owner / follow-up
- Validation Scenarios 11.1–11.3 all pass in PR workflow artifacts.
- Audit work queue final pass: every row AQ-001 through AQ-062 is
evidence-complete or audit-amended with reviewer-visible rationale; AQ-063/064/065 flipped to evidence-complete.
- Phase-specific validation gate (from spec): no metadata-only entry presented as satisfying an audit row; no unresolved audit row remains without owner / follow-up; all fixture cleanup/restore obligations documented and tested; legacy executable E2E tests remain in place — deletion is outside this spec.
- No-cheat gate: zero metadata-only completions.
- Legacy preservation gate: every legacy
test/e2e/test-*.sh from the spec's in-scope list still exists in the repo.
- PR description references AQ-063/064/065, links this issue.
Dependencies
- All of Phases 1–10 must be
evidence-complete before this phase can complete.
- Audit work queue rows AQ-001 through AQ-062 fully resolved.
Out of scope
- Legacy script deletion (handled as a separate later approval, outside this scope)
- New scenario coverage (must be added in earlier phases or as audit amendment)
Cross-phase acceptance gates (apply to every phase)
- Setup gate — scenario contract declares environment, manifest or no-manifest reason, fixtures, runtime actions, assertions.
- No-cheat gate — preview/dry-run output cannot mark an audit row complete.
- Boundary gate — assertions touch the same SUT boundary as the legacy script.
- Evidence gate — every assertion emits an evidence path and stable assertion ID.
- Secret gate — no manifest, log, report, or fixture file contains raw secrets.
- Cleanup gate — fixtures that mutate host or repo state have restore/cleanup logic and tests.
- Audit completeness gate — every assigned audit row has owner, planned scenario/assertion, phase assignment, evidence status.
- Phase completion gate — phase complete only when every assigned row has executable evidence (or independent audit amendment).
- Executable assertion gate — completed scenarios point to concrete suite steps / assertion modules, not
pendingStep(...), TODOs, generic probes, or prose.
Phase 11: Final Audit Reconciliation
Parent epic: #3588
Goal
Final reconciliation of the audit-coverage work. Every audit row must be
evidence-completeoraudit-amendedwith reviewer-visible rationale; every placeholder/no-op assertion group must be removed, implemented, or independently amended out of scope; deterministic final reports must reconcile scenario contracts, expected states, suite steps, assertion modules, and evidence reports without deleting legacy executable E2E tests.Audit rows in scope
test/e2e/docs/*, coverage reports, expected states, scenarios, suites metadataevidence-completeoraudit-amendedwith reviewer-visible rationale.Reconciliation tasks
docs/e2e-audit-work-queue.mdagainst final scenario contracts, expected states, suite steps, assertion modules, and evidence reportstest/e2e-scenario/docs/README.mdandMIGRATION.mdsections needed to explain how to run the migrated coverage and read the audit-row reportRequired deliverables
Reports
test/e2e-scenario/runtime/reports/final-audit-row-report.json(machine-readable)test/e2e-scenario/runtime/reports/final-audit-row-report.md(human-readable)Docs
test/e2e-scenario/docs/README.mdupdated with: contract model, status vocabulary, final wave statustest/e2e-scenario/docs/MIGRATION.mdupdated with: current migration state, deletion-readiness criteriaHygiene tests
test/e2e/test-*.shis deleted in this phaseValidation scenarios — all must pass in PR workflow artifacts
Scenario 11.1 — Final work queue has no completed metadata-only or ownerless unresolved entries (Happy Path)
docs/e2e-audit-work-queue.mdand final scenario evidence reports available.evidence-completeor approvedaudit-amended; no completed metadata-only rows; no ownerless unresolved rows remain.Scenario 11.2 — Placeholder assertion groups are removed, implemented, or independently amended out of scope (Sad Path)
Scenario 11.3 — Docs and deterministic reports are updated without deleting legacy scripts (Happy Path)
test/e2e-scenario/docs/README.mdandtest/e2e-scenario/docs/MIGRATION.mddocument contract model/status vocabulary/final wave status; generated reports are deterministic; legacy script deletion candidates are listed but scripts are not deleted.test/e2e/test-*.shscripts; collect PR workflow artifacts.Acceptance criteria — issue is NOT DONE until ALL are true
test/e2e-scenario/with reports, docs, and hygiene tests above.evidence-completewithout stable assertion ID + evidence pathevidence-completeoraudit-amendedwith reviewer-visible rationale; AQ-063/064/065 flipped toevidence-complete.test/e2e/test-*.shfrom the spec's in-scope list still exists in the repo.Dependencies
evidence-completebefore this phase can complete.Out of scope
Cross-phase acceptance gates (apply to every phase)
pendingStep(...), TODOs, generic probes, or prose.