feat(platform): Phase 4 — evolution engine, CLI, integration tests#5
Merged
Conversation
Module 7: Evolution Engine (evolution.py + _evolution_models.py) - Full post-mortem protocol (5 steps): record failure → analyze root cause → propose rule update → apply update → verify - Root cause categories: missing_rule, incomplete_rule, ignored_rule, novel_case, regression - Maps categories to documents: PRIORS.md, spec files, agent definitions - Retrospective protocol: scan decisions, identify patterns, propose systemic updates - Evolution metrics: total updates, regression rate, category distribution Module 9: CLI (cli.py + draft.py) - zo build <plan> — launch project with full orchestration pipeline - zo continue <project> — resume from STATE.md - zo maintain <project> — apply updated instructions - zo init <project> — scaffold project directory structure - zo status <project> — show current STATE.md - zo draft <source-dir> --project <name> — generate plan from source docs - --gate-mode supervised|auto|full-auto (default: supervised) - --no-tmux flag for headless operation - Rich console output with ZO brand colors Integration test suite (test_full_pipeline.py — 16 tests) - Full session lifecycle (parse → init → decompose → advance → end) - Memory + semantic index integration - Gate mode verification (supervised/auto/full_auto) - Plan edit detection and replan - Session recovery flow - Comms logging throughout pipeline - Target isolation enforcement 296 tests, 90% coverage, ruff clean. Version 0.4.0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 tasks
SamPlvs
added a commit
that referenced
this pull request
Apr 30, 2026
feat(platform): Phase 4 — evolution engine, CLI, integration tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Module 7: Evolution Engine
Module 9: CLI + Draft
zo build <plan>— full orchestration pipeline with--gate-mode supervised|auto|full-autozo continue <project>— resume from STATE.mdzo maintain <project>— apply updated instructionszo init <project>— scaffold project directories and template fileszo status <project>— display current STATE.mdzo draft <source-dir> --project <name>— agentic plan generation from source documentsIntegration Tests
Stats
Test plan
uv run python3 -m pytest tests/ -v— 296 passeduv run ruff check src/zo/— clean🤖 Generated with Claude Code