Skip to content

feat: Update 2 slice 2 — profile gauge freshness, script-load fixes, product calendar - #394

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/update2-gauge-freshness
Nov 27, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/update2-gauge-freshness

Conversation

@ohgeeceee

Copy link
Copy Markdown
Owner

What changed

Tier A throughout — frontend JS/CSS/HTML, docs, and one CI step. No transport/**, protocol/**, or commands.rs changes; no new crates; no ECU writes.

Update 2 (connection health and recovery), slice 2 — profile gauge grid freshness

The profile gauge grid on the Live Data tab had no freshness story: a PID that stopped answering kept showing its last value indefinitely, and a systemic sweep failure left every gauge looking live after polling stopped. The DID-backed Live Gauges panel already solved this (first slice); this slice brings the same semantics to the profile grid.

  • New pure module src/js/live_freshness.js (dual-export window.beeemuuLiveFreshness): per-channel last-value / last-error timestamps plus a loop-running flag. An explicit per-PID error marks the channel stale immediately; otherwise a channel goes stale past the same 5 s presentation threshold the Live Gauges source uses. stopPolling() — user toggle, systemic failure, or disconnect — marks every channel stopped. Profile changes and connect/disconnect reset the tracker.
  • main.js wiring: gauge cells gain a freshness line (waiting for first read / stale — last read N s ago / stale — read rejected / polling stopped) and a .stale class that greys the dial. textContent only.
  • src/css/app.css: .gauge-cell.stale + .gauge-fresh styles, independent of the existing .dimmed (unsupported) state.
  • 11 unit tests with an injected clock (src/js/live_freshness.test.js).
  • Explorer-watch and logging polling paths reviewed: both render historical, timestamped data and stop on error — no freshness gap; findings documented in docs/connection-recovery.md.

Defects found and fixed along the way

  • live_data_panel.js was never loaded by index.html. main.js::startPolling() dereferences window.beeemuuLiveDataPanel unconditionally, so the Live Data polling path crashed in the shipping shell while the module's unit tests passed under require() (each require() gets its own scope — only the browser shares one). Loading it exposed a second latent defect: a top-level const api collision with workspace_state.js across the shared classic-script scope, which would have been a SyntaxError killing the second file. Both live_data_panel.js and the new live_freshness.js now use the root/factory IIFE pattern (wiring_detect.js convention).
  • About modal metadata (the follow-up finding in docs/next-updates.md): showed v0.1.0 and the ohgeeceee/beeemuu repo spelling; now v5.0.1 and ohgeeceee/beemuu.

Guards so these classes of bug can't ship again

  • New src/js/test/script_globals.test.cjs: parses index.html as the browser sees it and fails on any window.beeemuu* global main.js hard-references that no loaded script provides (optional-chained references are exempt by construction). Would have caught the missing script tag.
  • The existing scripts/check-script-collisions.cjs guard was not run by anything — it is now a CI step in test.yml before node --test. Would have caught the const api collision.

Docs

  • docs/connection-recovery.md: second slice + review findings for the remaining polling paths.
  • docs/next-updates.md: update 2 progress; the About-modal follow-up finding is now marked resolved.
  • New docs/product_calendar.md: calendar-time sequencing of the ten approved updates (Dec 2026 – Jul 2027), grounded in next-updates.md and the v0.19–v0.30 planning map. Explicitly a planning horizon — release cuts remain Tier C.

Verification

  • node --test "src/js/**/*.test.js" "src/js/**/*.test.cjs" "frontend/**/*.test.js": 1150 tests, 1148 pass, 1 skipped (pre-existing deliberate it.skip in live_kdcan_source.test.js), 1 fail — frontend/version_surface.test.js "Cargo.lock version", reproduced on a clean tree at origin/main: the test reads Cargo.lock with a bare \n and the file checks out CRLF on Windows. Pre-existing, Windows-only, not caused by this PR.
  • node scripts/check-script-collisions.cjs: no top-level collisions across 73 scripts.
  • node scripts/test-connection-recovery.cjs (real Chromium, mocked Tauri boundary): PASS.
  • pytest backend/tests/: not fully runnable in this environment — both available Pythons lack hashlib.scrypt (102 occurrences), plus the known Windows-only executable-bit and git-mtime failures. Zero backend files touched by this PR.
  • cargo test: not runnable here — the local Application Control policy blocks rustc.exe (os error 4551). Zero src-tauri/** files touched.

Known limitations

  • The freshness line updates once per sweep (and once on stop); between sweeps nothing moves, which is exactly when the line matters. No new timers added.
  • Physical adapter health probes and automatic reconnect remain unimplemented; update 2 stays open for the real-cable recovery pass.

…product calendar

- Profile gauge grid now tracks per-PID freshness (src/js/live_freshness.js):
  stale / waiting / polling stopped / read rejected instead of presenting a
  cached number as current. Mirrors the DID-backed Live Gauges semantics.
- Fix: live_data_panel.js was never loaded by index.html — startPolling()
  dereferenced an undefined window.beeemuuLiveDataPanel in the shipping
  shell while unit tests passed under require(). Wrapped it and the new
  module in root/factory IIFEs (top-level const collision with
  workspace_state.js).
- Guard: src/js/test/script_globals.test.cjs fails on any window.beeemuu*
  global main.js dereferences that no loaded script provides; the existing
  check-script-collisions.cjs guard is now a CI step in test.yml.
- Fix: About modal showed v0.1.0 and the ohgeeceee/beeemuu repo spelling.
- Docs: connection-recovery.md second slice + explorer/logging freshness
  review findings; next-updates.md progress; new docs/product_calendar.md.
@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: ac7510642d7d462dad20b18905bb1c73890bd8b1

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 11 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: ac7510642d7d462dad20b18905bb1c73890bd8b1

PR taxonomy review recommended (neutral)

Detected 2 PR taxonomy bucket(s): Security Evidence, CI/CD Recommendation.

Scanned 11 changed file(s).

Roadmap taxonomy buckets:

Security Evidence

Security-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence.

Signals:

  • 1 security-sensitive path(s) changed

Paths:

  • .github/workflows/test.yml

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • User-facing UI changes may ship without browser coverage
  • CI workflow changes may ship without failure-mode evidence
  • Dependency or CI drift could surface after merge
  • 3 CI or workflow path(s) changed

Paths:

  • .github/workflows/test.yml
  • src/js/live_freshness.test.js
  • src/js/test/script_globals.test.cjs
  • src/css/app.css
  • src/index.html
  • src/js/live_data_panel.js
  • src/js/live_freshness.js
  • src/js/main.js

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: ac7510642d7d462dad20b18905bb1c73890bd8b1

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 11 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: ac7510642d7d462dad20b18905bb1c73890bd8b1

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 11 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Config Audit

Commit: ac7510642d7d462dad20b18905bb1c73890bd8b1

No changed-config issues detected (success)

Scanned 1 config file(s) present at this commit across 1 changed config path(s) and found no issues in the supported security rules.

Changed config files:

  • .github/workflows/test.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Harness Audit

Commit: ac7510642d7d462dad20b18905bb1c73890bd8b1

No harness issues detected (success)

Scanned 1 changed config file(s) and found no harness issues.

Changed config files:

  • .github/workflows/test.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@github-actions
github-actions Bot merged commit 3d8829d into main Nov 27, 2026
17 checks passed
@github-actions
github-actions Bot deleted the feat/update2-gauge-freshness branch November 27, 2026 10:26

@ohgeeceee ohgeeceee left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant