Skip to content

Codex/closing gaps mvp - #16

Merged
mathsant-js merged 15 commits into
mainfrom
codex/closing-gaps-mvp
Oct 21, 2026
Merged

mathsant-js merged 15 commits into
mainfrom
codex/closing-gaps-mvp

Conversation

@mathsant-js

Copy link
Copy Markdown
Owner

Adicionando parte final do mvp

- start automatic ticks when the simulation enters RUNNING
- stop and cleanly cancel the runner on request or application shutdown
- use a fresh SQLAlchemy session for every automatic tick
- prevent duplicate runners and overlapping manual or automatic ticks
- recover from isolated tick failures without advancing the clock
- preserve the manual tick endpoint
- add deterministic runner, shutdown, recovery, and energy invariant tests
- document the single-backend-instance coordination limitation
- prevent temporal leakage with a 60-minute purge gap
- add deterministic ML demo data preparation
- persist and validate model, feature, and sklearn versions
- report model and baseline metrics with an explicit winner
- integrate demand prediction into the Sprint 3 demo
- demonstrate HIGH peak risk without changing thresholds
- verify predictions do not affect energy allocation
- expand ML, inference, artifact, and demo coverage
- update README and Phase 7, Phase 9, and Sprint 3 documentation
- evaluate baseline and three classical regressors using a temporal split
- select the winner by RMSE while allowing the baseline to win
- add deterministic training and segmented error analysis
- version and validate the complete inference artifact contract
- expand tests for selection, persistence, compatibility, and fallback
- document evaluation results and limitations
- validate migrations, seed, ML preparation, and the complete Golden Path
- run the real application against disposable PostgreSQL 16
- verify authentication, energy allocation, alerts, billing, ESG, dashboards, OpenAPI, and frontend
- generate ephemeral credentials and safely clean up test resources
- add an opt-in CI workflow and execution documentation
- make the simulation runner interval configurable for deterministic manual ticks
- fix datetime serialization in ML preparation output
- split login, admin, operations, and user dashboard routes
- add an accessible Suspense loading state
- keep Recharts out of the initial bundle
- preserve role protection and redirects
- add coverage for async loading and ADMIN/USER authorization
- add three-fold walk-forward validation with expanding training windows
- preserve the 60-minute purge gap to prevent temporal leakage
- select the model using aggregated out-of-sample RMSE
- report metrics by fold and demand range
- retain the baseline and strictly advisory predictions
- update tests, reproduced metrics, and documentation
- add frontend HTTP healthcheck and automatic failure diagnostics
- retry only transient read-only web surface requests
- clarify durable checkpoint authority and tick resume behavior
- expand idempotency and frontend readiness tests
- fix Ruff warning in PostgreSQL lock handling
- update operational documentation and verified test evidence
@mathsant-js mathsant-js self-assigned this Oct 21, 2026
@mathsant-js mathsant-js added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 21, 2026
@mathsant-js
mathsant-js merged commit caf9b63 into main Oct 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

1 participant