feat(benchmarks): bundle-based Test B real-project design (1,800/wave; 9,000 full)#90
Merged
Merged
Conversation
Implements the final approved Test B benchmark for v4.1: 5 representative project bundles x 150 sessions x 12 conditions = 9,000 outputs full design, with a 1,800-output long pilot per bundle. - fixtures/bundles.py: deterministic generator for 5 bundles, 10 phases of 15 sessions each, role/language/contradiction anchors per fact, JSONL + bundle_manifest.json with SHA-256 per file. - prompts/test_b_bundles.py: 12 condition builders. Same user probe and generation config across conditions; only the prepended memory block differs. - runner/executor_b_bundles.py: bundle pilot executor. Re-uses retry/ backoff/batching/JSONL primitives so the mock provider drives tests with no network. - runner/runner.py: new pilot-test-b-bundles subcommand. Hard caps: bundles<=1, concurrency<=2, sessions_per_bundle<=150. --full-design is intentionally refused; the full 5-bundle design is launched as five separate waves. - runner/audit_b_bundles.py: robust auditor. Hard checks for condition balance, bundle/phase/session/role coverage, hash completeness, secret scan, forbidden claim phrases, and missing timestamps. Soft per-condition cost curves and session-depth token growth bins. - .github/workflows/benchmark-v41-pilot-testb-bundles.yml: manual-only workflow. Provider locked to gemini. Validates inputs, hard-caps bundle_index/concurrency/sessions/retry/backoff/sleep before secret access. execute=false by default. - tests/test_pilot_test_b_bundles.py: 16 tests covering full=9000 and pilot=1800 spec counts, 5 bundles, 150 sessions, 12 conditions, all phases, prompt determinism, runner caps including --full-design refusal, plan-only and execute paths with mock provider, audit pass, and audit failure on forbidden claim phrases. Mock provider only; no network calls. - README.md and BENCHMARK_PROTOCOL.md updated with the final design, scientific rationale, cost/throughput caution, and the exact gh workflow run dispatch command for the long pilot. No publish / no tag / no release / no Zenodo / no npm / no PyPI. No real LLM calls are made by tests or by the runner under default flags. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
What changed
benchmarks/v4.1/fixtures/bundles.py— deterministic bundle generator. 5 bundles, 10 phases × 15 sessions, role / language / contradiction anchors, JSONL +bundle_manifest.jsonwith per-file SHA-256.benchmarks/v4.1/prompts/test_b_bundles.py— 12 condition builders. Same user probe + generation config across all 12 conditions; only the prepended memory block differs.benchmarks/v4.1/runner/executor_b_bundles.py— bundle pilot executor, reuses retry / backoff / batching / JSONL / resumability primitives.benchmarks/v4.1/runner/runner.py— newpilot-test-b-bundlessubcommand. Hard caps:--bundles ≤ 1,--concurrency ∈ [1, 2],--sessions-per-bundle ≤ 150.--full-designintentionally refused.benchmarks/v4.1/runner/audit_b_bundles.py— robust auditor. Hard checks: condition balance, bundle/phase/session/role coverage, hash completeness, secret scan, forbidden claim phrases, missing timestamps. Soft per-condition cost curves and session-depth token growth bins..github/workflows/benchmark-v41-pilot-testb-bundles.yml— manual-only workflow. Provider locked togemini. All inputs validated and capped before secret access.execute=falseby default.benchmarks/v4.1/tests/test_pilot_test_b_bundles.py— 16 tests (mock provider only). Covers full=9000 specs, pilot=1800 specs, 5 bundles, 150 sessions, 12 conditions, all 10 phases, prompt determinism, runner caps (including--full-designrefusal), plan-only and execute paths, audit PASS and audit-FAIL on forbidden claim phrases.README.mdandBENCHMARK_PROTOCOL.mdupdated with the final design, scientific rationale, cost/throughput caution, and the exact dispatch command for the long pilot.12 conditions (in audit order)
`no_memory`, `prompt_history`, `manual_context_repetition`, `project_docs_only`, `xklickd_static_bundle`, `xklickd_compressed_bundle`, `xklickd_cross_session_resume`, `xklickd_cross_language`, `xklickd_cross_agent`, `xklickd_human_veto`, `xklickd_contradiction_handling`, `xklickd_ci_weakening_resistance`.
Exact dispatch — long pilot (1,800 outputs, plan-only first)
```bash
gh workflow run benchmark-v41-pilot-testb-bundles.yml \
-f bundle_index=0 \
-f sessions_per_bundle=150 \
-f concurrency=2 \
-f seed=4242 \
-f provider=gemini \
-f execute=false
```
To actually call Gemini after human review, dispatch again with `execute=true`. To run the full design, repeat with `bundle_index = 1, 2, 3, 4` between manual audit reviews.
Test plan
🤖 Generated with Claude Code