Add A/B harness plumbing for knowledge transfer experiment (#25)#60
Open
ovidb wants to merge 2 commits into
Open
Add A/B harness plumbing for knowledge transfer experiment (#25)#60ovidb wants to merge 2 commits into
ovidb wants to merge 2 commits into
Conversation
Three features to support the Knowledge Transfer A/B experiment: 1. resetDbBetweenTasks condition flag — wipes the DB before each task for the control condition, isolating per-task knowledge 2. --repeats N CLI flag — runs sequences multiple times for statistical robustness, each repeat gets a fresh DB 3. LLM-as-judge scoring — calls Haiku with a 3-dimension rubric (completion, knowledge utilization, quality) to score task output Also adds ab-control/ab-treatment condition configs, quality columns in comparison and HTML reports, and fixes a stale full-hybrid test.
Control (DB wiped per task): 2 runs, 10/10 tasks, 17 autonomous saves Treatment (DB persists): 2 runs, 10/10 tasks, 7 autonomous saves Key finding: zero searches in both conditions — agent saves memories but never searches, even with MANDATORY instructions. This is the critical gap to address before the full experiment.
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
resetDbBetweenTaskscondition flag to wipe DB between tasks (control condition)--repeats NCLI flag for statistical robustness (multiple runs per condition)ab-controlandab-treatmentcondition configs using winning Experiment: Instruction mode comparison (P0) #24 config (full-hybrid + tmux)Test plan
pnpm --prefix bench test:eval)ab-control.json— verify[reset] Wiping DBlog messagesab-treatment.json— verify KB grows across tasks--repeats 2produces 2 JSONL files with distinct timestampsANTHROPIC_API_KEY, JSONL shows non-zerotask_qualityandjudge_reasoning