Skip to content

feat(spend): sign-in preflight before paid runs, and --max-calls for providers with no price - #1565

Merged
vchamarthi merged 4 commits into
intel:mainfrom
vchamarthi:auth-preflight-and-call-cap
Dec 4, 2026
Merged

vchamarthi merged 4 commits into
intel:mainfrom
vchamarthi:auth-preflight-and-call-cap

Conversation

@vchamarthi

@vchamarthi vchamarthi commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

A run without a working login now stops in a second with one clear message, and CLI-based runs can finally be given a spending limit.

Why

  • Measured with Dokimi, repo reach with Claude Code and no credential in the isolated run: every scenario errored ("Not logged in · Please run /login") and the run reported a full matrix of E; a Codex run took 181 s to fail 11 times with retries.
  • Measured with Dokimi, eval skill-coverage --model claude-cli/sonnet --max-usd 1: the run stopped after its first, paid call ("no price is known for sonnet"). A CLI login reports no charged price, so a user on an OAuth token had no working cap at all.

What changes

  • New dokimi/repos/sign_in.py: before the first scenario, repo reach and repo skill-reach run one zero-tool "reply ok" call under the exact child environment the scenarios get; repo run makes the same call in the agent's own container, with the cells' mounts, credentials and network (check_container_signed_in; the env assembly moved to repos/agent_env.py, shared with run_cell).
  • arms run on a CLI provider: llm_cli.check_signed_in asks the CLI's auth status (no model call) for the answerer and judge providers and refuses with exit 2 when it says not signed in. A sign-in failure (Not logged in, authentication_failed, invalid key, 401 Unauthorized, missing bearer) raises NotSignedIn (a ProfileError) and the command exits 2 naming the profile's credential variables. Any other failure (timeout, usage limit, overloaded API) lets the run continue as before. --no-preflight (on the four commands) or DOKIMI_NO_PREFLIGHT=1 skips it; the preflight waits no longer than one scenario's --timeout.
  • SpendCap takes max_calls; new --max-calls N (spend concept in cli_flags) on every command using the novelty --max-usd, on catalog novelty (which now accepts --max-calls in place of its required --max-usd) and on eval skill-coverage. Each provider request, a retry included, reserves its slot under the lock before it is sent, after the cache lookup, so calls in flight cannot overshoot; a cache hit sends no request and takes no slot; a nested cap frees its slot when the parent refuses.
  • --max-usd on a CLI provider (claude-cli, codex-cli) is refused before any call, pointing to --max-calls.
  • New stop reason call_cap in run.v1 / novelty.v1, exit 3 like other budget stops, with "a higher --max-calls" rerun advice.
  • docs/reference/cli-interface.json regenerated; changelog fragment added.

Evidence

Case Before After
repo reach, harness not signed in every scenario runs and errors, matrix of E 1 call, exit 2, one message
eval skill-coverage --model claude-cli/sonnet --max-usd 1 1 paid call, then "no price is known" refused before any call (exit 3), names --max-calls
repo run / arms run, not signed in every cell or answer errors 1 call in the agent's container (repo run) or auth status (arms run), exit 2
--max-calls 1 on a CLI provider flag did not exist stops before call 2 (exit 1, "call cap reached: 1 of 1 calls")

How to test

cd dokimi
python -m pytest -q tests/test_sign_in_preflight.py tests/test_spend_call_cap.py tests/test_catalog_novelty_call_cap.py
make ci-local CI_LOCAL_ARGS='--offline'

Result: 1 failed, 34260 passed, 33 skipped. The failure also fails on unchanged main: test_repo_compare_interval::test_the_row_p_places_zero_where_large_deltas_round_p_at_zero_apart. mypy is clean.

Mutation

Local mutation run: 0 survived (36 caught, 33 not tried in time). Tests added for the 3 survivors (the call_cap advice in a partial atoms refusal, PATH in the host-only names, and the host-only filter on names passed into the agent container).

Conflicts with #1559

This PR and #1559 both edit dokimi/repos/reach.py and dokimi/commands/repo_reach.py. Whichever lands second:

