Commit d6327db
Add steering-quality evaluation harness + CI metrics comment (#466)
* Add steering-quality evaluation harness + CI metrics comment
Deterministic mock-time evaluation suite (python -m
astrameter.simulator.evaluation) that wires CT002 active control against
the firmware-accurate battery simulators and scripted household scenarios
(load spikes, solar curves, single/multi/mixed batteries, both fair-share
and efficiency-optimization modes). Reports reaction (settling time),
oscillation (overshoot, band crossings, steady RMS) and energy
(avoidable import/export) metrics, with --json/--compare for diffing runs.
CI gains a steering-eval job that runs the suite on PR base and head and
posts the before/after table as a sticky PR comment (informational only).
Groundwork for the active-control redesign in #458.
https://claude.ai/code/session_01SeKwnaH74tzQoZEPhmhBu8
* eval: model meter latency, fix oven and cloud-dip scenario bugs
Three harness fixes that belong in the baseline rather than in the
controller-change PR stacked on top:
- The controller now reads the meter at a realistic ~1 s cadence
(Scenario.meter_interval_s) while metrics see the true instantaneous
grid; a zero-latency meter flattered the current controller.
- The oven thermostat schedule is emitted as paired on/off cycles; the
previous loop could end stuck ON, stacking loads beyond the battery's
ceiling for the rest of the run (the 281 W steady RMS in
single_venus_steps was that saturation, not steering behavior).
- Solar is now curve x factor so the labeled cloud-dip transients
compose with the per-minute day curve instead of being overwritten by
its next tick mid-measurement-window.
https://claude.ai/code/session_01SeKwnaH74tzQoZEPhmhBu8
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5d1a801 commit d6327db
4 files changed
Lines changed: 1090 additions & 0 deletions
File tree
- .github/workflows
- src/astrameter/simulator
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
211 | 314 | | |
212 | 315 | | |
213 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
27 | 38 | | |
28 | 39 | | |
| |||
0 commit comments