Commit Graph
103 Commits
Author SHA1 Message Date
maximeandClaude Opus 5.5 6d21f8652f Replace the WEISSHORN export with the 65-day export
The new export runs from 09/08 to 13/10 and contains the 10-day one.
Identical download copies are dropped; for BusCurrent the later copy
is kept (only its last, partial hour differed). Battery Voltage is no
longer exported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 12:33:10 +02:00
maximeandClaude Opus 5.5 67fbc39e11 Document the paused cellular domain and the collector versions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 11:52:04 +02:00
maximeandClaude Opus 5.5 75619e8f1c Remove the raw expert notes and the archived stations
Point the docs to the summaries that remain and record D-033.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 11:51:03 +02:00
maximeandClaude Opus 5.5 f803a7d596 Count sends without link and add NORDEND to the cellular working set
DAILY_LINK_STATE falls back on last_sync for exports without link,
treats the start of history as unknown, and records D-032. Document
the hourly counting flaws, the observed 15-minute cadence, and the
open questions for the specialist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 11:50:07 +02:00
maximeandClaude Opus 5.5 f6d94148aa Add the NORDEND export without the duplicate copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 11:50:07 +02:00
maximeandClaude Opus 5.5 91ba1bd8ef Add the DAILY_LINK_STATE and DAILY_SIGNAL_STATE cellular analyses
Explore WEISSHORN for the cellular domain, count lost sends and
messages, grade the daily RSRP and RSRQ medians on the published
Quectel grid, and record D-031.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 10:48:34 +02:00
maximeandClaude Opus 5.5 28cbec408e Note that WEISSHORN exports the collector battery fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 10:48:34 +02:00
maximeandClaude Opus 5.5 f8a81c0990 Load text metrics as lists of the hour's samples
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 10:48:34 +02:00
maximeandClaude Opus 5.5 b0e77d2745 Record D-030 and map the Storage and Cellular domains
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:39:52 +02:00
maximeandClaude Opus 5.5 22afd57b55 Add the nouveau-domaine skill to add a notification domain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:39:13 +02:00
maximeandClaude Opus 5.5 504c8634e3 Add the Storage and Cellular domains with their starting notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:38:33 +02:00
maximeandClaude Opus 5.5 dd4841a6d8 Add the WEISSHORN export without duplicate copies
All camera fields, 2026-10-03 to 2026-10-13. Identical (n).csv copies
and Windows Zone.Identifier files are removed and ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:37:50 +02:00
maximeandClaude Opus 5.5 c97bd71b95 Plan the Storage and Cellular domains and the nouveau-domaine skill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:36:26 +02:00
maximeandClaude Opus 5.5 2e0f9cfa1c Do not restrict the WEISSHORN working set to its first export dates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:31:54 +02:00
maximeandClaude Opus 5.5 ed0a5ae790 Add WEISSHORN as the working set of the Storage and Cellular domains
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:26:44 +02:00
maximeandClaude Opus 5.5 ac2e95a90a Spec the Storage and Cellular domains and the new-domain procedure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:22:32 +02:00
maximeandClaude Opus 5.5 c3e9eef4e4 Move the VERMONT CSVs into data/VERMONT
New data will be added per station without mixing with the working set.
All scripts now default to data/VERMONT/; docs and D-029 follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:10:35 +02:00
maximeandClaude Opus 5.5 ef8ad70285 Turn CLAUDE.md into a full map of the repository
D-028: CLAUDE.md names every folder and document with its size in
lines, says how to read without filling the context (outline of a long
file then one section, index of the decision log, CSV by script,
folders not to read), and gives the current state instead of a dated
history. It and D-026 now name final.py for the delivered script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 08:58:43 +02:00
maximeandClaude Opus 5.5 7f911e41a3 Rename the delivered Energy script daily.py to final.py
src/energy/final.py is daily.py unchanged; the comparison script, the
day focus and the client mockup now import energy.final. References in
the README, the analysis rule, the nouvelle-analyse skill, the two
delivered analysis sheets and the guide follow. Output files keep
their names (out/<STATION>_daily.html and .json).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 08:58:43 +02:00
maximeandClaude Opus 5.5 df9ab5cdae Add the exploratory report on a diagnostic agent framework
Record decision D-027: a server-side LLM agent layer next to the
unchanged deterministic rules, aimed at unknown anomalies and rule
edge cases. The agent annotates and never rewrites the day color.
Home-made harness (Messages API + Tool Runner), staged start with a
manual Energy pilot on VERMONT history. D-003 is partly replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 17:41:42 +02:00
maximeandClaude Opus 5.5 8a32f4d418 Organize the project by domain and name analyses by their rule
Energy code moves to src/energy/ and its docs to docs/energy/; shared code
(CSV loading, venv switch, browser, zoom script) goes to src/common/, and the
AIMsight originals to docs/aimsight/. Analyses are no longer numbered: two
Energy scripts remain, daily.py (delivered state and trend) and
all_analyses.py (comparison of the four). Calculations and pages unchanged (D-026).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 17:12:37 +02:00
maximeandClaude Opus 5.5 77c8f24d2f Add the support Home mockup with a Status section
D-025: the support side gets the site's home page (one tile per
station: name, last voltage, curve) with a Status section on top. It
holds one notification per station whose last day of the window is
Orange or Red (src/day_color.py), the most serious first; Green
notifies nothing. Each notification, like the station tile, links to
the station's client view (out/maquette_user_energy.html).
maquettes/support/home.py writes out/maquette_support_home.html with
the standard library only (inline SVG, no plotly). Only VERMONT has
data; the other tiles keep the site's names and stay empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:32:11 +02:00
maximeandClaude Opus 5.5 5f260d9830 Document the mockup state and its open points
CLAUDE.md records D-022/D-023 in the project state and the next mockup
steps (client Energy step by step, then the support side). D-022 lists
the open points of the Energy mockup: the guide is still in French,
the battery scale has no IR compensation, the energy save button is
for the site team to build, and a day in progress is not yet flagged
as provisional on the client side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:24:15 +02:00
maximeandClaude Opus 5.5 1a2220d317 Add the day focus: a day and the day before only
D-024: to explain a day's color, show only that day and the day before,
the only days analyses 03 and 04 read for it. day_color.focus() selects
the data (standard library); src/focus_jour.py prints a traceable fact
summary and writes a 48 h BusVoltage figure (out/<STATION>_focus_<date>
.html and .json). Analysis 03 gains the night_end_h fact; the other
facts are unchanged. The client Energy mockup does not use this figure:
the user prefers numeric facts there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:23:45 +02:00
maximeandClaude Opus 5.5 8452973912 Add the client Energy mockup and switch site texts to English
D-022: page mockups are HTML built from real data, in maquettes/user/
(client) and maquettes/support/; Figma only on request.
maquettes/user/energy.py renders the System Summary page with a
Diagnostic section: an Energy box with the day's color, a one-line
headline, a battery scale (zones from the collector's LiFePO4 OCV
table, no percentage shown), the trend against the day before, an
"Activate energy save mode" button on orange and red days (mockup
only, sends nothing), and two collapsibles: the full history (D-021
figure) and the guide (part 1 of the manual, rendered from Markdown).

