From 0cf9a657e5021271702ed985c4bad7a72137b014 Mon Sep 17 00:00:00 2001
From: "Mr. Q" <97194984+ToolboxAid@users.noreply.github.com>
Date: Sat, 20 Jun 2026 19:59:48 -0400
Subject: [PATCH 1/8] Create admin system health foundation -
PR_26171_GAMMA_011-admin-system-health-foundation
---
admin/system-health.html | 360 +--
...dation-instruction-compliance-checklist.md | 32 +
...alth-foundation-manual-validation-notes.md | 34 +
...AMMA_011-admin-system-health-foundation.md | 65 +
.../dev/reports/codex_changed_files.txt | 58 +-
docs_build/dev/reports/codex_review.diff | 2240 +++++------------
.../reports/coverage_changed_js_guardrail.txt | 6 +-
.../reports/playwright_v8_coverage_report.txt | 31 +-
.../tools/AdminHealthOperationsPage.spec.mjs | 61 +-
9 files changed, 930 insertions(+), 1957 deletions(-)
create mode 100644 docs_build/dev/reports/PR_26171_GAMMA_011-admin-system-health-foundation-instruction-compliance-checklist.md
create mode 100644 docs_build/dev/reports/PR_26171_GAMMA_011-admin-system-health-foundation-manual-validation-notes.md
create mode 100644 docs_build/dev/reports/PR_26171_GAMMA_011-admin-system-health-foundation.md
diff --git a/admin/system-health.html b/admin/system-health.html
index c5ef74f44..65a7ac26f 100644
--- a/admin/system-health.html
+++ b/admin/system-health.html
@@ -6,7 +6,7 @@
Review safe runtime readiness across account, Local DB, R2 storage, migrations, package planning, promotion safety, and storage connectivity.
+Review the foundation view for environment, Postgres, Cloudflare R2, runtime configuration, capacity, and diagnostics.
Account/session readiness
-Product Data / Local DB
-Project Asset Storage / R2
-Project package readiness
-Environment Summary
+Database Health
+Storage Health
+Runtime Environment
+Limits & Capacity
+Diagnostics Log
| Status | -Score | -PASS | -WARN | -FAIL | -Last Refresh | -
|---|---|---|---|---|---|
| Loading | 0 | 0 | 0 | 0 | Loading refresh timestamp. |
| Area | -Status | -Summary | -
|---|---|---|
| System Health | Loading | Loading safe status. |
| Area | -Status | -Count | -Diagnostic | -
|---|---|---|---|
| Operations | Loading | 0 | Loading operational health. |
| Filter | -Value | -
|---|---|
| Plan | -- - | -
| User | -Plan | +Environment | +Purpose | +Promotion Gate | Status | -Source | -
|---|---|---|---|---|---|---|
| Loading | Loading | Loading | Loading membership state. |
| Filter | -Value | -
|---|---|
| Status | -- - | -
| Status | -Code | -Expires | -|
|---|---|---|---|
| Loading | Loading | Loading | Loading invite state. |
| Filter | -Value |
|---|---|
| Action | -- - | -
| User | -Action | -Source | -Delta | -Balance After | -
|---|---|---|---|---|
| Loading | Loading | Loading | 0 | Loading AI usage. |
| Area | -Status | -Table | -Issue | -Next Step | -
|---|---|---|---|---|
| Operations | Loading | Loading | Loading configuration issues. | Loading next step. |
| Connection | -Status | -Mode | -
|---|---|---|
| Account | Loading | Loading configured connection summary. |
| Field | -Status | -Value | -|
|---|---|---|---|
| Connection Configured | Loading | Loading database status. | |
| DEV | Local implementation and diagnostics | Developer validation | WARN |
| IST | Integrated system testing | Cross-feature validation | WARN |
| UAT | User acceptance testing | Owner review | WARN |
| PRD | Production runtime | EOD approval | WARN |
| Field | -Status | Value | -
|---|---|---|
| Storage Configured | Loading | Loading storage status. |
| Area | -Signal | Status | -Value | -Next Step |
|---|---|---|---|---|
| Project Asset Storage / R2 | Status | Loading | Loading | Loading R2 readiness. |
| Provider | Postgres | PASS | ||
| Host | Configured host placeholder | WARN | ||
| Port | 5432 | WARN | ||
| Database | Configured database placeholder | WARN | ||
| Migration Version | Pending migration reader | WARN | ||
| Status | Connection check pending | WARN |
| Action | +Check | +Target | Status | -Executed | -Message |
|---|---|---|---|---|---|
| startup | SKIP | no | Storage connectivity startup has not run yet. | ||
| Bucket | Configured bucket placeholder | WARN | |||
| List | Objects prefix | WARN | |||
| Read | Health object | WARN | |||
| Write | Health object | WARN | |||
| Delete | Health object | WARN |
| Area | -Field | +Variable | +Display | Status | -Value |
|---|---|---|---|---|---|
| System Health | Status | Loading | Loading safe details. | ||
| CLOUDFLARE_R2_ACCESS_KEY_ID | ******** | WARN | |||
| CLOUDFLARE_R2_BUCKET | Configured bucket placeholder | WARN | |||
| CLOUDFLARE_R2_SECRET_ACCESS_KEY | ******** | WARN | |||
| DATABASE_URL | ******** | WARN | |||
| GAMEFOUNDRY_ENVIRONMENT | DEV / IST / UAT / PRD | WARN |
| Variable | Limit | -Usage | -Pressure | -Next Step | +Current | +Capacity Signal | +Status |
|---|---|---|---|---|---|---|---|
| System Health | Loading | Loading | Loading | Loading limit diagnostics. | |||
| DB Size | Pending metric | Threshold not connected | WARN | ||||
| Connections | Pending metric | Pool usage not connected | WARN | ||||
| Storage | Pending metric | Bucket usage not connected | WARN | ||||
| Class A Ops | Pending metric | R2 write/list budget not connected | WARN | ||||
| Class B Ops | Pending metric | R2 read budget not connected | WARN |