v0.2.2
[0.2.2] - 2026-06-19
New Features
- Embedding Lifecycle Unification: Unified embedding lifecycle across distillation, storage, and retrieval pipelines. Embedding workflows now share a common lifecycle model, reducing code duplication and ensuring consistent behavior during creation, update, and deletion of embeddings.
- Context Cleaning: Automatic context window management with tool call causality preservation. The context cleaner maintains causal ordering of tool calls during cleanup, preventing out-of-order execution after context truncation.
- Workflow Enhancements:
MutableDAG.ReplaceNodefor replacing nodes at runtime. CustomRecoveryHandlerfor failure recovery per workflow step. Enhanced event propagation across workflow execution. - Portfolio Simulator: Investment portfolio simulation system with multi-asset backtesting. Includes research memory bridge connecting portfolio simulation results to the research memory system for data-driven investment decisions.
- Investment Simulator: Standalone investment simulation module for modeling and analyzing investment strategies.
- CoinGecko Crypto Feed: Real-time cryptocurrency price data integration via CoinGecko API, enabling live market data for trading analysis.
- Public Marketmaking API: Marketmaking API migrated from internal to public (
api/marketmaking/), with multi-asset backtesting support. Includes comprehensive paper trading, chaos testing, and backtesting capabilities. - Quant Trading Example: Complete quantitative trading example with SQLite backend, demonstrating end-to-end quant trading workflow.
- Tool Lifecycle Events: Emit lifecycle events for tool execution, enabling observability and monitoring of tool calls throughout their lifecycle.
- Memory Metadata Propagation: Expanded metadata propagation across memory operations, enriching context with session and agent metadata.
- Concurrent Distillation Pipeline: errgroup-based parallel embedding in distiller (concurrency limit 5), and concurrent experience storage in manager_impl.go, reducing end-to-end distillation latency.
- Content Hash Dedup: SHA-256
content_hashcolumn ondistilled_memerieswithON CONFLICT (tenant_id, content_hash) WHERE content_hash IS NOT NULL DO NOTHINGfor idempotent memory storage. - Idempotent Migrations: All DDL operations now safe to re-run —
DROP IF EXISTS+CREATEfor policies/triggers,IF NOT EXISTSfor indexes,ADD COLUMN IF NOT EXISTSfor schema evolution. - Chinese Language Support: Chinese keyword detection in
detector.go(介绍/是什么/怎么/有哪些/区别/说说/推荐 etc.) and Chinese importance scoring inscorer.go(错误/修复/配置/框架/架构/优化 etc.), enabling experience extraction from Chinese Q&A. - Knowledge Correction Flow: End-to-end correction pipeline in knowledge-base example — detects correction intent, calls LLM for structured commands (
UPDATE:/DELETE:/CREATE:), executes DB writes for bothdistilled_memoriesandknowledge_chunks_1024. Supports correction via "纠错" keyword. - RAG Search Includes Corrected Memories:
KnowledgeBase.Search()now queries bothknowledge_chunks_1024anddistilled_memories, with corrected memories boosted in ranking. - Restart Script Import:
scripts/docker/restart.sh --save <path>option to import a document immediately after DB migration.
Refactors
- Enhanced configuration safety with improved validation and error handling in the API layer (
api/config.go,api/service.go). - Renamed
quant-demotoquant-tradingwith updated configuration and documentation. - Enforced snapshot-only data constraint in analyst prompts to ensure data consistency.
- Replaced
WriteString(fmt.Sprintf(...))withfmt.Fprintfacross correction flow. - Simplified loop with
append(..., distilledResults...).
Bug Fixes
- Resolved data race and timing issues in
DynamicExecutorrecovery path. - Fixed documentation file naming inconsistencies.
- Fixed all errcheck issues (unchecked
Close()calls) incmd/migration tools. - Fixed De Morgan's law simplification in UUID validation.
Acknowledgements
We sincerely thank the iflow.cn community members for their constructive feedback on the project.
- @chigefeijimu made big idea
@Timwood0x10