Skip to content

v0.0.4

Latest

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 16 Jul 12:14

Release Notes

Summary

This release introduces a robust, budget-aware agent recovery subsystem, centralized execution safeguards, and polished TUI layouts. It also addresses critical review feedback by resolving core state machine vulnerabilities, memory leaks, terminal responsiveness bugs, and key typing errors across daemon and configuration modules.


Key Features & Enhancements

1. Robust Agent Recovery Subsystem

  • Budget-Aware Coordination: Introduces RecoveryCoordinator and RecoveryBudget to govern recovery strategies within strict resource boundaries.
  • Unified Error Classification: Implements UnifiedErrorClassifier alongside pluggable, strategy-based recovery behaviors for adaptive failure handling.

2. Execution Safeguards & Tooling

  • Centralized Tool Idempotency: Adds ToolExecutionLedger to guarantee single-execution semantics and prevent redundant tool invocations.
  • Structured SCM Integration: Introduces a dedicated scm_sync tool for reliable, structured source control operations.
  • TUI Streamlining: Optimizes the terminal user interface to automatically skip duplicate command inputs.
  • Responsive CLI Configuration Table: Implements _build_config_list_table in CLI slash handlers, dynamically adapting the TUI layout of writable configuration fields based on terminal width. Includes comprehensive layout unit tests verifying rendering behavior across compact, medium, and full-width sizes.

Bug Fixes & Stability Hardenings

Core & Security Patches

  • Checkpoint State Machine Correction: Patches a critical checkpoint flow vulnerability, ensuring preconditions are fully validated before transitioning checkpoints to a CONSUMED state.
  • Memory Leak Mitigations: Prevents heap growth by enforcing automated purging of expired checkpoints and bounding the maximum size of audit log entries.
  • Failure & Coordinator Stabilization: Eliminates double-counting of consecutive failures, resolves potential state corruption in the coordinator, and fixes a runtime TypeError in the error classifier.
  • Daemon Security Patch: Resolves a signature-checking vulnerability within the background daemon service to secure IPC/RPC communication.

CLI & Configuration Fixes

  • Falsy Value Handling: Fixes the _shorten helper to explicitly check for None so that valid falsy values like 0 or False are no longer incorrectly omitted or treated as empty strings.
  • Flexible Type Support: Updates _config_reload_text to correctly process both boolean and string values (e.g., 'partial') for the hot_reload field instead of strictly casting it to a boolean.

What's Changed

Full Changelog: v0.0.3...v0.0.4