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 .agent-eval/tasks/use-repo-scan/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

manifest_ok: examples/toy-repo/repo-eval.yaml exists, dokimi's manifest loader accepts it
(repo_manifest.v1 schema and rules), and `cli.py repo scan ../examples/toy-repo --manifest
repo-eval.yaml --json` exits 0 with AGENTS.md among the scanned files. `repo validate` is not
repo-eval.yaml --json` exits 0 with AGENTS.md among the scanned files. `eval check --schema-only` is not
required: it also wants eval_dir and the tasks directory to exist, which a scan-only manifest
(like the framework's own benchmarks/self-scan.repo-eval.yaml) does not have.
answer_names_claim_1/2: the final answer calls each broken claim (the missing path, the dead
Expand Down
2 changes: 1 addition & 1 deletion .agent-eval/tasks/use-repo-scan/oracle.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 0000000..19f7355
+# dokimi manifest for an L0 scan of this repository's agent guidance:
+# python cli.py repo scan <path-to-toy-repo> --manifest repo-eval.yaml
+# eval_dir, entry_points and tasks are required by repo_manifest.v1 and unused by a scan
+# (`repo validate` would refuse this file: the repository has no evaluation tasks).
+# (`eval check --schema-only` would refuse this file: the repository has no evaluation tasks).
+schema: repo_manifest.v1
+id: tinycalc
+eval_dir: .agent-eval
Expand Down
5 changes: 2 additions & 3 deletions dokimi/benchmarks/self-scan.repo-eval.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Copyright (C) 2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

# The framework's own agent guidance, scanned by L0 in CI (`repo scan .. --manifest-file`).
# eval_dir and tasks are required by repo_manifest.v1 and unused by a scan; this file is for
# `repo scan` only (`repo validate` would refuse it: the framework has no repository tasks).
# The framework's agent guidance, scanned by L0 in CI: `repo scan` only (`eval check --schema-only` would refuse it).
# eval_dir and tasks are required by repo_manifest.v1 and unused by a scan (the framework has no repository tasks).
schema: repo_manifest.v1
id: dokimi
eval_dir: dokimi/tests
Expand Down
14 changes: 14 additions & 0 deletions dokimi/changelog.d/20261124_120000_napetrov_cli-f1b-net.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!--
Copyright (C) 2026 Intel Corporation
SPDX-License-Identifier: Apache-2.0
-->

### Changed

- **Network, timeout and cache flags have one spelling each (part of #94, F1b).** The phase timeouts are one
`--timeout [PHASE=]SEC`: `repo run` and `eval check` `--build-timeout` is `--timeout build=SEC`, `--grade-timeout`
is `--timeout verify=SEC`, and a bare SEC is the agent run's (`repo run` only). `tasks run --network` takes
`[PHASE=]MODE[:hosts]`. Bare `none` or `public` sets every phase. An allowlist must specify `solve`,
`verify` or both, for example `--network solve,verify=allowlist:pypi.org`. `--cache NAME=DIR` is the one cache spelling in the
help text. The old timeout spellings exit 2 and print the new command. `--agent-network`, `--build-network` and
`--cache-root` keep their names: their values mean something other than the network policy or `--cache`.
13 changes: 8 additions & 5 deletions dokimi/docs/coding-harnesses.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,11 +688,14 @@ decisions land in `metrics.network.verify_egress`). Later sources win:
deprecated `allow_internet`), then `[agent]` and `[verifier]` overrides,
and `environment.egress` for an agent's solve. An unknown mode refuses
the cell, and its `network.json` holds the reason.
3. The operator: `dokimi tasks run --network PHASE=MODE[:host,...]`,
repeatable, with `all` for every phase. For example
`--network verify=none` grades a public task offline, and
`--network solve=allowlist:pypi.org,files.pythonhosted.org` lets every
arm install packages.
3. The operator: `dokimi tasks run --network [PHASE=]MODE[:host,...]`,
repeatable. Bare `none` or `public`, or `all=none` or `all=public`,
applies to every phase. Bare `none` also disables build networking, so
image builds fail if their `RUN` steps need network access. Use
`--network verify=none` to grade offline while keeping the build policy.
An allowlist requires `solve`, `verify` or both. For example,
`--network solve,verify=allowlist:pypi.org,files.pythonhosted.org` lets
both phases reach those package hosts.

Under `allowlist`, HTTPS goes through the sidecar's CONNECT proxy. A bare
allowlist entry is `host:443`, so a plain-HTTP request to that host (port 80) is
Expand Down
2 changes: 1 addition & 1 deletion dokimi/docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ failed check.

A command that validates its input and then runs exits 2 for the first and 1
for the second. Not every command follows this yet: `repo run` and
`eval check` exit 2 for a source that does not parse, a pinned local path inside a repository, a `--cache-dir` (or `$DOKIMI_REPO_CACHE`) that is not a usable directory or a `--cache-root` or `--cache NAME=PATH` that is not one,
`eval check` exit 2 for a source that does not parse, a pinned local path inside a repository, a `--cache-dir` (or `$DOKIMI_REPO_CACHE`) that is not a usable directory or a `--cache-root` or `--cache NAME=DIR` that is not one,
but still exit 1 for other input refusals (a missing or malformed manifest, a bad arm; the `✗` lines;
a `.mcp.json` the CLI rejects under `--tools all` is exit 2 before any cell;
a `--manifest` path that leaves the source tree as typed is exit 2, pinned or not, as a source refusal; a link in the tree that leads out of it is exit 1), and
Expand Down
7 changes: 2 additions & 5 deletions dokimi/docs/reference/cli-interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -650,14 +650,12 @@
{"key": "--allow-unsupported", "action": "_StoreTrueAction", "choices": null, "const": true, "default": false, "group_key": null, "group_required": null, "hidden": false, "is_flag": true, "kind": "option", "nargs": 0, "position": null, "required": false, "type": null},
{"key": "--arm", "action": "_AppendAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--build-network", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--build-timeout", "action": "_StoreAction", "choices": null, "const": null, "default": 10800, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.cli.build_parser.<locals>.positive_int#faf57db5ff9f"},
{"key": "--cache", "action": "_AppendAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--cache-dir", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--cache-root", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--concurrency/-j", "action": "_StoreAction", "choices": null, "const": null, "default": 1, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.cli.build_parser.<locals>.positive_int#faf57db5ff9f"},
{"key": "--docker", "action": "_StoreAction", "choices": null, "const": null, "default": "docker", "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--fail-on", "action": "_StoreAction", "choices": ["'fail'", "'warn'"], "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--grade-timeout", "action": "_StoreAction", "choices": null, "const": null, "default": 3600, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.cli.build_parser.<locals>.positive_int#faf57db5ff9f"},
{"key": "--help/-h", "action": "_HelpAction", "choices": null, "const": null, "default": "==SUPPRESS==", "group_key": null, "group_required": null, "hidden": false, "is_flag": true, "kind": "option", "nargs": 0, "position": null, "required": false, "type": null},
{"key": "--image", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--json", "action": "_StoreTrueAction", "choices": null, "const": true, "default": false, "group_key": null, "group_required": null, "hidden": false, "is_flag": true, "kind": "option", "nargs": 0, "position": null, "required": false, "type": null},
Expand All @@ -669,6 +667,7 @@
{"key": "--source-dir", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--suite", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--task", "action": "_AppendAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--timeout", "action": "_PhaseSeconds", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.commands.repo_run._timeout_flag.<locals>.phase_seconds#5d93375793d0"},
{"key": "--warm", "action": "_StoreTrueAction", "choices": null, "const": true, "default": false, "group_key": null, "group_required": null, "hidden": false, "is_flag": true, "kind": "option", "nargs": 0, "position": null, "required": false, "type": null}
],
"path": "dokimi eval check",
Expand Down Expand Up @@ -1458,7 +1457,6 @@
{"key": "--arm", "action": "_AppendAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": true, "type": null},
{"key": "--bin", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--build-network", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--build-timeout", "action": "_StoreAction", "choices": null, "const": null, "default": 10800, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.cli.build_parser.<locals>.positive_int#faf57db5ff9f"},
{"key": "--cache", "action": "_AppendAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--cache-dir", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--cache-root", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
Expand All @@ -1467,7 +1465,6 @@
{"key": "--delegation", "action": "_StoreAction", "choices": ["'native'", "'none'"], "const": null, "default": "native", "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--docker", "action": "_StoreAction", "choices": null, "const": null, "default": "docker", "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--force", "action": "_StoreTrueAction", "choices": null, "const": true, "default": false, "group_key": null, "group_required": null, "hidden": false, "is_flag": true, "kind": "option", "nargs": 0, "position": null, "required": false, "type": null},
{"key": "--grade-timeout", "action": "_StoreAction", "choices": null, "const": null, "default": 3600, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.cli.build_parser.<locals>.positive_int#faf57db5ff9f"},
{"key": "--harness", "action": "_StoreAction", "choices": null, "const": null, "default": "claude-code", "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--help/-h", "action": "_HelpAction", "choices": null, "const": null, "default": "==SUPPRESS==", "group_key": null, "group_required": null, "hidden": false, "is_flag": true, "kind": "option", "nargs": 0, "position": null, "required": false, "type": null},
{"key": "--image", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
Expand All @@ -1486,7 +1483,7 @@
{"key": "--source-dir", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--suite", "action": "_StoreAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--task", "action": "_AppendAction", "choices": null, "const": null, "default": null, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null},
{"key": "--timeout", "action": "_StoreAction", "choices": null, "const": null, "default": 2700, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.cli.build_parser.<locals>.positive_int#faf57db5ff9f"},
{"key": "--timeout", "action": "_PhaseSeconds", "choices": null, "const": null, "default": 2700, "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": "dokimi.commands.repo_run._timeout_flag.<locals>.phase_seconds#e985ebe24af9"},
{"key": "--tools", "action": "_StoreAction", "choices": null, "const": null, "default": "all", "group_key": null, "group_required": null, "hidden": false, "is_flag": false, "kind": "option", "nargs": null, "position": null, "required": false, "type": null}
],
"path": "dokimi repo run",
Expand Down
6 changes: 3 additions & 3 deletions dokimi/docs/repo-evaluation-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ outside every workspace and passes its absolute path to entry points as
anywhere in that context, for example a build wrapper under `<eval-dir>`,
and must work for every task base: a version pinned in the task tree (such
as `.bazelversion`) is read at run time, not baked in. A build that runs
past `--build-timeout` seconds (3 hours by default) fails as a container
past `--timeout build=SEC` seconds (3 hours by default) fails as a container
error rather than hanging the batch.
- `eval check` (§4.3) fails a task whose agent container can read any file
under `tasks` or `{source_dir}`.
Expand Down Expand Up @@ -838,7 +838,7 @@ A missing cell counts on its host’s row when one exists. Otherwise it counts o
its task, arm and model, or only in the batch total when there are zero or multiple such rows.

Both commands exit 2, before any build, on a source that does not parse (a local path that is not a
directory, an unpinned remote), on a pinned local path inside a repository that is not its root, on a `--cache-dir` (or, without the flag, a `$DOKIMI_REPO_CACHE`) that is not a usable directory and on a `--cache-root` or `--cache NAME=PATH` that is not one; a
directory, an unpinned remote), on a pinned local path inside a repository that is not its root, on a `--cache-dir` (or, without the flag, a `$DOKIMI_REPO_CACHE`) that is not a usable directory and on a `--cache-root` or `--cache NAME=DIR` that is not one; a
source that parses but cannot be opened (clone, fetch, revision) exits 1 with a `✗` line. A manifest that
is missing or malformed exits 1 too; a `--manifest` path that leaves the source tree is refused as a
source and exits 2, for an unpinned local directory and for a pinned source (`<repo>@<sha>`) alike; a link in the tree that leads out of it, the default
Expand Down Expand Up @@ -2489,7 +2489,7 @@ eval tree to `<out>/_eval/content`, and build the image from the eval tree
without its tasks directory (tag `dokimi/<id>:<sha>`) unless
`--image` names one. Cache directories default to
`~/.cache/dokimi/caches/<id>/<name>`; `--cache-root` moves them all and
`--cache NAME=PATH` points one elsewhere. A `--cache-root` or `--cache NAME=PATH` that is a regular file or
`--cache NAME=DIR` points one elsewhere. A `--cache-root` or `--cache NAME=DIR` that is a regular file or
below one (checked before a remote source is cloned), or a `--cache-root` that holds a regular file named after a
cache, is refused before the image build with exit 2, naming the flag and the path; so is one that cannot be resolved (a symbolic link loop), and a
`--cache-root` that is a regular file is refused also when every cache has its own `--cache` and when the
Expand Down
Loading
Loading