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.
- Real per-session A/B deployment. New
SessionStarthook installed byClaudeCodeAdapter::installcallsevolve session-start, which Bernoulli-flips on the running experiment'straffic_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-startCLI 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:inaider.conf.yml, or globally viaEVOLVE_AIDER_TIMEOUT_SECSenv 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 typestext/tool_use/tool_result) in addition to the simplified flat schema used in older test fixtures. Subagent (Task tool) invocations emitsubagent_invokedsignals. - Timeline doc chapter at
docs/book/src/timeline.mdwalking users through realistic day-by-day expectations from install through first promotion.
- Default experiment
traffic_shareis 0.5 (was 1.0). Real A/B test. engine::resolve_active_deploymentnow takes anEVOLVE_HOMEpath arg and prefers the deployment-state file over inferring from experiment state. Reflects the v0.3 SessionStart-driven design.
book.tomlhad a deprecatedmultilingualkey that prevented mdBook from building; removed.
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 whetherpick_default_client()succeeds.NoOpLlmClientinevolve-llm— placeholder client that errors on every call. Used as a&dyn LlmClientvalue when no real LLM is reachable but the API requires a reference.
- AiderAdapter no longer emits a
aider_commit_observedbaseline at 0.5. That signal pulled the posterior toward the indifference point for any user withouttest-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.cursorrulesor.cursor/. release.ymlnpm publish step is now properly gated onNPM_TOKENpresence. Previous version had|| trueswallowing auth failures and reporting the job green when nothing was actually published.
- Mutator picker silently dropping ~50% of generations when no LLM.
The default picker has 50% weight on
LlmRewriteMutator, which would fail withNoLlmAvailablefor every challenger if neitherANTHROPIC_API_KEYnor 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.
- Evolution loop is wired up.
evolve record-*now actually evolves: after recording a session, the CLI calls into a newevolve_cli::enginemodule that (a) checks whether a running experiment should promote, hold, or wait for more data viapromotion_decision, and (b) if no experiment is running and the session count threshold is hit, generates a challenger viaMutatorPicker+pick_default_client, persists the challenger config, opens a newExperimentrow, 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 rollsubcommand: 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% triggersDecision::Promoteand swaps the project's champion pointer. The mirror test (challenger underperforms) assertsDecision::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 emitssubagent_ok(1.0) orsubagent_fail(0.0) signals, tagged with the subagent type in the payload JSON. - Aider: real test/lint signals.
AiderAdapter::parse_sessionnow takes an optional project root and, when given, readstest-cmdandlint-cmdfromaider.conf.ymland runs them in that directory with a 60-second timeout. Exit code 0 produces a*_passedsignal (1.0), anything else*_failed(0.0). Timeouts count as failure. - Dashboard: experiments + promotion log. Two new REST endpoints
(
GET /api/projects/:id/experimentand.../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.ymlnow builds thebindings/typescript/napi-rs crate on 4 targets and publishes to npm asevolveai. RequiresNPM_TOKENsecret on the repo.
- Breaking (sessions):
SessionLog::GitCommit(String)becomesSessionLog::GitCommit { sha, project_root: Option<PathBuf> }. The CLI populatesproject_rootfromstd::env::current_dir()so Aider test/lint signals work out of the box.
- Phase 0: Cargo workspace skeleton and
evolve-corestub crate. - Phase 1:
GenomeSchemaDSL with validation; typed newtype IDs (ProjectId,ConfigId,ExperimentId,SessionId,SignalId,AdapterId); universalAgentConfigwith adapter defaults, fingerprint, typed extensions; proptest coverage. - Phase 2:
evolve-storagecrate 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 onsignals.payload_json, restart + cascade integration tests. Coverage 93.76%. - Phase 3: Bayesian promotion math (
aggregate,posterior_probability,promotion_decision) inevolve-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-llmwithAnthropicHaikuClient(claude-haiku-4-5-20251001) andOllamaClient(native/api/chat), both with 1x retry on 5xx/429.pick_default_clientfactory,CostTrackerwith Haiku/Ollama price tables. - Phase 5:
evolve-mutatorswith 5 operators (LLM rewrite, behavioral rules, response style, model pref, tool permissions) + weighted picker (default 50/15/15/10/10). - Phase 6:
evolve-adapterswithAdaptertrait + 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:
CursorAdapterwith.cursorrulesrewriter and proxy-event signal parser. - Phase 8:
AiderAdapterwithaider.conf.ymlrewriter andpost-commitgit hook installation. - Phase 9:
evolve-proxy— axum-based OpenAI-compat proxy that injects system prefix and records forwarded events. - Phase 10:
evolve-clibinary 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/) wrappingaggregate,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.
First public release.