Skip to content

Latest commit

 

History

History
199 lines (172 loc) · 10.1 KB

CHANGELOG.md

File metadata and controls

199 lines (172 loc) · 10.1 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.3.0] - 2026-04-25

Added

  • Real per-session A/B deployment. New SessionStart hook installed by ClaudeCodeAdapter::install calls evolve session-start, which Bernoulli-flips on the running experiment's traffic_share (default 0.5), applies the chosen variant's config to disk, and writes the decision to ~/.evolve/state/<project_id>.json. Stop hook then reads that file to tag the session correctly. Replaces the v0.2 hack of deploying challenger at 100% traffic and comparing against historical champion sessions — this is the actual A/B test design from the whitepaper now wired up.
  • evolve session-start CLI subcommand (typically called only by the hook, but available manually).
  • Dashboard: success-rate-over-time at /api/projects/:id/success-rate
    • a stacked-bar UI panel showing per-day, per-variant mean session scores. The headline number is "X% over N sessions" per variant — the metric a user actually wants to see to know if evolution is working for them.
  • Configurable Aider timeout. Default raised from 60s to 300s. Override per-project via evolve-timeout-secs: in aider.conf.yml, or globally via EVOLVE_AIDER_TIMEOUT_SECS env var.
  • Soak test (tests/soak.rs). Inserts 10 000 sessions through the full storage stack and verifies < 120s wall time. On a typical laptop release-mode it runs in ~1.4s — confirms storage scales fine for multi-month projects.
  • Real Anthropic Claude Code transcript schema. Parser now handles the live transcript format (message.content[] blocks of types text / tool_use / tool_result) in addition to the simplified flat schema used in older test fixtures. Subagent (Task tool) invocations emit subagent_invoked signals.
  • Timeline doc chapter at docs/book/src/timeline.md walking users through realistic day-by-day expectations from install through first promotion.

Changed

  • Default experiment traffic_share is 0.5 (was 1.0). Real A/B test.
  • engine::resolve_active_deployment now takes an EVOLVE_HOME path arg and prefers the deployment-state file over inferring from experiment state. Reflects the v0.3 SessionStart-driven design.

Fixed

  • book.toml had a deprecated multilingual key that prevented mdBook from building; removed.

[0.2.1] - 2026-04-24

Added

  • evolve doctor — diagnostic command that walks 8 checks (home dir, database, current project, adapter config files, hook installation, champion config, sessions recorded, experiment status, LLM availability) and reports each as OK / WARN / MISS with a fix hint. Catches the most common reasons evolution isn't happening on a user's machine.
  • MutatorPicker::without_llm() — returns a picker over only the four rule-based mutators (behavioral_rules, response_style, model_pref, tool_permissions). The CLI now selects between the default and the no-LLM picker based on whether pick_default_client() succeeds.
  • NoOpLlmClient in evolve-llm — placeholder client that errors on every call. Used as a &dyn LlmClient value when no real LLM is reachable but the API requires a reference.

Changed

  • AiderAdapter no longer emits a aider_commit_observed baseline at 0.5. That signal pulled the posterior toward the indifference point for any user without test-cmd: configured, meaning experiments would Hold forever near 0.5. New behavior: emit only real test/lint signals if commands are configured, else emit nothing (session aggregates to the neutral 0.5 prior, which is the correct semantics for "no info").
  • CursorAdapter detection no longer treats .vscode/ as a positive signal — too generic. Now requires .cursorrules or .cursor/.
  • release.yml npm publish step is now properly gated on NPM_TOKEN presence. Previous version had || true swallowing auth failures and reporting the job green when nothing was actually published.

Fixed

  • Mutator picker silently dropping ~50% of generations when no LLM. The default picker has 50% weight on LlmRewriteMutator, which would fail with NoLlmAvailable for every challenger if neither ANTHROPIC_API_KEY nor a local Ollama was reachable. Now the CLI detects LLM availability up front and picks the matching set of mutators, so generations succeed regardless.
  • README claimed "after ~100 sessions" but code threshold is 20 sessions per arm. Updated to match.

[0.2.0] - 2026-04-24

