Skip to content

v0.1.2 - Polymorphic Runners & Hardening

Choose a tag to compare

@spokV spokV released this 27 Dec 20:42
· 48 commits to main since this release

What's New

Architecture Refactoring

  • Unified run_agent method - Single polymorphic entry point in TaskEngine replacing agent-specific methods
  • Agent enum - Type-safe agent identification
  • AGENT_RUNNERS registry - Clean mapping of agents to their runners
  • Extracted prompts module - Council deliberation templates in dedicated module

Security & Robustness

  • CLI flag injection prevention - Validates session_ref parameters to block malicious flags
  • Config crash prevention - Graceful fallbacks for invalid environment variables
  • Structured error codes - ErrorCode enum for consistent MCP responses
  • Zombie task cleanup - Automatic cleanup of stale tasks on startup
  • Graceful termination - SIGTERM handling for subprocess cleanup
  • Gemini CLI fix - Resolved stdin wait issue causing timeouts

Council Improvements

  • Removed synthesis phase (MCP client now synthesizes responses)
  • Simplified round 1/2 structure with deliberation and critique modes

Testing

  • 86 tests total, all passing
  • New test_config.py - 8 tests for config parsing edge cases
  • New test_server.py - 19 tests for MCP validation paths
  • New test_agents.py - Flag injection prevention tests
  • Updated council tests for new architecture