Jasmine Naderi
91351b7b77
fix(state): make journal mode canonical and behaviorally verified
...
Use database.journal_mode as the sole non-secret operator setting, preserve the vulnerable-SQLite safety gate and existing WAL databases, validate explicit DELETE results, document the active config path, and cover real SQLite openers with behavioral tests.
2026-07-29 18:13:09 -07:00
Jasmine Naderi
04ec841462
fix(state): configurable journal_mode + centralize all DB openers
...
Add HERMES_JOURNAL_MODE env / database.journal_mode config for
virtiofs/NFS/SMB where WAL is not crash-safe. Route 5 bypass openers
through apply_wal_with_fallback so a single setting covers every .db
(#68545 ).
2026-07-29 18:13:09 -07:00
teknium1
5b751dc0ad
chore: remove unused imports and dead locals (ruff F401/F841 sweep)
...
Cleans F401 unused imports and F841 dead local assignments across
root *.py, agent/, hermes_cli/, tools/, gateway/, cron/, tui_gateway/
(tests/, plugins/, skills/ excluded).
Intentionally KEPT (false positives / test-patch surfaces):
- agent/transports/__init__.py package re-exports
- cli.py browser_connect re-exports (DEFAULT_BROWSER_CDP_URL area,
used by tests/cli/test_cli_browser_connect.py)
- hermes_cli/main.py _prompt_auth_credentials_choice /
_model_flow_bedrock_api_key (accessed via main_mod attr in tests)
- gateway/run.py aliased replay_cleanup + whatsapp_identity re-exports
and _PORT_BINDING_PLATFORM_VALUES (test-referenced)
- hermes_cli/web_server.py get_running_pid (tests monkeypatch it) and
_OAUTH_TOKEN_URL availability probe
- hermes_cli/config.py get_process_hermes_home re-export (noqa'd F811
chain) and yaml availability-probe import
- hermes_cli/nous_subscription.py managed_nous_tools_enabled
(tests patch hermes_cli.nous_subscription.managed_nous_tools_enabled)
- try/except ImportError availability probes (env_loader, tts_tool,
mcp_tool, web_server anthropic OAuth block)
- tools/web_tools.py noqa F401 re-exports
- hermes_cli/setup_whatsapp_cloud.py:263 'proceed' skipped: possible
missing-guard bug, flagged for separate review
- unused function parameters (signature changes out of scope)
Side-effect RHS calls preserved where only the binding was dead
(e.g. web_server proc = _spawn_hermes_action -> bare call).
2026-07-29 11:53:39 -07:00
Victor Kyriazakos
6a174e9967
Merge origin/main into feat/gateway-health-diagnostics
...
# Conflicts:
# cron/executions.py
# cron/jobs.py
2026-07-28 13:09:17 +00:00
joaomarcos
1d721a66f7
fix(cron): close sqlite connections deterministically in execution ledger
2026-07-24 15:55:08 -07:00
Victor Kyriazakos
efbf2fd79c
feat(monitoring): add cron operational telemetry
2026-07-24 18:54:46 +00:00
HexLab98
953cbc0300
fix(state): refuse WAL on SQLite builds with the WAL-reset bug
...
On vulnerable SQLite (e.g. 3.50.4), do not enable WAL for fresh/non-WAL
shared databases — prefer DELETE instead. Leave existing on-disk WAL
alone (no live downgrade under concurrent gateway/cron openers). Surface
Python/SQLite version details as a doctor warning (#69784 ).
2026-07-23 17:32:38 +05:30
teknium1
abc22cdf1a
fix(cron): harden execution attempt ledger
2026-07-17 04:58:35 -07:00
teknium1
d9dd05b69d
feat(cron): add truthful execution ledger
2026-07-17 04:58:35 -07:00