Repository navigation
Conversation
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> (cherry picked from commit b800225aac0735b827d74f68476636337234ad0d)
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> (cherry picked from commit ab89a736222856242d3766b01f750387c3f3400f) Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
CLI interface change detectedThis PR changes dokimi's user-facing CLI surface (commands and/or options): ~ `dokimi agent run` parameters changed:
+ added option `--arms`
+ added option `--helper`Updated on every push; the |
There was a problem hiding this comment.
🟡 Changes recommended
Critical issues remain: valid helper TOML can be nested under the model-provider table instead of installing MCP servers, and referenced authentication variables are filtered out, preventing authenticated helpers from connecting.
2 open issues
What changed in this PR
2 new findings.
This PR extends coding-agent evaluations to measure shipping helpers against matched baseline sessions.
Changes:
- Adds host-mode helper installation, paired scoring, and gate results.
- Classifies independently confirmed Codex Linux sandbox failures as inconclusive.
- Updates tests, artifact schema, CLI references, and documentation.
| File | Description |
|---|---|
| README.md | Introduces helper measurement. |
| dokimi/tests/test_helper_effects.py | Tests helper installation and paired scoring. |
| dokimi/tests/test_agent_run.py | Updates runner mocks for keyword arguments. |
| dokimi/tests/test_agent_environment.py | Tests sandbox failure classification. |
| dokimi/tests/data/cli_flags_allowlist.txt | Clarifies the --arms comment. |
| dokimi/dokimi/schemas/agent_run.v1.json | Adds helper comparison results. |
| dokimi/dokimi/commands/agent_run.py | Adds helper options and gate-aware exits. |
| dokimi/dokimi/cli_flags.py | Registers --helper. |
| dokimi/dokimi/agent_run/runner.py | Runs helper treatments and sandbox probes. |
| dokimi/dokimi/agent_run/helpers.py | Installs helpers and computes paired effects. |
| dokimi/docs/reference/cli-interface.json | Records new CLI options. |
| dokimi/docs/coding-harnesses.md | Documents helper measurement and sandbox handling. |
| dokimi/changelog.d/20261202_codex_sandbox_unavailable.md | Records sandbox classification changes. |
| dokimi/changelog.d/20261124_030000_agent-helper-effect.md | Records helper comparison support. |
| AGENTS.md | Adds helper measurement guidance. |
Review effort: Balanced
| with (config / "config.toml").open("a", encoding="utf-8") as file: | ||
| file.write("\n" + server.read_text(encoding="utf-8")) |
| if helper is not None: | ||
| helper.install(workspace, config, agent.name, cmd) |
|
🔍 OpenCodeReview found 1 issue(s) in this PR. CI at By label: 1 nit
Review details
|
| ): | ||
| monkeypatch.setattr(adapters, "_WINDOWS", False) | ||
| monkeypatch.setattr(runner.sys, "platform", "linux") | ||
| monkeypatch.setattr(runner.shutil, "which", lambda _: "/usr/bin/codex") |
There was a problem hiding this comment.
Impact: this new regression test fails on Windows rather than exercising the sandbox classification.
Trigger: run python -m pytest tests/test_agent_environment.py on Windows.
Evidence: _host passes os.path.abspath(sandbox) to the probe; on Windows the mocked /usr/bin/codex becomes a drive-qualified Windows path, so it never matches the mock's argv[0] == "/usr/bin/codex" branch. The fallback returns a successful checker response and leaves probes empty, breaking the cases that expect a probe.
Fix: Use an absolute path derived from tmp_path for both which and the probe comparison.
Workaround: run this test on Linux.
Nit: Checked by reading the code; nothing was run.
Read, not run: a second, independent read agrees and cites dokimi/tests/test_agent_environment.py:28, dokimi/dokimi/agent_run/runner.py:184, dokimi/dokimi/agent_run/runner.py:194, dokimi/tests/test_agent_environment.py:49, dokimi/tests/test_agent_environment.py:62.
Mutation of changed linesAt 43b1efd: 37 caught · 10 missed · 33 not tried in time Each row is a small deliberate break (a mutant) of a line this PR changes that every test reaching that line still passes. Add a test that fails on it or, if it cannot change behaviour, put
Not the whole picture:
Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1664 +/- ##
==========================================
- Coverage 96.44% 96.40% -0.04%
==========================================
Files 585 586 +1
Lines 76600 76719 +119
Branches 13175 13197 +22
==========================================
+ Hits 73876 73964 +88
- Misses 1671 1689 +18
- Partials 1053 1066 +13
🚀 New features to boost your workflow:
|

Summary
AI-Ready checklist v1.5 action 7.
dokimi agent run --arms base,assets --helper NAME=DIRmeasures a skill,AGENTS.md, docs index or agent-native MCP configuration. It uses matched, scorable sessions on both sides. A negative effect or no shipping helper fails the gate. Missing matched evidence is inconclusive. The slice indocs/coding-harnesses.mddescribes the paired rubric, helper files and host-mode scope.A Codex Linux sandbox failure is inconclusive when a failed tool event and a failing independent native sandbox probe both support it. The probe gets no model route credentials. A passing product checker retains its verdict.
Evidence
Before, every task had one context condition. A missing Codex Linux namespace could lower Usage even though the host prevented the edit.
Live Linux smoke with Claude Code Haiku on Bedrock, one synthetic task and a single pair. The controls returned PASS and FAIL. The checker returned FAIL at 65 points without the docs index and PASS at 100 with it. Paired Usage was 6.5 → 10.0. The command exited 1 for the baseline checker failure and the helper gate reported PASS.
pytest tests/test_helper_effects.py tests/test_agent_environment.py tests/test_agent_run.py tests/test_run_envelope.pycovers pair isolation, good and wrong evidence, scoring, native launcher argument placement and independent sandbox confirmation.The Linux namespace regression was also checked against a prior captured Codex session on this host. Helper treatments run in host mode. A native Windows MCP run is pending.
make ci-localreported 0 failed, 38 passed and 16 skipped. The suite passed 36,273 tests, all 20 changed-test repeats passed, and changed-line coverage was 88%. The advisory mutation check reported 13 surviving and 26 unrun mutations.Merge Danger
Door Two-way.
Blast radius Opt-in host helper runs and the Codex Linux infrastructure verdict.