Added

  • Evolution loop is wired up. evolve record-* now actually evolves: after recording a session, the CLI calls into a new evolve_cli::engine module that (a) checks whether a running experiment should promote, hold, or wait for more data via promotion_decision, and (b) if no experiment is running and the session count threshold is hit, generates a challenger via MutatorPicker + pick_default_client, persists the challenger config, opens a new Experiment row, and re-applies the challenger to disk through the adapter. In v0.1.0-rc.1 these primitives existed but were not connected; sessions were recorded but the champion never changed. That gap is closed.
  • evolve roll subcommand: force-generates a challenger right now, bypassing the schedule. Useful when iterating on mutation operators or testing the loop end-to-end.
  • End-to-end integration tests (tests/end_to_end.rs) prove a champion-vs-challenger A/B test where the challenger has 92% success rate vs champion's 20% triggers Decision::Promote and swaps the project's champion pointer. The mirror test (challenger underperforms) asserts Decision::Hold. These are the regression guards that should have existed before claiming v0.1.0 worked.
  • Claude Code: subagent signal extraction. Transcript parser now recognizes "type": "subagent" events and emits subagent_ok (1.0) or subagent_fail (0.0) signals, tagged with the subagent type in the payload JSON.
  • Aider: real test/lint signals. AiderAdapter::parse_session now takes an optional project root and, when given, reads test-cmd and lint-cmd from aider.conf.yml and runs them in that directory with a 60-second timeout. Exit code 0 produces a *_passed signal (1.0), anything else *_failed (0.0). Timeouts count as failure.
  • Dashboard: experiments + promotion log. Two new REST endpoints (GET /api/projects/:id/experiment and .../promotion-log). The bundled HTML UI now shows the active experiment (champion + challenger config ids, traffic share, start time) and a log of completed experiments with status badges, posterior values, and decision times.
  • Release pipeline: npm package. release.yml now builds the bindings/typescript/ napi-rs crate on 4 targets and publishes to npm as evolveai. Requires NPM_TOKEN secret on the repo.

Changed

  • Breaking (sessions): SessionLog::GitCommit(String) becomes SessionLog::GitCommit { sha, project_root: Option<PathBuf> }. The CLI populates project_root from std::env::current_dir() so Aider test/lint signals work out of the box.

[0.1.0-rc.1] - 2026-04-23

Added

  • Phase 0: Cargo workspace skeleton and evolve-core stub crate.
  • Phase 1: GenomeSchema DSL with validation; typed newtype IDs (ProjectId, ConfigId, ExperimentId, SessionId, SignalId, AdapterId); universal AgentConfig with adapter defaults, fingerprint, typed extensions; proptest coverage.
  • Phase 2: evolve-storage crate with 5-table SQLite schema (projects, agent_configs, experiments, sessions, signals), partial-unique index enforcing "one running experiment per project", full repository layer, privacy-guard on signals.payload_json, restart + cascade integration tests. Coverage 93.76%.
  • Phase 3: Bayesian promotion math (aggregate, posterior_probability, promotion_decision) in evolve-core::promotion. Beta(1+wins, 1+losses) posteriors + Monte Carlo; default thresholds 20 sessions/arm, 0.95 promote threshold, 10 000 MC samples. 3 proptest invariants. Coverage 99.05%.
  • Phase 4: evolve-llm with AnthropicHaikuClient (claude-haiku-4-5-20251001) and OllamaClient (native /api/chat), both with 1x retry on 5xx/429. pick_default_client factory, CostTracker with Haiku/Ollama price tables.
  • Phase 5: evolve-mutators with 5 operators (LLM rewrite, behavioral rules, response style, model pref, tool permissions) + weighted picker (default 50/15/15/10/10).
  • Phase 6: evolve-adapters with Adapter trait + registry + ClaudeCodeAdapter (detect, idempotent install of Stop hook, managed-section edit of CLAUDE.md, transcript JSONL parsing with /clear + feedback + test-exit-code signals, full forget).
  • Phase 7: CursorAdapter with .cursorrules rewriter and proxy-event signal parser.
  • Phase 8: AiderAdapter with aider.conf.yml rewriter and post-commit git hook installation.
  • Phase 9: evolve-proxy — axum-based OpenAI-compat proxy that injects system prefix and records forwarded events.
  • Phase 10: evolve-cli binary with subcommands: init, record-claude-code, record-aider, record-cursor-event, good, bad, status, list, forget.
  • Phase 11: evolve-dashboard — axum + rust-embed single-page HTML dashboard with REST endpoints /api/projects, /api/projects/:id, /api/projects/:id/sessions.
  • Phase 12: PyO3 bindings (bindings/python/) wrapping aggregate, posterior_probability, promotion_decision.
  • Phase 13: napi-rs bindings (bindings/typescript/) with equivalent surface.
  • Phase 14: mdBook at docs/book/ with 8 chapters (intro, quickstart + per-adapter, how-it-works, architecture, cost/privacy, FAQ, contributing) and example project READMEs.
  • Phase 15: GitHub Actions release workflow for prebuilt CLI binaries, PyPI wheel build/publish, and a docs.yml for GitHub Pages deployment of the mdBook.

[0.1.0] - TBD

First public release.