|
| 1 | +# PR_26177_CHARLIE_007-runtime-configuration-complete |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +Team Charlie completed the Runtime Configuration closeout slice for System Health. |
| 6 | + |
| 7 | +Runtime configuration now reports explicit server-owned sources for: |
| 8 | + |
| 9 | +- Local API URL |
| 10 | +- static/site URL |
| 11 | +- Storage/R2 endpoint |
| 12 | +- Storage/R2 projects prefix |
| 13 | +- startup/runtime configuration source |
| 14 | + |
| 15 | +The Local API startup report now distinguishes a configured `GAMEFOUNDRY_API_URL` from the derived Local API URL used for diagnostics. Missing configured values are reported as `not configured` or `WARN`; no silent configured defaults were added. |
| 16 | + |
| 17 | +## Changed Files |
| 18 | + |
| 19 | +- `scripts/start-local-api-server.mjs` |
| 20 | +- `src/dev-runtime/server/local-api-router.mjs` |
| 21 | +- `src/dev-runtime/storage/storage-config.mjs` |
| 22 | +- `tests/dev-runtime/AdminHealthOperations.test.mjs` |
| 23 | +- `tests/dev-runtime/LocalApiStartupLogging.test.mjs` |
| 24 | +- `tests/dev-runtime/StorageConfig.test.mjs` |
| 25 | +- `docs_build/dev/reports/PR_26177_CHARLIE_007-runtime-configuration-complete.md` |
| 26 | +- `docs_build/dev/reports/PR_26177_CHARLIE_007-runtime-configuration-complete_branch-validation.md` |
| 27 | +- `docs_build/dev/reports/PR_26177_CHARLIE_007-runtime-configuration-complete_manual-validation-notes.md` |
| 28 | +- `docs_build/dev/reports/PR_26177_CHARLIE_007-runtime-configuration-complete_requirements-checklist.md` |
| 29 | +- `docs_build/dev/reports/PR_26177_CHARLIE_007-runtime-configuration-complete_validation-lane.md` |
| 30 | +- `docs_build/dev/reports/codex_changed_files.txt` |
| 31 | +- `docs_build/dev/reports/codex_review.diff` |
| 32 | + |
| 33 | +## Implementation Notes |
| 34 | + |
| 35 | +- Added runtime configuration source rows to System Health Local API startup diagnostics. |
| 36 | +- Added configuration summary rows for API URL source, site URL source, Storage endpoint, and Storage projects prefix. |
| 37 | +- Preserved the Web UI -> API/service contract -> database/runtime flow; browser code does not own infrastructure health state. |
| 38 | +- Added `/local/projects/` to approved project asset storage prefixes to match the current Local environment model. |
| 39 | +- Preserved safe partial Storage/R2 diagnostics while keeping access key and secret key values hidden. |
| 40 | +- Left browser public config fallback behavior unchanged because it already records an explicit diagnostic and changing routing semantics would be outside this PR scope. |
| 41 | + |
| 42 | +## Validation |
| 43 | + |
| 44 | +- PASS: `node --check scripts/start-local-api-server.mjs` |
| 45 | +- PASS: `node --check src/dev-runtime/server/local-api-router.mjs` |
| 46 | +- PASS: `node --check src/dev-runtime/storage/storage-config.mjs` |
| 47 | +- PASS: `node --check tests/dev-runtime/AdminHealthOperations.test.mjs` |
| 48 | +- PASS: `node --check tests/dev-runtime/LocalApiStartupLogging.test.mjs` |
| 49 | +- PASS: `node --check tests/dev-runtime/StorageConfig.test.mjs` |
| 50 | +- PASS: `node --test tests/dev-runtime/LocalApiStartupLogging.test.mjs tests/dev-runtime/StorageConfig.test.mjs tests/dev-runtime/PublicEnvironmentConfig.test.mjs tests/dev-runtime/PublicApiUrlClient.test.mjs tests/dev-runtime/AdminHealthOperations.test.mjs tests/api/admin-system-health/contract.test.mjs` |
| 51 | +- PASS: `npx playwright test tests/playwright/tools/AdminHealthOperationsPage.spec.mjs --workers=1` |
| 52 | +- PASS: `git diff --check` |
| 53 | + |
| 54 | +## ZIP |
| 55 | + |
| 56 | +- `tmp/PR_26177_CHARLIE_007-runtime-configuration-complete_delta.zip` |
0 commit comments