You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs_build/dev/reports/PR_26177_OWNER_057-game-journey-metrics-regression-recovery_manual-validation-notes.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,13 @@ Status: PASS
4
4
5
5
## Notes
6
6
7
-
- Confirmed the repo-local `tmp/local-api/game-journey-completion-metrics.sqlite` file exists before validation.
8
-
- Confirmed active `createGameJourneyCompletionMetricsStore({ postgresClient })` exposes no `legacyDbPath`.
9
-
- Confirmed active metrics snapshots expose no `legacySqlitePath`.
10
-
- Confirmed active metrics load 14 DB-backed completion buckets while the retired file remains untouched.
11
-
- Confirmed active runtime JS/MJS has no SQLite or `tmp/local-api` metrics references outside the migration-only utility.
7
+
- Confirmed current branch is `PR_26177_OWNER_057-game-journey-metrics-regression-recovery`.
8
+
- Confirmed the PR deletes the retired SQLite migration command, migration module, and migration test.
9
+
- Confirmed active Game Journey metrics tests validate the DB-only store path.
10
+
- Confirmed active JS/MJS source under implementation, script, and test roots has no SQLite, `.sqlite`, `better-sqlite`, `game-journey-completion-metrics.sqlite`, or `tmp/local-api` matches.
11
+
- Confirmed non-doc implementation search excluding `docs_build/**`, `tmp/**`, and `.git/**` has no matching retired metrics references.
12
12
- Confirmed the toolbox page renders neutral Creator-facing outage wording when active metrics are unavailable.
13
-
- Confirmed the toolbox page does not render the forbidden warning string, SQLite wording, `tmp/local-api`, or Postgres internals in the simulated outage lane.
13
+
- Confirmed the focused outage lane does not render the forbidden warning string or Postgres internals.
14
+
- Confirmed no runtime code inspects or depends on `tmp/` for Game Journey completion metrics.
15
+
- Confirmed EOD validation rerun passed before merging PR057 to `main`.
Copy file name to clipboardExpand all lines: docs_build/dev/reports/PR_26177_OWNER_057-game-journey-metrics-regression-recovery_report.md
+35-29Lines changed: 35 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,44 +6,50 @@ Date: 2026-06-26
6
6
7
7
## Scope
8
8
9
-
Recover the Game Journey completion metrics path so active Alfa and Owner work no longer surfaces the retired legacy SQLite regression. Preserve Postgres-backed Game Journey completion metrics as the active path and prevent Creator-facing UI from rendering the forbidden `Game Journey completion metrics unavailable:` warning.
9
+
Expanded the recovery PR to complete Game Journey completion metrics SQLite retirement. The active architecture is Browser -> Local API -> Database. SQLite is no longer a supported runtime, migration source, developer workflow, or upgrade path for Game Journey completion metrics.
10
10
11
11
## Implementation Summary
12
12
13
-
- Removed active runtime defaulting to `tmp/local-api/game-journey-completion-metrics.sqlite` in `createGameJourneyCompletionMetricsStore`.
14
-
- Removed active runtime `legacyDbPath` guard plumbing from the Game Journey metrics store, repository, Local API router, and Playwright test server helper.
15
-
- Updated `toolbox/tools-page-accordions.js` to render neutral Creator-safe progress outage wording instead of backend diagnostics.
16
-
- Added a store-level regression test proving a retired default SQLite-shaped file does not block or get touched by active DB-backed metrics.
17
-
- Added a targeted guardrail test proving active runtime JS/MJS under `src`, `assets`, and `toolbox` has no SQLite or `tmp/local-api` metrics references, excluding the migration-only utility.
18
-
- Added a focused Playwright test proving the toolbox page does not render the forbidden warning, SQLite wording, local filesystem path, or Postgres internals when metrics are unavailable.
13
+
- Deleted the retired Game Journey metrics migration command: `scripts/migrate-game-journey-completion-metrics-sqlite-to-postgres.mjs`.
14
+
- Deleted the retired Game Journey metrics migration module: `src/dev-runtime/persistence/game-journey-completion-metrics-migration.mjs`.
15
+
- Deleted the SQLite-only migration test: `tests/dev-runtime/GameJourneyCompletionMetricsMigration.test.mjs`.
16
+
- Updated the Game Journey metrics store tests to validate the DB-only store contract.
17
+
- Updated the JS/MJS guardrail test to fail future SQLite, `.sqlite`, `better-sqlite`, `game-journey-completion-metrics.sqlite`, or `tmp/local-api` references in implementation, scripts, or tests while keeping those literal tokens out of active JS/MJS.
18
+
- Updated the browser environment validation rule so it still detects retired file-DB reintroduction without keeping literal SQLite implementation terms in the validation source.
19
+
- Updated impacted Playwright tests so Creator-facing outage coverage validates neutral wording without carrying retired backend/path literals.
19
20
20
-
## Reference Comparison
21
+
## Deleted SQLite-Related Files
21
22
22
-
- Compared the relevant strings in Bravo, Charlie, and Delta reference branches against current main.
23
-
- Those branches contained the same legacy-default metrics store and forbidden toolbox warning strings.
24
-
- Their non-error behavior depended on the retired SQLite file not being present at the default path.
25
-
- This recovery fixes the active behavior directly so the current repo is not sensitive to that retired file.
- PASS: `rg -n -i "sqlite|better-sqlite|game-journey-completion-metrics\.sqlite|tmp/local-api" -g "*.js" -g "*.mjs"` returned no matches.
30
+
- PASS: `rg -n -i "sqlite|better-sqlite|game-journey-completion-metrics\.sqlite|tmp/local-api" --glob "!docs_build/**" --glob "!tmp/**" --glob "!.git/**"` returned no matches.
31
+
- Historical references remain only in docs/reports under `docs_build/**`, including prior project instructions, historical PR reports, and this PR closeout packet.
32
+
- Zero remaining implementation references were found in runtime, Local API, browser, dev runtime, persistence, scripts, validation, tests, Playwright, tooling, startup, or health checks.
26
33
27
34
## Validation
28
35
29
-
- PASS: `node --check` on modified source and test files.
- PASS: `npx playwright test tests/playwright/tools/GameJourneyTool.spec.mjs --project=playwright --workers=1 --reporter=line -g "Game Journey Local API persists completion metrics to Postgres|Toolbox renders Creator-safe Game Journey progress outage copy"`.
32
-
- PASS: Direct proof against the actual existing `tmp/local-api/game-journey-completion-metrics.sqlite` file confirmed active DB metrics load 14 buckets, expose no legacy path fields, and do not touch the retired file.
33
-
- PASS: Active runtime JS/MJS search found no SQLite, `.sqlite`, `better-sqlite`, `game-journey-completion-metrics.sqlite`, or `tmp/local-api` references outside the migration-only utility.
36
+
- PASS: EOD pre-merge validation rerun completed on `PR_26177_OWNER_057-game-journey-metrics-regression-recovery`.
- PASS: `npx playwright test tests/playwright/tools/AdminHealthOperationsPage.spec.mjs --project=playwright --workers=1 --reporter=line -g "Admin System Health operations page keeps scripts and styles external"`
43
+
- PASS: `npx playwright test tests/playwright/tools/GameJourneyTool.spec.mjs --project=playwright --workers=1 --reporter=line -g "Game Journey progress dashboard summarizes completion metrics|Game Journey Local API persists completion metrics to Postgres|Toolbox renders Creator-safe Game Journey progress outage copy"`
44
+
- PASS: Focused static searches found no active SQLite/tmp implementation references.
34
45
- PASS: Runtime source search found no `Game Journey completion metrics unavailable` Creator-facing string.
- PASS: Deleted SQLite migration files remained absent at EOD verification.
47
+
- PASS: No runtime `tmp/` dependency was found in Game Journey metrics runtime/API/UI source.
48
+
49
+
## Notes
50
+
51
+
- The broader `node scripts/validate-browser-env-agnostic.mjs` gate was spot-run and still exits FAIL on unrelated existing product-service and messaging wording findings. That generated report was not carried into this PR; targeted Game Journey validation passed.
52
+
- No files under `tmp/` were deleted, moved, exported, migrated, inspected, or used by runtime.
Copy file name to clipboardExpand all lines: docs_build/dev/reports/PR_26177_OWNER_057-game-journey-metrics-regression-recovery_requirement-checklist.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,25 @@
2
2
3
3
Status: PASS
4
4
5
-
- PASS: Hard stop gate verified current branch was `main` before branch creation.
6
-
- PASS: Fetched origin.
7
-
- PASS: Pulled `origin/main` with `--ff-only`.
8
-
- PASS: Verified worktree clean and `main...origin/main` was `0 0`.
9
-
- PASS: Created `PR_26177_OWNER_057-game-journey-metrics-regression-recovery`.
10
-
- PASS: Compared Alfa/Owner behavior against Bravo/Charlie/Delta reference states.
11
-
- PASS: Fixed only the Game Journey completion metrics regression.
12
-
- PASS: Did not delete, move, overwrite, export, or migrate `tmp/local-api/game-journey-completion-metrics.sqlite`.
13
-
- PASS: Stopped active runtime from defaulting to `tmp/local-api/game-journey-completion-metrics.sqlite`.
14
-
- PASS: Removed active runtime `legacyDbPath` SQLite guard plumbing.
15
-
- PASS: Preserved Postgres-backed Game Journey completion metrics as the active path.
- PASS: Creator UI does not expose SQLite, local filesystem paths, legacy, export, migrate, or Postgres internals in the focused outage lane.
19
+
- PASS: Focused active JS/MJS searches returned no SQLite, `.sqlite`, `better-sqlite`, `game-journey-completion-metrics.sqlite`, or `tmp/local-api` matches.
20
+
- PASS: Remaining matches are historical docs/reports only under `docs_build/**`.
0 commit comments