一键导入
ab-test-runner
Run A/B tests comparing convention variants to measure compliance improvements
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run A/B tests comparing convention variants to measure compliance improvements
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Prepend session handoff to DaysActivity.md
Initialize session with context briefing
File production feedback about a zgent's behavior. Routes to CSO for diagnosis and artifact tuning. Usage: /zgent-feedback <zgent> <description>
Archive yesterday's DaysActivity and create fresh file for today
DaysActivity.md formatting conventions. Use when writing handoff entries, hourly summaries, or any content destined for DaysActivity.md.
Gas City multi-agent system architecture overview. Use when reasoning about GT roles, hierarchy, work primitives (beads, molecules, wisps, convoys), or rig configuration.
| name | ab-test-runner |
| description | Run A/B tests comparing convention variants to measure compliance improvements |
| allowed-tools | Bash, Read, Write, Glob, Grep |
Run blind A/B tests that compare two versions of a convention (e.g., beads gate wording, permission rule phrasing) and produce a scored comparison report.
Test definitions live in evals/ab-testing/tests/ as YAML files.
ls /root/projects/COO/evals/ab-testing/tests/
If no test exists for your convention change, create one following the schema
at evals/ab-testing/ab-test-schema.yaml. Required fields:
name: kebab-case identifiervariant_a / variant_b: each with label and content_file (path relative to evals/ab-testing/)test_prompts: list of user prompts that exercise the conventionjudge_criteria: markdown describing how to score responsesPlace variant content files in evals/ab-testing/variants/.
cd /root/projects/COO/evals/ab-testing
bash runner.sh tests/<test-name>.yaml
Options:
--dry-run : Validate parsing without invoking Claude (fast sanity check)--report-dir <dir> : Override default report output directoryReports are written to evals/ab-testing/reports/ as JSON:
cat /root/projects/COO/evals/ab-testing/reports/<test-name>-<timestamp>.json | jq '.summary'
The report contains:
| Verdict | Meaning | Action |
|---|---|---|
variant_b | Revision improves compliance | Deploy variant B to conventions and zgent repos |
variant_a | Current wording is better | Revise the revision or keep current |
inconclusive | No clear winner | Add more test prompts, increase min_trials, or refine judge criteria |
Include prompts across difficulty levels:
The ambiguous prompts are the most diagnostic -- they reveal whether the convention wording gives the agent enough guidance to make the right call.
The judge is a separate Claude context with no access to the variant labels.
It sees responses as "X" and "Y" (randomized per trial when blind: true).
Good criteria:
The first concrete test compares Gen 2 (rule-in-body, no imperative gate) vs Gen 3 (STOP gate with bd commands at top of CLAUDE.md). This tests the core finding from the claude-monitor incident: that cross-reference gates get ignored by cold-start instances.
# Dry run to verify parsing
bash /root/projects/COO/evals/ab-testing/runner.sh \
/root/projects/COO/evals/ab-testing/tests/beads-gate-wording-v2.yaml --dry-run
# Full run
bash /root/projects/COO/evals/ab-testing/runner.sh \
/root/projects/COO/evals/ab-testing/tests/beads-gate-wording-v2.yaml
The runner uses three separate Claude contexts per trial:
This three-context design ensures: