Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/agent-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
python cli.py tasks run \
--tasks onetbb-histogram-local-aggregation \
--tasks-root "${{ runner.temp }}/uxl-skills/evaluation/harbor/tasks" \
--harnesses docker-oracle,docker-probe \
--harness docker-oracle,docker-probe \
--out "${{ github.workspace }}/logs/external-catalog-smoke/runs.json"
# The base the merge commit (refs/pull/N/merge) was built on, its first parent; not origin/$BASE_REF, which may have moved since.
# A PR that does not merge records nothing. A later docs-only push skips only while origin/$BASE_REF is still this one.
Expand Down
2 changes: 1 addition & 1 deletion dokimi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ benchmark-run:

benchmark-compare:
@test -f "$(BASE)" || { echo "ERROR: base snapshot $(BASE) not found. Take one with 'make benchmark-run', copy baselines/current.json to it, or pass BASE=<path>."; exit 1; }
python cli.py docs compare --base $(BASE) --candidate baselines/current.json --out reports/compare.json --out-md reports/compare.md
python cli.py docs compare --baseline $(BASE) --candidate baselines/current.json --out reports/compare.json --out-md reports/compare.md

# Regenerate the CLI snapshot after a command or flag changes. tests/test_cli_flags.py fails
# while docs/reference/cli-interface.json is stale. It uses the venv's Python (the one
Expand Down
2 changes: 1 addition & 1 deletion dokimi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ The task definitions are evaluation content and live in a separate content repos

```bash
python cli.py tasks run --tasks-root <checkout>/evaluation/harbor/tasks \
--tasks <task-name> --harnesses docker-oracle --out results/runs.json
--tasks <task-name> --harness docker-oracle --out results/runs.json
```

The directory layout and `task.toml` fields a task must provide are specified in [docs/contributing-terminal-bench-task.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/contributing-terminal-bench-task.md). CI runs a real external catalog through the same harness (see [CI](#ci) below) with network disabled at solve and verify time.
Expand Down
3 changes: 3 additions & 0 deletions dokimi/changelog.d/20261124_120000_napetrov_cli-f1b-arms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Changed

- **Arms, harness and baseline flags: one spelling each.** `--arms` on `arms run`, `arms matrix-run` and `explore run` is now `--arm`, and it repeats: `--arm baseline --arm docs` gives the same list as `--arm baseline,docs`, which still works. `--harnesses` on `tasks run` is now `--harness`, repeatable the same way. `--baseline-json` on `arms plugin-delta` and `--base` on `docs compare` are now `--baseline`. The old spellings print the new command and exit 2, so scripts and CI that pass them must change the flag. `--arms` stays on `eval`, `skill novelty` and `catalog novelty` commands, where it names a score or measurement arm, not a treatment. `--matrix-cells`, `--plugin-json` and `--work-harnesses` keep their names for now: each has no same-meaning canonical spelling yet.
6 changes: 3 additions & 3 deletions dokimi/data/explore_tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ references:

```bash
python cli.py eval tasks list --format localization
python cli.py explore run --all --arms oracle,empty --baseline-arm empty \
python cli.py explore run --all --arm oracle,empty --baseline-arm empty \
--out results/explore-runs/explore_runs.json \
--out-md reports/exploration.md
```
Expand All @@ -45,7 +45,7 @@ floor); `command:<template>` runs a real CLI explorer — for example:

```bash
python cli.py explore run --all \
--arms 'empty,command:claude -p {query_quoted}' --baseline-arm empty
--arm 'empty,command:claude -p {query_quoted}' --baseline-arm empty
```

## About this seed set
Expand All @@ -62,7 +62,7 @@ content, so they live in the content repository and are run from there:

```bash
python cli.py explore run --all --tasks-root <checkout>/explore_tasks \
--repo-root <product-checkout> --arms oracle,empty --baseline-arm empty
--repo-root <product-checkout> --arm oracle,empty --baseline-arm empty
```

Derive their `references` from the oracle solution's edited files/ranges, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mutations: [deleted-tests, weakened-criterion]
valid_inaction: false
steps: none
reproduce: >
python cli.py tasks run --tasks-root <tasks-root> --tasks rangeparse-open-end --harnesses docker-oracle --out results/oracle.json
python cli.py tasks run --tasks-root <tasks-root> --tasks rangeparse-open-end --harness docker-oracle --out results/oracle.json
```

Mutations not chosen: skipped step (one-step fix), false test claim (the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Harbor tasks: oracle and isolation have harnesses; expect `pass_rate: 1.0`
from the oracle and a clean probe.

```bash
python cli.py tasks run --tasks-root <tasks-root> --tasks <id> --harnesses docker-oracle --out results/oracle.json
python cli.py tasks run --tasks-root <tasks-root> --tasks <id> --harnesses docker-probe --out results/probe.json
python cli.py tasks run --tasks-root <tasks-root> --tasks <id> --harness docker-oracle --out results/oracle.json
python cli.py tasks run --tasks-root <tasks-root> --tasks <id> --harness docker-probe --out results/probe.json
```

**Manual for Harbor:** there is no null harness. Copy the task directory to a
Expand All @@ -53,7 +53,7 @@ verifier runs on the untouched workspace with the harness's own mounts. Expect
`pass_rate: 0.0`.

```bash
python cli.py tasks run --tasks-root <scratch-root> --tasks <id> --harnesses docker-oracle --out results/null.json
python cli.py tasks run --tasks-root <scratch-root> --tasks <id> --harness docker-oracle --out results/null.json
```

A task that passes the oracle but also passes untouched does not discriminate.
Expand Down
2 changes: 1 addition & 1 deletion dokimi/docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ injection (`docs`/`mcp:`), agent persona prompts (`profile:`, loaded from
`agent_profiles/`), skills (`skill:`, loaded from `skills/`), and agentic use
where the model decides to call a doc-search or skill tool (`agent:`,
`skill-agent:`, `skill-catalog:`) via the tool-calling loop in `eval/agent_runner.py`.
The spec grammar — what an `--arms` entry means, where `+` splits a combined
The spec grammar — what an `--arm` entry means, where `+` splits a combined
spec, and what each arm is *named* — is `treatments/specs.py`.
`eval/arm_runner.py` generates and judges answers for every arm and reports
per-arm deltas vs a baseline. `eval/arms_run.py` runs it from an `ArmsRunConfig`,
Expand Down
8 changes: 4 additions & 4 deletions dokimi/docs/benchmarking-and-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ so keep the first `baselines/current.json` you are happy with:
cp baselines/current.json baselines/baseline.json # once, after a clean run

python cli.py docs compare \
--base baselines/baseline.json \
--baseline baselines/baseline.json \
--candidate baselines/current.json \
--spec benchmarks/spec.v1.yaml \
--out reports/compare.json \
Expand Down Expand Up @@ -268,7 +268,7 @@ Use treatment arms when comparing context artifacts rather than models:
python cli.py arms run \
--product oneTBB \
--questions <content-checkout>/questions/onetbb_golden.json \
--arms "baseline,docs,skill:<content-checkout>/skills/onetbb-quickstart" \
--arm "baseline,docs,skill:<content-checkout>/skills/onetbb-quickstart" \
--judge \
--out results/arms/onetbb_skill.json \
--out-md results/arms/onetbb_skill.md
Expand Down Expand Up @@ -522,8 +522,8 @@ N-1 entries of its `follow_ups` list (a list of strings in the question record),
keeps the history, and records each turn's usage:

```bash
python cli.py arms run ... --arms baseline,skill:/path/to/skill --session-turns 4
python cli.py arms run ... --arms baseline,skill:/path/to/skill --session-turns 4 \
python cli.py arms run ... --arm baseline,skill:/path/to/skill --session-turns 4
python cli.py arms run ... --arm baseline,skill:/path/to/skill --session-turns 4 \
--turn-reminder "Answer tersely." # also runs each arm as <arm>+reminder
```

Expand Down
18 changes: 9 additions & 9 deletions dokimi/docs/coding-harnesses.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ and times become ISO strings, and YAML sets sorted lists.
### SWE-bench rows: `tasks run --swe-bench`

`python cli.py tasks run --swe-bench <rows.jsonl> --tasks <instance_id>[,...]
--harnesses docker-oracle,docker-claude` runs SWE-bench rows (Lite, Verified,
--harness docker-oracle,docker-claude` runs SWE-bench rows (Lite, Verified,
or any file with the same fields) with the `docker-*` harnesses; `--all`
runs every row. Each row is staged under `<output-dir>/swe-bench-tasks/<id>/`
as a task the harness already runs, by `dokimi/harnesses/swebench.py`:
Expand Down Expand Up @@ -872,13 +872,13 @@ Run one task through Codex and compare it to Claude Code:
python cli.py tasks run \
--tasks-root <content-checkout>/evaluation/harbor/tasks \
--tasks onetbb-parallel-reduce \
--harnesses claude-code,codex \
--harness claude-code,codex \
--baseline-harness claude-code \
--model anthropic/claude-opus-4-6 \
--out results/task-runs/onetbb-reduce.json
```

If `--baseline-harness` is not listed in `--harnesses`, the CLI adds it to the
If `--baseline-harness` is not listed in `--harness`, the CLI adds it to the
run matrix and prints that it will also run the baseline harness.

Run all tasks through a custom wrapper:
Expand All @@ -887,7 +887,7 @@ Run all tasks through a custom wrapper:
python cli.py tasks run \
--tasks-root <content-checkout>/evaluation/harbor/tasks \
--all \
--harnesses command \
--harness command \
--command-template "my-agent --task {task_path} --model {model} --out {output_dir}" \
--model my-model
```
Expand Down Expand Up @@ -958,7 +958,7 @@ per-task breakdown — lands in one schema-validated artifact:
python cli.py tasks run \
--tasks-root <content-checkout>/evaluation/harbor/tasks \
--tasks intel-perf-serial-accumulator,intel-perf-false-sharing,intel-perf-missing-restrict \
--harnesses docker-claude,docker-claude-skill:<content-checkout>/skills/intel-performance-patterns/SKILL.md \
--harness docker-claude,docker-claude-skill:<content-checkout>/skills/intel-performance-patterns/SKILL.md \
--baseline-harness docker-claude \
--model us.anthropic.claude-haiku-4-5-20251001-v1:0 \
--reps 3 \
Expand Down Expand Up @@ -1061,7 +1061,7 @@ Run all three together:
```bash
python cli.py tasks run --tasks-root <content-checkout>/evaluation/harbor/tasks \
--tasks onetbb-transpose \
--harnesses docker-claude,docker-claude-skill:<skill>,docker-claude-skill-discover:<skill> \
--harness docker-claude,docker-claude-skill:<skill>,docker-claude-skill-discover:<skill> \
--baseline-harness docker-claude --model <model> --reps 3 \
--out results/onetbb-discover.json
```
Expand Down Expand Up @@ -1132,7 +1132,7 @@ still writes the artifact:
```bash
python cli.py tasks run --tasks <task-name> \
--tasks-root <checkout>/evaluation/harbor/tasks \
--harnesses docker-oracle --out results/oracle-check.json
--harness docker-oracle --out results/oracle-check.json
```

## Output Artifact
Expand Down Expand Up @@ -1352,7 +1352,7 @@ use the entries it reports the same way as local ones:
# with-skill treatment arm using an external skill
python cli.py tasks run --tasks onetbb-histogram-local-aggregation \
--tasks-root /tmp/uxl-skills/evaluation/harbor/tasks \
--harnesses docker-oracle,docker-claude-skill:/tmp/uxl-skills/skills/uxl-onetbb \
--harness docker-oracle,docker-claude-skill:/tmp/uxl-skills/skills/uxl-onetbb \
--baseline-harness docker-oracle

# or hand an external task straight to Harbor
Expand Down Expand Up @@ -1380,7 +1380,7 @@ SkillsBench tasks (`task.md`) run through the `benchflow:*` harnesses:
git clone https://github.com/benchflow-ai/skillsbench /tmp/skillsbench
python cli.py tasks run --tasks parallel-tfidf-search \
--tasks-root /tmp/skillsbench/tasks \
--harnesses benchflow:claude-agent-acp,benchflow-skill:claude-agent-acp \
--harness benchflow:claude-agent-acp,benchflow-skill:claude-agent-acp \
--baseline-harness benchflow:claude-agent-acp \
--model aws-bedrock/us.anthropic.claude-haiku-4-5-20251001-v1:0
```
Expand Down
2 changes: 1 addition & 1 deletion dokimi/docs/contributing-metric.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ snapshot you took before the change (there is no committed baseline — see

```bash
python cli.py docs compare \
--base baselines/baseline.json \
--baseline baselines/baseline.json \
--candidate baselines/current.json \
--spec benchmarks/spec.v1.yaml \
--out-md reports/compare.md
Expand Down
8 changes: 4 additions & 4 deletions dokimi/docs/contributing-terminal-bench-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repository, not here. This framework runs them from a checkout you name:
```bash
python cli.py eval tasks list --tasks-root <checkout>/evaluation/harbor/tasks
python cli.py tasks run --tasks-root <checkout>/evaluation/harbor/tasks \
--tasks <task-name> --harnesses docker-oracle --out results/runs.json
--tasks <task-name> --harness docker-oracle --out results/runs.json
```

This page is the format reference: everything a task directory must contain for
Expand Down Expand Up @@ -201,12 +201,12 @@ A port below 1024 still binds. See
python cli.py tasks run \
--tasks-root <checkout>/evaluation/harbor/tasks \
--tasks <library>-<concept> \
--harnesses docker-oracle \
--harness docker-oracle \
--out results/oracle.json
```

Expect `passed: 1` / `pass_rate: 1.0` in the summary. Add `docker-null` to the
same run (`--harnesses docker-oracle,docker-null`) for the null check: the
same run (`--harness docker-oracle,docker-null`) for the null check: the
untouched start must fail the tests, or the tests check nothing. The run exits 1
and names each task that fails it. A pytest error at setup or collection
(`fixture_error`) also fails the check. Inspect the verifier log to see whether
Expand All @@ -219,7 +219,7 @@ needs the network:
python cli.py tasks run \
--tasks-root <checkout>/evaluation/harbor/tasks \
--tasks <library>-<concept> \
--harnesses docker-probe \
--harness docker-probe \
--out results/probe.json
```

Expand Down
2 changes: 1 addition & 1 deletion dokimi/docs/documentation-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The [feature tree](features/README.md) links to all 39 cards, grouped by the que
verifier pass rate against a baseline.
- [product-experiment-replay.md](product-experiment-replay.md) — replay a frozen product experiment and its verifier evidence
- [knowledge-runs.md](knowledge-runs.md) — ask one question set of one agent
or model with no docs injected and grade it (`arms run --arms baseline`,
or model with no docs injected and grade it (`arms run --arm baseline`,
`answers generate --doc-source none`): the reference before a with-docs comparison.
- [answer-formats.md](answer-formats.md) — run Inspect AI, OpenAI evals,
skill-creator and promptfoo answer-only sets on the answers track
Expand Down
28 changes: 14 additions & 14 deletions dokimi/docs/evaluating-treatments.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ once with no plugin and once with the plugin enabled, then compare the two

```bash
python cli.py arms plugin-delta \
--baseline-json results/arms/oneTBB-none.json \
--baseline results/arms/oneTBB-none.json \
--plugin-json results/arms/oneTBB-caveman.json \
--out results/arms/oneTBB-caveman-delta.json
```
Expand All @@ -123,15 +123,15 @@ carry the same stamped judge model, provider and `judge_context`.
> prompt. It is **not** a `persona` — in this repo a persona is a synthetic
> *user* who asks questions (`dokimi/personas`).

> **One arm, no docs:** `--arms baseline` alone is a knowledge run, the reference for a comparison;
> **One arm, no docs:** `--arm baseline` alone is a knowledge run, the reference for a comparison;
> see [knowledge-runs.md](knowledge-runs.md).
>
> **Which commands run treatments:** `arms run`, `arms matrix-run`, and the
> `subjects` commands — they are the only callers of `create_treatments`. The
> legacy answer path (`benchmark run`, `answers generate`) predates arms: it has
> only the two fixed `with_docs`/`without_docs` conditions, no `--arms` flag, and
> only the two fixed `with_docs`/`without_docs` conditions, no `--arm` flag, and
> no way to send a system prompt at all, so a `profile:` arm cannot be expressed
> there. `explore --arms` is an unrelated flag (`oracle`/`empty`/`command:`), not
> there. `explore --arm` is an unrelated flag (`oracle`/`empty`/`command:`), not
> a treatment list.

## Quick start
Expand All @@ -140,7 +140,7 @@ carry the same stamped judge model, provider and `judge_context`.
python cli.py arms run \
--product oneTBB \
--questions <content-checkout>/questions/onetbb_golden.json \
--arms "baseline,docs,profile:data/agent_profiles/concise_expert.md,skill:<content-checkout>/skills/onetbb-quickstart" \
--arm "baseline,docs,profile:data/agent_profiles/concise_expert.md,skill:<content-checkout>/skills/onetbb-quickstart" \
--judge \
--out results/arms/oneTBB.json \
--out-md results/arms/oneTBB.md
Expand Down Expand Up @@ -195,7 +195,7 @@ JSON
python cli.py arms matrix-run \
--product oneTBB \
--questions <content-checkout>/questions/onetbb_golden.json \
--arms "baseline,docs,skill:<content-checkout>/skills/onetbb-quickstart" \
--arm "baseline,docs,skill:<content-checkout>/skills/onetbb-quickstart" \
--matrix-cells results/arms/matrix.json \
--judge \
--out-dir results/arms/oneTBB-matrix
Expand Down Expand Up @@ -321,7 +321,7 @@ artifact per cell, a `matrix_rollup.v1` JSON/Markdown report, and paired
path may contain `+` (`skill:/skills/c++-guide`); a spec that *starts* with
`mcp:` is never split, because an MCP URL may carry `+` in its query.

**Specs are not names.** `--arms` takes specs; the artifact's `arms` list, the
**Specs are not names.** `--arm` takes specs; the artifact's `arms` list, the
report and `--baseline-arm` use arm *names*: `docs:<source>` is named `docs`,
`mcp:<ref>` is `mcp_doc`, `agent[:<source>]` is `agent`, and `profile:`,
`skill:` and `skill-agent:` arms are named after the content they load —
Expand All @@ -335,7 +335,7 @@ Example comparing injection vs agentic use of the same MCP server:

```bash
python cli.py arms run --product oneTBB --questions <content-checkout>/questions/onetbb_golden.json \
--arms "baseline,mcp:http=https://mcp.context7.com/mcp,agent:mcp:http=https://mcp.context7.com/mcp" \
--arm "baseline,mcp:http=https://mcp.context7.com/mcp,agent:mcp:http=https://mcp.context7.com/mcp" \
--judge --max-iterations 6
```

Expand All @@ -347,13 +347,13 @@ SKILL=<content-checkout>/skills/onetbb-quickstart

# 4-way comparison: baseline, docs-only, skill-only, and docs+skill combined
python cli.py arms run --product oneTBB --questions "$QUESTIONS" \
--arms "baseline,docs,skill:$SKILL,docs+skill:$SKILL" \
--arm "baseline,docs,skill:$SKILL,docs+skill:$SKILL" \
--context7-id "uxlfoundation/onetbb" \
--judge

# Or just baseline vs combined (to test synergy hypothesis)
python cli.py arms run --product oneTBB --questions "$QUESTIONS" \
--arms "baseline,docs+skill:$SKILL" \
--arm "baseline,docs+skill:$SKILL" \
--context7-id "uxlfoundation/onetbb" \
--judge
```
Expand All @@ -369,20 +369,20 @@ as: `(docs+skill)_delta - docs_delta - skill_delta`. Positive = synergy, negativ
```bash
# Docs + profile (expert persona with comprehensive reference)
python cli.py arms run --product oneTBB --questions "$QUESTIONS" \
--arms "baseline,docs+profile:data/agent_profiles/concise_expert.md" \
--arm "baseline,docs+profile:data/agent_profiles/concise_expert.md" \
--context7-id "uxlfoundation/onetbb" \
--judge

# Triple combination (docs + profile + skill)
python cli.py arms run --product oneTBB --questions "$QUESTIONS" \
--arms "baseline,docs+profile:data/agent_profiles/concise_expert.md+skill:$SKILL" \
--arm "baseline,docs+profile:data/agent_profiles/concise_expert.md+skill:$SKILL" \
--context7-id "uxlfoundation/onetbb" \
--judge

# Test if multiple skills complement each other
OTHER_SKILL=<content-checkout>/skills/onetbb-flow-graph
python cli.py arms run --product oneTBB --questions "$QUESTIONS" \
--arms "baseline,skill:$SKILL,skill:$OTHER_SKILL,skill:$SKILL+skill:$OTHER_SKILL" \
--arm "baseline,skill:$SKILL,skill:$OTHER_SKILL,skill:$SKILL+skill:$OTHER_SKILL" \
--judge
```

Expand Down Expand Up @@ -572,7 +572,7 @@ misroute, false-trigger rate):

```bash
python cli.py arms run --product <p> --questions trigger_questions.json \
--arms skill-catalog:<skills-checkout>/skills --model <model>
--arm skill-catalog:<skills-checkout>/skills --model <model>
```

`expected_skill` labels are checked against the offered skills before any call. A cell
Expand Down
Loading
Loading