D-023: everything meant for the monitoring site is in English,
including the titles, legends, axes and hovers of the 03/04 panels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:23:37 +02:00
maximeandClaude Opus 5.5 fc74fec10f Add the day color matrix, the energy diagnostic manual and the site figure
D-020: the delivered energy diagnostic keeps analyses 03 and 04 only,
combined by the state x trend matrix of cas-d-usage-03-04.drawio into
one color per day (green / orange / red, grey when unknown), coded in
src/day_color.py (standard library). docs/guide/diagnostic-energetique.md
explains it: part 1 for the client, part 2 for support.

D-021: energy_plot.daily_figure builds the figure for the monitoring
site (panel 03 above panel 04, shared time axis), written by
analyse_01.py as out/<STATION>_daily.html and .json. battery_state no
longer imports energy_check, so analyses 03 and 04 ship on their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:23:21 +02:00
maximeandClaude Opus 5.5 129d4ff59b Plot daily analysis points at noon of their day
Analyses 03 and 04 now place each day's point and bar at 12:00 UTC
instead of 23:00, where they read as the next day. Computations are
unchanged. D-019 records the choice and the rejected one-day shift of
the night-end voltage (tried in 03, then in 04 only); sheet 04 gains
limit 6 (night end of J reflects J-1), and the data-pitfalls note
explains why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 12:11:45 +02:00
maximeandClaude Opus 5.5 3082f75429 Add analysis 04 entry point and documentation
src/analyse_04.py launches the common page; sheet 04 moves to
"prototype en place" with VERMONT results; CLAUDE.md, the analyses
rule, README and sheet 01 list the fourth panel and extend the
"no verdict" contract exception to analysis 04.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:36:26 +02:00
maximeandClaude Opus 5.5 e058a2e3e7 Plot DAILY_BATTERY_TREND as the fourth analysis panel
One bar per day for the night-end voltage delta, coloured by trend
(blue better, grey stable, red worse), with the 0.05 V dead band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:35:40 +02:00
maximeandClaude Opus 5.5 005e006b2f Add analysis 04 DAILY_BATTERY_TREND computation
Day-over-day trend from DAILY_BATTERY_STATE: a state change decides
(FULL > PARTIAL > NO_CHARGE > BELOW_PLATEAU), otherwise the night-end
voltage delta with a 0.05 V dead band. No verdict (anomaly = None).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:34:00 +02:00
maximeandClaude Opus 5.5 722ea0841b Plan analysis 04 DAILY_BATTERY_TREND implementation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:31:32 +02:00
maximeandClaude Opus 5.5 f518881121 Spec analysis 04 DAILY_BATTERY_TREND (day-over-day battery trend)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:27:35 +02:00
maximeandClaude Opus 5.5 5e039ef3bb Fix DAILY_BATTERY_STATE night end and rise, document phase C contract
The night end and rise were anchored on the first daily maximum,
which can be the 00:00 tail of the previous evening: 2026-05-05 was
read NO_CHARGE despite a +0.079 V rise, 2026-09-30 showed a wrong
night end, and 2026-09-26 stayed unknown from 04:00 to 11:00 when
evaluated mid-day. The rise now starts from an earlier minimum and
the knee is tested on the daily minimum (min_v). VERMONT: 139 / 31 /
14 / 0.

