Repository navigation
Evaluate release contracts and paired AX scans for delivered products - #1186
Conversation
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>
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>
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): + added command `dokimi delivery`
+ option `--help/-h`
+ added command `dokimi delivery release`
+ option `--help/-h`
+ option `--json`
+ option `--manifest`
+ option `--out`
+ option `--policy`
+ option `--tasks`
+ added command `dokimi delivery report`
+ argument `result`
+ option `--help/-h`
+ option `--json`
+ added command `dokimi delivery scan`
+ option `--corpus`
+ option `--fixture`
+ option `--help/-h`
+ option `--json`
+ option `--manifest`
+ option `--model`
+ option `--out`
+ option `--provider`
+ option `--tasks`
~ `dokimi runs list` parameters changed:
~ changed option `--kind`: choices: ["'answers'", "'arms'", "'baseline_manifest'", "'catalog_eval'", "'checklist'", "'cli_routes'", "'cross_judge'", "'dashboard'", "'docling_sources'", "'docs_run'", "'dokimi_config'", "'effective_instructions'", "'eval'", "'eval_coverage'", "'explore_runs'", "'grounding'", "'guidance_reach'", "'headroom'", "'judge_validity'", "'judge_wording'", "'leak'", "'matrix_rollup'", "'need_graph'", "'novelty'", "'novelty_atoms'", "'novelty_retest'", "'opportunities'", "'pairwise'", "'persona_analysis'", "'personas'", "'plan'", "'plugin_delta'", "'question_panel'", "'question_quality'", "'questions'", "'ragas'", "'reach_matrix'", "'redteam'", "'repo_budget'", "'repo_environment'", "'repo_hits_judged'", "'repo_ledger'", "'repo_readiness'", "'report_qa'", "'report_summary'", "'result'", "'run'", "'run_context'", "'security_report'", "'skill_coverage'", "'skill_discovery'", "'skill_evidence'", "'subject_scorecard'", "'task_inspect'", "'task_runs'", "'tool_preference'"] -> ["'answers'", "'arms'", "'baseline_manifest'", "'catalog_eval'", "'checklist'", "'cli_routes'", "'cross_judge'", "'dashboard'", "'delivery'", "'docling_sources'", "'docs_run'", "'dokimi_config'", "'effective_instructions'", "'eval'", "'eval_coverage'", "'explore_runs'", "'grounding'", "'guidance_reach'", "'headroom'", "'judge_validity'", "'judge_wording'", "'leak'", "'matrix_rollup'", "'need_graph'", "'novelty'", "'novelty_atoms'", "'novelty_retest'", "'opportunities'", "'pairwise'", "'persona_analysis'", "'personas'", "'plan'", "'plugin_delta'", "'question_panel'", "'question_quality'", "'questions'", "'ragas'", "'reach_matrix'", "'redteam'", "'repo_budget'", "'repo_environment'", "'repo_hits_judged'", "'repo_ledger'", "'repo_readiness'", "'report_qa'", "'report_summary'", "'result'", "'run'", "'run_context'", "'security_report'", "'skill_coverage'", "'skill_discovery'", "'skill_evidence'", "'subject_scorecard'", "'task_inspect'", "'task_runs'", "'tool_preference'"]Updated on every push; the |
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
OpenCodeReview: Commit 81d2956 was not reviewed. This PR has reached its review limit (6 reviews). CI at `81d2956`: 7 still running, 14 passing, 3 skipped
To review this commit: re-request review from exai-bot in the Reviewers list. Last review (1caefb5): 2 mediumOpen threads from the bot: 1 |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1186 +/- ##
==========================================
- Coverage 96.21% 96.21% -0.01%
==========================================
Files 503 507 +4
Lines 67250 67653 +403
Branches 11678 11750 +72
==========================================
+ Hits 64707 65091 +384
- Misses 1568 1577 +9
- Partials 975 985 +10
🚀 New features to boost your workflow:
|
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟡 Changes needed · reviewed 0ad699b
To fix: a pinned image with a non-root user makes a good RC fail the release (line comments); the smaller gaps there are optional.
✅ make ci-local --offline: 28,270 passed · ✅ the docs demo with real Docker (python:3.12-slim): release PASS, scan A 10.00 / B 0.00 · ✅ test_real_delivery with DOKIMI_DELIVERY_IMAGE set: passed
The release/scan split, the pinned identities and the paired evidence links are clear and work as documented.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> # Conflicts: # dokimi/docs/reference/cli-interface.json
Thread: PRRT_kwDOVBg7g8673Hac.a Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673Hal Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673Har Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673Hau Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673Ha3 Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673Ha6 Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673HbD Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673HbJ Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673HbN Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673HbQ Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g868GV13 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>
Thread: PRRT_kwDOVBg7g868HHjT Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
vchamarthi
left a comment
There was a problem hiding this comment.
@napetrov, could you fix the 2 problems I found and the small thing I've marked fix before merge (in the line comments) and answer my 2 questions below? Then push and I'll take another look.
My questions before I approve:
- A failed install (exit 120) reaches the verifier as
consumer_exit=120, and the sample verifier returns 10, so the release shows FAIL for that check. Decide which it is, say it in the sentence on install commands indokimi/docs/delivery.md, and check it in a test. - A manifest whose
imageis not a sha256 image ID, such aspython:3.12-slim, gives a missing measurement on every row with the reasonValueError: runtime image needs its immutable local image ID, and a scan exits 3. Say indokimi/docs/delivery.mdwhich malformed manifest fields are input errors and which are missing measurements.
Optional, non-blocking (1)
dokimi/dokimi/gate/delivery.py:61: Two group weights of1e308sum to infinity, so every group weighs zero and an all-pass arm scores0.0, not10.0.
What I checked on 1caefb5:
- When I broke the changed code on purpose, the tests missed 2 of 12 breakages.
- The 303 changed tests pass, and fail on main as expected.
- The full test suite passes with main merged in (35,538 tests), apart from failures main has too.
- It merges cleanly onto main.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g868OxIG Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g868OxIO Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g868OxIZ Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRR_kwDOVBg7g88AAAABab4B8A.a Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRR_kwDOVBg7g88AAAABab4B8A.b Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRR_kwDOVBg7g88AAAABab4B8A.c Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRR_kwDOVBg7g88AAAABab4B8A.a Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
A product killed by SIGKILL or the 1 GiB limit, or an answer that exits 125, was read as a Docker failure and became INCONCLUSIVE. The consumer now runs in a subshell that prints a per-run marker after it finishes; 125/137 count as runner failures only without it. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
…ails A timeout, truncated capture or runner failure left evidence null, so a stored row lost the paid model answer and could not tell a hanging answer from a runner fault. The row now keeps the script, captured streams and a failure kind; it stays INCONCLUSIVE. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
No test reached the release identity check: making it always false left every delivery test green. One offline case per profile field asserts INCONCLUSIVE with the mismatch reason; a control passes. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
|
| ("report", "Read a saved delivery result"), | ||
| ]: | ||
| parser = leaves.add_parser(mode, help=help_text) | ||
| parser.set_defaults(func=command, cli_kind=f"delivery {mode}", emits_cli_output=True) |
There was a problem hiding this comment.
CI check Tests (py3.14) fails: Registering --json for delivery release, scan and report adds three leaves that are absent from both next-step inventory sets. Classify all three in the appropriate inventory; the command currently supplies no next_steps, but the inventory definitions reported by CI are not present in the tool-visible test file, preventing an exact verified edit.
Evidence: Log lines 885–894: inventory equality fails with extra ('delivery', 'scan'), ('delivery', 'report'), ('delivery', 'release'); 1 failed, 30313 passed.
Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
The delivery envelope passes no next step for release, scan or report. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
…th the verifier A start marker before the consumer subshell separates a consumer that ran out of time from a hung install. The verifier gets consumer_exit=124 and the captured head and tail; an install that never reached the consumer stays inconclusive. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
|
Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
xaleryb
left a comment
There was a problem hiding this comment.
Approved on b6a4a0d. delivery release/scan/report grade a delivered product against its contract; we merged main, classified the three JSON leaves, and our commits grade a consumer that exits 125/137, times out after it started or overflows stdout through the verifier (a hung install stays inconclusive) and keep the answer when its container fails. Full suite, gates and a real Docker run are green. Windows smoke had not started (the hosted Windows queue was stuck); every other check passed.
xaleryb
left a comment
There was a problem hiding this comment.
Approved on 81d2956. delivery release/scan/report grade a delivered product against its contract; we merged main, classified the three JSON leaves, and our commits grade a consumer that exits 125/137, times out after it started or overflows stdout through the verifier (a hung install stays inconclusive) and keep the answer when its container fails. Full suite, gates and a real Docker run are green. Windows smoke had not started (the hosted Windows queue was stuck); every other check passed.
Summary
Product teams supply the delivery manifest, task catalog and release policy by path. The required job uses deterministic checks in fresh containers. The separate AX replay records source delivery, attempts, false success claims and missing measurements.
Evidence
The good shipcalc package passes both required checks. Breaking its mandatory operation produces FAIL. Removing runner access produces INCONCLUSIVE. The fixture agent can claim success with the wrong backend and the verifier rejects its output.
dokimi/docs/delivery.mdincludes commands, example results and separate CI jobs. The demo uses a real installed executable and deterministic fixture responses.A separate consumer used the published Ubuntu
dc1.07.1-3ubuntu4 package. Exact integer arithmetic passed, a controlled binary mutation truncating stdout failed (exit 1), and an unavailable Docker socket produced INCONCLUSIVE (exit 3).A live one-turn Bedrock replay (
claude-sonnet-5-5) completed four attempts on that package. The packaged guide alone yielded 1/2 successes and the additional Debian man page yielded 0/2. Three model replies failed the executable-answer protocol. Source reads were unobserved and attribution remains unknown.The v2 one-turn harness accepts Markdown-wrapped JSON and reports protocol errors offline. On the same GNU
dcpack, a fresh live Bedrock run passed 2/2 attempts in each arm. The responses were newly sampled, so the run does not identify the cause of the v1 failures.All 33 delivery tests passed with a pinned non-root Docker image. The review regressions cover workspace setup, consumer exit status, Docker context, CPU and memory limits, empty corpora, truncated replies, interruption cleanup, exact starter bytes, installer output separation, malformed catalogs and offline rendering of partial artifacts.
Merge Danger
Door: Two-way for the CLI. Persisted
delivery.v1artifacts create a reader compatibility obligation.Blast Radius: Evaluation. Adds a delivery artifact to run discovery and new CLI subcommands.