# Backlog This file is the candidate pool for future work. It is not the active plan. Rules: - Add ideas here when they do not belong in the current turn. - Promotion from backlog to an active turn is a separate planning step. - `scripts/workflow/add_backlog.py` can append new items with stable IDs. ## Implementation Candidates - [I001] Hybrid reference-price service using Kraken stream and CoinGecko poll or fallback for the active pair inputs. - [I002] PostgreSQL event store plus history writer for quotes, reference prices, decisions, commands, and execution results. - [I003] Strategy engine that consumes `norm.swap_demand` plus reference prices and emits auditable decisions. - [I004] Real Near Intents executor service using pre-funded internal inventory, with explicit arming and idempotent result reporting. - [I005] Import local EUR/BTC history on disk into research tables or files for replay and baseline checks. - [I006] Decision-to-command safety gate with explicit arm or disarm state, notional caps, and inventory freshness checks. - [I007] Inventory-aware execution rule: implement both directions, but only fire the side backed by credited internal source-asset inventory. - [I008] Inventory-sync service for NEAR Intents internal balances and pending funding state. - [I009] Liquidity-manager service for deposit addresses, funding actions, and treasury visibility. ## Research Candidates - [R001] Compare Kraken and CoinGecko drift and freshness for the assets needed to price the active pair. - [R002] Test whether the active pair's implied rate diverges from external reference prices enough to justify execution after a simple 2% gross threshold. - [R003] Measure whether stale quotes correlate with worse execution quality or higher reject rates. - [R004] Import and inspect the local historical EUR/BTC data to see how it can seed replay and backtests. - [R005] Measure how long treasury funding takes from external transfer to credited internal inventory. ## Ops Candidates - [O001] PostgreSQL backup and retention plan for analytics and audit history. - [O002] Signing-secret and NEAR Intents account management for real execution credentials. ## Bugs - [B001] The previous storage-only turn did not reach a tradeable loop and pulled the workflow toward scaffolding. - [B002] No reference price source exists, so the system cannot estimate edge. - [B003] Dummy reactor and dummy executor prevent a non-mocked trade path. - [B004] The prior plan assumed external hot wallets were on the trade hot path instead of pre-funded NEAR Intents inventory.