Docs: sheet 02 page order, battery_state.py in the CLAUDE.md map,
phase C exception to "anomaly = None means UNKNOWN".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:03:23 +02:00
maximeandClaude Opus 5.5 eacc0ecd4a Add analysis 03 entry point and documentation
src/analyse_03.py launches the common page; sheet 03 moves to
"prototype en place" with VERMONT results; CLAUDE.md, README and
sheet 01 list the third panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:53:15 +02:00
maximeandClaude Opus 5.5 a3590fab62 Plot DAILY_BATTERY_STATE as the third analysis panel
Daily maximum and night-end voltage, 14.0 V and 12.8 V thresholds,
one marker colour and symbol per day state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:52:40 +02:00
maximeandClaude Opus 5.5 1ae176cc5a Add analysis 03 DAILY_BATTERY_STATE computation (phase C)
One state per UTC day from BusVoltage: FULL_CHARGE, BELOW_PLATEAU,
NO_CHARGE, PARTIAL_CHARGE or unknown, with hardware thresholds
(14.0 V end of charge, 12.8 V LiFePO4 knee). No verdict yet.
Includes the implementation plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:52:08 +02:00
maximeandClaude Opus 5.5 9be9a636f7 Shade battery state voltage zones on the BusVoltage plot
Background bands for discharge (12.0-13.2 V), charging (13.1-13.8 V)
and full charge (14.0-14.4 V), from the battery voltage report.
Display only, no effect on the analyses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:45:43 +02:00
maximeandClaude Opus 5.5 e77d3e4b82 Spec analysis 03 DAILY_BATTERY_STATE, battery voltage report
- docs/analyses/analyse_03.md: design of the daily battery state
  analysis (phase C, state only): FULL_CHARGE / BELOW_PLATEAU /
  NO_CHARGE / PARTIAL_CHARGE per UTC day, hardware thresholds
  (14.0 V end of charge, 12.8 V LiFePO4 knee), status "en conception".
- D-018: next analyses give a day-by-day state with hardware
  thresholds, usable from installation day; phase C then phase B.
- docs/domaine: voltage report per battery state (charging, full,
  discharging) with sources; Power dispersion on VERMONT.
- CLAUDE.md: analyses table, state and next step, domain map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:43:36 +02:00
maximeandClaude Opus 5.5 7b1da6d7cf Add analysis 02 (midnight sample), simplify plots, spell out rule names
- Analysis 02 MOVING_AVERAGE_7_DAYS_MIDNIGHT_UTC_DROP: same rule as
  analysis 01 on the 00:00 UTC BusVoltage sample only, one point per
  day. Shared computation in energy_check._ma_drop(); analysis 01
  results unchanged on VERMONT.
