test: learn benchmark harness, task project and lesson pools
Issue for this PR
Closes #1406
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
Research tooling (benchmark harness), split out of #1405. Merge after #1405: the learning suites drive learn commands that only exist there.
What does this PR do?
Adds experiments/rsi-workspace/, the harness that produced the learn v1 benchmark results in #1405 (research/rsi-workspace-learning-2026-09-30/learn-v1-results.md). Nothing outside experiments/ changes, and nothing in the product imports it.
demo/: a dbt project with hidden team conventions, plus verifier tasks and gold models.harness/: runsaltimate-code runper arm, scores six checks per task, and analyses token use, cost and lesson recall.harness/v1bench/: lesson pools of 50, 300 and 1,000 lessons, task sets for vague requests and topic switches, drift and bootstrap drivers, and the result tables.
It was moved out of #1405 so that PR's review covers product code only, then hardened after review:
- Safety: ids and paths are validated before any deletion. The fake backend binds to 127.0.0.1, and its debug routes need a token.
- Reproducibility: no machine-specific paths. The CLI,
dbtand models are set by env vars. The fake backend is the default; the real SaaS needs an explicit opt-in and a workspace id. - Scoring: runs whose agent turn did not complete no longer count. Rescoring the saved runs this way changed some published cells; #1405's results doc carries the corrected tables.
- Benchmark definition unchanged: the verifier checks, seed data and
to_utcmacro stay as run, so results remain comparable. Their known weaknesses are listed in #1405's results doc.
How did you verify your code works?
It produced the runs reported in #1405. Self-tests pass: verifier (gold, naive, over-applied and garbage cases), harness (12 tests), v1bench (10 tests), fake backend. py_compile and bash -n pass on changed files, and the tracker-leak check passes. No paid benchmark was rerun.
Screenshots / recordings
Not applicable.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
🤖 Generated with Claude Code
Summary by CodeRabbit
- New Features
- Added dbt task workspaces with setup commands, task prompts, and checks for staging models and analyses.
- Added learning and evaluation workflows with reviewer feedback, validation, playbook sharing, and experiment reports.
- Expanded benchmarks to cover task conventions, guidance retrieval, topic changes, and learning across multiple rounds.
- Added a local workspace backend and demo for testing workspace and skill-sharing behavior.
- Documentation
- Added guides for preparing tasks, running experiments and benchmarks, and understanding evaluation results.
[!NOTE]
Low Risk
Adds isolated research tooling under experiments/ with no product imports; optional real SaaS requires explicit opt-in and validated paths for destructive operations.
Overview
Adds experiments/rsi-workspace/, research-only tooling for the learn v1 benchmark (split from product work in #1405). Nothing outside experiments/ is wired into the app.
demo/ introduces the acme-shop dbt–DuckDB fixture, 14 verifier tasks (train/val/heldout/control) with hidden staging conventions (naming, PK/YAML tests, cents_to_dollars, to_utc/_at, soft deletes), plus prepare_workdir.py, gold solutions, and selftests that score naive vs over-applied agents without touching the agent-visible repo.
fake-backend/ adds a loopback Bun stand-in for workspace bind, skills, and memory (contract aligned with opencode workspace clients), with demo.sh, debug routes gated by token, and a no-socket selftest.
harness/ drives altimate-code evaluation arms (none/gold/playbook, CI loops, corrections, budget rule-count and conflict arms, v1bench pools/bootstrap/drift), writes run artifacts under runs/, and documents env knobs (ALTIMATE_CMD, BACKEND, ALLOW_REAL_SAAS). Model-driven learn suites expect CLI learn from #1405; verifier and fake-backend paths do not.
Hardening in this PR includes validated run IDs/paths before deletes, incomplete agent turns failing runs, and fake server bound to 127.0.0.1 only.
Reviewed by Cursor Bugbot for commit 83ac42e1db7b4218ece5ca886199e8300f639206. Bugbot is set up for automated code reviews on this repo. Configure here.