|
1 | | -# PR_26175_ALFA_004-game-hub-completion-status-audit |
| 1 | +# PR_26175_ALFA_005-game-hub-audit-findings-cleanup |
2 | 2 |
|
3 | 3 | ## Purpose |
4 | | -Audit Game Hub table workflow completion status only. |
| 4 | +Clean up the targeted Game Hub audit findings from `PR_26175_ALFA_004-game-hub-completion-status-audit`. |
5 | 5 |
|
6 | 6 | ## Source Of Truth |
7 | | -This `BUILD_PR.md` is the source of truth for `PR_26175_ALFA_004-game-hub-completion-status-audit`. |
| 7 | +This `BUILD_PR.md` is the source of truth for `PR_26175_ALFA_005-game-hub-audit-findings-cleanup`. |
8 | 8 |
|
9 | 9 | ## Exact Scope |
10 | | -- Audit the Game Hub table workflow completion state. |
11 | | -- Produce `PASS`, `PARTIAL`, or `FAIL` status for every listed requirement with evidence paths. |
12 | | -- Use existing product code and tests as evidence. |
13 | | -- Run targeted validation for impacted Game Hub tests. |
14 | | -- Create required PR-specific reports and a repo-structured delta ZIP. |
| 10 | +- Resolve the targeted Game Hub Playwright failures recorded by the ALFA_004 audit. |
| 11 | +- Keep the cleanup focused on stale or over-broad test expectations unless product code is required by validation. |
| 12 | +- Preserve the existing Game Hub table workflow behavior. |
| 13 | +- Preserve the shared toolbox selected-game status bar behavior. |
| 14 | +- Preserve Game Journey completion-metrics API/service behavior. |
| 15 | +- Do not implement unrelated product or UI changes. |
| 16 | + |
| 17 | +## ALFA_004 Findings To Clean Up |
| 18 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:238`: duplicate `Open Game Hub` link strict-mode conflict after the shared toolbox status bar added its own Game Hub action. |
| 19 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:257`: stale expectation that no `Game Status` label exists. |
| 20 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:582`: stale guest-mode expectation that no `Game Status` label exists. |
| 21 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:1019`: toolbox role-filter lane records known `500 /api/game-journey/completion-metrics` requests outside the Game Hub table workflow. |
15 | 22 |
|
16 | 23 | ## Exact Targets |
17 | 24 | - `docs_build/dev/BUILD_PR.md` |
18 | | -- `docs_build/dev/reports/PR_26175_ALFA_004-game-hub-completion-status-audit_report.md` |
19 | | -- `docs_build/dev/reports/PR_26175_ALFA_004-game-hub-completion-status-audit_validation-lane.md` |
20 | | -- `docs_build/dev/reports/PR_26175_ALFA_004-game-hub-completion-status-audit_requirements-checklist.md` |
| 25 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs` |
| 26 | +- `docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_report.md` |
| 27 | +- `docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_validation-lane.md` |
| 28 | +- `docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_requirements-checklist.md` |
21 | 29 | - `docs_build/dev/reports/codex_review.diff` |
22 | 30 | - `docs_build/dev/reports/codex_changed_files.txt` |
23 | 31 |
|
24 | | -## Audit Evidence Sources |
25 | | -- `toolbox/game-hub/index.html` |
26 | | -- `toolbox/game-hub/game-hub.js` |
27 | | -- `src/dev-runtime/persistence/mock-db-store.js` |
28 | | -- Impacted Game Hub Playwright specs discovered during audit. |
29 | | - |
30 | 32 | ## Out Of Scope |
31 | | -- No product or UI implementation changes unless required to create audit reports. |
| 33 | +- No Game Hub product or UI behavior changes unless targeted validation proves they are required. |
| 34 | +- No Game Journey completion-metrics product/API/service changes. |
32 | 35 | - No API/service contract changes. |
33 | | -- No browser-owned product data changes. |
34 | | -- No page-local CSS, inline styles, or style blocks. |
| 36 | +- No browser-owned product data as source of truth. |
| 37 | +- No silent fallbacks. |
| 38 | +- No inline styles, style blocks, or page-local CSS. |
35 | 39 | - No engine core changes. |
36 | 40 | - No `start_of_day` folder changes. |
37 | 41 |
|
38 | 42 | ## Validation |
39 | | -Run targeted impacted Game Hub validation discovered during audit. |
| 43 | +Run: |
| 44 | + |
| 45 | +```powershell |
| 46 | +npx playwright test tests/playwright/tools/GameHubMockRepository.spec.mjs --workers=1 |
| 47 | +``` |
40 | 48 |
|
41 | | -Also verify the audit-only change did not introduce inline styles or style blocks in the changed report/build files: |
| 49 | +Also verify the changed source does not introduce inline styles or style blocks: |
42 | 50 |
|
43 | 51 | ```powershell |
44 | | -rg -n "<[s]tyle|[s]tyle=" docs_build/dev/BUILD_PR.md docs_build/dev/reports/PR_26175_ALFA_004-game-hub-completion-status-audit_report.md docs_build/dev/reports/PR_26175_ALFA_004-game-hub-completion-status-audit_validation-lane.md docs_build/dev/reports/PR_26175_ALFA_004-game-hub-completion-status-audit_requirements-checklist.md |
| 52 | +rg -n "<[s]tyle|[s]tyle=" tests/playwright/tools/GameHubMockRepository.spec.mjs docs_build/dev/BUILD_PR.md docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_report.md docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_validation-lane.md docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_requirements-checklist.md |
45 | 53 | ``` |
46 | 54 |
|
47 | 55 | ## Artifact |
48 | 56 | Create repo-structured delta ZIP: |
49 | 57 |
|
50 | 58 | ```text |
51 | | -tmp/PR_26175_ALFA_004-game-hub-completion-status-audit_delta.zip |
| 59 | +tmp/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_delta.zip |
52 | 60 | ``` |
0 commit comments