- Common page: one panel per analysis (02 under 01), then the time
  series (D-016); src/analyse_02.py launches that page.
- Analysis panel reduced to two curves on one volt axis: 7-day mean
  and threshold; gap and reference moved to hover (D-015).
- Date tick labels under every subplot.
- Rule IDs spelled out: MA7D_DROP -> MOVING_AVERAGE_7_DAYS_DROP,
  MA7D_MIDNIGHT_DROP -> MOVING_AVERAGE_7_DAYS_MIDNIGHT_UTC_DROP (D-017).
- Docs: analysis sheet 02, sheet 01, CLAUDE.md, README, decisions
  D-015..D-017, analysis rule and nouvelle-analyse skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 09:31:52 +02:00
maximeandClaude Opus 5.5 8992bda17e Document the project: decisions log, analysis sheet, domain notes
- CLAUDE.md becomes a short map: status and next step, analyses index,
  documentation map, working rules.
- docs/decisions.md: ADR-style project decision log (D-001..D-014).
- docs/analyses/: living sheet per analysis (analyse_01) and template.
- docs/domaine/: domain knowledge, one note per question.
- .claude/rules/analyses.md: path-scoped rule loaded on src/ and
  docs/analyses/; .claude/skills/nouvelle-analyse: new-analysis workflow.
- README.md: human entry point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:29:42 +02:00
maximeandClaude Opus 5.5 0b950199b8 Rework analysis 01 entry point and plots, drop tests
- src/analyse_01.py: single entry point, analyses data/, writes and
  opens the HTML report (switches to .venv for plotly).
- Plot: analysis on top, one subplot per time series below; zoom in
  time only, y axes rescaled to the visible range on every zoom.
- Tests removed: experimental prototype phase (D-008).
- Ignore __pycache__/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:29:42 +02:00
maximeandClaude Opus 5.5 128d4bc298 Add AIMsight docs, Vermont working data and collector reference
- doc/: AIMsight reference documentation and station manual.
- data/: VERMONT complete dataset (7 system metrics) and expert
  diagnostics; other incomplete stations set aside in data/archive/.
- src/__main__ (3).py: reference copy of the embedded system_info
  collector (INA219 units, LiFePO4 OCV table).
- architecture.drawio: user-maintained architecture diagram.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:29:42 +02:00
maximeandClaude Opus 5.5 53b4f7e47c Harden MA7D_DROP inputs and report UNKNOWN stretches
- NaN/inf values are treated as missing instead of poisoning the
  running sum (which produced a false "not observed").
- Unreadable CSV files are skipped with a message naming the file;
  a station whose analysis fails is skipped with its name and the
  scan continues.
- The summary now states hours without verdict and the longest
  UNKNOWN stretch (5 months on MISSISSIPPI were silent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:37:56 +02:00
maximeandClaude Opus 5.5 79bd98c9cb Add plotly HTML report for MA7D_DROP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:27:28 +02:00
maximeandClaude Opus 5.5 d91ab866e2 Add anomaly periods, text summary and CLI for MA7D_DROP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:26:44 +02:00
maximeandClaude Opus 5.5 041770ec47 Add causal MA7D_DROP voltage-trend analysis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:26:00 +02:00
maximeandClaude Opus 5.5 422904757f Add CSV loading per station for energy analysis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:25:26 +02:00
maximeandClaude Opus 5.5 55ec0499bb Add implementation plan for MA7D_DROP energy analysis
Four TDD tasks: CSV loading, causal analysis, periods/summary/CLI,
plotly report. Code validated against real data in a prototype.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:38:50 +02:00
maximeandClaude Opus 5.5 e07656902a Add design spec for MA7D_DROP energy analysis
First analysis of the station energy-health use case: 7-day moving
average of BusVoltage compared to its own 30-day maximum, evaluated
causally at each hourly point, with a plotly visualisation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:31:38 +02:00
maximeandClaude Opus 5.5 57ea286014 Fill CLAUDE.md with project context
Project goal, decisions taken so far (energy health first, analytics
only, embedded target, no synthetic data), annotated data cases,
domain essentials from doc/ and non-negotiable diagnostic rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 17:05:11 +02:00