May 29, 2026
v0.8.0 prep: lint, theme, and test fixes
Prepared the v0
Prepared the v0.8.0 release with a version bump in the VERSION file, aligning it with pyproject.toml, and fixed two lint regressions — removing an unused import and suppressing a false-positive E402 — so the project passes the upgraded ruff gate cleanly.
Simplified HTML extraction by dropping dead fallback paths. The BeautifulSoup and regex-strip tiers were unreachable because beautifulsoup4 was never a dependency. The unused helper and related tests were removed, making trafilatura the sole extraction engine.
Closed a governance gap from the earlier SelfModelService removal. A stale allowlist entry for the deleted service could have silently authorized future calls if the file were recreated. The dead entry and its comment were removed.
Fixed two light-theme contrast regressions. The API-key dialog panel now uses the theme-aware --bg-2 token instead of a hardcoded dark background, and the scrollbar thumb gets light-theme overrides, matching the Brain dashboard’s earlier fix.
Halted an accidental navigation bug: the Brain sidebar’s theme toggle button defaulted to type=“submit” and could push users to the chat page. Adding type=“button” and stopping event propagation keeps the toggle behavior scoped to the theme flip.
Improved test reliability by moving network-dependent web download tests to the integration tier. Unit tests now only cover deterministic URL-validation logic (blocked schemes, SSRF rejection), eliminating failures in air-gapped CI or proxy environments. The non-deterministic NXDOMAIN assertion was removed.
Made the concept LUT test self-maintaining by deriving expected counts directly from the source YAML rather than a hardcoded magic number, and added a guard to skip cleanly when the ONNX encoder is unavailable.
-
Bumped version to 0.8.0 and resolved two lint regressions.
-
Stripped unreachable BeautifulSoup and regex fallbacks from HTML extraction.
-
Removed a stale allowlist entry that could bypass governance if SelfModelService were recreated.
-
Fixed light-theme contrast for the API-key dialog and scrollbar thumb.
-
Improved test determinism by moving live HTTP tests to integration tier and deriving concept LUT counts from YAML.