Skip to content

v4.0.5 — restore 4.0.4 hardening, truthful CI

Choose a tag to compare

@M4F-S M4F-S released this 20 Nov 20:36
· 13 commits to main since this release
11653d8

What changed

main had reverted the 4.0.4 hardening (80003cf) while the fleet kept running it. A rebuild from
main would have restored three defects; 4.0.5 re-lands them:

  • create_store() fails closed when a configured Postgres DSN is unreachable, instead of silently
    writing a private SQLite file (MEMORY_ALLOW_SQLITE_FALLBACK=1 keeps the old behaviour).
  • Dashboard: constant-time token comparison, Vary: Origin, refusal to bind non-loopback without
    GOMAA_DASHBOARD_TOKEN.
  • REM link discovery seeds from list_notes(), not search_keyword("a").

CI is now truthful: runner images are pinned per Python version, the "Postgres integration" job runs
test_postgres_contract.py against a real pgvector service (it was running SQLite with a masked
password), and Ruff is clean.

Verification

  • CI green on Python 3.9–3.13, lint, and the Postgres integration job (11 passed).
  • 30 targeted tests for the re-landed behaviour pass locally.
  • scripts/test.sh provides the chunked local runner.

Tag v4.0.4 stays where it was; wip/4.0.4 and PR #6 are superseded by this release.