Not in this PR

  • No --max-tokens cap: --max-tokens already means the output ceiling on these commands.
  • --max-usd still does not use the CLI's own total_cost_usd: that figure is a list-price estimate, not what an OAuth token login is charged.

References

…providers with no price

repo reach, repo skill-reach and repo run make one zero-tool call under the
run's own environment (repo run: in the agent's container) and stop with
exit 2 on a sign-in error instead of erroring in every cell; arms run asks a
CLI provider's auth status. --no-preflight or DOKIMI_NO_PREFLIGHT=1 skips it.
--max-calls caps model calls without a price (novelty commands, catalog
novelty, eval skill-coverage); --max-usd on a CLI provider is refused before
the first call and points to --max-calls.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi
vchamarthi requested a review from a team as a code owner December 3, 2026 04:55
Copilot AI balanced review requested due to automatic review settings December 3, 2026 04:55
@github-actions github-actions Bot added the cli-interface-change Changes dokimi's user-facing CLI surface label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

CLI interface change detected

This PR changes dokimi's user-facing CLI surface (commands and/or options):

~ `dokimi arms matrix-run` parameters changed:
    + added option `--no-preflight`
~ `dokimi arms run` parameters changed:
    + added option `--no-preflight`
~ `dokimi catalog novelty` parameters changed:
    + added option `--max-calls`
~ `dokimi catalog routing` parameters changed:
    + added option `--max-calls`
~ `dokimi eval graph` parameters changed:
    + added option `--max-calls`
~ `dokimi eval skill-coverage` parameters changed:
    + added option `--max-calls`
~ `dokimi repo reach` parameters changed:
    + added option `--no-preflight`
~ `dokimi repo run` parameters changed:
    + added option `--no-preflight`
~ `dokimi repo skill-reach` parameters changed:
    + added option `--no-preflight`
~ `dokimi skill novelty analyze` parameters changed:
    + added option `--max-calls`
~ `dokimi skill novelty atoms` parameters changed:
    + added option `--max-calls`
~ `dokimi skill novelty probe` parameters changed:
    + added option `--max-calls`
~ `dokimi skill routing` parameters changed:
    + added option `--max-calls`
~ `dokimi skill sensitivity` parameters changed:
    + added option `--max-calls`
~ `dokimi skill shorten` parameters changed:
    + added option `--max-calls`

Updated on every push; the cli-interface-change label is on while the diff is non-empty.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved spend-cap defects permit unvalidated providers and uncounted retries, while cache handling, authentication preflight, and cost reporting can reject valid runs or misstate spending.

6 open issues
What changed in this PR

7 findings.

This PR adds sign-in checks before paid evaluations and call-count budgets for providers that do not report prices.

Changes:

  • Adds sign-in preflights and opt-out controls to repository and arms runs.
  • Introduces --max-calls and rejects unsupported CLI-provider dollar caps.
  • Updates stop reasons, recovery guidance, tests, and CLI documentation.
File Description
dokimi/​tests/​test_spend_call_cap.py Tests call limits and provider refusals.
dokimi/​tests/​test_sign_in_preflight.py Tests authentication checks and opt-outs.
dokimi/​tests/​test_catalog_novelty_call_cap.py Tests call-limited catalog sweeps.
dokimi/​tests/​test_atoms_partial_status.py Covers call-cap recovery messages.
dokimi/​tests/​data/​cli_flags_allowlist.txt Allows the preflight opt-out flag.
dokimi/​tests/​conftest.py Disables preflights by default in tests.
dokimi/​dokimi/​spend.py Adds shared call-count accounting.
dokimi/​dokimi/​schemas/​run.v1.json Accepts call-cap stop reasons.
dokimi/​dokimi/​schemas/​novelty.v1.json Accepts call-limited partial results.
dokimi/​dokimi/​runs/​rundir.py Records call-cap termination.
dokimi/​dokimi/​repos/​skill_reach.py Checks sign-in before skill probes.
dokimi/​dokimi/​repos/​sign_in.py Implements host and container preflights.
dokimi/​dokimi/​repos/​runner.py Reuses shared environment assembly.
dokimi/​dokimi/​repos/​reach.py Checks sign-in before reach probes.
dokimi/​dokimi/​repos/​agent_env.py Shares container credential handling.
dokimi/​dokimi/​novelty/​items.py Identifies call-limited probe results.
dokimi/​dokimi/​novelty/​cost.py Builds caps and validates providers.
dokimi/​dokimi/​novelty/​client.py Releases refused nested reservations.
dokimi/​dokimi/​novelty/​atoms_refusal.py Adds call-cap rerun advice.
dokimi/​dokimi/​llm_cli.py Adds CLI authentication preflight.
dokimi/​dokimi/​eval/​arms_run.py Checks answerer and judge sign-in.
dokimi/​dokimi/​commands/​skill_coverage.py Adds call limits and early refusals.
dokimi/​dokimi/​commands/​repo_skill_reach.py Exposes preflight controls and errors.
dokimi/​dokimi/​commands/​repo_run.py Runs container sign-in checks.
dokimi/​dokimi/​commands/​repo_reach.py Handles authentication refusals.
dokimi/​dokimi/​commands/​novelty_run.py Registers shared call-cap options.
dokimi/​dokimi/​commands/​novelty_routing_report.py Classifies call caps as budget stops.
dokimi/​dokimi/​commands/​novelty_budget.py Updates replay guidance.
dokimi/​dokimi/​commands/​novelty_atoms_file.py Updates verdict-cache rerun advice.
dokimi/​dokimi/​commands/​eval_graph.py Passes provider into cap validation.
dokimi/​dokimi/​commands/​catalog_novelty.py Supports call-budgeted sweeps.
dokimi/​dokimi/​commands/​arms.py Exposes preflight opt-out.
dokimi/​dokimi/​cli_flags.py Registers the call-cap concept.
dokimi/​dokimi/​artifacts.py Explains call-limited artifact refusals.
dokimi/​docs/​reference/​cli-interface.json Refreshes the CLI interface snapshot.
dokimi/​changelog.d/​20261202_140000_sign-in-preflight-and-max-calls.md Documents preflights and call budgets.

Review effort: Balanced

Comment thread dokimi/dokimi/novelty/cost.py Resolved
Comment thread dokimi/dokimi/repos/sign_in.py Resolved
Comment thread dokimi/dokimi/spend.py Resolved
Comment thread dokimi/dokimi/llm_cli.py Resolved
Comment thread dokimi/dokimi/spend.py Resolved
@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 94.88189% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.46%. Comparing base (4447d49) to head (fae47ae).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
dokimi/dokimi/repos/sign_in.py 95.00% 3 Missing and 1 partial ⚠️
dokimi/dokimi/commands/catalog_novelty.py 88.23% 2 Missing ⚠️
dokimi/dokimi/commands/skill_coverage.py 90.47% 1 Missing and 1 partial ⚠️
dokimi/dokimi/novelty/client.py 90.00% 0 Missing and 2 partials ⚠️
dokimi/dokimi/commands/repo_reach.py 83.33% 1 Missing ⚠️
dokimi/dokimi/commands/repo_run.py 83.33% 1 Missing ⚠️
dokimi/dokimi/commands/repo_skill_reach.py 83.33% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1565    +/-   ##
========================================
  Coverage   96.46%   96.46%            
========================================
  Files         558      563     +5     
  Lines       73926    74546   +620     
  Branches    12769    12866    +97     
========================================
+ Hits        71313    71912   +599     
- Misses       1596     1611    +15     
- Partials     1017     1023     +6     
Files with missing lines Coverage Δ
dokimi/dokimi/artifacts.py 96.07% <ø> (ø)
dokimi/dokimi/cli_flags.py 100.00% <ø> (ø)
dokimi/dokimi/commands/arms.py 97.84% <100.00%> (+0.03%) ⬆️
dokimi/dokimi/commands/eval_graph.py 94.26% <100.00%> (ø)
dokimi/dokimi/commands/novelty_atoms_file.py 100.00% <ø> (ø)
dokimi/dokimi/commands/novelty_budget.py 97.03% <ø> (ø)
dokimi/dokimi/commands/novelty_routing.py 97.70% <100.00%> (ø)
dokimi/dokimi/commands/novelty_routing_report.py 99.43% <100.00%> (ø)
dokimi/dokimi/commands/novelty_run.py 97.53% <100.00%> (+0.09%) ⬆️
dokimi/dokimi/eval/arms_run.py 97.99% <100.00%> (+<0.01%) ⬆️
... and 20 more

... and 18 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@exai-bot

exai-bot commented Dec 3, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s).

CI at fae47ae: 27 passing, 4 skipped.

Test notes (1)
  • dokimi/dokimi/repos/sign_in.py:144: With raise _refuse(opts.profile.name, marker, credential_names(opts.profile), "inside the agent's container") return charged changed to raise _refuse(opts.profile.name, marker, credential_names(opts.profile), "inside the agent's container") return None, the tests still pass: dokimi/tests/test_atoms_partial_status.py, dokimi/tests/test_catalog_novelty_call_cap.py, dokimi/tests/test_novelty_routing_spend_cap_partial.py, dokimi/tests/test_sign_in_preflight.py, dokimi/tests/test_spend_call_cap.py. If this condition matters, a test should pin it.
Review details
  • Commit reviewed: fae47ae against merge base 02abac9
  • Coverage: 2 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 167k tokens (117k from cache), 28s
  • Tool calls: 20 (11 file_read, 7 code_search, 1 ci_log_search, 1 local_check_results)
  • small change set: 2 files

Comment thread dokimi/dokimi/commands/repo_run.py Resolved
Comment thread dokimi/dokimi/llm_cli.py Resolved
Comment thread dokimi/dokimi/novelty/cost.py Resolved
Comment thread dokimi/dokimi/repos/reach.py Resolved
Comment thread dokimi/dokimi/repos/sign_in.py Resolved
Comment thread dokimi/dokimi/repos/sign_in.py Resolved
Comment thread dokimi/dokimi/spend.py Resolved

@napetrov napetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change class: CONTRACT (head 0d236b7)

  • Contract: changed. errors dokimi/dokimi/commands/catalog_novelty.py:552; errors dokimi/dokimi/commands/catalog_novelty.py:553
  • Responsibility: candidate (count signal only, no file:line)
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

1 new must-fix finding. The fake harness shows that duplicate or fully completed batches start a sign-in call before plan validation and skip handling.

# Finding Severity Provenance Evidence
1 Sign-in spends a call before the batch knows any cell can run must-fix introduced Reproduced in an offline probe.

Checked the diff, input edges, and focused offline Linux tests (cache-recheck: 232 passed in 41.67s). Providers and the container harness were stubbed.

  • Still open. The call limit does not reserve retry attempts. Earlier thread
  • Still open. A full budget also blocks cache hits. Earlier thread

Comment thread dokimi/dokimi/commands/repo_run.py Resolved
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Mutation of changed lines

⚠️ Not a clean result: some breaks or tests were left out

At fae47ae: 29 caught · 0 missed · 11 inconclusive · 40 not tried in time

This is not a clean result:

  • 40 breaks were not tried before the time budget ran out
  • 318 more breaks of covered changed lines were over the limit and not tried
  • 169 candidate test files were not run
  • 59 changed lines were not mutated

Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary.

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes needed · reviewed 0d236b7

To fix: the new caps and the sign-in check can still spend money they do not count, or refuse a run that would work (the existing threads). The two small points in my line comments are optional. Also answer the @napetrov, @Copilot and @exai-bot threads below.

✅ make ci-local --offline: 34,168 passed · ⚠️ eval score ragas fault-contract test fails on the base too (a local langchain_openai import), not from this PR · ✅ the 4 new test files pass under random order

--max-calls and the sign-in refusal are the right tools for CLI logins, and the tests cover the main paths.

