Skip to content

v1.1.2 — 22 bug fixes + self-improving CI

Choose a tag to compare

@qrak qrak released this 01 Aug 03:23
· 278 commits to master since this release

🔧 Bug-Fix Release — 22 fixes from AI audit + full CI automation

🐛 Fixes (from the 3-agent audit of the trading path)

Critical

  • CoinGecko: API failure no longer caches an EMPTY payload as fresh data for 24h (LLM market context poisoning); cache writes are now atomic

High

  • Dead-letter replay keeps failed entries — a lost CLOSE order can no longer strand an unprotected position
  • leverage from LLM output sanitized — int(null) no longer aborts order forwarding
  • reduce_only parsed correctly — bool("false") == True bug eliminated
  • entry_price NaN guard — NaN can no longer bypass <= 0 checks and poison PnL/position sizing
  • Market overview published_on now reflects the REAL data age, not fetch time
  • Sync JSON writes moved off the asyncio event loop (persistence, dead-letter, news, SQLite export)

Medium

  • 12 logger.exception("...%s") sites fixed — error text actually reaches the logs now
  • asyncio.gather isolation — one flaky subtask no longer kills the whole analysis cycle
  • "Error retrieving market context." no longer injected into the LLM prompt as market data
  • Nested trend.strength_4h NaN/None sanitized (was bypassing the parser sanitizers)
  • current_price NaN guard in trading strategy
  • "Sortino: inf" never injected into prompts on winning streaks
  • Non-atomic cache writes → os.replace (CoinGecko, DefiLlama)
  • Soft-exit skips logged loudly when ticker data is missing
  • "analysis": null from LLM degrades to neutral instead of crashing the cycle

🤖 Self-Improving CI (the "code improves itself" claim, made real)

  • auto-fix-pr.yml — ruff autofix runs on every push to master + weekly; produces an automatic PR
  • agent-fix.yml — every new issue is automatically picked up by Hermes Agent (DeepSeek), fixed per .ai/bugfixing.md rules, and delivered as a PR for human approval
  • Agent docs (.ai/supervisor.md, .ai/bugfixing.md) updated with the CI pipeline

📝 Other

  • Landing page claims aligned with code: 1,270+ tests, 50-level order book, 10 dashboard tabs, 6 pipeline stages, Full HD charts
  • New feature from v1.1.1 cycle: regime-based risk profile selector (choppiness + ATR)

✅ Quality

  • Full test suite: 1297 passed, 17 skipped, 0 failed
  • ruff clean

Human-in-the-loop: all PRs require human approval — nothing merges itself.