Dusan Vojacek
0dc2e1df96
Fáze 2.2: penalty audit — 16 z 26 penalt mrtvých na golden fixtures
...
scripts/harness/penalty_audit.py: vynulování každé ekonomické konstanty →
replay 4 golden fixtures → Δcashflow / Δpenalty / změněné sloty.
Výsledek (penalty_audit_baseline_2026-06-11.txt):
- 16/26 penalt bez jakéhokoli vlivu na 4 reprezentativních scénářích
- aktivní penalty silně interagují (odstranění jedné zvedne binding jiných
o stovky Kč — POS_SELL_PRE_NEG +481, PRE_NEG_BUY_SOC_CEILING −1480)
- Σpenalty 2140 Kč vs cashflow −440 Kč na baseline
CLAUDE.md: doplněna struktura services/planning/ a harness do tabulky adresářů.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-11 13:39:55 +02:00
Dusan Vojacek
cb6afbb3fd
Fáze 1.5: extrakce 88 pre-solver heuristik do services/planning/heuristics.py
...
SoC série, neg-sell fáze/okna, evening push, pre-neg logika — čistý přesun,
fasáda v planning_engine.py beze změny chování (golden 5/5, baseline faily
beze změny). Roztroušené konstanty MORNING_PRENEG_* doplněny do constants.py.
planning_engine.py: 6345 → 3925 řádků (zbývá: solver, orchestrace, compare).
heuristics.py nese warning: hlavní kandidáti na prune ve Fázi 2/3.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-11 13:32:47 +02:00
Dusan Vojacek
dcbb5de98c
Fáze 1.3+1.4: extrakce forecast korekce a DB vrstvy plánovače
...
- services/planning/forecast.py: compute_correction_factor, apply_forecast_correction
- services/planning/db_io.py: _ev_session_from_json, _load_site_context,
_load_previous_plan_charge_commitment_prev_w, _load_slots, _build_slot_inputs,
_save_planning_run, _save_failed_planning_run
- .claude/settings.json: projektový allowlist (autonomní běhy bez promptů)
Fasáda beze změny chování; golden 5/5, baseline faily beze změny.
planning_engine.py: 6345 → 5717 řádků.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-11 12:39:55 +02:00
Dusan Vojacek
d83917da51
Fáze 1.2: extrakce typů a časových utilit do services/planning/types.py
...
PlannerSolverError, PlanningSlot, DispatchResult, SOC_MIN_RELAX_LOOKAHEAD_SLOTS,
_timestamptz_from_db, _slot_float_nullable, _prague_dow_hour, _prague_calendar_date,
_prague_hour, _parse_json_dt, _current_slot_start. Fasáda v planning_engine.py,
beze změny chování (golden 5/5, baseline 4+1 faily beze změny).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-11 12:34:19 +02:00
Dusan Vojacek
4ee5cebf2a
Fáze 1.1: extrakce konstant plánovače do services/planning/constants.py
...
Čistý přesun 57 konstant (vč. SOLVER_RELAX_STEPS) z planning_engine.py;
engine je importuje zpět (fasáda, beze změny chování). Golden replay 5/5,
unit testy beze změny vůči baseline (4+1 předexistující faily).
Ekonomické penalty/váhy tím získaly jedno místo — kandidáti na DB ve Fázi 2.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-11 11:09:10 +02:00
Dusan Vojacek
484f1f85fc
Fáze 0: ekonomický regresní harness plánovače
...
- scripts/harness/extract_fixtures.py: extrakce vstupů solveru
(fn_planning_site_context + fn_load_planning_slots_full) do JSON fixtures
- backend/tests/test_golden_replay.py: golden gate — replay fixtures přes
solve_dispatch_two_pass, bit-perfektní diff proti snapshotům (GOLDEN_UPDATE=1
pro vědomou regeneraci); 4 scénáře: home-01 neg-sell extrém / normal, BA81, KV1
- scripts/harness/economics_report.py: actual (audit_interval) vs oracle MILP
(perfect hindsight, čistá ekonomika bez heuristických penalt), SoC-adjusted
Baseline home-01 2026-05-12..06-09: GAP 2185 Kč / 29 dní (~27 %).
Známý stav: 4/124 testů test_planning_dispatch_milp.py failuje už na main.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-11 10:48:13 +02:00
Dusan Vojacek
edc8ae9774
prej final final v2 verze
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-06-07 00:05:46 +02:00
Dusan Vojacek
50ac40868d
fakt me to nebavi furt jsou tam chyby
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-06-06 23:58:01 +02:00
Dusan Vojacek
b7903db714
dasli fix
CI and deploy / migration-check (push) Failing after 23s
CI and deploy / deploy (push) Has been skipped
2026-06-06 23:47:12 +02:00
Dusan Vojacek
3ad5bec76b
aa zas oprava
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-06-06 23:25:36 +02:00
Dusan Vojacek
37df01d43c
dalsi fix
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-06-06 23:12:08 +02:00
Dusan Vojacek
3161421d5c
skill pro debug
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-06-06 22:41:56 +02:00
Dusan Vojacek
36cb06b9d0
Branch 5: dynamický terminal SoC factor při future neg buy
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-06-06 22:38:05 +02:00
Dusan Vojacek
0f7dc6ed94
Branch 4: BA81 GEN cutoff audit + exekuce při sell<0
CI and deploy / migration-check (push) Failing after 14s
CI and deploy / deploy (push) Has been skipped
2026-06-06 22:36:27 +02:00
Dusan Vojacek
a7879f1141
Branch 3: charge-slot-budget v R__063 + odstranit v58 pro BA81/KV1 + fixed evening push
CI and deploy / migration-check (push) Failing after 25s
CI and deploy / deploy (push) Has been skipped
2026-06-06 22:32:48 +02:00
Dusan Vojacek
09bca0a903
Branch 2: home-01 neg-večer — export k reserve_soc, fix pos_sell_pre_neg_buy + oddělit evening_push od prep relax
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-06-06 22:28:48 +02:00
Dusan Vojacek
2a963c9793
Branch 1: failed run journal + bisect Infeasible + granulární relaxace (bez vypnutí evening push)
CI and deploy / migration-check (push) Failing after 14s
CI and deploy / deploy (push) Has been skipped
2026-06-06 22:23:59 +02:00
Dusan Vojacek
1429d402e5
zdokumentovani noveho pohleud na planovani nabijeni
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-06-01 19:53:04 +02:00
Dusan Vojacek
d44a2cbb44
dalsi
CI and deploy / migration-check (push) Failing after 22s
CI and deploy / deploy (push) Has been skipped
2026-06-01 19:20:27 +02:00
Dusan Vojacek
96adbff9ea
nakup ve spicce aby prodal lenvneji, ale nemam jak otestovat poac uz bude po slotu (home01)
CI and deploy / migration-check (push) Failing after 34s
CI and deploy / deploy (push) Has been skipped
2026-06-01 19:17:55 +02:00
Dusan Vojacek
63eff96c5f
zas oprava KV1 a BA81
CI and deploy / migration-check (push) Failing after 41s
CI and deploy / deploy (push) Has been skipped
2026-06-01 19:04:11 +02:00
Dusan Vojacek
0dcf11d471
oprava ranniho nenabijeni
CI and deploy / migration-check (push) Failing after 50s
CI and deploy / deploy (push) Has been skipped
2026-06-01 18:50:03 +02:00
Dusan Vojacek
430e081841
oprave vercerniho nevyprodeje
CI and deploy / migration-check (push) Failing after 26s
CI and deploy / deploy (push) Has been skipped
2026-06-01 18:24:57 +02:00
Dusan Vojacek
5d06f49d2b
oprava
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-05-31 00:13:44 +02:00
Dusan Vojacek
111f51c06c
zas oprava
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-05-31 00:07:43 +02:00
Dusan Vojacek
8950fafba2
oprava home-01: Infeasible při rolling hysteréze push (v53)
CI and deploy / migration-check (push) Failing after 14s
CI and deploy / deploy (push) Has been skipped
2026-05-31 00:00:47 +02:00
Dusan Vojacek
578cf315e2
urpava KV1 vyliti v maxu v noci
CI and deploy / migration-check (push) Failing after 19s
CI and deploy / deploy (push) Has been skipped
2026-05-30 23:47:44 +02:00
Dusan Vojacek
a03b45d4a9
oprava zbytecneho curtailu A
CI and deploy / migration-check (push) Failing after 10s
CI and deploy / deploy (push) Has been skipped
2026-05-30 23:23:17 +02:00
Dusan Vojacek
830aa7a4cc
oprava nevyberu maximalnich sell slotu (sahal i na zitejsi vecer)
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-05-30 22:56:28 +02:00
Dusan Vojacek
4f67aad4d8
a dalsi pokus o opravu
CI and deploy / migration-check (push) Failing after 19s
CI and deploy / deploy (push) Has been skipped
2026-05-30 22:15:40 +02:00
Dusan Vojacek
96d0d52b07
oprava battery hold
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-05-30 22:11:03 +02:00
Dusan Vojacek
5208e035a4
a dalsi oprava
CI and deploy / migration-check (push) Failing after 24s
CI and deploy / deploy (push) Has been skipped
2026-05-30 22:02:02 +02:00
Dusan Vojacek
d3e9caf0fb
dalsi
CI and deploy / migration-check (push) Failing after 23s
CI and deploy / deploy (push) Has been skipped
2026-05-29 23:34:16 +02:00
Dusan Vojacek
308c24f029
dalsi
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-05-29 23:24:03 +02:00
Dusan Vojacek
b73c3323e1
oprava
CI and deploy / migration-check (push) Failing after 28s
CI and deploy / deploy (push) Has been skipped
2026-05-29 23:04:27 +02:00
Dusan Vojacek
877f5b6180
tuning prodeje
CI and deploy / migration-check (push) Failing after 18s
CI and deploy / deploy (push) Has been skipped
2026-05-29 22:45:02 +02:00
Dusan Vojacek
230351b38a
oprava
CI and deploy / migration-check (push) Failing after 36s
CI and deploy / deploy (push) Has been skipped
2026-05-29 22:26:52 +02:00
Dusan Vojacek
88df09640c
Use observed SoC for neg-prep cushion and evening drain (v40).
...
CI and deploy / migration-check (push) Failing after 26s
CI and deploy / deploy (push) Has been skipped
Pre-neg forecast cushion and evening push before negative-sell days now use telemetry SoC instead of chaining LP targets across days, so the planner does not stop discharging early when BMS is higher than the model.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-29 00:20:05 +02:00
Dusan Vojacek
a7dff75e58
Add export plan guard to block Deye export against plan.
...
CI and deploy / migration-check (push) Failing after 39s
CI and deploy / deploy (push) Has been skipped
Force PASSIVE/no-export when sell is negative or export_mode is NONE,
and alert NEG_SELL_EXPORT in plan_actual_slot_guard when export still occurs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-29 00:14:52 +02:00
Dusan Vojacek
620a557a89
Align evening push with peak-band candidates and dynamic Wh budget.
...
CI and deploy / migration-check (push) Failing after 23s
CI and deploy / deploy (push) Has been skipped
Restore _evening_peak_export_indices filter so push slots are chosen from
profitable peak-band nights, then ranked by sell until the Wh budget is
exhausted—not all profitable night slots and not a fixed top-3. Docs and
tests match v39 SoC balance tag.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-29 00:10:27 +02:00
Dusan Vojacek
ba0b55bf10
Fix SoC balance on battery export and improve evening push (v39).
...
CI and deploy / migration-check (push) Failing after 38s
CI and deploy / deploy (push) Has been skipped
SoC continuity now deducts only bd (ge_bat was double-counted via energy
balance), which stopped the plan from draining ~2× faster than BMS during
evening BATTERY_SELL. Also ships dynamic evening push budget + rolling
hysteresis (v38), drops unused fn_soc_tracking_bundle, and adds tests/docs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-29 00:04:48 +02:00
Dusan Vojacek
52e4b68789
ski battery charge u sell
CI and deploy / migration-check (push) Failing after 26s
CI and deploy / deploy (push) Has been skipped
2026-05-28 23:22:57 +02:00
Dusan Vojacek
4e5de5df90
dalsi oprava
CI and deploy / migration-check (push) Failing after 17s
CI and deploy / deploy (push) Has been skipped
2026-05-27 07:45:50 +02:00
Dusan Vojacek
8c7072da07
oprava BA ranni export
CI and deploy / migration-check (push) Failing after 23s
CI and deploy / deploy (push) Has been skipped
2026-05-27 07:30:08 +02:00
Dusan Vojacek
19108002ca
oprava KV 1
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-05-26 14:57:52 +02:00
Dusan Vojacek
96b16b9ff9
oprava vecerniho nevybijei
CI and deploy / migration-check (push) Failing after 26s
CI and deploy / deploy (push) Has been skipped
2026-05-26 14:34:39 +02:00
Dusan Vojacek
398e658d16
cileni k vybiti pred ranem kdy nabiju z fve
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-05-26 14:25:12 +02:00
Dusan Vojacek
d1ba864fc0
oprava ranniho nabijeni a oprava bodu T
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-05-26 14:09:19 +02:00
Dusan Vojacek
58b0a2f882
implementace dynamickeho bodu T (kde se rodpojuje PV A)
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-05-26 13:28:31 +02:00
Dusan Vojacek
a53bcd0b81
dokumentace planu
CI and deploy / migration-check (push) Failing after 14s
CI and deploy / deploy (push) Has been skipped
2026-05-26 13:00:33 +02:00