|
| 1 | +# CodeMode Evaluation & Promotion Gates |
| 2 | + |
| 3 | +Use this page to evaluate `strategy=codemode` against baseline `strategy=tool_call` before wider rollout. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Objective |
| 8 | + |
| 9 | +Compare harness strategies on identical workloads: |
| 10 | + |
| 11 | +- baseline: `strategy=tool_call` |
| 12 | +- candidate: `strategy=codemode` |
| 13 | + |
| 14 | +Promotion decision should be metric-driven and safety-aware. |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +## Evaluation Protocol |
| 19 | + |
| 20 | +1. Select the same preset and same case limit for both runs. |
| 21 | +2. Keep model, MCP server, and environment fixed. |
| 22 | +3. Run baseline first, candidate second. |
| 23 | +4. Compare with gate thresholds. |
| 24 | + |
| 25 | +Recommended starting preset for MCP-heavy behavior: |
| 26 | + |
| 27 | +- `dynamic_web_filtering` |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## Commands |
| 32 | + |
| 33 | +### Baseline |
| 34 | + |
| 35 | +```bash |
| 36 | +/rlm bench preset=dynamic_web_filtering mode=harness strategy=tool_call mcp=on mcp_server=codemode |
| 37 | +``` |
| 38 | + |
| 39 | +### Candidate |
| 40 | + |
| 41 | +```bash |
| 42 | +/rlm bench preset=dynamic_web_filtering mode=harness strategy=codemode mcp=on mcp_server=codemode |
| 43 | +``` |
| 44 | + |
| 45 | +### Compare |
| 46 | + |
| 47 | +```bash |
| 48 | +/rlm bench compare candidate=latest baseline=previous min_reward_delta=0.00 min_completion_delta=0.00 max_steps_increase=0.50 |
| 49 | +``` |
| 50 | + |
| 51 | +### CI-style gate |
| 52 | + |
| 53 | +```bash |
| 54 | +/rlm bench validate candidate=latest baseline=previous min_reward_delta=0.00 min_completion_delta=0.00 max_steps_increase=0.50 fail_on_completion_regression=on --json |
| 55 | +``` |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +## Metrics to Watch |
| 60 | + |
| 61 | +Core benchmark metrics: |
| 62 | + |
| 63 | +- `avg_reward` |
| 64 | +- `completion_rate` |
| 65 | +- `avg_steps` |
| 66 | +- usage totals (`total_calls`, `prompt_tokens`, `completion_tokens`) |
| 67 | + |
| 68 | +CodeMode-specific diagnostics (per case): |
| 69 | + |
| 70 | +- `harness_strategy` |
| 71 | +- `codemode_chain_calls` |
| 72 | +- `codemode_search_calls` |
| 73 | +- `codemode_discovery_calls` |
| 74 | +- `codemode_guardrail_blocked` |
| 75 | +- `mcp_tool_calls` |
| 76 | + |
| 77 | +--- |
| 78 | + |
| 79 | +## Suggested Promotion Criteria |
| 80 | + |
| 81 | +Use these as default release criteria unless your team has stricter requirements. |
| 82 | + |
| 83 | +| Gate | Recommended threshold | |
| 84 | +|---|---| |
| 85 | +| Reward delta | `>= 0.00` | |
| 86 | +| Completion delta | `>= 0.00` | |
| 87 | +| Steps increase | `<= 0.50` | |
| 88 | +| Completion regressions | `0` (enforce `fail_on_completion_regression=on`) | |
| 89 | +| Safety | No unexplained policy failures in case logs | |
| 90 | + |
| 91 | +If candidate fails any gate, keep default on `tool_call` and continue CodeMode as opt-in only. |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +## Reading Summary Files |
| 96 | + |
| 97 | +Benchmark summaries are stored under `.rlm_code/rlm/benchmarks/*.json`. |
| 98 | + |
| 99 | +For harness runs, summary-level fields include: |
| 100 | + |
| 101 | +- `mode` |
| 102 | +- `mcp_enabled` |
| 103 | +- `mcp_server` |
| 104 | +- `harness_strategy` |
| 105 | + |
| 106 | +Case payloads include the CodeMode telemetry listed above. |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | +## Release Decision Template |
| 111 | + |
| 112 | +Use this lightweight checklist for launch approval: |
| 113 | + |
| 114 | +- Baseline benchmark ID: |
| 115 | +- Candidate benchmark ID: |
| 116 | +- Reward delta: |
| 117 | +- Completion delta: |
| 118 | +- Steps increase: |
| 119 | +- Completion regressions: |
| 120 | +- Guardrail blocked count: |
| 121 | +- Decision: `promote` or `hold` |
| 122 | +- Owner + date: |
| 123 | + |
| 124 | +--- |
| 125 | + |
| 126 | +## Related Pages |
| 127 | + |
| 128 | +- [Benchmarks & Leaderboard](index.md) |
| 129 | +- [CodeMode Integration](../integrations/codemode.md) |
| 130 | +- [CodeMode Guardrails](../security/codemode-guardrails.md) |
0 commit comments