Agreed with @napetrov: the repo run preflight runs before plan validation and on a finished batch.

Agreed with @Copilot: --max-usd is not refused for the second role, retries are not counted, a full cap blocks cache hits, and 3 more.

Agreed with @exai-bot: the preflight has no profile config and uses the caller's cwd, cached sweeps can lose a skill, and 2 more.

Comment thread dokimi/dokimi/llm_cli.py Resolved
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
Fixes the review findings on the call cap and the sign-in preflight:
- a provider retry takes its own --max-calls slot, and a response-cache
  hit takes none, so it is answered at a full cap
- every role's provider is checked against --max-usd, not only the first
- catalog novelty rows and summary keep unpriced calls instead of $0.00
- repo run signs in only once the plan is valid and a cell is left to
  run, and the call is charged to the batch cap
- repo reach and skill-reach write the profile's config files and run the
  check in the run's workspace
- a timed-out auth status is unknown, not signed out
- arms run prints the sign-in refusal alone; arms matrix-run gets
  --no-preflight
- skill routing reports a call_cap stop as budget_stopped
- eval skill-coverage refuses a --max-calls below its two calls

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

This is ready for another look: I've pushed 2 commits on auth-preflight-and-call-cap (0d236b7..02abac9).

  • @napetrov, your thread and 3 of your comments are answered; could you re-review?
  • @vlad-perevezentsev, 2 of your threads and your comment are answered; could you re-review?

Changes:

  • A retried provider request now takes its own --max-calls slot.
  • A response-cache hit takes no call slot.
  • --max-usd is checked against every role's provider.
  • repo run signs in only when a cell is left to run, and counts the charge.

PR description updated:

  • Each provider request, a retry included, reserves its slot under the lock before it is sent, after the cache lookup, so calls in flight cannot overshoot; a cache hit sends no request and takes no slot;

Vlad-perevezentsev's comment:

  • Each thread is answered above; the skill routing status and the NotSignedInError message and --no-preflight points are fixed.

Napetrov's comment:

  • repo run now makes the sign-in call inside run_batch, after the plan is validated and only when a cell is left to run. A repeated --model is refused first and a finished batch makes no call. Tests: tests/test_sign_in_preflight.py::test_repo_run_refuses_a_repeated_model_before_the_sign_in_call and test_repo_run_checks_the_sign_in_once_and_only_when_a_cell_is_left_to_run.
  • Each provider request, a retry included, now takes a call slot. Test: tests/test_spend_call_cap.py::test_a_retried_request_takes_a_call_slot_of_its_own.
  • The cache lookup now comes before the slot, so a hit takes none and is answered at a full cap. Test: tests/test_spend_call_cap.py::test_a_cache_hit_is_answered_at_a_full_call_cap.

Threads:

  • I answered each one in its thread: 19 fixed.

Not caused by this PR:

  • Fails on main too: 1 test in tests/test_repo_compare_interval.py; float rounding gives delta lo -1.7e-07 instead of 0.0 on main too.

What I checked on the new commit:

  • 1 test removed or renamed.
  • All 12 new tests fail before the fix and pass after it.
  • The full test suite passes with main merged in (38,935 tests), apart from 1 failure main has too.
What each test shows
  • a retry takes its own call slot: fails before, passes after.
  • a cache hit is answered at a full call cap: fails before, passes after.
  • each role's provider is checked under --max-usd: fails before, passes after.
  • skill-coverage refuses a --max-calls below its two calls: fails before, passes after.
  • an unpriced sweep reports unpriced calls: fails before, passes after.
  • the preflight sees config files and runs in the workspace: fails before, passes after.
  • repo run signs in once, only when a cell is left: fails before, passes after.
  • a repeated model is refused before the sign-in call: fails before, passes after.
  • arms run prints the sign-in refusal alone: fails before, passes after.
  • a timed-out auth status is unknown: fails before, passes after.
  • arms matrix-run takes --no-preflight: fails before, passes after.
  • skill routing reports call_cap as budget_stopped: fails before, passes after.
  • Also changed, outside the PR's files: dokimi/dokimi/commands/novelty_routing.py, dokimi/dokimi/llm.py, dokimi/dokimi/novelty/sweep.py, dokimi/dokimi/repos/batch_ledger.py.
  • Removed or renamed tests: test_skill_coverage_max_calls_caps_a_cli_run.

