Append-only record of checks that were actually run. Each entry states the date, branch/commit, what was checked, the result and what was not checked. Navigation: migration index · testing guide.
- Scope: documentation only. No Python, Rust or TypeScript code changed.
- Evidence gathered by static inspection of
masterat8b630f6: module imports and GUI coupling, element registry,.geprostructure of all three sample projects (members, element codes, field sizes), use ofeval()andpickle, rules list, database formats. - Reference repositories inspected locally: GEstimator (
b352ad77) and Open Planner Studio (ceeeaf382). - Not run:
pixi run smokeand any runtime import test. pixi and the.pixienvironment were not available in the planning session, and the ignored legacypvenv/contains pandapower 2.14, which does not match the pinned 3.x environment. Runtime claims in the audit are therefore based on code reading; M1 must confirm them. - Documentation checks: a local script resolved every relative link and
heading anchor in the new developer documents (no failures; the only
unresolved links are pre-existing MyST label references in the user manual,
which Sphinx resolves).
git diff --checkclean.docs/conf.pyparses. Sphinx build not run (Sphinx not installed in the session); the newexclude_patternsentries should be confirmed on the next Read the Docs build.
- Owner approved Q1–Q9 and Q11–Q14 as recommended; Q10: EngineeringUI MIT;
Q15: newest Python with Numba and latest pandapower; R6: use the WeasyPrint
Windows executable. Follow-up answers: pandapower via pixi PyPI dependency,
upgrade as M1b after the baseline, one WeasyPrint version everywhere, npm
name
@kavilgroup/engineering-ui. Recorded in risks-and-decisions §2 and ADRs 0009, 0010, 0012–0016. - Version facts checked on 2026-11-26 from PyPI, anaconda.org and GitHub APIs:
pandapower 3.5.6 on PyPI (Python 3.10–3.14), 3.2.1 newest on conda-forge;
numba 0.68.1 / llvmlite 0.50.0 (Python 3.10–3.15, conda-forge builds to 3.15);
PyInstaller 6.22.3 conda-forge builds to Python 3.14; pygobject, pycairo,
shapely, pydantic-core conda-forge builds to 3.15; WeasyPrint 70.0 on PyPI
with
weasyprint-windows-onedir.ziprelease asset, 69.0 on conda-forge; osifont README states GPL-3.0 with font exception. pixi.lockcurrently pins Python 3.12.16, pandapower 3.2.1, numba 0.68.1, WeasyPrint 69.0 (read from the lock file).- Authorship check for MIT relicensing: all commits touching GEstimator
modern/srchave the owner as author (AI co-author trailers only). - Not run: environment solve for Python 3.14 (pixi unavailable in session); this is M1b work.
- Owner accepted ADRs 0008 and 0011; accepted 0003, 0004 and 0006 in direction, with details finalised by M4, M7 and M8 respectively.
- Environment: pixi
default/testenvironments (same solve group;testadds pytest 9.2.0), Python 3.12.16, pandapower 3.2.1, NumPy 2.2.6, SciPy 1.13.1, pandas 2.3.3, Shapely 2.2.0, NetworkX 3.7, Numba 0.68.1, WeasyPrint 69.0, GTK 3.24.52; Linux x86_64 underxvfb-run. The default environment's package set is unchanged (lock diff: pytest and its dependencies added; pixi 0.85.0 rewrote__unix=0=0as__unix=0). - Engine code: unchanged (
git diff -- gelectricalempty). The harness only calls legacy methods; it isolates XDG directories, theme and locale, and restores the module-level defaults aliased by D4 before every window. - Projects: 3 samples, 8 coverage projects and 6 edge projects (17) built by
tools/baseline/build_projects.py. Drawings of the coverage projects were reviewed as rendered PNGs (not in the interactive GTK app). xvfb-run -a pixi run -e test test: 38 passed (fresh capture, 3 min 42 s).- Determinism: captures with
PYTHONHASHSEED=0and=1are byte-identical (diff -rempty, including PNG drawings);compare.py: 17/17 identical. - Comparator sensitivity: a
vm_puchange of 5e-9 passes, 2e-8 fails (tolerance 1e-8). pixi run -e test smokeunderxvfb-run: 3/3 passed.- D8 round trip: values change on load for older files —
sample.gepro97 changed / 144 added / 69 removed fields,kerala_inspectorate_sample.gepro4 / 26 / 2,voltage_test.gepro0 / 45 / 1. Files saved by the current code: 0 changes. Save → load reproduces the loaded canonical model exactly for all 17 projects. - New defects recorded in the audit: D16 (undo of deleting element 0 moves
it to the end), D17 (pandapower 3.2.1 failures for impedance, xward,
trafo3w LG SC and 3-phase PF with generator), D18 (report export
KeyErrorfor static generators / missing load profiles). D7 and D8 confirmed. Audit corrected:element_async_motoris not registered (32 registry codes); the smoke test window is shown (show_all()). - Feature inventory: not changed (no row status is affected by M1 evidence).
- Not run: the GitHub Actions workflow
quality.yml(no push in this session; first hosted run pending), Windows smoke test, macOS, Sphinx build (no user-manual pages changed), interactive review of the coverage projects in the GTK app. PNG comparison in CI will be skipped if the runner resolves different fonts (osifontis installed locally).
2026-11-26 — M1 first CI run (PR #27)
- Run 45856511403 at
dfe63cf: Windows smoke passed; Linux smoke passed; Linux regression baseline failed in 11 of 17 projects, only inundo.json. Cause: undo snapshots used a bit-exact SHA-256 of the storage model and stored float values without tolerance; protection curve points differ by ~1e-14 between the runner and the capture machine. All other artefacts matched within the documented tolerances. Drawing PNGs were skipped as designed (runner resolves DejaVu fonts, baseline osifont / Noto Sans Mono). - Fix (harness only): tolerance-aware undo snapshot summaries, difference
paths without values, float-free structure descriptions in
d8.json, line-number-free tracebacks instatus.json. Re-captured: onlyundo.json(17),status.json(27) andsample__sample/d8.jsonchanged; no numerical artefact changed. Localxvfb-run -a pixi run -e test test: 38 passed. - Hosted re-run 45859730391 at
7c10cfb: Linux smoke + regression baseline passed (5 min 14 s; drawing PNG comparison skipped, fonts differ), Windows smoke passed (2 min 20 s).
Status: difference report awaiting owner approval. Baseline not regenerated.
- Environment change (
pixi.toml,pixi.lock): Python 3.12.16 → 3.14.10, pandapower 3.2.1 (conda-forge) → 3.5.6 (PyPI via[pypi-dependencies]), WeasyPrint 69.0 (conda-forge) → 70.0 (PyPI, the release that shipsweasyprint-windows-onedir.zip), NumPy 2.2.6 → 2.4.6, SciPy 1.13.1 → 1.18.1. Unchanged: pandas 2.3.3, Numba 0.68.1, Shapely 2.2.0, NetworkX 3.7, matplotlib 3.11.2, GTK 3.24.52, PyGObject 3.58.1. Only pandapower and WeasyPrint come from PyPI; their dependencies (including Pango and the compiled Python packages) come from conda-forge, with pandapower'snumpy<2.5,pandas~=2.3and other bounds mirrored inpixi.tomlso the conda solve stays compatible.pixi locksolved win-64, linux-64, osx-64 and osx-arm64 (both environments). Lock SHA-256 startsa8c1eda3dd45d1c4. - Legacy pins (D11):
requirements.txtregenerated from the dependency closure of the new environment (pandapower 3.5.6, WeasyPrint 70.0; pycairo and PyGObject stay system-provided as before);setup.pypinspandapower==3.5.6,weasyprint==70.0andpython_requires>=3.14,<3.15. - Numba:
pandapower.auxiliary._check_if_numba_is_installed()isTrue,net._options["numba"]isTrueafterrunppandrunpp_3ph, no Numba fallback warning, and the JIT dispatchersmakeYbus_numba.gen_Ybusandcreate_jacobian_numba.create_J2hold compiled signatures after a run.
| Change | Cause | Evidence |
|---|---|---|
elementmodel/transformer.py: pass mag0_percent = field × 100 |
pandapower 3.4.0 "mag0_percent is treated as a percent instead of ratio"; 3.2.1 used the value as the ratio Zm0/Z0. The GElectrical field is the ratio (Zm0/Z0, default 10) |
Same pandapower net (dumped with 3.2.1) solved with 3.5.6 changed res_bus_3ph by up to 7e-5 pu; the only differing matrix entry was the zero-sequence magnetising shunt of the Dyn transformer (BR_G_ASYM/BR_B_ASYM). After the fix every res_*_3ph table and every 3-phase result field equals the baseline within tolerance |
elementmodel/generator.py (StaticGenerator) and the diversity balancing sgen in model/pandapower.py: pass type='wye' |
create_sgen default type changed from 'wye' to None; 3-phase power flow ignores sgens whose type is neither wye nor delta |
cov_static_generation 3-phase voltages moved by 5.8e-7 pu; equal to baseline after the fix |
model/pandapower.py: bus.vn_kv.at[i] = … → bus.at[i, 'vn_kv'] = … (4 lines) |
Chained assignment. Works on pandas 2.3 but emits ChainedAssignmentError (96 warnings in the M1 baseline) and stops working under pandas 3 copy-on-write. Python 3.14 no longer shows the warning |
pp_input.json bus tables unchanged; warning gone |
baseline-capture --out <scratch> then compare.py, with diff limits lifted:
6,760 differences in 17/17 projects. Every difference is in one of the rows
below. Unchanged in all 17 projects: model.json, roundtrip.json,
topology.json, curves.json, d8.json, diagnostics.json, renumber.json,
undo.json, drawing_*.png (compared, fonts match), balanced power flow
(all pf_bal, pfdiv_bal, ts_bal result tables), all res_*_3ph tables,
maximum short-circuit values, rules-check results (except the new
cov_generation 3-phase runs) and every result field other than those below.
| # | Artefacts | Old → new | Cause |
|---|---|---|---|
| 1 | Minimum short-circuit values: ikss_ka_3ph_min, ikss_ka_1ph_min, zk_ohm_min, zk_ohm_1ph_min (results.json, node_results.json, 5 lines of report.txt per affected project), sc.json (res_bus_sc of the min case: ikss_ka, ip_ka, skss_mw, rk_ohm, xk_ohm, rk0_ohm, xk0_ohm) |
See table below; −0.1 % to −3.0 % in projects with a transformer | pandapower 3.5.6 applies the IEC 60909-0:2016 transformer correction factor K_T only in the max case (§6.3.3); 3.2.1 also applied it in the min case. Verified: with the 3.2.1 behaviour patched back into the installed pandapower (temporarily, then restored and checked byte-identical), all of these differences vanished except row 2 |
| 2 | Same fields, edge__unusual_values only (lv_tol_percent = 10) |
3-phase min −5.26 % (e.g. 4.2633 → 4.0389 kA); 1-phase min +0.02 % | pandapower now uses c_min = 0.90 for low-voltage networks with 10 % tolerance (IEC 60909-0:2016 Table 1); 3.2.1 used 0.95. The 1-phase minimum is computed by GElectrical with its own c factor, so only the K_T change applies; K_T > 1 for c_max = 1.1, so removing it lowers the impedance |
| 3 | cov_generation pf_3ph, pfdiv_3ph, ts_3ph |
Previously KeyError: 'res_gen_3ph' (D17); now the chain completes, but power flow emits MatrixRankWarning: Matrix is exactly singular and every 3-phase bus, generator and grid result is NaN |
pandapower 3.5.0 "gen for 3ph load flow" fix. The network has a generator and the grid on the same bus (pandapower diagnostic warns). New files: pf.json, results.json, node_results.json, rules.json, sc.json in those three modes. Owner decision needed: the legacy app now shows NaN results instead of failing |
| 4 | pf.json res_bus, res_line, res_trafo, res_ext_grid, res_load, res_sgen in 3-phase modes (1,599 values) |
3.2.1 left placeholder values after runpp_3ph (vm_pu 1.0, line flows 0); 3.5.6 fills them from the 3-phase solution |
pandapower result extraction. Not used by GElectrical in 3-phase mode (it reads res_*_3ph); no result field changed |
| 5 | pp_input.json, pf.json inputs_after_run: asymmetric_load, asymmetric_sgen |
New columns sn_a_mva, sn_b_mva, sn_c_mva (NaN) |
pandapower 3.3.0 per-phase rating columns; not set by GElectrical, not used in calculation |
| 6 | pf.json inputs_after_run/trafo/*/mag0_percent (3-phase modes) |
10 → 1000 | Compatibility fix above (same physical value) |
| 7 | status.json warnings (111 files) |
Diagnostic log lines now come from pandapower.diagnostic.diagnostic_helpers at WARNING level (720 lines; was 12 from pandapower.diagnostic); ChainedAssignmentError warnings gone; cov_generation 3-phase: MatrixRankWarning, extra RuntimeWarning |
pandapower 3.3 diagnostic restructuring; chained-assignment fix above; row 3 |
Minimum short-circuit changes in pf_bal node results (largest change per
project and field; projects not listed have no change):
| Project | Field | Nodes | Largest: old → new (kA) | Range |
|---|---|---|---|---|
cov_multisheet |
3-phase min | 12 | 7.1518 → 6.9582 (−2.71 %) | −2.71 … −0.20 % |
cov_multisheet |
1-phase min | 12 | 0.02275 → 0.02275 (−0.001 %) | ≈ 0 % |
cov_radial_lv |
3-phase min | 13 | 12.7805 → 12.4117 (−2.89 %) | −2.89 … −0.09 % |
cov_radial_lv |
1-phase min | 13 | 13.5024 → 13.1054 (−2.94 %) | −2.94 … −0.10 % |
edge__unusual_values |
3-phase min | 5 | 0.2447 → 0.2318 (−5.26 %) | −5.26 … −5.24 % |
edge__unusual_values |
1-phase min | 5 | 4.5299 → 4.5309 (+0.02 %) | 0 … +0.02 % |
sample__kerala_inspectorate_sample |
3-phase min | 3 | 9.9016 → 9.6122 (−2.92 %) | −2.92 … −1.18 % |
sample__kerala_inspectorate_sample |
1-phase min | 3 | 10.0807 → 9.7808 (−2.98 %) | −2.98 … −0.08 % |
sample__sample |
3-phase min | 11 | 15.8733 → 15.4964 (−2.37 %) | −2.37 … −0.12 % |
sample__sample |
1-phase min | 11 | 16.8138 → 16.3910 (−2.51 %) | −2.51 … −0.01 % |
The same changes appear in every analysis mode of these projects (short circuit does not depend on the power-flow mode).
xvfb-run -a pixi run smoke: 3/3 passed (Python 3.14, WeasyPrint 70.0 PDF export included).- Full baseline capture: 17/17 projects captured; report PDF generated in the same projects as the baseline (D18 failures unchanged).
GELECTRICAL_BASELINE_CAPTURE=<final capture> pixi run -e test test: 21 passed, 17 failed (every project differs from the M1 baseline as listed above; expected until the approved re-baseline).- Bisection used a scratch copy of the M1 environment (
pixi install --frozenfrom themasterlock): the same pandapower JSON net solved with 3.2.1 and 3.5.6, and the sequence admittance matrices compared. git diff --checkclean.
- Windows and macOS: lock solved, but smoke test not run (Windows CI job runs on push). Hosted CI not run (no push).
- Interactive GTK session on Python 3.14 (
pixi run start) not exercised by hand; only the windows built by the smoke test and the capture. - Flatpak manifest (
com.kavilgroup.gelectrical.json) still builds pandapower 2.14.9 and WeasyPrint 62.3 on the GNOME 46 runtime (Python 3.11), and Snap (core22, Python 3.10) installsrequirements.txt, which now needs Python ≥ 3.11 (NumPy 2.4). With themag0_percentfix a pandapower < 3.4 build would model the zero-sequence magnetising impedance 100 times too large. These packages need updating before their next release (M14). - Next step after approval: regenerate
tests/baseline/with anenvironment.jsonthat references this entry (implementation plan M1b step 4).
- Owner approved the M1b difference report above ("Approve, re-baseline").
The handling of
NaN3-phase results forcov_generation(row 3) was not decided; the baseline records the current behaviour. tools/baseline/capture.pygained--reason, stored asbaseline_reasoninenvironment.json. Command:xvfb-run -a pixi run -e test baseline-capture --reason "M1b: … see docs/migration/validation.md (2026-11-26 M1b entry)".- New
tests/baseline/: 17/17 projects; 356 files modified, 15 added (thecov_generation3-phase result files). Identical to the capture analysed in the difference report (diff -rq: onlyenvironment.jsondiffers, bybaseline_reason). xvfb-run -a pixi run -e test test: 38 passed (fresh capture, 4 min 5 s).xvfb-run -a pixi run smoke: 3/3 passed (run before the re-baseline; engine code unchanged since).- Not run: Windows/macOS smoke, hosted CI (no push).
Status: implemented with mock data; acceptance criteria met locally (owner review pending; hosted CI not run).
- npm workspaces at the root (
modern,packages/*), Node 24.21.0, npm 11.19.0. Exact pins (.npmrcsave-exact=true): Vue 3.5.46, Quasar 2.36.0,@quasar/vite-plugin2.0.2, Vite 8.4.0,@vitejs/plugin-vue6.0.11, TypeScript 6.0.3, vue-tsc 3.3.14, Vitest 5.1.2 (@vitest/browser,@vitest/browser-playwright), Playwright 1.65.0 (rootoverrides), Storybook 10.6.9 (@storybook/vue3-vite,addon-a11y,addon-vitest,addon-docs),@vue/test-utils2.6.0, happy-dom 21.0.4, Prettier 3.10.1,@types/node24.19.4. TypeScript 7.0.2 is newer butvue-tscneeds the JavaScript compiler API (ADR 0017). packages/engineering-ui(@kavilgroup/engineering-ui0.1.0, MIT, private): tokens and Quasar bridge (light/dark/system viadata-themeand QuasarDark),EuiIcon(64 glyphs includingblank, 10 electrical),EuiRibbon,EuiDocumentRail,EuiWorkspace(keyboard splitters),EuiStatusBar,EuiNotifications(+createNotificationQueue),EuiDialog(QDialog),EuiNumberInput(QInput, unit, display precision, raw editing, host errors),EuiPropertyInspector(FieldSchema shape of backend §8:int,float,str,multiline_str,bool,graph/data/font,heading,selection_list,enabled,editable, mixed values, filter).- GEstimator code adapted at
e4e4fb295899feda5253ba216613c70c1f256d4e(AppIcon, theme.css, appearance.ts, RibbonToolbar, DocumentRail, documents.ts helpers, statusNotice.ts, PersistentDialog, ribbon/rail rules of style.css), PrimeVue replaced by Quasar or plain elements; MIT header and provenance line in each file, rows in the package README. The adapted files were unmodified in the GEstimator working tree at that commit. modern/: Vite + Vue 3 + strict TypeScript + Quasar via@quasar/vite-plugin; shell (ribbon, rail, palette, schematic placeholder, inspector, messages, status bar, notifications, settings dialog) with mock data only; no backend calls.- Tooling: Prettier (root config, workspaces only),
vue-tsc,tools/check_boundaries.mjs(+ tests),tools/check_licences.mjs(+ tests), CI jobfrontendinquality.yml. ESLint (optional in the plan) not added.
npm run check: Prettier clean; boundary check passed (63 files); licence check passed; tool tests 5/5;vue-tscclean in both workspaces; EngineeringUI Vitest 121 passed (unit project 60 tests in 12 files; storybook project 61 stories in 10 files, Chromium headless through Playwright);modernVitest 3 passed; library build and app build passed.npm run build-storybook: passed (61 stories, 10 docs pages).- Accessibility:
parameters.a11y.test = "error"fails a story on any axe violation (stricter than "no serious violations"); all 61 stories pass, including the Dark variants (a play function asserts the dark tokens are applied before axe runs). Issues found and fixed during M6: rail tiles (label-content-name-mismatch), notificationrole="alert"onli(list,aria-allowed-role). axe 4.14 on the running shell: 0 violations in light and dark after moving splitters into panel landmarks and adding a header landmark andh1. - Keyboard (play functions): ribbon tabs (arrows, Home/End, automatic activation), ribbon toolbar (roving focus, disabled commands skipped, Enter), document rail (arrows, Enter, Delete, End, add tile with Space), workspace splitters (arrows, Shift, Home), number input (Enter commits, Escape reverts, expressions passed as text), inspector (Tab order, Enter, Escape, Space on check box, edit button), dialog (focus moves in, Enter applies, Escape cancels). Real keyboard in the in-app Chromium: Escape closes the settings dialog and focus returns to the Settings command.
- Themes: light and dark checked by hand in the shell (screenshots in the
session) and by the Dark stories;
systemfollowsprefers-color-scheme(unit test with a mocked media query). - Standalone package:
npm run build -w @kavilgroup/engineering-uibuildsdist/(ES modules per subpath,engineering-ui.css, declarations underdist/types); everyexportstarget exists; the output imports Quasar only fromquasarand only incontrols,dialogs,inspectors. - Licences (
npm run check:licences, 356 installed packages): runtime closure (Vue, Quasar and Vue's compiler dependencies) MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0; development-only MPL-2.0 (axe-core, lightningcss), BlueOak-1.0.0, 0BSD, (MIT OR CC0-1.0); no unknown or GPL/LGPL licences. - Storybook MCP for Vue (optional): evaluated from the
@storybook/addon-mcp10.6.9 package (MIT). It supportsvue3; documentation tools need the experimental docgen server on@storybook/vue3-vite. Not adopted; outcome recorded in EngineeringUI §7. The addon was not run. npm audit: 5 moderate findings, all injs-beautify→editorconfig,glob,minimatch, pulled in by@vue/test-utils2.6.0 (development only). The suggested fix downgrades@vue/test-utilsto 2.4.11; not applied.
- Tauri dev window (plan deliverable): not created;
src-tauriarrives with the M5 sidecar PoC and the M9 vertical slice. The shell runs in the browser only. - Hosted CI (no push); Windows and macOS; WebKit and Firefox story runs.
- Visual regression screenshots (no tool chosen yet).
selection_imagesin the inspector are accepted but not rendered.- The Storybook test run needs the Playwright browser once
(
npx playwright install chromium-headless-shell); locally the cached revision for Playwright 1.65.0 was used.
Status: implemented; acceptance met (raster limit for headless drawings with Cairo text set by the owner, below). Owner review pending.
- Environment: unchanged from M1b (Python 3.14.10, pandapower 3.5.6,
WeasyPrint 70.0, GTK 3.24.52;
pixi.locknot modified, only tasks added topixi.toml). Linux x86_64;osifontinstalled system-wide. - Structure (ADR 0014,
ADR 0018):
MainApp/MainWindow,view/,interface/moved togelectrical/gtk/;misc.pysplit intocore/(constants, style, fields, paths, undoable, geometry, interpolation),symbols/,reports/andgtk/widgets.py, withmisc.pykept as a GTK-only re-export;elementmodel/registry.py(D14); element rendering moved tosymbols/behindupdate_symbol()/symbol_active()/get_symbol_layers();cairo.Regionreplaced bycore/geometry.py; headlessProjectModelwith event notifications andGtkProjectModel(views, dialogs) in the GTK UI;analysis/pipeline.py,persistence/gepro.py,reports/export.py,reports/graph.py(Matplotlib without GUI backend); D4 and D15 fixed;tools/headless_run.py(pixi run headless). - Engine code that computes results (
model/pandapower.py,networkmodel.pylogic,protection.py,rulescheck.py, element power models and field side effects) is unchanged apart from imports.
| Criterion | Result |
|---|---|
python -c "import sys; sys.modules['gi'] = None; import gelectrical.model.project, gelectrical.analysis.pipeline, gelectrical.persistence.gepro, gelectrical.reports" |
Passes (tests/engine/test_headless_import.py; a second test checks that no gi, gelectrical.gtk or gelectrical.misc module is loaded by the engine) |
| Headless pipeline on all baseline projects matches the baseline within tolerance | Passes for every JSON and text artefact of all 17 projects (model, round trip, D8, curves, topology, pandapower inputs, diagnostics, all 6 analysis modes, results, node results, rules, renumbering, undo, report text) with the documented tolerances. capture.py --headless, PyGObject blocked, no display. Expected difference handled without widening tolerances: one PyGTKDeprecationWarning (emitted by Gtk.Label in the GTK tab code) is absent from the headless status.json files |
| Drawing PDF visual diff within threshold | Passes with the owner-approved limit for Cairo text. Headless drawings with PangoCairo text (GELECTRICAL_TEXT_BACKEND=pango, no GTK): 25/25 rasters pixel-identical (0.0000 %) to the baseline, so geometry and stroke rendering are unchanged. With the headless default (Cairo toy text API) the rasters differ by 0.12–0.61 % of pixels (all 25 above the 0.1 % limit) because glyph rendering differs (kerning, synthetic bold). Owner decision (2026-11-27): a separate limit of 1 % differing pixels for headless captures with Cairo text (HEADLESS_CAIRO_TEXT_PIXEL_FRACTION), instead of PangoCairo in the sidecar; the 0.1 % limit for legacy and PangoCairo-text captures is unchanged. tests/test_headless_baseline.py and compare.py now check Cairo-text rasters against it: pixi run -e test test-headless 18/18 passed, all 25 rasters within 1 % (0.12–0.61 %) |
| Report generated | Yes: headless report.html/report.pdf in every project where the legacy capture produced one (D18 failures unchanged); report.txt identical |
| Legacy GTK app passes the smoke test and a manual check list | Smoke 3/3. Check list scripted under xvfb-run against the real MainWindow (open, new tab, notebook switching, undo/redo of tabs, remove/reorder sheets, tab labels, palette insert with rotation, click selection, port hit test, field edit and undo, analysis, rules check into the messages view, diagnostic selection marking, save and reopen, drawing export, renumber and undo, protection coordination warning): 24/24. Not exercised interactively by hand |
Cairo toy API extents vs PangoCairo extents on all 249 elements of the 17
baseline projects: largest difference 3 drawing units (limit one grid
unit = 16) → option 1 (no gi in the sidecar) satisfies the decision rule
(tests/test_symbols_extents.py).
During the work the legacy capture found two regressions, both fixed before
the final runs: sample__sample/drawing_1.png differed by 0.126 % because
symbol extents were first measured at identity scale (assembly frames and
reference lines follow text width; rendering now measures on the output
context as before), and the motor symbols inherited the label update of
Load (Motor3ph/Motor1ph now keep their own text). After the fixes every
legacy raster is pixel-identical.
xvfb-run -a pixi run -e test test(final code): 111 passed in 6 min 33 s: legacy baseline 38 (fresh GTK capture; all 25 drawing rasters 0.000000 % different), headless baseline 18 (rasters reported, not checked: 0.12–0.61 %), engine unit tests 55 (tests/engine,giblocked: fields, registry vs the baseline's 31 registered codes, geometry vscairo.Regionon 20 000 random cases, symbols, persistence round trip on 3 samples and 8 coverage projects, pipeline, exports, headless import;tests/test_symbols_extents.py).- Pure geometry fuzz against
cairo.Region: 100 000 random cases (including empty and negative rectangles), 0 mismatches. - Full headless capture with PangoCairo text: rasters 25/25 at 0.0000 %; all other artefacts as above.
- After the owner decision:
pixi run -e test test-headless(Cairo text, 1 % raster limit) 18 passed;pixi run -e test test-engine55 passed. xvfb-run -a pixi run smoke: 3/3 (after every step and on the final code).pixi run headless sample_files/sample.gepro: analysis completed (time series, 3-phase from the file settings), 1 diagnostic warning, rules check 9 warnings / 12 info,network.json,report.html,report.pdf,drawing.pdfwritten; no display.git diff --checkclean.
- Interactive GTK session by hand (
pixi run start); Windows/macOS; hosted CI (workflow extended: headless run without display, headless baseline in the Linux test job, engine tests and headless run on Windows). - Sphinx build (no user-manual pages changed).
- Packaging builds (PyInstaller/Flatpak/Snap) with the new package layout:
manifests updated (
setup.pyusesfind_packages, Glade path), not built. osifontis still not bundled with the package (both text backends use the system font configuration).
Status: implemented; acceptance met locally. Owner review pending.
Branched from feat/m2-milestone (M2 not yet merged to master).
- Environment: M1b/M2 environment with Mako removed (
pixi remove mako;pixi.lockdropsmako,importlib-metadataandzipponly). Also removed fromrequirements.txt,setup.py, the Flatpak manifest and the install instructions. - Scope: D1, D2, D3, D10 (ADR 0011).
New modules
core/expressions.py,core/database.py,model/clipboard.py. Converted call sites:model/protection.py(curves, selection criteria),model/rulescheck.py,core/fields.pyandgtk/view/field.py(numeric entry),reports/spreadsheet.py(formulas),gtk/view/database.py(curve file references),symbols/formatter.py(labels),gtk/view/drawing.py(clipboard),reports/export.pyandreports/tables.py(autoescape, URL fetcher). Unusedpickleimports removed from the GTK views.
| Criterion | Result |
|---|---|
No eval/exec/pickle.loads on external data (static check in CI) |
Passes: tests/engine/test_security.py::test_no_code_execution_calls parses every .py file of gelectrical/, tools/, modern/ and the launcher; no eval, exec, compile, __import__, pickle.load(s), marshal.loads, yaml.load, pickle or Mako import remains. One allowed entry: __import__ in tools/baseline/capture.py (imports modules from its own constant list). Runs in the CI engine-test steps |
| Curve and rules baselines unchanged | Passes: full regression baseline green (legacy and headless captures, all 17 projects, unchanged tolerances, tests/baseline/ not regenerated) |
| Malicious sample files rejected with a clear error | Passes: a copy of sample.gepro with __import__('os').system(...) injected in a protection selection criterion or a curve value fails to load with ExpressionNotAllowed: Element element_fuse Q1, curves and parameters: Method 'system' is not allowed (expression ...); os.system is never called (test patches it). The GTK window refuses to open it with "Project could not be opened: unsupported expression - ..." (scripted check) |
- Curve expressions: all 439 distinct expressions stored in the bundled
databases and the 17 baseline projects parse under the whitelist and give
the same value as Python
eval(or both fail), with two sets of test parameters (test_stored_expressions_match_python_eval). - Rules: all 61 rule expressions compile under
RULES_POLICY; rules results identical (baselinerules.json). - Labels: Mako vs safe templates on every label of every element of the 17
projects, after load and after analysis: 1534 labels, 0 differences;
default instances of every element class: 129 identical, 14 fail in both
(
TitleBlockwithout its fields). One-off script before Mako was removed. - Database references: 453
pcurve_l/pcurve_greferences in the bundled CSV libraries parse to the same tuple aseval. - Reports: headless
report.htmlof every project before and after the change identical apart from Matplotlib SVG timestamps and generated ids; WeasyPrint refused no resource. - Cost: evaluating the
acb_lnt/sr18.jsoncurve set takes 0.55 ms (including Shapely); the full baseline took 7 min 3 s (M2: 6 min 33 s, different load on the machine).
- Expressions outside the whitelist (calls of other functions or methods, dunder or private names, imports, lambdas, comprehensions, slices, huge powers) are rejected instead of executed; projects containing them do not open. A curve item that fails at run time (unknown field, division by zero) is still logged and skipped as before.
- Curve function names containing
.(IEC_S_INV_3.0,IEC_S_INV_1.3) failed withSyntaxErrorunderevaland now resolve (unused in bundled data and test projects). - Numeric field entry and spreadsheet formulas accept the operators,
constants (
pi,e) and math functions of GEstimator'sNumericExpression(list in ADR 0011); previously any Python expression. Non-finite results (1e400) are rejected;pi,eand themathfunctions were not available underevalbefore. - Copy/paste uses a JSON payload; text copied by an older version (pickle)
is rejected with a log warning. The floating preview is built from stored
models; inserted elements were already copies (
get_element_copy). - Report: project and element text is HTML-escaped (
<,&show as text); the drawing address keeps its line breaks.
xvfb-run -a pixi run -e test test: 229 passed in 7 min 3 s (legacy baseline, headless baseline, engine tests incl. 81 expression and 37 security tests). Only warning: informationalpixi_lock_sha256mismatch (Mako removal).pixi run -e test test-engine: 173 passed (before the final doc edits; code unchanged since).xvfb-run -a pixi run smoke: 3/3.- Scripted GTK check under
xvfb-runwith the realMainWindow: copy throughGtk.Clipboard(JSON payload), paste into a floating model, insert, undo, legacy pickle text rejected, numeric entry, malicious project not opened: 11/11. - Headless import criterion of M2 still passes;
git diff --checkclean.
The first hosted run of PR #31 failed 4 baseline tests (legacy and headless,
edge__unconnected, edge__unusual_values); the same 4 tests failed on the
master pushes 45935157857 and 45880852604 and passed on other runs. Every
difference was the sign of an exact zero in formatted text ('1.0 < -0.0'
vs '1.0 < 0.0', report -0.0 vs 0.0). Owner decision (2026-11-27): the
baseline comparison writes exact-zero tokens without sign in text values and
report.txt (canonical.normalize_signed_zero,
regression baseline §3);
tests/engine/test_baseline_compare.py. Tolerances and tests/baseline/
unchanged.
- Interactive GTK session by hand; Windows/macOS.
- Packaging builds (Flatpak manifest edited, not built).
- Sphinx build (installation pages edited only to drop
makofrom thepip installlist).
Status: implemented; acceptance met locally (Windows 11). Owner review
pending. Branched from master at 092822d (M3 merged). Nothing committed
at the time of this entry.
- Scope: plan M4;
reference backend protocol and services;
decisions ADR 0019.
New:
modern/backend/(runtime with owner thread and job thread, sessions with snapshot history, 60 methods in 11 services, JSON Lines entry point, generated JSON Schemas),gelectrical/core/ids.py,tools/measure_services.py,tests/services/(73 tests),tests/engine/test_database_items.py. - Engine changes (no engineering result affected): equipment-library loading
and item conversion moved from the GTK database dialog to
core/database.py(load_database,validate_database_item);alter_values_dicthandling moved from the GTK field view tocore/fields.apply_alter_values;persistence.write_geprogained opt-inatomic,backupandapp(legacy save unchanged). The GTK views call the moved functions. - Environment: no dependency change (
pixi.lockunchanged); pixi tasksbackendandtest-services; Windows CI job runstest-services.
| Criterion | Result |
|---|---|
| Feature-inventory engine behaviours callable through services | Mostly: project new/open/save/save as/settings, catalogue and field schemas, insert/paste/copy/delete/move/rotate/fields/wires/assemblies/references/renumber/sheets, library, load profiles, protection curves and parameters, analysis (all modes, diagnostics, rules check, results, cancel), exports (drawing PDF, report, pandapower JSON/HTML, element graph), undo/redo, program settings. Not yet: protection coordination data set with voltage scaling and the settings spreadsheet (D03–D06, M11) |
| Each legacy user action maps to one command with the same undo granularity and label (table in tests) | Passes: test_undo_labels.py, 21 legacy actions performed with the legacy undo.Stack and as commands on the same file: same label, one entry, same stored document, undo restores, redo re-applies. Documented differences (move in place as one entry, new rotate/edit-wire commands, no entry for no-ops, clear results not undoable) in backend-protocol §5 |
| Command atomicity: injected failures leave state unchanged | Passes: failure injected in the second delete_rows of a two-sheet delete; document, revision and history unchanged, session keeps working. Validation errors change nothing |
| Analysis via services equals the baseline | Passes: all 17 baseline projects through analysis.start (pf_bal settings + rules check); element and node results of the analysed copy compared with tests/baseline/*/pf_bal with the unchanged tolerances; typed results equal the copy's values; rules messages equal; projects whose baseline run stops stop the same way (critical diagnostics, line-to-ground failure) |
.gepro saved by services opens in the legacy app with identical results |
Passes for the model: a service-saved sample.gepro (with uid, children_uids, app) loads in the engine loader used by the GTK app to the same storage model as the original. The legacy GTK window itself was not opened on a service-saved file |
| Required tests: services, undo/redo sequences, atomicity, preview rollback, stale revision, multi-session isolation, protocol by spawning the backend | Pass: tests/services/ (test_services, test_undo_labels, test_analysis_baseline, test_protocol, test_schemas) |
Snapshot transactions (tools/measure_services.py, median of 5, Windows 11):
5–8 ms per command, undo or redo on the sample projects; 65–66 ms on a
synthetic 2000-element project (998 KB JSON). With structural sharing, 50
commands on the synthetic project add 7.5 MB of traced memory. Analysis
jobs take up to about 8 s per baseline project; queries are answered while a
time-series analysis runs (test_protocol.py).
pixi run -e test test-services: 73 passed in 1 min 55 s.
- Move in place as one entry: approved. Clear results without an undo entry: approved.
- Analysis settings must also be saved:
analysis.startnow writes them to the Simulation settings (undo entryUpdate analysis settingswhen they change;test_analysis_settings_are_saved_to_the_project). After this changepixi run -e test test-services: 74 passed in 2 min 2 s. pixi run -e test test-enginescope (pytest tests/engine): 228 passed (security scan includesmodern/).pixi run smoke: 3/3.pixi run -e test test-headless: 13 passed, 5 failed. Every difference is a traceback path in*/status.jsonthattools/baseline/capture.py(stable_traceback, unchanged by this branch) does not rewrite to<ROOT>on Windows; all engineering artefacts match. Linux CI runs this test.- Frontend:
npm run check:boundaries,check:licences,typecheckpass;format:checkreports only CRLF line endings of the Windows checkout (clean with--end-of-line crlf);modern/backend/added to.prettierignore. - Generated method table and JSON Schemas current (tests); doc links resolve;
git diff --checkclean.
- Legacy regression baseline with the GTK capture (
pixi run -e test test) and Linux; the CI run will cover them. - Interactive GTK session (the moved database-dialog and field-view code was
compiled and covered by
test_database_items.py, not exercised by hand). - Packaged backend (M5), Rust bridge (M5/M9), recovery checkpoints (M9), MCP (M13).
- Pre-existing: importing
gelectrical.elementmodelbeforegelectrical.modelis a circular import (tests import in the working order).
Status: Linux done and measured; Windows not run. Branched from master
at 2ea70e5 (M4 merged). Code written on 2026-11-28 without a pixi
environment; on 2026-11-29 pixi 0.85.0 (the CI version) was installed and
the builds, tests and measurements below were run on Linux. Owner review
pending; nothing committed at the time of this entry.
- Scope: plan M5;
packaging §10;
decisions ADR 0020
(launch, lifecycle, PoC shell); implementation notes and measurements in
ADR 0010 and
ADR 0016.
New:
modern/sidecar/(entry, PyInstaller spec),modern/bundle_backend.py,modern/src-tauri/(Rust shell, PoC page, icons fromsource/artwork/com.kavilgroup.gelectrical.svg,Cargo.lock),gelectrical/reports/pdf.py,tools/sidecar_smoke.py,tests/engine/test_report_pdf.py,.github/workflows/sidecar.yml. - Engine change (no engineering result affected):
export_pdf_reportrenders the PDF throughreports/pdf.py. WithoutGELECTRICAL_WEASYPRINTthe call is the same as before (HTML(string=..., base_url=folder, url_fetcher=report_url_fetcher([css]))andwrite_pdf(stylesheets=[css])). - Test change:
tests/engine/test_security.pyno longer scans the git-ignored build outputmodern/src-tauri/resources/andtarget/(the frozen sidecar contains pandapower's own sources, which callexec). Repository code is scanned as before. - Environment: pixi feature/environment
bundle(pyinstaller >=6.16, default solve group; locked PyInstaller 6.22.3, hooks-contrib 2026.10) and tasksbundle-backend,sidecar-smoke.pixi lockadded only thebundleenvironment; the default and test environments are unchanged. npm:@tauri-apps/cli2.12.4 (dev, Apache-2.0 OR MIT) added topackage-lock.jsonby hand from an npm-9 resolution (entries, integrity hashes andlibcfields only); scriptstauri,tauri:dev,tauri:build,tauri:build:windows. Rust:tauri2.13.0 (403 crates).
| Criterion | Result |
|---|---|
| Install on Windows 10/11 and Ubuntu 22.04: open sample, full analysis, report and drawing PDF | Linux: passes on the development machine (glibc 2.43, not Ubuntu 22.04, not a clean machine): .deb built with tauri build --bundles deb, extracted with dpkg-deb -x (no root to install) and run from its /usr/bin + /usr/lib/GElectrical layout with GELECTRICAL_POC_AUTORUN=1: frozen sidecar resolved from the resources, sample.gepro opened, analysis with rules check twice, report (37 pages) and drawing PDF written, exit code 0. Windows: not run (the sidecar workflow covers it) |
| No orphan processes after close or crash | Linux: passes. Normal exit leaves no backend; SIGKILL of the packaged shell ends the frozen backend immediately (PR_SET_PDEATHSIG); sidecar_smoke.py killed-parent check: frozen backend exits 0.5 s after its parent dies (end of input). Windows job object: not built |
| Sizes and timings recorded | Linux: recorded (below and ADR 0010); Windows pending |
| Measure | Result | Target (packaging §6) |
|---|---|---|
| Sidecar build (PyInstaller onedir, cached) | 59 s; import check 7 s | - |
| Sidecar folder | 527 MB on disk, 2013 files (with shared-library links); 1010 MB once dereferenced | - |
.deb |
371 MiB (389,261,960 bytes); installed size 1.03 GB (Tauri copies the resource links as files: OpenBLAS alone is 8 × 41.5 MB) | compare with 128 MB Flatpak |
| Window script running | 0.69–0.92 s after shell start | < 1 s: met |
| Backend ready (first response) | cold (empty Matplotlib font cache, first start after install) 5.9 s; warm 1.39–1.42 s (smoke), 1.17–1.30 s from the page; development environment 2.5–3.0 s | < 3 s cold: not met (first start only); < 1.5 s warm: met |
| First analysis per process | 3.0–3.5 s (Numba JIT on every start: pandapower uses cache=False); second analysis 1.5–1.7 s |
< 10 s cold: met; < 3 s warm: borderline |
| Report export (WeasyPrint Python package) | 3.2–3.7 s | - |
| Drawing PDF export | 0.02–0.03 s | - |
Before the MPLCONFIGDIR fix every start took 6.1–6.9 s to answer:
PyInstaller's Matplotlib run-time hook sets a new temporary config folder
per start, so matplotlib.font_manager rebuilt the font cache each time
(4.7 s, found with a diagnostic -X importtime build). entry.py now keeps
it in the user cache folder.
- Report graphs need Matplotlib's
svgback end; the first spec kept onlyAggand the report export failed. The spec now keepsAgg,svg,pdf, and--check-importsimports theaggandsvgback ends. --check-importsreported the deliberatesys.modules['gi'] = Noneblock as an import.bundle_backend.pycopies the onedir with links (527 MB instead of 1054 MB) and counts links as links.
pixi run -e test test-engine: 235 passed (includes the 6 new PDF adapter tests andtest_report_escapes_project_text, which renders a report through the adapter).pixi run -e test test-services: 74 passed.pixi run smoke: 3/3.pixi run -e test test(regression baseline, legacy GTK and headless, engine and services): 364 passed, 1 failed; the failure was the security scan reading the built sidecar (fixed above); after the fixtests/engine/test_security.py: 37 passed.pixi run -e bundle bundle-backend: passes (Python 3.14.10, numpy 2.4.6, pandapower 3.5.6, WeasyPrint 70.0 in the frozen app).tools/sidecar_smoke.pyagainst the frozen sidecar,--fresh-cache --runs 3: OK (timings above); against the development backend: OK.cargo check,cargo build(debug) andtauri build --bundles deb(release): clean, no warnings. Packaged autorun twice: exit code 0.npx prettier@3.10.1 --check .,node tools/check_boundaries.mjs,node tools/check_licences.mjs,node --test tools/*.test.mjs: pass.
First CI run (PR #34, head 72cdf69)
qualityworkflow: all jobs pass (Linux smoke + baseline, Windows smoke and engine/service tests, frontend).sidecar/ Ubuntu 22.04: sidecar build and smoke test pass (--fresh-cache --runs 3): ready 2.13 s on the first start (empty caches) and 1.95–2.04 s after, first analysis 4.8–5.2 s then 2.7 s, report 4.1–4.3 s, orphan exit 0.5 s; sidecar 546.5 MB counted, 2015 files. The bundle step built the.debbut failed on the AppImage (failed to run linuxdeploy); AppImage is removed from the M5 targets (M14).sidecar/ Windows: the PyInstaller build finished;--check-importsfailed because the spec excludedfontToolstogether with WeasyPrint, and Matplotlib's back ends need it. Fixed (fontToolsno longer excluded); the no-WeasyPrint build was checked on Linux (GELECTRICAL_SIDECAR_WEASYPRINT=0: import check passes, no WeasyPrint collected). PyInstaller warned thatmkl_rt.dll/MPI DLLs referenced by conda's MKL BLAS variants are missing (to check in the next run).
sidecar/ Ubuntu 22.04: passes (sidecar, smoke,.debbundle,aptinstall, autorun, orphan check).sidecar/ Windows (Windows Server 2025 runner): sidecar build passes (919.9 MB counted, 2423 files; import check 3.72 s); WeasyPrint 70.0 executable installed fromweasyprint-windows-onedir.zip(SHA-256ab1151f2…7d53); smoke test with the executable for the report passes (--fresh-cache --runs 3): ready 2.16 s on the first start, 1.93–1.98 s after; first analysis 4.5–5.1 s then 2.2–2.3 s; report 3.85–3.96 s; drawing 0.04–0.07 s; orphan exit 0.52 s. NSIS installer built (218.25 MiB). The install-and-run step failed only because the workflow looked for the program in%LOCALAPPDATA%; a silent install as administrator goes to Program Files (installMode: both). The step now searches the install locations.
- Windows: packaged-app autorun and job object (next CI run); report parity
with Linux (text and visual comparison); the
weasyprint-windows-onedir.ziplayout and the D10 review of the executable's options. - A clean machine; AppImage (moved to M14);
installing the
.debwithapt(no root here). Thesidecarworkflow does all of these on GitHub runners. cargo fmt,cargo clippy(not installed);npm run check(local Node 22.22.1 is below some pinned packages' engines; CI uses.nvmrc).- Follow-ups: installed size (Tauri dereferences the onedir's links; ship
the backend as one archive or drop unused aliases, M14); first start after
install (5.9 s while the font cache is built; build it during installation
or in the background); Numba JIT on every start (about 1.5 s of each first
analysis; would need caching support in pandapower);
pyz+pycollection of pandapower is not needed for Numba caching since pandapower does not cache, but is kept until Windows is measured.
Status: implemented; custom SVG accepted by the owner 2026-11-29 (ADR
0005); maxGraph prototype removed afterwards (see the follow-up below). Branched from master at 82150d2 (M5 merged). Nothing committed
at the time of this entry.
- Scope: plan M7; implementation in schematic editor §7; criteria table and recommendation in ADR 0005.
- Engine change (additive, no engineering result affected): new
gelectrical/symbols/scene.py;TextBackend.layout_lines()(Cairo backend: the metricsdraw_textalready uses). Generatedgelectrical/symbols/svg/*.svg(31 element types). - Frontend:
@maxgraph/core0.25.1 (Apache-2.0; 0.25.2 was less than two weeks old) added tomodern/; new@kavilgroup/engineering-ui/drawingsubpath; second Vite entrymodern/schematic-poc.html; generated fixtures excluded from Prettier. - Environment note: the machine had Node 22.22.1 only; Node 24.22.3 / npm
11.19.1 were run through
pixi exec --spec nodejs=24(conda-forge, no project change).npm cithennpm install -w gelectrical-modern @maxgraph/core@0.25.1(lock file: the new package only).
| Step | Result |
|---|---|
| 1. Symbol converter, port metadata, validation | All 31 registered types converted; ports in the files equal the element classes (after update_symbol(): the fuse sets its ports there); export.py symbols --check passes. Every sheet of the 11 sample and coverage projects: scene SVG rasterised with rsvg-convert equals the Cairo renderer within 0.1 % of ink pixels (in practice only the last pixel row differs, page-size rounding); labels excluded (font dependent; osifont is not installed here, so both use a fallback font) |
| 2. Fixture rendering with border and title block | Both sheets of sample.gepro render in both candidates (screenshots compared by eye: same content) |
| 3. Insert, move, rotate, wire with junctions, box selection, zoom/pan in both | Done in both; maxGraph needed five adapter overrides (ADR 0005 row 4), each found by a failing scenario run |
| 4. Stub recorder, replay through the engine | 12 commands, identical in both candidates, with identical displayed geometry; tests/services/test_schematic_replay.py: service replay connectivity equals the legacy engine driven like the GTK view, and the backend geometry equals what the PoC displayed |
| 5. 1,000-element sheet, criterion 5 | Measured (below) |
| 6. ADR 0005 | Written; status Proposed until the owner approves |
Measurements (node tools/schematic_poc_bench.mjs, production build, headless Chromium 158, AMD Ryzen 7 7445HS, 14 GiB, Linux)
Synthetic sheet: 1,000 elements with labels and 2,000 wire segments (about 20,300 DOM nodes for SVG, 24,400 for maxGraph). Idle frame interval 16.7 ms in both runs.
| Measure | maxGraph | Custom SVG | Target |
|---|---|---|---|
| Pan/zoom frame, median (p95) | 717 ms (883 ms) | 33 ms (50 ms) | < 16 ms: neither |
| Script per view change, median | 645 ms | < 1 ms | - |
| Selection update, all 2,000 / one | 168 ms / 114 ms | 67 ms / 67 ms | < 100 ms: SVG |
| Initial load (synthetic) | 1.19 s | 0.22 s | < 1 s: SVG |
| Coordinate read-back (27 elements), commands on load | 0 mismatches, 0 | 0 mismatches, 0 | exact |
| Bundle, minified / gzip | 540 kB / 128 kB | 16 kB / 5 kB | recorded |
Earlier runs on the development server gave the same picture (SVG 33 ms, maxGraph 733 ms). The custom-SVG 33 ms is paint cost in headless software rendering; a headed measurement on target hardware is an M9/M10 follow-up.
pixi run -e test test-engine: 291 passed (includes 56 new intest_symbol_scene.py).pixi run -e test test-services: 77 passed (3 new intest_schematic_replay.py).pixi run -e test test-headless(headless regression baseline): 18 passed.npm run check(Node 24.22.3): passes — Prettier, boundaries, licences, tool tests,vue-tsc, EngineeringUI 132 tests (11 new drawing tests; stories with axe), app 16 tests (14 new), library and app builds. The app build warns about directevalinside@maxgraph/core(recorded in ADR 0005).node tools/schematic_poc_bench.mjs: exit 0, scenario file matches.- Not run:
pixi run smokeand the GTK regression baseline (xvfb-runnot installed; they would open windows on the desktop);npm run build-storybook(no story changes); headed or Windows measurements.
The owner tested both prototypes on the PoC page and approved custom SVG.
Removed: modern/src/schematic/maxgraph/, the path parser
modern/src/schematic/pathData.ts (used only by maxGraph) and its tests, the
candidate switch on the PoC page, and @maxgraph/core (package-lock.json
is back to its master content). tools/schematic_poc_bench.mjs now runs
the SVG editor only and also compares the resulting geometry with
tests/schematic/poc_scenario.json. The measurements above remain the
evidence for ADR 0005.
Checks after the removal: npm run check passes (app tests 14:
the two path-parser tests went with the parser; no eval warning in the app
build any more); pixi run -e test test-services 77 passed;
node tools/schematic_poc_bench.mjs exit 0, scenario file matches (12
commands, same geometry), 0 coordinate mismatches, no page errors, bundle
16 kB / 5 kB gzip. That run's pan/zoom median was 50 ms because it ran at the
same time as the service tests (load 0.23 s, selection 81 / 67 ms); the
ADR keeps the figures from the uncontended run. No Python files changed, so
the engine and headless baseline tests were not rerun.
CI on PR #35 (run 46222434655): pixi run smoke passed on Linux and Windows,
the headless run passed, and the Frontend job passed including
npm run build-storybook. The Linux regression-baseline step (legacy GTK and
headless baseline plus engine tests) had 423 passed and 1 failed; the one
failure, also on Windows, was test_symbol_files_are_up_to_date: the
display-text background is sized to its measured text, so it differed with
the runner fonts. export.py symbols --check now ignores lines that change
between two fixed text metrics, plus the view box. Verified locally: passes
under four other fixed metrics and still reports a changed symbol path;
test-engine 291 passed.
Status: implemented; ADR 0006 accepted by the owner on 2026-11-29. Branched from master at 38a774e (M7 merged). Nothing
committed at the time of this entry.
- Scope: plan M8; implementation and capability results in graphing §7; decision in ADR 0006.
- Engine change (additive, no engineering result affected): new
gelectrical/model/coordination.py, the headless coordination data set. No existing engine or GTK code changed. - Frontend:
echarts6.1.0 (Apache-2.0; zrender 6.1.0 BSD-3-Clause, tslib 0BSD) as an optional peer and dev dependency of EngineeringUI; new@kavilgroup/engineering-ui/chartssubpath; chart tokens (--eui-chart-7/8,-limit,-fault-max,-fault-min,-axis,-grid,-grid-minor) in both themes; generated fixtures excluded from Prettier. - Environment note: as in M7, Node 24.22.3 through
pixi exec --spec nodejs=24(the machine has Node 22.22.1).
| Step | Result |
|---|---|
| 1. Fixtures from the engine | tools/charts/export.py fixtures: four coordination cases (two sample.gepro sheets, cov_radial_lv, cov_advanced; line and ground graphs), 16 load profiles, six time-series results. The data set equals the legacy ProtectionViewDialog graph database for every sheet of six projects (tests/test_coordination_legacy.py, compared as JSON text because nodes without fault results give NaN markers) |
| 2. Stories in light/dark | EuiLogLogPlot (13 stories), EuiCurveEditor (11), EuiSeriesChart (6) on the fixtures; all pass axe |
| 3. Capability rows | All 14 verified (graphing §7); checked by hand in Storybook: hatched bands, decade labels and minor grid, log-axis wheel zoom, legend toggling, point drag with snapping, click to add, right-click to remove |
| 4. SVG vs Matplotlib report graph | Same content for sample-s1/line; report graphs stay on Matplotlib (static legend layout and WeasyPrint fonts needed first) |
Fixed during the hand check: legend overlapping the plot (own column now);
minor grid mark lines drawn above the curves (z: 0); editor clicks on the
filled area not adding points (hit test by distance now); handles rebuilt
inside ECharts' finished event (rejected by ECharts, now after option
updates and on resize); status text contrast in the disabled editor.
Measurements (node tools/charts_poc_bench.mjs, production build, headless Chromium 158, AMD Ryzen 7 7445HS, 14 GiB, Linux; medians of 7, 900 × 560 px canvas)
| Case | Result |
|---|---|
| First render: coordination sample / advanced / 25 / 50 devices | 15.8 / 11.6 / 14.7 / 18.6 ms |
| First render: curve editor (24 points) / 3 × 24 h series | 4.0 / 5.0 ms |
| First render: 10 × 8,760 points (LTTB, progressive) | 33.8 ms (38.7 ms in the first run) |
| Coordination sample, SVG renderer | 10.2 ms |
| Zoom step: coordination / 50 devices / year series | 13.2 / 15.8 / 11.4 ms |
| Selection highlight update | 10.0 ms |
| SVG export (SSR): sample / advanced | 10.3 ms, 96.8 kB (9.8 kB gzip) / 8.2 ms, 94.7 kB |
charts subpath minified / gzip: with ECharts; components only |
888 / 256 kB; 40 / 13 kB |
pixi run -e test test-engine: 294 passed (3 new intest_coordination.py, including the fixture check).pixi run -e test pytest tests/test_coordination_legacy.py: 6 passed (GTK, desktop display).pixi run -e test test-services: 77 passed.pixi run python tools/charts/export.py fixtures --check: 6 fixtures, 0 problems.npm run check(Node 24.22.3): passes — Prettier, boundaries, licences, tool tests,vue-tsc, EngineeringUI 193 tests (30 chart unit tests and 30 chart stories new), app 14 tests, library and app builds.npm run build-storybook: passes.node tools/charts_poc_bench.mjs: exit 0.- Not run:
pixi run smokeand the regression baselines (no existing engine code changed;xvfb-runis not installed); Windows; headed timings on target hardware.
Status: implemented; Linux verified (browser workflows and packaged
.deb); Windows packaged build verified 2026-11-30; the native-only checks
listed under "Not run" pending.
Branched from master at 1cb65a7 (M8 and the ADR 0006 acceptance merged).
Nothing committed at the time of this entry.
- Scope: plan M9; decisions in ADR 0021; layout in frontend §2.
- Backend (additive, no engineering result affected): query
drawing.scene(M7 scene format with uids; node overlay from the analysed copy only while results are current), runtime methodsrecent.listandrecent.remove,project.open/project.save_asadd torecent.json. Method table and schemas regenerated. No engine code changed, sopixi run smokeand the regression baselines were not rerun. - Frontend: backend client and transports (
modern/src/services/), workspace and shell composables, read-onlySchematicView, inspector (properties and results), messages panel, sheet list, dialogs (unsaved, path, recent, about); M6 mock data and placeholder components removed. New dependencies (exact pins):@tauri-apps/api2.13.0 (matches thetauricrate 2.13.0),@tauri-apps/plugin-dialog2.8.4,@tauri-apps/plugin-opener2.7.3, dev@playwright/test1.65.0 (MIT / Apache-2.0). EngineeringUI:bindQuasarIcons(SVG icons inside Quasar components; the select arrow showed as the textarrow_drop_down). - Shell: Rust crates
tauri-plugin-dialog,tauri-plugin-opener,tauri-plugin-single-instance(2.x); window = the Vue app; capability limited to the backend commands, title, destroy, focus, open/save dialogs and two documentation URLs; M5 PoC page moved tomodern/public/sidecar-poc/. - D7 (analysis changes the drawing and the undo stack): resolved in the modern app; the run works on a copy and records an undo entry only when the run's settings change (M4 behaviour), node markers are an overlay.
- Environment note: Node 24.22.3 through
pixi exec --spec nodejs=24(the machine has Node 22.22.1).
| Criterion | Result |
|---|---|
| Playwright workflows against the real backend, open → analyse → export on all sample projects | npm run e2e: 6 tests pass in about 35 s (Chromium, headless). Each sample (sample, kerala_inspectorate_sample, voltage_test) is opened through the open dialog, analysed from the ribbon with the baseline pf_bal settings (set through the backend: the analysis settings dialog is M12), exported (drawing PDF, report HTML + PDF, network JSON), saved as and saved (.bak kept). Further tests: node results and message selection, unsaved guard (cancel, discard), undo/redo from the ribbon, two documents, open error, help and about |
| Results shown equal baseline values | Every numeric result field of every element with results, read from the inspector after selecting the element on the drawing: 186 values (68 + 59 + 59) equal tests/baseline/<project>/pf_bal/results.json within the display rounding (decimal places of the field) |
| Packaged build on Windows and Linux | Linux: pixi run -e bundle bundle-backend, then npm run tauri:build (3 min 27 s, release) → GElectrical_0.1.0_amd64.deb 371.9 MiB (M5: 371 MiB). Windows: built and installed locally on 2026-11-30, see Packaged Windows checks |
| Check | Result |
|---|---|
M5 autorun (GELECTRICAL_POC_AUTORUN=1): the Vue window redirects to the PoC page, which opens, analyses twice, exports and exits |
Exit 0 in 11.2 s; all steps ok (first response 1.0 s, analysis 3.2 s / 1.6 s, report 3.1 s) |
.gepro on the command line (A03), relative path |
Opened in the window (project.open in the backend log) |
| Second launch with another file (single instance) | Second process exits 0; the running window opens the file; both files in recent.json |
| Shell terminated (SIGTERM) | Shell and backend gone, no orphan process |
Environment: pixi 0.85.0 (as CI; pixi 0.81 re-solves pixi.lock because it
records virtual packages differently), Node 24.20.0, Rust 1.99.0.
| Check | Result |
|---|---|
pixi run -e bundle bundle-backend --weasyprint-dir … |
Passes; sidecar 914.3 MB counted, 2422 files (CI: 919.9 MB, 2423); import check 13.68 s. WeasyPrint 70.0 from weasyprint-windows-onedir.zip, SHA-256 ab1151f2…7d53 (same as CI). PyInstaller repeats the mkl_rt.dll/impi.dll warnings already seen in CI |
pixi run sidecar-smoke (frozen backend, WeasyPrint executable) |
OK, 2 runs: ready 4.56 / 3.47 s, open 0.06 / 0.05 s, analysis 9.41 / 8.38 s then 4.52 / 4.67 s, report 6.86 / 8.71 s, drawing 0.18 / 0.17 s; orphan exit 0.45 s. About twice the CI runner's times |
npm run tauri:build:windows |
GElectrical_0.1.0_x64-setup.exe (NSIS) 216.57 MiB (CI: 218.25 MiB); release build 2 min 27 s |
| Install (owner, by hand) | Installed to C:\Program Files\GElectrical (per-machine) |
| File dialogs (open, save, save as) | Work (owner check) |
.gepro passed by Windows "Open with" (command line, A03) |
Opens (owner check) |
| Second instance with another file | Opens in the running window (owner check) |
| Window close guard with unsaved changes | Asks before closing (owner check) |
.gepro file association |
Not registered: no bundle.fileAssociations in the Tauri configuration; registry has no .gepro class. Expected: association is G04, milestone M14 |
| Check | Result |
|---|---|
pixi run -e test test-services |
81 passed (77 before; new: scene ids/codes equal drawing.sheet, overlay only with current results, recent list order, persistence, corrupt file) |
npm run check |
Passes: Prettier, boundary, licences, tool tests, vue-tsc, EngineeringUI 195 tests (unit + every story with axe, light and dark), app 17 tests, library and app builds |
cargo check (modern/src-tauri/) |
Passes |
Hand check in the browser (npm run dev) |
Open through the path prompt, sheets, analysis progress in the status bar, diagnostics and rules-check messages, selection, inspector results; found and fixed: selection lost under pointer capture, [object Object] for curve fields and time-series results, the select arrow ligature text, a fast export finishing before its job registered (events and replies travel separately) |
tauri:dev;npm run e2eon Windows.- Native-only features on a packaged build: overwrite confirmation and the folder dialog, drag-and-drop of files onto the window, opening the documentation URL through the opener (Linux and Windows); file dialogs and the window close guard on Linux. File dialogs, second instance and the close guard pass on Windows (above).
- WebKit (WebKitGTK/WKWebView) runs of the Playwright workflows (Chromium only).
pixi run smoke, regression baselines (no engine change).
Status: implemented; browser workflows verified on Windows 11 (Chromium);
packaged desktop build not rebuilt. Branched from master at c4c2dd1.
Nothing committed at the time of this entry.
- Scope: plan M10,
rows B01–B25, A14, A16; decisions in
ADR 0022 (owner choices
2026-11-30: drag moves the dragged element only,
Ctrl+Shift+Nfor a new sheet, field editing before M11, OS clipboard plugin, B26 stays in M12); layout in schematic editor §8. - Backend (additive): query
drawing.floating_scene(insert/paste preview from the engine'sElementGroup),drawing.pasteorientation, runtime methodcatalog.icons; with insert-timefields,drawing.insertnow updates the symbol before taking the attachment port (only affects inserts with fields, a new parameter path; legacy GTK and file loading unchanged). Method table and schemas regenerated. No engine module changed, sopixi run smokeand the regression baselines were not rerun. - Frontend: editor view (
SchematicView.vue), tools and snapping (schematic/tools.ts), editing composable (useEditor.ts), palette, sheet list with add/delete/reorder, editable inspector (element, insert and sheet fields), renumber, link-references and shortcuts dialogs, ribbon tab Drawing. The workspace reload keeps the shown scene until the new one arrives and drops out-of-order reloads. New dependency (exact pin):@tauri-apps/plugin-clipboard-manager2.5.0 (MIT/Apache-2.0); Rust cratetauri-plugin-clipboard-manager2.x with theallow-read-textandallow-write-textpermissions only. EngineeringUI: six icons (wire, rotate, group, ungroup, keyboard, renumber). - Environment: pixi 0.85.0, Node 24.20.0, Playwright 1.65.0 (Chromium headless shell), Rust 1.99.0, Windows 11.
| Criterion | Result |
|---|---|
| Each row Done with Playwright coverage | modern/e2e/editing.spec.ts, 7 workflows on the real backend: scripted sequence on sample.gepro (palette insert, C, R, wire from a port, ribbon wire with grid points, T-connection on a port with a junction dot, wire finished by double click, drag move, Shift+arrow moves, copy/Ctrl+V paste with R, rotate, delete by keyboard selection, click/Shift+click and Ctrl+G, undo/redo); palette search and advanced mode; busbar insert-time ports, width edit and a rejected value; text element, label update, out-of-service colour; sheets (title block edit shown in the frame, new sheet copying fields, rename, reorder, delete, first sheet protected, undo); link references across sheets and renumber; selection (drag box, legacy two-click box, Shift toggle, Ctrl+A, Escape, right click), zoom steps, view kept per sheet, shortcuts window; edit and refused paste of a non-GElectrical clipboard text. Status per row in the feature inventory: Done or Changed (B08, B10, B12, B15, B18 with the reasons); B19 In progress (project-wide title fields with A10, M11) |
| Connectivity after scripted edits equals the legacy engine | The scripted workflow records the 14 commands the shell sent; they equal tests/schematic/m10_scenario.json. tests/services/test_schematic_replay.py::test_m10_editor_commands_give_legacy_connectivity replays them through the services and through a legacy ProjectModel driven like gtk/view/drawing.py (paste and grouping added to the driver): equal node sets, 21 nodes, a T-node of three new elements, the deleted load gone. The M7 scenario still passes |
| Undo/redo labels and granularity | After every action the workflows check the last undo label and the entry count (one per command): Insert element(s) at None, Add draw element at '<n>', Move element(s), Rotate element, Delete draw elements at '[12]', Modify '<code>' field of '<name>' element, Update page field, Add page at <n>, Reorder tab - from 1 to 0, Remove page at 1, Link reference CR1, Renumber Elements - All; a rejected field value adds no entry. tests/services/test_undo_labels.py unchanged and passing |
| Clipboard uses the safe payload | Copy writes the drawing.copy JSON (gelectrical-elements, version 1) to the clipboard; paste sends it to drawing.paste/drawing.floating_scene, where Python validates it; a non-payload text is refused (No valid data in clipboard, workflow) |
| Check | Result |
|---|---|
pixi run --locked -e test test-services |
90 passed (81 before; new: floating scene equals the inserted element for four code/orientation/port cases, clipboard floating scene and paste orientation, validation and busbar insert-time ports, palette icons, M10 scenario coverage and connectivity replay) |
npm run check |
Passes: Prettier, boundary, licences, tool tests, vue-tsc, EngineeringUI 195 tests (unit + every story with axe, light and dark), app 27 tests (new: tool helpers, editable inspector through drawing.set_fields, palette and sheet properties), library and app builds |
npm run build-storybook |
Passes |
npm run e2e |
13 passed in 1.5 min (6 M9 workflows, 7 M10 workflows). The M9 workflow now picks sheets from the drawing's sheet tabs (the sheet list moved behind the left panel's Sheets tab) |
cargo check (modern/src-tauri/) |
Passes with the clipboard plugin |
Hand check in the browser (npm run dev, Windows) |
Palette with icons, floating model following the pointer, insert, R on a busbar, insert-time #P(T) changing the preview, sheet properties, Drawing ribbon in the dark theme |
- Packaged desktop build (
tauri:build) and the clipboard plugin in the Tauri window (copy/paste between the desktop app and other applications, including the legacy GTK app);Ctrl+WandCtrl+Nreach the window only in the desktop app (the browser keeps them; workflows use the ribbon). - Linux and macOS runs of the new workflows; WebKit runs.
- Large-sheet editing performance (the M7 measurement covered display only).
pixi run smoke, regression baselines (no engine change).
2026-11-30 — M11 properties, databases, load profiles and protection (branch feat/m11-properties-data)
Status: implemented; services, Vitest, Storybook and browser workflows
verified on Linux (Chromium); packaged desktop build not rebuilt. Branched
from master at 53cf519. Nothing committed at the time of this entry.
- Scope: plan M11, rows A10–A13, C01–C04, C07–C10, D01–D07, E13, E14 (and B19's project-wide title fields); decisions in ADR 0023.
- Backend (additive): queries
drawing.selection,protection.coordination,protection.curve_field,protection.export_settings,loadprofiles.library; commandprotection.load_curve_file; parameterslibrary.apply(uids),protection.set_parameters(source)(which now also applies parameter default values like the legacy field view);FieldSchema.graph_options; tooltips and messages as plain text; agraphfield with a selection list (load profile) is editable while inactive (legacy behaviour); program settings apply the drawing, report and report graph fonts and report unavailable fonts. Method table and schemas regenerated. No engine module changed (gelectrical/untouched), sopixi run smokeand the regression baselines were not rerun. - Frontend:
useProperties.ts; inspector with graph previews (FieldPreview.vue), multiple selection and Load from database…; dialogsFieldPagesDialog(project settings),SettingsDialog(program settings and theme),DatabaseDialog,CurveFieldDialog,LoadProfileDialog,CoordinationDialog(chart dialogs as async components); ribbon groups Home › Project and Analysis › Protection;charts.tspresentation mapping. EngineeringUI: property inspector option objects, path fields, click-to-edit messages,field-afterslot; number input keeps a full selection when focus shows the raw value (found by the workflows: Tab or select-all then typing appended to the raw text). No new dependencies. - Environment: pixi 0.85.0, Node 24.21.0, Playwright 1.65.0 (Chromium headless shell), Linux 7.0 (Ubuntu desktop).
| Criterion | Result |
|---|---|
| Schema-driven inspector reproduces field behaviour for every element type (generated test across the registry) | tests/services/test_properties.py::test_field_behaviour_matches_legacy_for_every_element_type, one case per placeable element type (30, advanced elements included): the element placed through drawing.insert equals an element placed by the legacy drawing model; then each selection field is stepped through up to four alternative values with drawing.set_fields and with the legacy field view path (set_text_field_value, apply_alter_values); values, enabled and read-only states and selection lists from drawing.element equal the legacy fields after every step. Cable parameters (E13, E14) follow field changes the same way |
| Database application equals legacy field results | tests/services/test_undo_labels.py: library_apply (existing) and new library_apply_multiple give the same document, label and one entry as the legacy database view; workflow applies a cable_iec.csv item from the dialog |
| Protection coordination datasets equal baseline curves | test_coordination_equals_engine_dataset on sample.gepro and cov_radial_lv.gepro: graph models, roles and element order of protection.coordination equal coordination.project_dataset (which tests/test_coordination_legacy.py checks against the GTK dialog), tabs in legacy order. The view plots them with the M8 mapping |
Other evidence: undo labels of the properties dialog curve edit, curve file
load and load profile choice equal the legacy ones (three new label cases);
settings spreadsheet columns equal the coordination tabs; rejected curve
files (Wrong data file selected. Data not loaded., unreadable JSON);
project settings validation and the title block showing project fields;
font fall-back and the test settings store leaving the style untouched.
| Check | Result |
|---|---|
pixi run -e test test-services |
139 passed (90 before; new: 45 in test_properties.py, 3 undo label cases, 2 set-up label cases) |
npm run check |
Passes: Prettier, boundary, licences, tool tests, vue-tsc, EngineeringUI 199 tests (unit + every story with axe, light and dark; new option/path/click-to-edit story and tests, number input selection test), app 27 tests, library and app builds |
npm run build-storybook |
Passes |
npm run e2e |
18 passed (6 M9, 7 M10, 5 new M11 workflows in modern/e2e/properties.spec.ts); the M10 command recorder ignores the new read query drawing.selection |
| Hand check in the browser (Vite dev server, Linux) | Project settings apply, load profile editor with library import, load profile choice with preview, coordination view (all elements of sample.gepro, parameter change), database dialog search and apply, curve field dialog, program settings pages, multiple selection edit with arithmetic entry |
- Packaged desktop build (
tauri:build) and the native dialogs for the curve file and the settings spreadsheet; opening the user library folder in the desktop app (the browser workflow only shows the path). - Windows and macOS runs; WebKit runs; dark theme of the new dialogs by eye (stories of the changed EngineeringUI components pass axe in both themes).
- Selection list images (C01 stays In progress).
pixi run smoke, regression baselines (no engine change).- Owner approval of the rows marked Changed (A11, A13, C02, C04).
2026-11-30 — M12 analysis, results, messages, rules check and reports (branch feat/m12-analysis-reports)
Status: implemented; services, Vitest, Storybook and browser workflows
verified on Linux (Chromium); packaged desktop build not rebuilt. Branched
from master at 98138f5. Committed on the branch with this entry.
- Scope: plan M12, rows C05, C06, E01–E12, F01–F07, B26; decisions in ADR 0024.
- Backend (additive): query
analysis.settings; jobexport.print_pdf;analysis.start(export_folder)and theexportsetting (stored asexport_results); a completed run with export on writes the legacy export folder;ResultField.graph_options;Message.node_uids; analysis summaryexport.json_safenow turns ranges into lists (time steps of time-series results were sent as the textrange(0, 24)). Method table and schemas regenerated. No engine module changed (gelectrical/untouched), sopixi run smokeand the regression baselines were not rerun. - Frontend:
AnalysisDialog.vue(F5), rules check as its own command again (M9 ran it with every analysis), Clear results, Print (Ctrl+P),ResultGraph.vuein the inspector results, message selection with the elements at message nodes in the warning colour (SchematicViewhighlight). Tauri capability:opener:allow-open-pathlimited to$TEMP/gelectrical-print/*. EngineeringUI:printanderasericons. No new dependencies. - Environment: pixi 0.85.0, Node 24.21.0, Playwright 1.65.0 (Chromium headless shell), Linux 7.0 (Ubuntu desktop).
| Criterion | Result |
|---|---|
| Report PDF content parity (text extraction diff and visual review) | test_report_text_equals_baseline: the report exported with export.report after a run in the baseline file-settings mode equals report.txt on all 9 projects with a report. Only difference allowed: the Simulation settings listed in the report that the run itself stored (the baseline capture ran without the dialog). report.pdf is written each time. Visual review of the PDF: not done |
| Drawing PDF visual diff within threshold | test_drawing_pdf_sheets_equal_baseline on all 17 projects: the PDF has one page per sheet; for completed runs the sheets of the analysed copy that the PDF is drawn from, rasterized in a process isolated like the baseline capture, differ from drawing_*.png by at most HEADLESS_CAIRO_TEXT_PIXEL_FRACTION (unchanged). Without the isolation the user's fontconfig file changed the text raster (1.0–1.7 % on the sample projects) |
| Rules-check messages equal baseline | test_analysis_baseline.py (unchanged, rules check through the services) passes on every project; the workflows run Rules check from the ribbon and show the baseline messages |
| Export folder contents equal legacy set | test_analysis_export_folder_holds_the_legacy_files and the workflow a run with export writes the analysis export folder: network.html, graph.html, network.json, report.html, report.css, report.pdf, drawing.pdf; nothing exported after critical diagnostics |
Other evidence: dialog values and storage with the legacy label Update
analysis settings; time-series result graphs carry their graph options and
draw in the inspector; message node_uids equal the members of the message
nodes; clearing results changes no revision, undo entry or unsaved mark;
impedance results follow Display short circuit impedance values (E08);
print PDF in the print folder and the notification in the browser.
| Check | Result |
|---|---|
pixi run -e test test-services |
175 passed (139 before; new: 36 in test_analysis_reports.py) |
npm run check |
Passes: Prettier, boundary, licences, tool tests, vue-tsc, EngineeringUI 199 tests, app 29 tests (new charts.spec.ts), library and app builds |
npm run build-storybook |
Passes |
npm run e2e |
24 passed (6 M9 updated for the dialog and the rules-check command, 7 M10, 5 M11, 6 new M12 workflows in modern/e2e/analysis.spec.ts) |
cargo check in modern/src-tauri/ |
Passes with the new capability |
- Packaged desktop build: printing through the system viewer, the folder chooser of the analysis dialog and the opener scope on Windows and Linux.
- Hand check in the browser of the new dialog and result graphs by eye, both themes.
- Visual review of the report PDF; rasterizing the drawing PDF itself (no PDF renderer in the test environment).
pixi run smoke, regression baselines (no engine change).- Owner approval of E10 Changed (clearing results is no longer an undo entry).
- Known gap from M11: opening a user library folder with
opener:openPathin the desktop app has no capability yet.
Status: implemented; services, MCP, Vitest, Storybook build, browser
workflows and the frozen sidecar verified on Linux; packaged desktop app not
rebuilt, Windows not run. Branched from master at ce27a9c. Committed
on the branch with this entry.
- Scope: plan M13; decisions in ADR 0025; architecture in MCP (now current).
- Dependencies:
mcp2.3.0 (MIT) anduvicorn0.55.0 (BSD) from conda-forge (pixi.toml,pixi.lock); starlette 1.10.0, pydantic 2.14.4, anyio and httpx2 come with them. The SDK is imported only when the listener starts.requirements.txt/setup.pynot changed: they pin the legacy GTK packaging, which does not include the modern backend. - Backend (additive):
modern/backend/mcp/(listener, 18 tools, skills,mcp.jsonsettings), runtime methodsmcp.status,mcp.configure,mcp.start,mcp.stop,mcp.refresh_skills,mcp.open_skills_folder;changedevents carry an optionallabel;sourcepassed throughproject.new,project.openand saves;Session.document_epoch;Runtime.closestops the listener. Skillsgelectrical-modelling(withreferences/elements) andrules-check-interpretationinmodern/backend/data/skills/generic/. Method table andEvent.jsonregenerated. No engine module changed (gelectrical/untouched), sopixi run smokeand the regression baselines were not rerun. - Frontend: Assistant ribbon tab (start/stop, MCP settings, AI changes),
McpDialog.vue,AiChangesPanel.vueas a tab of the bottom panel,useMcp.ts, status bar item. No new npm dependencies. - Sidecar: spec bundles the SDK, uvicorn and the skills data.
- Environment: pixi 0.85.0, Node 24.21.0, Playwright 1.65.0 (Chromium headless shell), Linux 7.0 (Ubuntu desktop).
| Criterion | Result |
|---|---|
| SDK client tests for every tool | tests/services/test_mcp.py (21 tests) calls all 18 tools through the official SDK client over Streamable HTTP, plus listener policies (off and read only by default, token, Host, Origin, settings locked while running, generation refuses queued calls of a stopped listener, Runtime.close stops it), read-only access hiding write tools, legacy initialize handshake, structured errors, skills as resources and user libraries |
| Atomic batch | A failing op (unknown ref, invalid value) leaves revision, document and events unchanged; preview reports the change set and rolls back; batch across edit_drawing, edit_load_profiles and set_project_settings is one revision and one undo entry with shared refs |
| Desktop receives events | changed events with source: "mcp" and the undo label (AI: Edit drawing (5 operations)); stale if_revision rejected after a desktop edit; MCP acts on the activated session. Workflow modern/e2e/mcp.spec.ts: the user enables and starts the server in the UI, a JSON-RPC tools/call edits the drawing, the drawing and the AI changes tab update, one undo removes the call |
| Schema budget test | tools/list of read-write access: 8,896 characters of compact JSON (budget 9,000); snapshot tests/services/mcp_tools.json |
Assistant script builds voltage_test from scratch and reproduces its baseline |
test_assistant_builds_voltage_test_and_reproduces_baseline: one batch (project settings, load profiles, 13 inserts and the load profile choices) in an empty project, no unconnected ports, run_analysis in the pf_bal mode with rules check; element and node results equal tests/baseline/sample__voltage_test/pf_bal with the documented tolerances (unchanged) and the rules-check messages equal rules.json |
| Check | Result |
|---|---|
pixi run -e test test-services |
196 passed (175 before; new: 21 in test_mcp.py) |
npm run check |
Passes: Prettier, boundary, licences, tool tests, vue-tsc, EngineeringUI 199 tests, app tests (4 new in App.spec.ts), library and app builds |
npm run build-storybook |
Passes |
npm run e2e |
25 passed (24 before; new mcp.spec.ts) |
pixi run -e bundle bundle-backend |
Passes; sidecar 558.3 MB counted, 2136 files; import check 2.93 s |
tools/sidecar_smoke.py --backend …/gelectrical-backend |
OK (ready 2.31 s / 1.17 s, orphan check passes) |
| Frozen sidecar MCP check (ad hoc script) | mcp.configure and mcp.start over JSON Lines, SDK client lists 18 tools, reads a skill and runs the analysis of voltage_test with rules check through MCP |
- Packaged desktop app (
npm run tauri:build), Windows and macOS;cargo check(no Rust change). - Opening the user skill folder from the packaged app: the opener capability allows only the print folder (same gap as the M11 library folder).
- Hand check of the MCP dialog and AI changes panel by eye in both themes.
- Real assistant clients (Claude Desktop, Claude Code, others) against the listener; the tests use the official SDK client and raw JSON-RPC.
pixi run smoke, regression baselines (no engine change).- Owner review of the tool surface, skill content and the
AI:undo label prefix.
2026-11-30 — Owner review: fonts, link dialog drawing, selection images (branch feat/owner-review-fonts-links-images)
Status: implemented; engine, regression baseline, services, smoke,
Vitest, Storybook build and browser workflows run on Linux; packaged builds
not rebuilt. Branched from master at cad970c (after PR #42). Committed
on the branch with this entry.
- Owner decisions (2026-11-30): A09, A13, B08, B10, B12, B18, C02, C04 approved as implemented; E10 approved (Clear results clears the node markers); A11, B15, C01 implemented as below; decisions in ADR 0026.
- A11 / G05:
gelectrical/fonts/with osifont (upstream2e9aa86, GPL-3.0 with font exception) and Iosevka 32.5.0 Regular/Bold subsets (OFL 1.1), registered per process bygelectrical/core/fonts.py(fontconfig, Windows GDI, Matplotlib) from the backend runtime and the legacy launcher; report stylesheet@font-facerules (allowed by the report URL fetcher); frontend@font-face. Defaults: report and report graph fonts Iosevka (weremonospace), drawing font osifont.settings.getaddsfont_familiesandbundled_fonts; EngineeringUI inspector font fields (family list and size) withfont-families. - B15: link dialog with the drawing of the sheet in view
(
SheetPreview.vue); targets toggle on the drawing or in the list. - C01:
catalog.images; inspector selection lists show images withimages. - Packaging: sidecar spec,
pyinstaller_spec.specandMANIFEST.ininclude the fonts. Method table regenerated; no DTO schema change.
| Check | Result |
|---|---|
xvfb-run -a pixi run -e test test |
541 passed, 13 skipped (engine, regression baseline unchanged, services, MCP; new tests/engine/test_fonts.py 4 and tests/services/test_fonts_images.py 3) |
xvfb-run -a pixi run smoke |
3/3 projects passed |
npm run check |
Passes; EngineeringUI 204 tests (new font field, images, font values), app 33 tests |
npm run build-storybook |
Passes (new stories FontsAndSelectionImages, light and dark) |
npm run e2e |
25 passed, 1 failed: editing.spec.ts palette search, advanced mode, insert-time properties and busbar ports fails only after analysis.spec.ts in the same run (busbar port spacing 96 instead of 128); the same order fails on master without this branch's changes, and the test passes alone (3 of 3). New workflow font chooser … and selection list images and the updated link workflow pass |
- Sidecar rebuild and packaged app; font registration on Windows (GDI) and
macOS; the frontend
@font-facein the Tauri window. - Investigation of the order-dependent busbar workflow failure (pre-existing).
- Visual check of the dialogs by eye in both themes.
Status: in progress; packages built and checked on Linux (local machine),
release workflow not yet run on GitHub, Windows and macOS not built.
Branched from master at 7af369b (after PR #43). Committed on the branch with this entry.
- Interface font (owner request): program setting
interface_font(font field, empty by default = system font).settings.getaddsinterface_font({family, size}; an unavailable family falls back to the system font with a warning). EngineeringUI font fields takefont-defaults(code → caption of the no-family entry); the Settings dialog lists System font first. The window applies it through the theme (setFonts, points × 4/3 to CSS pixels; EngineeringUI accepts 10–30 px). The legacy GTK settings dialog shows the field but ignores it. - M14 (ADR 0027, proposed): version
2.0.0;
.geprofile association (application/x-gelectrical-project) andpackaging/linux/desktop, MIME and metainfo files; macOSRunEvent::Openedinto the open queue;icon.icns; release workflow.github/workflows/release.yml; AppImage throughmodern/bundle_appimage.py; Snapsnapcraft.yamlfrom the.deb(legacy snap moved topackaging/legacy/); Flatpakpackaging/flathub/; Cargo featuresflatpak-portalandcustom-protocol(dialog plugin GTK by default);open_localreplaces the opener path scope; the frozen sidecar starts withoutLD_LIBRARY_PATH/LD_PRELOAD. - AppImage cause (M5 failure): linuxdeploy deploys dependencies of every
ELF file in the AppDir, including the sidecar; it copied host BLAS,
LAPACK and gfortran and stopped at
ERROR: Could not find dependency: libcblas.so.3(the sidecar's own library, found through its loader path only). A.debbuild also leaves the sidecar intarget/release/backend, which the AppImage bundler picks up even with a configuration without it.
| Check | Result |
|---|---|
xvfb-run -a pixi run -e test test |
543 passed, 13 skipped (regression baseline unchanged; new interface font tests 2) |
xvfb-run -a pixi run smoke |
3/3 projects passed |
npm run check |
Passes; EngineeringUI 205 tests, app 33 |
npm run build-storybook |
Passes |
cargo test --lib, cargo clippy --lib (modern/src-tauri) |
1 passed (open_local accepts folders and output files, refuses .sh, .exe, no extension, missing files); no clippy warnings |
pixi run -e bundle bundle-backend |
559.1 MB, 2142 files; import check 2.18 s |
npm run tauri:build -- --bundles deb,appimage |
.deb 380 MiB (Installed-Size 1.05 GB); its desktop file has %F and the MIME type, MIME XML and metainfo installed. AppImage failed in linuxdeploy (cause above) |
python3 modern/bundle_appimage.py |
AppImage 272.5 MiB; default appimagetool from Tauri's cached linuxdeploy plugin works |
AppImage autorun (GELECTRICAL_POC_AUTORUN=1, dbus-run-session, xvfb-run) |
ok: true; frozen sidecar from the mounted AppImage, backend ready 1.7 s; open, analysis, report, drawing; no orphan backend |
appstreamcli validate --no-net, desktop-file-validate, xmllint |
Metainfo valid (3 pedantic notes); desktop file and MIME XML valid |
packaging/flathub/build-local.sh |
Flatpak built (GNOME 51; shell from source offline, 1037 Cargo and 373 npm sources); bundle 128 MiB. Built before the manifest got strip: false/no-debuginfo for the sidecar module and the PoC sample; not rebuilt after |
Sidecar in the Flatpak runtime (flatpak-builder --run, tools/sidecar_smoke.py) |
--check-imports passes; ready 1.65 s, analysis 3.07 s then 1.49 s, report 2.74 s, drawing 0.01 s |
Flatpak window (flatpak-builder --run, isolated D-Bus) |
Not verified: GTK aborted loading image-missing.svg through the glycin loader, which needs the Flatpak portal that the test session lacks. The legacy 1.1 Flatpak is installed on this machine, so the bundle was not installed |
npm run e2e |
26 passed, including the extended font workflow (interface font chosen from the list, applied to the window as --eui-font-family/--eui-font-size, back to System font); the order-dependent busbar failure of the previous entry did not recur |
- The release workflow on GitHub (Snap build, Flatpak job, Windows NSIS, macOS); Windows and macOS packages were not built.
- Clean-machine checks of any channel,
.debinstallation, double-click opening from a file manager, the Flatpak window and portals, the Snap. - The interface font by eye in the Tauri window and both themes.
- Agreed installer size and start-time targets (owner).
2026-12-01 — Backend start time: lazy heavy imports and warm-up (branch claude/vibrant-gagarin-6af6b7)
Status: implemented; measured on Windows 11 (development backend and
frozen sidecar). Started from master 53cf519 on 2026-11-30, moved onto
master 3b93b63 (M11–M14) on 2026-12-01. Nothing committed at the time
of this entry.
- Trigger: under
npm run tauri:devon Windows the backend took about 14 s from Backend starting to its first answer.python -X importtimeon the real start path (modern.backend→Runtime→registry.load_services()) showed 7.5 s of imports: pandapower 4.4 s (Matplotlibpyplotthroughpandapower.plotting1.4 s, Numba, openpyxl, SciPy), pandas 0.9 s, SciPyinterpolate0.8 s (elementmodel.switch→model.protection→core.interpolation), networkx 0.8 s (model.networkmodel), and throughgelectrical.reportspandas (reports.tables) and Matplotlib (reports.graph). Onmaster3b93b63 the bundled fonts (ADR 0026) added Matplotlib again:Runtime.__init__registered the fonts with Matplotlib's font manager andSettingsStore.check_fontsread its font list (0.7 s warm). - Change (no engine code path or result changed, only where the imports
run):
gelectrical/model/__init__.pyno longer importsmodel.pandapower;ProjectModel.build_power_modelimportsPandaPowerModelwhen it runs; networkx in theNetworkModelgraph methods;interp1dincore.interpolationandGraphModel.get_value_func; pandas in thereports.tablesfunctions;GraphImagein the load-profile part ofreports.export. Fonts:register_bundled_fonts(matplotlib=False)at start-up (fontconfig and GDI as before), Matplotlib registered on first use (GraphImage,system_font_families,installed_font_families, the warm-up), registration per renderer under a lock;check_fontsreads Matplotlib's list only when a configured family is neither generic nor bundled (the defaults are osifont and Iosevka). With a failed Matplotlib registration the old check fell back tomonospacefor a bundled family; the new one keeps it (Cairo has it through fontconfig/GDI). ADR 0026 amended. The start path now loads none of pandapower, pandas, Matplotlib, SciPy, networkx, Numba, openpyxl or WeasyPrint (checked insys.modulesaftersession.listandproject.open). - Warm-up: after the first response,
serve()callsRuntime.warm_up(), which importsWARM_UP_MODULES(SciPyinterpolate, networkx, pandas,gelectrical.model.pandapower,gelectrical.reports.graph) and registers the fonts with Matplotlib on a daemon thread (a shutdown does not wait for it; a job needing a module meanwhile waits on the import lock).GELECTRICAL_WARM_UP=0disables it. tools/sidecar_smoke.py: also timesruntime.info/project.state, the first sheet'sdrawing.sceneandsettings.get, reads the warm-up time from the log, and--idle SECONDSwaits after the open before the first analysis.
Development backend (python -m modern.backend), master 3b93b63 without
and with the change (the before runs use the same smoke script on an
extracted copy of master):
| Case | Ready (first response) | Open / scene | First settings.get |
First analysis | Second analysis |
|---|---|---|---|---|---|
| Before, 3 runs | 8.76 / 7.87 / 7.98 s | 0.05–0.06 / 0.01–0.02 s | 0.001 s | 8.54 / 7.87 / 7.89 s | 4.40–4.53 s |
| After, analysis at once, 3 runs | 1.18 / 0.96 / 0.95 s | 0.06–0.07 / 0.02 s | 1.05 / 0.98 / 0.94 s | 14.65 / 14.42 / 13.87 s | 4.39–4.47 s |
After, --idle 15, 2 runs |
0.95 / 0.96 s | 0.06 / 0.02 s | 0.93 / 0.95 s | 8.55 / 8.16 s | 4.53–4.95 s |
Warm-up 6.9–7.5 s. The first settings.get (sent right after the open,
while the warm-up runs) pays for Matplotlib's font manager (font_families
of ADR 0026). On master 53cf519 (before M11–M14) with the same change:
ready 0.91–0.95 s (before 7.74–7.91 s, and 19.86 s on the first start of a
new pixi environment); with GELECTRICAL_WARM_UP=0 the first analysis
after a 15 s idle stayed at 15.1–16.1 s, with the warm-up 8.0–8.9 s.
Frozen sidecar (pixi run --locked -e bundle bundle-backend --weasyprint-dir …,
926.5 MB, 2542 files, import check 9.92 s; then
tools/sidecar_smoke.py --backend … --weasyprint …):
| Case | Ready | Open / scene | First settings.get |
First analysis | Second analysis | Warm-up |
|---|---|---|---|---|---|---|
Before (master 4b8035b build, 2026-11-30 packaged Windows checks) |
4.56 / 3.47 s | 0.06 / 0.05 s | — | 9.41 / 8.38 s | 4.52 / 4.67 s | — |
After (master 53cf519 + change), analysis at once, 3 runs |
0.56 / 0.62 / 0.61 s | 0.06 / 0.02 s | — | 15.93 / 10.89 / 11.04 s | 4.28–5.10 s | 7.17 / 3.06 / 3.12 s |
After (master 3b93b63 + change), analysis at once, 3 runs |
0.65 / 0.59 / 0.58 s | 0.06 / 0.02 s | 3.33 / 0.66 / 0.66 s | 9.66 / 10.06 / 9.96 s | 4.31–4.37 s | 4.14 / 3.03 / 3.04 s |
After (master 3b93b63 + change), --idle 15, 2 runs |
0.59 / 0.58 s | 0.06 / 0.02 s | 2.62 / 0.67 s | 14.74 / 8.92 s | 4.38 / 4.83 s | 3.34 / 2.97 s |
The 2.6–3.3 s first settings.get is Matplotlib building its font cache
on the first start of a set (fresh MPLCONFIGDIR contents); later starts
take 0.66 s. The 14.74 s first analysis of the idle set is not explained
(the next start took 8.92 s); not investigated. The frozen before row is
the earlier build; master 3b93b63 was not built without the change.
Orphan check: the backend exited 0.11 s after its parent was killed.
Against packaging §6:
backend ready < 3 s cold and < 1.5 s warm is met on Windows (0.6 s frozen,
1.0 s development). Counting the first settings.get, which the window
sends at start-up, the development backend is ready for the window in
about 2 s and the frozen sidecar in about 1.3 s (warm). The first analysis
(< 10 s cold) is met once the warm-up has finished; the warm second
analysis (4.3–5.0 s against < 3 s) is unchanged and still misses.
| Check | Result |
|---|---|
Before/after headless capture (tools/baseline/capture.py --headless, master 53cf519 extracted to a temporary folder, then the change; all sample_files/ and tests/projects/) |
Identical JSON apart from the checkout path in captured traceback frames (status.json) and environment.json (pixi_lock_sha256 absent in the extracted copy). sample__voltage_test/drawing_0.png differs by 177 bytes, and also between two captures of the unchanged master code (raster noise; the baseline compares PNGs with a pixel threshold) |
pixi run --locked -e test pytest tests (master 3b93b63 + change) |
531 passed, 14 skipped, 11 failed (on 53cf519 + change: 429 passed, the same 11 failed). The failures also occur on unchanged master in this environment: 10 baseline cases (cov_advanced, cov_impedance, cov_radial_lv, cov_trafo3w, cov_xward, GTK and headless) whose only differences are traceback frames keeping the Windows checkout path instead of <ROOT> (capture.py replaces the backslash form of ROOT, the frames use forward slashes), and test_symbols_extents.py::test_cairo_extents_within_one_grid_unit_of_pango (Windows Pango metrics). Engine, service (MCP, fonts, properties, reports) and schematic tests pass |
python -X importtime start probe |
Ready 0.91–0.95 s in process, open 0.05 s, no heavy module in sys.modules (master 3b93b63: 1.66 s with Matplotlib) |
pixi run --locked smoke (GTK window, 53cf519 + change) |
3/3 sample projects pass (diagnostics, power flow, short circuits, rules check, JSON, report HTML/PDF, drawing PDF) |
pixi run smokeand the separate before/after capture onmaster3b93b63 (the full pytest run there includes the GTK and headless baselines);npm run tauri:devand the packaged Tauri app by hand; Linux and macOS timings (the CIsidecarworkflow runs the extended smoke script).- Moving
font_familiesout ofsettings.get(for example a separate query when the settings dialog opens) would take the remaining 0.7–1 s off the window's start; that is a protocol change to ADR 0026. Owner decision 2026-12-01: keepfont_familiesinsettings.get. - The Windows path normalisation in
tools/baseline/capture.pyand the Pango extents test are not fixed here (pre-existing, unrelated).
2026-12-01 — M14 deferred; A18 notifications and A21 panel toggles (branch claude/check-continue-plan-0c3546)
Status: implemented; checked on Windows 11 (Chromium workflows on the
development backend). Started from master 7a48837. Nothing committed at
the time of this entry.
- Owner decision 2026-12-01: the remaining M14 packaging work (Windows NSIS 2.0.0 build and file-association check, clean-machine checks, first release run, Flathub, size and start-time targets) is taken up last, after the application has stabilised. A local Windows sidecar build was started and stopped before it finished; no package was produced.
- A18 (status/info bar messages): the shell already used the EngineeringUI
notification stack (
createNotificationQueue,EuiNotifications). Added the legacy messages that had no equivalent: Project opened (with the path), the undo/redo step (Undo …/Redo …from the history state before the step) and Analysis results cleared. Transient notices now hide after 10 s (legacyMESSAGE_TIMEOUT; was 5 s); errors still stay until dismissed. Not carried over (proposed as Changed): "Nothing to undo/redo" (the commands are disabled and shortcuts skip disabled commands), the zoom-limit warnings and the rules-check prerequisite warnings. - A21 (show/hide panes): the View → Panels toggles existed; the left toggle is renamed from Sheets to Elements (the panel holds the element palette and the sheets) and the three toggles have tooltips.
| Check | Result |
|---|---|
npm run check |
Passes; EngineeringUI 205 tests, app 35 (new: panel toggles hide and show each panel with aria-pressed; open and undo notices) |
npm run e2e |
26 passed (6.1 min); extended: Project opened and Analysis results cleared notices, the undo notice in the document workflow |
npm run build-storybook(no EngineeringUI change); backend, engine and baseline tests (no Python change); the Tauri window by hand and both themes by eye.
2026-12-01 — Report graphs as plain SVG; Matplotlib to the legacy feature (branch claude/matplotlib-deps-cleanup-742f4c)
ADR 0028, approved by the owner 2026-12-01.
reports.graph.GraphImagewrites SVG directly (standard library only), same interface;core.fonts.system_font_families()lists fontconfig's families; Matplotlib moved to the pixilegacyfeature (legacyandtestenvironments, with thestartandsmoketasks) and is excluded from the sidecar. Lock file: same package versions, only environment membership changed.- Removed
NetworkModel.export_element_graph_matplotlib(no caller) and the unusedpandapower.networksimport. - Engineering results: unchanged by construction (graphs are presentation; no engine code path changed).
| Measurement | Before | After |
|---|---|---|
| Report graph, 512×384 protection graph (3 data sets) | 1.46 s, 61.6 KB | 3.4 ms, 6.2 KB |
| Report graph, 200×200 table graph | 0.52 s, 41.7 KB | 1.6 ms, 4.2 KB |
| Report graph, 500×175 load profile (2 data sets) | 0.65 s, 47.0 KB | 1.2 ms, 3.8 KB |
| Repeated 200×200 graph, warm (6 runs) | 0.38–0.42 s | — |
import pandapower (3 runs, noisy) |
4.9–6.5 s | 4.2–4.8 s with Matplotlib blocked |
| Settings font list, first call | Matplotlib font manager (310 families) | fontconfig 0.32 s (293 families), then 5 ms |
Rendering checked by eye: before/after graphs side by side through
WeasyPrint (log and linear axes, autoscaled limits, legends), the load
profile graphs of sample.gepro's report and the sample-s1 line
coordination graph (tools/charts/export.py report-svg). In the PDF the
graph text is real (extractable) text drawn in the report graph font
(Iosevka glyphs).
Frozen sidecar (pixi run -e bundle bundle-backend --with-weasyprint,
922.3 MB, 2446 files, import check 10.67 s; the earlier
--weasyprint-dir build was 926.5 MB, so the sizes are not directly
comparable), tools/sidecar_smoke.py --backend … --runs 3 --idle 20:
| Case | Ready | First settings.get |
First analysis | Second analysis | Report export | Warm-up |
|---|---|---|---|---|---|---|
Before (previous entry, master 3b93b63 + lazy imports) |
0.58–0.65 s | 0.66–3.33 s | 8.92–14.74 s | 4.31–4.83 s | — | 2.97–4.14 s |
| After, 3 runs | 0.70 / 0.61 / 0.61 s | 0.012 / 0.011 / 0.015 s | 9.02 / 7.72 / 7.74 s | 4.37–4.52 s | 5.10–5.79 s | 2.52–2.58 s |
The first settings.get no longer builds Matplotlib's font cache
(fontconfig is already initialised by the start-up font registration;
293 families). sample.gepro has only three report graphs, so the report
export time mostly reflects WeasyPrint; the graph saving grows with the
number of graphs (about 0.4 s each before). Orphan check: the backend
exited 0.15 s after its parent was killed.
| Check | Result |
|---|---|
pytest tests/engine/test_report_graph.py (new) and tests/engine/test_fonts.py |
12 passed, 1 skipped (fontconfig isolation test is Linux only) |
pixi run -e test test-engine |
305 passed, 1 skipped, 1 failed: test_symbols_extents.py::test_cairo_extents_within_one_grid_unit_of_pango (display text, up to 40 units); fails the same way on unchanged HEAD 1ad83fc on Windows (pre-existing, not caused by this change) |
pixi run -e test test-services |
189 passed, 12 skipped |
pixi run headless sample_files/sample.gepro (default environment, no Matplotlib) |
Passes; network.json, report HTML/PDF and drawing PDF exported |
pixi run -e legacy smoke |
3/3 projects passed (GTK window, Matplotlib graph view module loads) |
pixi run -e bundle bundle-backend --with-weasyprint + sidecar-smoke |
Passes (above); --check-imports confirms Matplotlib is not imported |
pixi lock |
Same package set and versions; Matplotlib only in legacy and test |
pixi run -e test test (regression baseline, GTK and headless) |
540 passed, 14 skipped, 11 failed: the same 11 known Windows failures recorded on unchanged master in the previous entries (10 cov_* baseline cases with Windows paths in traceback frames, and the Pango extents test); 540 = 531 + the 9 new graph tests |
- Linux and macOS: fontconfig font list, the sidecar build and the CI
workflow change (
quality.yml: Windows smoke in thetestenvironment, Windows headless run in the default environment) were not run. - The legacy GTK graph view was not exercised by hand (the smoke test only builds the window).
- Large-report timing (many element graphs) was not measured end to end; the per-graph saving is from the graph micro-benchmark above.
- The frozen sidecar was built with the bundled WeasyPrint package, not the
--weasyprint-direxecutable that release builds use.
Owner corrections to the modern application and behaviour matched with
GEstimator. No engine, service or .gepro change; no engineering result
moved.
- Rules check: failed rules (warnings) and errors show in the warning and danger colours (text, category and icon), as the legacy message view.
- Link references: targets already linked (same reference code, not a
placeholder
'',?,CR?) start selected. - Drawing: the view is clamped to the page like the legacy scrolled window
(
clampToRect): no scrolling past the page edges, top-left anchored when the page is smaller than the view. The grid pattern was transformed twice (pattern inside the viewport group with the viewport aspatternTransform); it now tiles in drawing units, so grid lines are the snap points. - Graph and data fields: the legacy buttons "Load data from file", "Edit
parameters" and "Display graph" (inspector
field-actions). Damage and starting curve parameters can be edited again (the single "Edit…" button was disabled for computed curves). "Display graph" opens a graph dialog; result graphs have the same button. - Compact graphs in the properties and results panes (no toolbar, title, legend, sliders or zoom). Profile curves (damage, starting, coordination) mark their points.
- Chart zoom: ECharts
dataZoomwindows are linear in the axis value, so a zoom on a log axis jumped to the top decade (measured: x window 32,969–100,000 A after one zoom step) and the curves left the plot. Log-log plots now use log10 value axes; wheel: Ctrl zooms about the pointer, wheel and Shift+wheel scroll. - Palette tooltips: the leading
<b>Name</b>heading of the legacy markup is dropped (the tooltip heading names the element) and the markup removed. - Load profile and coordination dialogs: adjustable splitters (1/3 and 2/3 for the left pane); the profile "Title" caption is visually hidden.
- GEstimator parity: tabs without animation (
EuiTabs, accent underline), menus without transitions or ripple, client-side decorations (undecorated window, window buttons and title in the ribbon tab strip, which drags the window; Linux GTK titlebar fix for the compositor shadow and resize border) and the window starts hidden and shows after the first layout, the program settings (theme) and the palette are loaded (Rust shows it after 10 s if the page never does).
| Check | Result |
|---|---|
npm run check |
Passes (format, boundaries, licences, type check, Vitest 30 + 5 files, builds) |
npm run build-storybook |
Passes |
npm run e2e |
26 passed (curve field test updated for the new buttons, plus damage curve parameters); one earlier run had one failure that two reruns did not reproduce |
cargo check (modern/src-tauri) |
Passes |
Browser (dev bridge) on sample.gepro |
Page clamping at all four edges, grid cell size, compact damage curve with points and the three buttons, graph dialog wheel zoom (even decades, curves kept), load profile splitter, palette tooltip |
- The Tauri window itself was not started: client-side decorations, window buttons, drag, the GTK shadow fix and show-after-load were only compiled. Windows and macOS were not checked.
- Rules check colours and the link dialog preselection were checked by code and existing e2e workflows only, not by eye.
- Python tests (
test-services, baseline) were not run; no Python changed.
Owner feedback; ADR 0029 (proposed). No engineering values changed.
- Header bar as GEstimator's title bar (
EuiHeaderBar,EuiApplicationMenu,modern/src/header.ts): application menu, common actions, project name with unsaved mark, theme and shortcuts, window buttons. The ribbon moved below it without File, Edit and Help. - Graph views: legend inside the plot with a toggle; no slider bars;
Ctrl+wheel zoom also in compact graphs; the graph dialog draws no title (the
dialog shows it); point picker (crosshair labels and a read-out
interpolated between points, bands as time ranges); Export PDF in the graph
dialog, curve and coordination views (
export.chart_pdf, WeasyPrint); SVG renderer in the app; inline graphs shrink with the side panel. - Start-up: chart dialogs are mounted only while open (ECharts no longer
loads at start-up); the Vite dev server warms up
src/main.ts.
The reported log had about 70 s between the backend start and its first
response. Measured on the owner's machine: the backend answers the start-up
requests (runtime.info through mcp.status) within 1.5 s of starting
(in-process runtime.info 0.95 s), and the warm-up imports take 5–6 s after
the first response. A npm run tauri:dev run with a cleared Vite cache had
the first response about 1 s after the backend start and the warm-up done
7 s after it, so the 70 s gap (the WebView not yet requesting) was not
reproduced. The Rust shell shows the window after 10 s if the page has not,
so a slow dev page load looks like a slow interface.
| Check | Result |
|---|---|
npm run check |
Passes (format, boundaries, licences, type check, Vitest 31 + 5 files, builds) |
npm run build-storybook |
Passes |
npm run e2e |
26 passed (coordination test now looks for the SVG plot) |
pixi run -e test test-services |
191 passed, 12 skipped (new export.chart_pdf tests) |
python -m modern.backend --write-docs, --write-schemas |
Method table updated; schemas unchanged |
Browser (dev bridge) on sample.gepro |
Header bar and menu; coordination plot (inside legend, point picker values equal to the axis labels, Ctrl+wheel zoom, Export PDF: vector, 2,493 path operations, embedded fonts, no images); time-series Pa, Pb, Pc graph dialog without the long title; inline graph 520 px → 120 px with the panel |
- The Tauri window with the new header bar was not opened: window drag on the title, window buttons and Close window were only built and type checked.
- The exported PDF was checked structurally, not viewed.
- The blur in the old canvas charts was not measured; the SVG renderer avoids canvas scaling.
- Regression baseline and legacy smoke test were not run (no engine
calculation changed;
reports/export.pygainedexport_svg_pdfonly).
Owner feedback after the header bar and graph view work:
- Graph views and their PDF export use the program setting Graph Font
(
settings.getreturnsgraph_font; EngineeringUIsetFontstakeschartFamily/chartSizeand sets--eui-chart-font-*). Exported charts keep the light colours with that font; the PDF CSS now carries the bundled@font-facerules. Font families are written in single quotes because ECharts' SVG string output does not escape"instyle. - Report graphs (
reports/graph.py): titles keep line breaks (newlines and a literal\n) and wrap to the figure width; text size is the report graph font size, at most one point below the report text size. ECharts titles keep the same line breaks and wrap to the export width. - Inline result and field graphs are out of the layout flow, so the results panel shrinks after it was widened.
- Damage and starting curve points are 7 px filled circles (series chart points are 5 px empty circles with a 2 px stroke).
- The window text is not selectable by dragging (inputs still are).
- No tooltip while a control inside its element is edited or a dropdown in
it is open;
data-tooltip-imageshows a large image. - Number fields drop trailing zeroes (
formatNumber). - Selection images at their own size (90 x 60 px) in the list and the selected entry, 400 px high in the tooltip, as in the legacy field view.
- Element palette: 28 px icons, more space between icon and name and between entries.
No engineering result changed.
| Check | Result |
|---|---|
npm run check |
Passes (Vitest 31 + 5 files; tests updated for trailing zeroes and editing tooltips; new title, chart font and image tooltip tests) |
pixi run -e test test-services |
191 passed, 12 skipped |
pytest tests/engine/test_report_graph.py tests/engine/test_fonts.py |
Passes (new title wrap and font size tests) |
Browser (dev bridge) on sample.gepro |
Trailing zeroes gone; laying type images 90 x 60 in list and field; large image tooltip; no tooltip with the dropdown open; result graph 536 px → 240 px with the panel; graph dialog Export PDF embeds Iosevka (the owner's graph font) |
npm run build-storybookandnpm run e2ewere not run.- The Tauri window was not opened.
- Regression baseline and legacy smoke test were not run (no engine calculation changed).
- The full exported report PDF was not regenerated; a single report graph was rendered through WeasyPrint and viewed.
- Window view state (
settings.set_view,settings.get→view): panel widths and dialog sizes in pixels, kept by the backend settings store inview.jsonnext tosettings.ini(the legacy app ignores it). The frontend saves after a 600 ms pause and before the window closes (modern/src/viewState.ts). - Side panels default to 260 px (elements) and 380 px (inspector); saved widths override them.
EuiDialogtakesheightandresizable(size grip,resizeevent after the drag settles and when the dialog closes). The library dialog (960 x 620) and the coordination view (1100 x 720) are resizable and keep their size.- Library dialog: categories in a tree, collapsed unless there is one category or a search is active, with item counts; the list takes 60 % of the width; Up/Down, Right/Left, Enter and double click.
- Selection images beside their text in the field; field view, results and inline graphs have 16 px side padding.
| Check | Result |
|---|---|
npm run check |
Passes |
pixi run -e test test-services |
192 passed, 12 skipped (new view state test) |
python -m modern.backend --write-docs |
Method table updated |
npm run e2e |
25 passed, 1 failed: editing.spec.ts busbar width (ports 96, expected 128). The same test fails intermittently on master before this change (1 of 8 runs; 2 of 7 with it); it passes alone |
Browser (dev bridge) on sample.gepro |
Default widths; a widened left panel kept after reload; tree collapsed with counts, keyboard selection shows values; library dialog resized and saved; coordination plot fills the dialog |
- The Tauri window was not opened (saving on window close only in the browser).
- ResizeObserver does not run while the browser pane is hidden; the size was saved through the close fallback there. One drag saved an intermediate size before the fallback existed; the final size is now also measured when the dialog closes.
- Desktop window: the saved size (view state
window_size,window_maximized), or 90 % of the screen work area, kept inside the screen and centred before the window shows (restoreWindow,onWindowResizedinservices/native.ts; capabilitiesallow-set-size,allow-center,allow-maximize). - Sheets open at 140 % from their top left corner (view state
drawing_zoom, 0 fits the sheet; the e2e harness sets 0). Program settings now load before the first document so the view state applies to it. - Ribbon captions one point smaller; caption width cap 86 px and no breaks inside words, so "Coordinate" and "Clear results" show whole.
- Library dialog: items indented under their category with guide lines; values with the element's field captions and units; search matches highlighted; open categories and the chosen item remembered per element type while the app runs.
- Selection images: caption beside the image unless it would take more than about four lines (then below).
- Large image tooltips go beside their element (left, then right).
- Inspector captions stop at two lines; long ones get the whole caption as tooltip.
- Time-series results show min, mean and max (one row per series), read from the summary text Python writes.
- Coordination view: Hide/Show details collapses the curve pane (kept in the view state).
| Check | Result |
|---|---|
npm run check |
Passes (new resultSummary tests) |
npm run e2e |
26 passed (analysis test checks the min/mean/max summary; library test clicks a tree item) |
cargo check (modern/src-tauri) |
Passes |
Browser (dev bridge) on sample.gepro |
140 % zoom from the top left; no clipped ribbon captions; tree guide lines, highlights, captions and units; summary grid; coordination pane toggle (plot 711 → 1066 px); image caption below the image in the 380 px panel |
- Window size restore and saving were only type and capability checked; the Tauri window was not opened.
- In the browser pane's scaled viewport emulation the dialog and panel sizes measured larger and were saved without a user change; a Playwright probe at normal scale measured 960 x 620 and saved nothing.
- Chromium and WebKitGTK report Shift with the wheel as
deltaX(withdeltaY0), soSchematicView.vueread a zero horizontal step and the drawing did not move. The view now takesdeltaY || deltaXwhile Shift is held, aswheelNavigatealready did for charts.
| Check | Result |
|---|---|
npm run check |
Passed |
npx playwright test -g "zoom steps" (new Shift+wheel steps, both delta forms), --repeat-each 3 |
Passed |
| Browser (dev bridge), synthetic Shift+wheel events | deltaX 100 and deltaY 100 each pan 100 px horizontally |
- Full
npm run e2e,npm run build-storybookand the Tauri window were not run; Python tests not run (no Python changed).
- Owner approved A18 (notification stack) and A20 (no splash screen); the
feature inventory and ADR 0027 record both. A22 is Done: the shell passes
--log-filein the Tauri app log directory and the desktop log (~/.local/share/com.kavilgroup.gelectrical/logs/gelectrical-backend.log) holds the 2026-12-04 session of a project opened in the app. - Owner decision: the system font is the default interface font, following
GEstimator (
d2b57e82). With Interface Font empty the window uses the desktop font and size: the shell reads the GTK font (desktop_fontcommand,desktop-fontevent on change), the backend adds the Windows message font tosettings.get(desktop_font, empty elsewhere), and the shell WebView falls back to the CSSmenufont. A browser (dev bridge) keepssystem-uiat 13 px. A set Interface Font still wins; the owner's ownsettings.inisetsIosevka 11.
| Check | Result |
|---|---|
npm run check (includes modern/src/desktopFont.spec.ts) |
Passed |
pixi run -e test test-services |
193 passed, 12 skipped |
npm run e2e |
27 passed (also run before the font change) |
cargo check in modern/src-tauri/ |
Passed |
- The Tauri window was not opened: the GTK font path is compile-checked only, and the owner's GTK font and Interface Font are both Iosevka 11.
- The Windows metrics path (ctypes) was not run; it is the GEstimator code.
- Regression baseline and legacy smoke test not run (no engine change).
Owner decisions of 2026-12-04 (ADR 0030): retire GTK now, with the packaged-app checks (A02, A03, A06, A07) and the M14 rows moved after M15; the headless capture becomes the only regression baseline; the user manual is rewritten in a separate pass.
- Proof before removal. On
c888be5both captures were compared withtests/baseline/: the GTK capture (xvfb-run -a pixi run -e test pytest tests/test_baseline.py) 38 passed; the headless capture (pytest tests/test_headless_baseline.py) 18 passed. No baseline file changed; no tolerance changed (headless drawings keep the owner's 1 % Cairo-text limit from M2). - Archive. Local branch
archive/gtkatc888be5(not pushed). - Removed.
gelectrical/gtk/,gelectrical/misc.py,gelectrical_launcher.py;tools/smoke_test.py,tools/baseline/legacy.py,tests/test_coordination_legacy.py,tests/test_symbols_extents.py,tests/test_headless_baseline.py(merged intotests/test_baseline.py), the PangoCairo diagnostic capture;pyinstaller_spec.spec,installer.nsi,setup.py,MANIFEST.in,requirements.txt, the root Flatpak manifest withbuild_flatpak.shandapp/,packaging/legacy/;tools/pixi_activate.*. - Environment. pixi:
gtk3,pygobject,adwaita-icon-theme, thelegacyfeature (Matplotlib) and the activation scripts removed;librsvgmoved to the test feature (rsvg-convertfortests/engine/test_symbol_scene.py, otherwise 11 tests skip).pixi.lockshrank by about 3,400 lines. - Baseline tooling.
capture.pyalways captures headless (--headlessaccepted and ignored);headless.pyowns the environment isolation;tests/test_baseline.pychecks the headless capture (Cairo text, nogtkin the manifest), the round trip and the coverage checks. CI (quality.yml) runs without Xvfb or the smoke test.
| Check (after the removal) | Result |
|---|---|
pixi run -e test test without a display (DISPLAY unset) |
540 passed, 12 skipped (the 12 report raster skips that were there before) |
pixi run headless sample_files/sample.gepro |
Passed: network JSON, report HTML/PDF, drawing PDF |
pixi run -e bundle bundle-backend |
Passed (541.9 MB, 1,927 files; import check 1.75 s) |
tools/sidecar_smoke.py --backend <frozen sidecar> |
OK, two runs, orphan check passed |
cargo check, npm run check, npm run e2e |
Passed; e2e 27 passed |
- Drawing rasters: on this machine
compare.fonts_matchis false for every capture (GTK and headless alike, before and after the removal), so drawing pixels were not compared; text, model, results and topology were. - Windows (CI
quality.ymlWindows job, sidecar workflow) and the release workflow were not run; hosted CI was not run. - The Tauri window was not opened.
archive/gtkis local only; pushing it is for the owner.- User manual (Sphinx) still describes the GTK interface; rewrite is a separate pass. Release notes listing every Changed row are not written.
Owner decision of 2026-12-04: M14 packaging is resumed (it was deferred on
2026-12-01). Built from f3e49e5 (M15) on Windows 11 (26200, 12 threads)
with the local toolchain (pixi bundle environment, Node 24.20, Cargo
1.99, Tauri CLI 2.12.4); no code changed. The WeasyPrint 70.0
weasyprint-windows-onedir executable was reused from an earlier local
extraction (the bundle script checks its version against the pinned
package).
| Check | Result |
|---|---|
pixi run -e bundle bundle-backend --weasyprint-dir <onedir> |
Passed: 905.0 MB, 2,319 files; import check 8.86 s. MKL accounts for the size gap to Linux (541.9 MB in the M15 entry) |
tools/sidecar_smoke.py --fresh-cache --runs 1 --backend <exe> --weasyprint <exe> |
OK: ready 0.65 s, open 0.07 s, scene 0.03 s, analysis 11.26 s then 4.37 s, report 5.81 s, drawing 0.18 s; warm-up 2.51 s; backend exited 0.12 s after its parent was killed |
npm run tauri:build:windows -- --bundles nsis |
Passed: GElectrical_2.0.0_x64-setup.exe, 215.20 MiB (unsigned) |
Release-layout autorun (target/release/gelectrical.exe, GELECTRICAL_POC_AUTORUN=1) |
ok: true, 30.8 s in all: window script 0.93 s, first response 2.57 s (sidecar ready_ms 2,966, the warm-up starts at once), open 0.11 s, analysis 14.11 s then 4.46 s, report HTML + PDF through the WeasyPrint executable 7.58 s, drawing PDF 0.24 s; no gelectrical-backend or weasyprint process left afterwards |
Observed, not investigated: the frozen sidecar logs Fontconfig error: Cannot load default config file at start-up; the bundled fonts still
register ({'fontconfig': True, 'gdi': True}) and the report and drawing
exported.
- The installer was not run. This machine has an earlier machine-wide
GElectrical 0.1.0 install (M5 proof of concept) in
C:\Program Files\GElectrical; upgrading it needs elevation. So the install,.geprodouble-click (A03), Start-menu entry, uninstall and the clean-machine check (G01) are still open, as are the packaged Open/Save As dialogs and the window close guard (A02, A06, A07). - The autorun was the unbundled release layout (resources next to the executable), not an installed copy.
- First analysis 11–14 s cold and 4.4 s warm stay above the packaging §6 targets (< 10 s, < 3 s); installer size and start-time targets still need the owner's agreement.
- The release workflow, Linux, Snap, Flatpak and macOS builds were not run.
The owner installed GElectrical_2.0.0_x64-setup.exe from the previous
entry over the earlier GElectrical 0.1.0 install on the same Windows 11
machine and reported every check working: installation (SmartScreen and
elevation prompts approved by the owner), the Start-menu entry, opening
sample.gepro by double-click in Explorer (A03), Open and Save as
through the native dialogs (A02, A06), the unsaved-change guard on closing
the window (A07) and the uninstaller.
After the uninstall (checked with PowerShell): no uninstall registry entry,
no C:\Program Files\GElectrical, no Start-menu shortcut and no running
process. Left behind: an empty HKLM\Software\Classes\.gepro key holding
only a GElectrical project_backup value (Tauri's NSIS file-association
backup); HKCU\Software\Classes\Applications\gelectrical.exe (created by
Windows for Open with, not by the installer); the log folder
%LOCALAPPDATA%\com.kavilgroup.gelectrical (kept unless delete app data
is ticked in the uninstaller).
- Not a clean machine: the development toolchain, an earlier install and a WebView2 runtime were already present; the clean-machine check (G01) stays open.
- The owner's checks are recorded as reported; Claude did not observe the installed window, the dialogs or the installed copy's run.
- Report and drawing exports from the installed copy were not run unattended (the release-layout autorun of the previous entry covers the same binaries and resources).
2026-12-04 — Coordination view: curves referred to the highest voltage (branch fix/coordination-voltage-base)
Compared with the legacy view (origin/archive/gtk,
gelectrical/gtk/view/protection.py and gtk/project.py). The scaling
rule in gelectrical/model/coordination.py equals the legacy one
(transformers vn_lv_kv, other elements res_fields['vn_kv'], base the
highest voltage of the selection, scale 1 when unknown). The legacy view
first ran ProjectModel.prepare_protection_coordination (base model,
power flow model, results) so that elements carried their voltages. The
modern protection.coordination skipped that step, and analysis runs on
detached copies, so live elements never had vn_kv: with 11 kV and
0.415 kV elements selected (sample.gepro, cov_multisheet), every curve
was drawn unscaled, before and after an analysis.
- Engine.
coordination.refresh_voltages(project)(the legacy steps);coordination_dataset/project_datasettake optionalvoltages;_voltagerenamedelement_voltage. - Service.
protection.coordinationrunsrefresh_voltageson a copy of the committed snapshot and caches{uid: voltage}per session while the snapshots differ only inpcurve_l,pcurve_g,dcurve(redraw after a parameter change stays fast). If the network model cannot be built, curves are shown unscaled and a warning is logged (the legacy view raised).
| Check | Result |
|---|---|
Service data equals the legacy flow (engine project + refresh_voltages + data set), all sheets |
Equal on sample.gepro (0.415/11 kV), cov_multisheet (0.415/11 kV), cov_radial_lv (0.415 kV) |
New test_coordination_refers_curves_to_the_highest_voltage |
Passed: LV breaker scaled by 0.415/11, unchanged after analysis, kept after a curve change, 0.415/22 after the grid and transformer HV change to 22 kV |
protection.coordination on sample.gepro, every element |
First call 6.3 s (pandapower import), then 0.017 s (0.018 s without voltages); uncached refresh 0.87 s |
pixi run -e test test (Windows) |
535 passed, 13 skipped, 5 failed: test_project_matches_baseline for cov_advanced, cov_impedance, cov_radial_lv, cov_trafo3w, cov_xward, only on traceback paths of expected-failure statuses (normalize_message replaces the backslash ROOT, while the tracebacks use forward slashes). Not caused by this change; no result values differed |
Baseline path normalisation (tools/baseline/capture.py): normalize_message now replaces ROOT and the temporary folder in native and forward-slash form; on POSIX both are the same string, so Linux captures are unchanged; tests/baseline/ not touched |
tests/test_baseline.py on Windows: 39 passed (the five projects above now pass) |
npm run check,npm run e2e(no frontend change); the app was not opened.- Display node fault markers: the modern live document has no display node elements (they exist only in analysis copies), so the coordination view shows no fault current markers; unchanged here.
2026-12-05 — Report definition, report settings and settings refresh (ADR 0031, master working tree)
Reporting modelled on GEstimator's report module (modern/backend/reporting/
at 505d7df): new headless package gelectrical/reports/document/
(specification, logo, datasets, boq, render, publish), split templates
(templates/report.html, templates/report/), optional proj_report key,
services report.definition, report.set_definition, report.preview, and
the Report settings dialog with a live preview. Settings dialogs on the new
EngineeringUI EuiSettingsLayout and EuiChoiceCards (pattern from Open
Planner Studio's settings dialog), defaults in project.settings and
settings.get, reset to default in EuiPropertyInspector. Dropdown
transitions turned off in the Quasar bridge.
| Check | Result |
|---|---|
Report text baseline (test_report_text_equals_baseline, all projects with report.txt) |
Unchanged: passed with the default definition; tests/baseline/ not touched |
pixi run -e test test (Linux) |
570 passed, 12 skipped |
New tests/engine/test_report_definition.py, tests/services/test_report_settings.py |
28 passed: validation (16 invalid cases), .gepro round trip and undo, files without a definition unchanged, escaping in HTML and CSS, ordering, one undo entry, results stay current across report-only edits and their undo, stale after an engineering change |
Fully configured report (sample.gepro, logo, notes, sign-off, elements off) rendered to PDF with WeasyPrint and inspected |
Cover with logo and reference/revision/date, contents with leaders and page numbers, running header and "Page n of N" footer, landscape bill of quantities, notes and sign-off pages |
npm run check |
Passed (format, boundary, licences, type check, Vitest 35 + 6 files, builds) |
npm run e2e (full) |
27 passed, 1 failed: curve field dialog in expectUndo, which threw on undo_text: null before the command landed (a race in the helper; expect.poll does not retry thrown errors). Helper fixed (undo_text ?? ""); properties.spec.ts + new report.spec.ts then 7 passed. The full suite was not rerun after the fix |
npm run build-storybook |
Passed |
Dev app (npm run dev, browser), light and dark |
Project and program settings (rail, search, changed filter, title-block preview, theme cards), report settings (edit, reorder, add notes, preview, Apply = "Update report settings"); dropdown arrow and option transitions measured at 0 s |
- Sidecar bundle and smoke test (
bundle-backend,sidecar_smoke.py): the new templates are undergelectrical/templates/(already in the spec's data directories); not rebuilt. - WeasyPrint executable route (Windows): the publish step passes the scratch folder to the same adapter; not run.
- Owner review of the default report's new layout (text unchanged) and of ADR 0031.
- Numeric selection lists (Grid voltage tolerance, Grid Frequency)
showed no value or options:
EuiPropertyInspectoronly mapped text and value/caption entries. Numbers are now shown and a choice of an int/float selector carries the parsed number. - The preview overlaid the stored Reports fields on the draft, so section
toggles and the graphs option had no effect until Apply.
report.previewtakesinclude_graphsand previews the draft's toggles. - Without analysis results the preview shows the analysis options and a placeholder for the results (the exported report still leaves the section out without a run).
- Contents links in the preview loaded the host page in the frame; the
preview document has
<base href="about:srcdoc">. - Reset to defaults kept the cover fields and the current toggles; it now
restores a new project's report (cover, logo, paper, sections, graphs
option;
default_include_graphsinreport.definition).
| Check | Result |
|---|---|
pixi run -e test test |
572 passed, 12 skipped (2 new service tests) |
npm run check |
Passed (new numeric selection test) |
npm run e2e (full) |
28 passed |
| Dev app | Grid frequency 50/60 shown and chosen with changed marker; preview toggles, graphs before analysis, placeholder, contents link, reset checked |
2026-12-05 — Logo field, report form in the project settings, MCP settings page, ribbon (ADR 0031 revision, feat/report-settings working tree)
Logo moved from the report definition to the project field
drawing_field_logo (Information; program Defaults field for new projects;
field type image, gelectrical/core/logo.py). The project settings
Reports page shows the report form; project.set_settings takes report
(one undo entry). Program settings get the MCP server page (McpPanel); the
MCP dialog is removed. Settings ribbon tab, Output group on Home, Assistant
status/skill-set/copy/reload/folder; report and MCP settings left the
application menu. Report: 20 mm margins, full-width tables, logo left.
| Check | Result |
|---|---|
pixi run -e test test |
559 passed, 12 skipped, 17 failed: every test_baseline project reports only the new Information field (model.json unexpected key drawing_field_logo; d8.json added count +1). No result, curve, topology or report-text difference. tests/baseline/ not changed: a baseline update needs owner approval (regression baseline §6) |
| Baseline update (owner approval 2026-12-06, regression baseline §6, ADR 0031 item 8) | Captured to a scratch folder and compared: the only non-raster, non-environment differences were the Information field drawing_field_logo in model.json (17 projects) and its entry in d8.json added (count +1). Only those two files were copied into tests/baseline/ (34 files, additions only apart from the added array and count lines); rasters, environment.json, results and report.txt left as they were |
pixi run -e test test after the update |
576 passed, 12 skipped |
tests/engine/test_report_definition.py, tests/services/test_report_settings.py |
34 passed (logo checks, project logo on the cover, settings + report in one undo entry) |
npm run check |
Passed (new image field, ribbon choice/status tests and stories; App MCP test rewritten for the settings page) |
npm run build-storybook |
Passed |
npm run e2e (full) |
28 passed (MCP via the settings page and ribbon status; Reports page applies the report with the project settings) |
| Dev app | Ribbon tabs, MCP page, default logo into a project and onto the cover (left), Reports page apply = one "Update project settings" entry; tables measured at the full text width in the sample report preview |
Not run: sidecar bundle, WeasyPrint executable route, an exported PDF check of the 20 mm margins.
2026-12-06 — Ribbon MCP status, load profile button, links, About dialog, theme toggle (ADR 0031 item 16, feat/report-settings working tree)
Ribbon status items are tinted read-out panels with a tone dot and detail
lines (no hover, focus or press). The load profile field button opens the
load profile editor on the field's profile. Web links go through
openWebPage, which shows a notice on failure; the opener scope allows the
bare documentation address (the opener matches the raw URL against its
globs, so https://gelectrical.readthedocs.io never matched …/*), the
website, issues, licence and author mail. About dialog with logo,
description, links, credits, component versions (runtime.info
components) and licence. The theme toggle is apart from the panel toggles
in the title bar.
| Check | Result |
|---|---|
npm run check |
Passed (ribbon status test and story updated, App MCP test reads the detail lines) |
pixi run -e test test-services |
202 passed, 12 skipped (runtime.info reports components) |
npm run e2e (full) |
28 passed (About tabs and versions, Documentation from the Settings ribbon, MCP status text) |
cargo check (modern/src-tauri) |
Passed (capability scope change) |
npm run build-storybook |
Passed |
| Dev app | Assistant status panel in light and dark; theme toggle apart in the title bar; About tabs with backend component versions; Edit load profile on load X1 of sample.gepro opened the editor on its profile (not the first) |
Not run: the Documentation and About links inside the Tauri window (npm run tauri:dev); the scope fix follows from the opener plugin source (tauri-plugin-opener 2.7.3 scope.rs).
2026-12-06 — Assistant tab, ribbon widths, version 2.0.0, report table widths, curve and load profile lists (ADR 0031 items 17–18, feat/report-settings working tree)
Assistant tab last, with MCP server (start/stop, status, access toggle),
Connection (Connect dialog, MCP settings), Skills and Review. Large
ribbon buttons 68 px and small ones 112 px; captions User manual and
About. Version 2.0.0 (GitHub's last release is v1.1.2). About author:
name and Central Public Works Department. Report cells box-sizing: border-box. Coordination curve choice as a Quasar select, caption hidden
visually; menus reserve their scroll bar. Load profile list in library-tree
rows; From library… dialog with search, CategoryTree (now shared with
the database dialog) and a preview.
| Check | Result |
|---|---|
Report tables (WeasyPrint layout of sample, kerala_inspectorate_sample, voltage_test; sample also on A3 landscape, A5 and Letter) |
Before: element_fields +26.7 px, boq_lines +44.8 px, boq_loads +24.8 px, boq_nodes +52.8 px past the right margin. After: every table exactly the text width (642.5 px on A4) |
pixi run -e test test |
576 passed, 12 skipped (version 2.0.0, report CSS) |
npm run check |
Passed (App MCP test: button order, access toggle, Connect snippets with the token masked) |
npm run build-storybook |
Passed |
npm run e2e |
27 passed in the full run; the coordination test failed on an assertion reading the select's text, fixed to read its value, then it and the load profile test passed |
| Dev app | Assistant tab layout; Connect dialog; button widths measured (68/112 px on Home, Settings, Assistant); curve select menu; profile list and library search, tree and preview; coordination side pane: the curve select stays at the top while the details scroll (A1-Q3 of sample.gepro), its right edge equal to the fields' (952 px) |
Not run: Tauri window checks of the Connect copy buttons and links.
2026-12-06 — Report fonts, BOQ columns, BOQ number format, inline units, grey graph grid (ADR 0032, working tree)
Revised the same day after the owner's review (columns after GEstimator, graph font, matching font controls, no logo in the report form, inline units approved).
| Check | Result |
|---|---|
pixi run -e test test before the baseline update |
576 passed, 12 skipped, 18 failed: test_report_text_equals_baseline and test_project_matches_baseline on the 9 projects with a report, only report.txt. No result, model, raster or other artefact differs |
| Baseline update (owner approval 2026-12-06, regression baseline §6, ADR 0032) | Captured with baseline-capture --out <scratch>; only the 9 existing tests/baseline/*/report.txt files copied (2760 insertions, 7456 deletions); results, models, rasters and environment.json left as they were. Then pixi run -e test test: 595 passed, 12 skipped, 0 failed |
report.txt before/after on sample.gepro |
1321 changed lines: the unit column of the element, result and analysis option tables is gone and units follow values (630 / A → 630 A); in the BOQ (74 lines) numbers have fixed decimals (length 0.3 → 0.300, P loss 6e-05 → 0.00006, rated power total 132.7735 → 132.77, In 63 → 63.0, Vn 11.0 → 11.000) and the row of node 15 (not connected, no results) is gone. cov_advanced: a 0.0001 km line length prints as 0.000 (3 decimals) |
Engine tests (test_report_definition.py) |
Font and table validation (ordered subsets, duplicates, unknown keys), defaults not stored, only changed tables stored, text and graph fonts (program defaults, one point below the text), column order and widths, number format, unconnected node rows, inline units: pass |
| Graph parameter captions (owner report, same day) | The first parameter heading of data fields (e.g. Thermal protection of a breaker's line protection) lost its <b> and ran inline beside the graph: lstrip('</br>') strips characters, not a prefix. Parameters are now one graph-params block under the graph, lines joined with <br>; test test_graph_parameters_start_with_their_heading; checked in the PDF of sample.gepro (page 5). Pre-existing legacy bug; changes report.txt with the pending update |
npm run typecheck -w gelectrical-modern, Vitest (app), Prettier (modern/src, modern/e2e), boundary check |
Pass |
npx playwright test report.spec.ts (font size list, Switches table off, customised Lines columns with one excluded and one moved, stored definition) |
Pass |
| Report settings dialog by hand (dev bridge) | Fonts card (text and graph rows with matching family and size lists), BOQ tables with "Customize columns" and ordered column list, no logo; light theme only |
npm run check |
Pass (format, boundary, licences, type check, Vitest 270 library + 44 app, story tests, builds) |
npm run e2e |
28 passed |
| Not run | npm run build-storybook, dark theme of the new controls, PDF visual review beyond page 5 of sample.gepro |