Repository navigation
Closed as not planned
Closed as not planned
Enhancement
Copy link
Labels
area: docsDocumentation, examples, guides, or docs buildarea: e2eEnd-to-end tests, nightly failures, or validation infrastructure
Description
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
- Remove, replace, or independently amend every placeholder assertion group that would otherwise hide an audit row
- Reconcile
docs/e2e-audit-work-queue.mdagainst final scenario contracts, expected states, suite steps, assertion modules, and evidence reports - Update minimal
test/e2e-scenario/docs/README.mdandMIGRATION.mdsections needed to explain how to run the migrated coverage and read the audit-row report - Resolve TODOs introduced by this implementation
- Generate deterministic final coverage + audit-row report
- Do not delete legacy executable E2E tests in this phase — list deletion candidates only
Required 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) - Reports byte-identical across two consecutive runs (deterministic)
Docs
-
test/e2e-scenario/docs/README.mdupdated with: contract model, status vocabulary, final wave status -
test/e2e-scenario/docs/MIGRATION.mdupdated with: current migration state, deletion-readiness criteria
Hygiene tests
- Vitest test that fails if any queue row is marked complete with metadata-only evidence
- Vitest test that fails if any unresolved row lacks an owner / follow-up
- Vitest test that fails if any placeholder/no-op assertion group remains marked complete
- Vitest test that fails if any legacy
test/e2e/test-*.shis deleted in this phase
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.mdand 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-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)
- 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.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. - Steps
- Filter rows AQ-063…AQ-065; render reports twice; list legacy
test/e2e/test-*.shscripts; 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.
- Filter rows AQ-063…AQ-065; render reports twice; list legacy
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-completewithout 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-completeoraudit-amendedwith reviewer-visible rationale; AQ-063/064/065 flipped toevidence-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-*.shfrom 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-completebefore 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.
Metadata
Metadata
Assignees
Labels
area: docsDocumentation, examples, guides, or docs buildarea: e2eEnd-to-end tests, nightly failures, or validation infrastructure
Activity
cv commentedon Jun 2, 2026
Tracking update: opened PR #4649 to remove repo-local E2E migration state and keep mutable migration status in GitHub issues/PRs instead.
This aligns with this phase's final reconciliation role: durable framework guidance stays in repo docs, while current audit-row status, deletion readiness, and follow-up rationale should be tracked here and in the PRs that land each batch.
docs(e2e): keep migration state in issues (#4649)
cv commentedon Jun 8, 2026
Architecture clarification for this audit phase: per #3588 and #4939, read this phase body as acceptance coverage, not as a durable requirement to add or keep YAML resolver or bash-runner deliverables.
The repo may use YAML/bash as bridge infrastructure while the migration is underway, but phase completion should ultimately be proven in the single scenario runner, with shell limited to host/sandbox/process/platform boundaries where shell is the actual system interface. If a bridge PR lands work for this phase, please record the single-runner porting requirement or explicit deferral on the owning issue/PR thread.
docs(e2e): clarify single-runner scenario target (#4939)
1 remaining item
test(e2e): add migration inventory deletion gates (#4969)
cv commentedon Jun 9, 2026
Status update for the Vitest E2E migration stack: implemented #5052,
test(e2e): extend migration inventory to scenario runner internals.What changed in #5052:
internalSurfacestotest/e2e-scenario/migration/legacy-inventory.jsonso final reconciliation tracks coarse legacy runner internals, not only directtest/e2e/test-*.shentrypoints.Focused verification passed:
npx vitest run --project e2e-scenario-framework test/e2e-scenario/framework-tests/e2e-migration-inventory.test.ts test/e2e-scenario/framework-tests/e2e-migration-inventory-lock.test.ts --silent=false --reporter=default#5052 remains draft while its base #5046 is still open, but it now has implementation content and CI is running.
cv commentedon Jun 9, 2026
Status update for #5052: the PR now has implementation content and its CI is green.
Follow-up from the earlier update:
node_modulessymlink removal.static-checks,checks, CLI shards/aggregate, build-typecheck, plugin tests, CodeQL, WSL, and macOS.#5052 remains draft only because its base #5046 is still open. Functionally, the inventory-internals PR is now implemented and green on its stack branch.
cv commentedon Jun 9, 2026
Status update for deletion-readiness tracking: #5055 is implemented, out of draft, and green on head
1673c1f1b54c03a18fbda7c3fb60967ebd4157c6.#5055 deliberately does not delete direct legacy executable E2E scripts. Instead, it tightens the #4357 deletion gate for the smoke/onboarding slice:
test/e2e/test-*.shrows remainstatus: "not-migrated"anddeletionReady: falseuntil whole-script parity is proven.legacy-onboarding-assertion-workersinternal surface is now recorded as covered bytest/e2e-scenario/live/registry-scenarios.test.ts, but also remainsdeletionReady: falsebecause the YAML/bash bridge and assertion registry still reference those shell files.MIGRATION.mdnow documents that partial domain coverage can be recorded without making a broad legacy entrypoint deletion-ready.Validation:
e2e-scenario-frameworksuite passed: 27 files / 342 tests.npm run typecheck:cli, touched-fileprekhooks, andgit diff --checkpassed locally.This should satisfy the deletion-readiness intent for this slice: record the covered narrow surface, preserve bridge dependencies, and keep executable legacy E2Es in place until final parity evidence exists.
test(e2e): extend migration inventory to scenario runner internals (#…
jyaunches commentedon Jun 10, 2026
Closing as superseded by #5098.
The "final audit reconciliation" framing inherited from #3588 (closed) is replaced by #5098 Phase 8 — KEEP_BASH governance, which lands the deletion guards and quarterly drift audit for permanently-shell tests.
Note for implementers: This issue is still referenced in
test/e2e-scenario/framework-tests/e2e-migration-inventory.test.ts:entry.ownerIssueregex/^#(?:3588|434[7-9]|435[0-7]|4941)$/entry.deletionApprovalIssuehard-coded to"#4357"#5098's Phase 0 PR-1 (inventory schema bump) is the natural place to update both — most likely repointing
deletionApprovalIssueto#5098or a Phase 8 sub-issue, and broadening theownerIssueregex to accept#5098. Closing this issue does not break the test (closed issues remain referenceable by number); the swap is a cleanup task during the schema bump.test(e2e): add free-standing live test + CI job for openshell version…
inventory: mark test-openshell-version-pin covered by live test
test(onboard): retire test-docker-unreachable-gateway-start.sh (#4355)
test(e2e): migrate test-openshell-version-pin.sh to free-standing Vit…
test(e2e): add openclaw-tui-chat-correlation free-standing live test …
test(e2e): mark test-onboard-resume.sh as covered after typed migration
chore(e2e): mark openclaw-tui-chat-correlation as covered