Comment thread dokimi/dokimi/repos/sign_in.py Outdated
Comment on lines +133 to +134
if result.timed_out:
return 0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug · should fix
Impact: a paid preflight's reported charge can be omitted from _eval/spend.json, allowing later cells to start against understated batch spending.

Trigger: the harness writes a result with total_cost_usd: 0.04 and then hangs during shutdown until the container timeout.

Evidence: DockerRunner retains captured output on timeout, but this early return skips reading and converting it; run_batch therefore settles $0 even though the trace contains a price.

Workaround: use --no-preflight for affected harnesses. Parse the captured transcript before handling the timeout and return any reported cost while still treating authentication status as unknown; add a timed-out container regression test with a priced result.

Should fix: A run shows it; it was not judged to be met in ordinary use.

This proof replaces part of the code with stand-ins (monkeypatch): it shows the code path, not the real dependency or platform.

Shown by running: exit 1 (at the head) · exit 2 (at the merge base, which cannot run it) · exit 0 (at the head with the fix)

python -m pytest -q -p no:randomly -p no:cacheprovider tests/test_verify_preflight_timeout_charge.py

What the proof does: Calls the real container sign-in preflight with a stand-in container runner that writes a priced result before returning a timeout, and checks that the reported charge is retained.

The problem shows as the output timed-out preflight lost its reported charge.

Script: dokimi/tests/test_verify_preflight_timeout_charge.py (40 lines).

E       assert 0.0 == 0.04 ± 4.0e-08
E         
E         comparison failed
E         Obtained: 0.0
E         Expected: 0.04 ± 4.0e-08

tests/test_verify_preflight_timeout_charge.py:40: AssertionError
=========================== short test summary info ============================
FAILED tests/test_verify_preflight_timeout_charge.py::test_timeout_preserves_reported_preflight_charge
1 failed in 0.72s

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in fae47ae: the repo run preflight now reads its trace even after a timeout and counts the reported price, or its 0.05 budget when there is none, as a cell does; a test covers both cases with and without a timeout.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already fixed in fae47ae: the repo run preflight now reads the transcript before the timeout check at dokimi/dokimi/repos/sign_in.py:137-140 and counts the reported price, or the 0.05 budget when there is none. test_repo_run_counts_the_preflight_charge_or_its_budget in tests/test_sign_in_preflight.py covers a priced result with and without a timeout.

A preflight that timed out or reported no price was counted as $0 against --max-usd; it is now counted like a cell: its reported price, read even after a timeout, else its budget.

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 LGTM · re-checked fae47ae · nothing required from @vchamarthi

🔀 Merge: safe now · merges cleanly into current main, 5 commits behind; its tests pass on the merge · after it, #1582 (repo_reach.py, repo_run.py, repo_skill_reach.py, runner.py), #1581 and #1576 (skill_coverage.py), #1600 (novelty_routing.py) and #1559 (cli_flags_allowlist.txt) need a rebase

✅ make ci-local --offline: 35,124 passed · ⚠️ eval score ragas fault-contract test fails on the base too (a local langchain_openai import), not from this PR · ✅ the new preflight-charge test fails at 02abac9 · ✅ on the merge with main: 301 tests pass, CLI snapshot is current

The earlier points are fixed, each with a test that fails without its fix.

Fixed in this branch, up to fae47ae:

  • A repo run preflight with no reported price, or one that timed out, counted $0 in the batch spend: fae47ae reads the price even after a timeout, else counts its 0.05 budget, as a cell does.

@vchamarthi
vchamarthi merged commit 1bf62d3 into intel:main Dec 4, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli-interface-change Changes dokimi's user-facing CLI surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants