Skip to content

v1.0.3 — Security, Futures & Executor Safety

Choose a tag to compare

@qrak qrak released this 23 Jul 03:34
· 335 commits to master since this release

v1.0.3 — Security, Futures & Executor Safety

Security (19 Dependabot alerts resolved)

  • Pillow 12.2.0 → 12.3.0 — 12 CVEs (heap OOB write, decompression bomb, TGA heap leak, DoS, command injection)
  • astro ^6.4.6 → ^7.1.0 — 3 XSS CVEs (spread attrs, transition:*, View Transition)
  • js-yaml → 4.3.0 override — YAML DoS (CVE-2026-59869)
  • sharp → 0.35.3, svgo → 4.0.2 — transitive deps
  • openrouter 0.9.1 → >=0.11.0

Futures LONG/SHORT Signals

  • MARKET_TYPE config (spot/futures) + ENTRY_ORDER_TYPE (market/limit)
  • Prompts emit LONG/SHORT for futures mode; regex + valid_signals accept both
  • OpenRouter reasoning_effort support (none→max)

Executor Safety Hardening

  • CLOSE guard: verify executor has position before closing (prevents double-close on unfilled limit orders)
  • UPDATE guard: verify position exists before SL/TP update
  • SL widening cap: rejects widening beyond 150% of original distance
  • Dead-letter queue: failed forwards persisted to JSONL for replay
  • Retry: @retry_async(3, backoff×2) on executor forward
  • Payload hardened: uses strategy_decision fields, not raw LLM analysis
  • Executor forward happens BEFORE notify/persist

Other

  • Chart resolution 4K → 1080p (~75% Google image token savings)
  • Google image token estimation (tile-based, 258 tokens per 75×75 tile)
  • Ambiguous position_size >1.0 without % rejected
  • DRY refactors: MarketConditionsExtractor, timeframe arithmetic, market knowledge fallback
  • Position gap context in prompts (time since last closed + direction)
  • Decision Pathways panel: zoom/layout/deferred init
  • Google thinking tokens counted in billing
  • 1210 tests passing (0 failures)