Repository navigation
feat(tier3): run hardened Docker trials under Kata Containers - #182
Merged
Merged
Conversation
Add --env-mode kata. SkillEvaluatorSecureKataEnvironment combines the hardened Docker backend with Harbor 0.24's KataEnvironment, whose only change is a final Compose overlay that runs every task service under a Kata runtime handler. The hardened runner already passes every Compose file to docker compose, so argv-safe exec, the NVIDIA Build stdin handoff, Compose model validation, containment, and the Docker runtime pin are kept. Harbor's Linux/KVM preflight and its rejection of non-public network policies stay in force. Kata follows Docker mode for NVIDIA Build bridges, gateway wrappers, host environment, Compose checks, and shared base images. Only kata_runtime and kata_dns are accepted: the runtime must name a Kata handler that Docker registers, and DNS servers must be IP literals. Podman stays unexposed: the hardened runner depends on Compose's up --wait gate and compose cp, which Harbor does not use under Podman. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
marked this pull request as ready for review
October 6, 2026 10:44
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
October 6, 2026 10:44
rng1995
commented
Oct 6, 2026
rng1995
left a comment
Collaborator
Author
There was a problem hiding this comment.
Thorough review of the Kata mode at bb2e668: 3 P2 and 3 P3 findings, no P1. The class composition is sound. Every hardened Docker method resolves to SkillEvaluator's classes, the Kata overlay is always the last Compose file, and kata follows Docker mode wherever SkillEvaluator special-cases the Docker engine. Inline comments follow; fixes will be pushed to this branch.
Address the #182 review: - Accept only IP literals made of hex digits, '.' and ':' in kata_dns. ipaddress accepts an IPv6 zone ID with arbitrary text, including newlines, which Harbor would write into every resolv.conf. - Require at least one kata_dns server; an empty value left Docker's embedded resolver, which a Kata VM cannot reach. - Reject tasks whose Compose model declares services other than main while staging. Kata replaces each service's resolv.conf, so sidecars became unreachable by name and both arms failed silently. - Correct the CHANGELOG backend count and mention kata wherever docs scope the one-key NVIDIA Build path to Docker and local mode. - Prove the hardened methods run under Kata by their defining class, and cover the default runtime, the report note, the shared base image and the NVIDIA Build wrappers for kata. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from
feat/christopherk/issue-79-harbor-upgrade
to
main
October 6, 2026 17:14
Resolve the docs conflicts from the v0.5.0 docs refresh. Keep main's full list of selectable env-modes, its not-selectable list and its reserved constructor options, and add this branch's backends to the selectable list and mode counts. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts: - src/skillevaluator/tier3/harbor/runner.py: main (#193) routes Docker agents through DOCKER_AGENT_IMPORT_PATHS so Codex and Claude Code skip the redundant distribution Node/npm bootstrap; the branch widened the Docker branch to HARBOR_DOCKER_ENGINE_ENV_MODES and picks the Kata environment for --env-mode kata. Kept the branch's docker+kata branch and Kata environment selection, and resolved the agent through main's wrapper lookup, so Kata (which runs the same hardened Docker backend and container installers) gets the same bootstrap behaviour. An explicit agent_import_path still wins. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Main now routes Docker-engine trials through DOCKER_AGENT_IMPORT_PATHS (#193), and the merge applies that lookup to --env-mode kata as well, so test_kata_runs_the_hardened_kata_backend expects the SkillEvaluatorCodex import path instead of the bare "codex" agent name. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The v0.5.0 merge left the Kata Added entry inside the released 0.5.0 section and rewrote 0.5.0's "Exposed 23 Harbor 0.24 backends" entry to 24. Kata did not ship in 0.5.0, so restore that entry to main's text and record the Kata addition and the 24th exposed backend under Unreleased. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
enabled auto-merge
October 16, 2026 05:05
rng1995
added a commit
to YMuskrat/SkillEvaluator
that referenced
this pull request
Oct 16, 2026
No conflicts; brings the branch up to date with main after NVIDIA#182. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
to mavericksea-ai/SkillEvaluator
that referenced
this pull request
Oct 16, 2026
No conflicts; brings the branch up to date with main after NVIDIA#182. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
8 of 9 tasks
rng1995
added a commit
that referenced
this pull request
Oct 16, 2026
Brings in #182 (Kata Containers backend), #190 (criterion-derived accuracy) and #201 (failed skill-read credit). Conflict: src/skillevaluator/tier3/harbor/runner.py. Main imports Iterable for the new _staged_task_environment_error() check and rejects staged with-skill tasks that the selected environment cannot run. This branch imports Sequence and collects every staged task path so the runtime context can be checked against the publication target. Resolution: import Iterable, Iterator, Mapping and Sequence, and keep both steps for each agent's with-skill tasks. The staged paths are collected first, then main's environment check runs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
8 tasks done
rng1995
added a commit
to kweinmeister/SkillEvaluator
that referenced
this pull request
Oct 16, 2026
Resolve conflicts with NVIDIA#182 (Kata): - runner.py: keep both collections.abc imports; Docker, Kata and GKE share one branch. Docker and Kata use the Docker agent wrappers and their secure environment, GKE keeps the container agent wrappers and the secure GKE environment. - docs/agents-and-sandboxes.mdx: keep both the GKE mode and Kata mode sections. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
that referenced
this pull request
Oct 16, 2026
Brings in main through 3d91107, including #182 (Kata), #188 (model defaults), #193 (Docker agent bootstrap), and #77 (publication evidence). Kata, Runta, and Mosaic are all exposed: 26 Harbor-native backends plus local, 27 modes in total. cua-cloud, opensandbox, hf-sandbox, podman, prime, and smol stay disabled. Conflicts: - src/skillevaluator/tier3_environments.py: the registry-only comment lists the six backends that remain unexposed. - src/skillevaluator/tier3/harbor/runner.py: took main's Sequence import and staged_task_paths.extend(task_paths) for the #77 runtime-binding check. The Mosaic staging check from this branch stays after it. - docs/cli-reference.mdx, docs/tier3-live-evaluation.mdx, docs/agents-and-sandboxes.mdx: 27 modes / 26 Harbor-native backends, with kata, runta, and mosaic listed. The disabled list is the six above. Kept main's Kata kwarg notes, and kept both main's Podman rationale and this branch's Prime/Smol rationale. - tests/test_harbor_environment_contract.py: kept main's Kata tests and this branch's Runta/Mosaic tests. - tests/test_harbor_local_mode.py: the unexposed-backend set is the six above. - tests/test_oss_packaging.py: 27 environments, 26 native, and matching doc counts. - CHANGELOG.md (auto-merged into the released 0.5.0 section): restored 0.5.0 to main's text. Moved the Runta/Mosaic entry to Unreleased/Added, and folded the backend count into main's Unreleased/Changed Kata entry (24th-26th backends, six still disabled). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
that referenced
this pull request
Oct 16, 2026
Main (#182) and this branch each added a module-level _staged_task_environment_error() to runner.py, in different places, so the merge auto-resolved them into two definitions. The later one handles only Mosaic and shadowed the earlier one, so Kata tasks with Compose sidecars were no longer rejected while staging (test_kata_rejects_compose_sidecars_before_harbor_starts failed). There is now one function. Mosaic rejects any Compose task, Kata rejects Compose sidecars, and other modes pass. eval-datasets.mdx now says docker-compose.yaml is unsupported with Mosaic as well as Kata. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
that referenced
this pull request
Oct 16, 2026
Main added two terminal failure paths to _run_harbor_eval_impl: the Kata staged-task environment rejection (#182) and the publication source changing while the evaluator snapshot is created (#77). Both already return coded results through the branch's existing handlers; these tests pin that they report SKILLEVALUATOR-UNKNOWN-001 and, for the post- reservation case, persist it in result.json. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
added a commit
that referenced
this pull request
Oct 19, 2026
Brings in #77 (publication evidence: required-tier rule, source digest and publication target identity, recognized Tier 1/2 producers, Tier 3 run ID, report-output isolation, runtime binding), #182 (Kata), #196 (target dependency audits, negative-case accuracy, resource usage), #190 (criterion-derived accuracy), #201 (failed skill reads earn no credit) and the third-party notice updates. Conflicts: - CHANGELOG.md: every entry from both sides under one Unreleased Added, Changed, Fixed and Security heading. The PR entry saying NEUTRAL never fails --block-on-agent-eval is dropped for main's PASS-only rule. - THIRD_PARTY_NOTICES.md: no generator exists, so merged by hand: the Base row lists Packaging (main) and regex (PR); both the OpenClaw fixture and the Unicode data notices are kept. - docs/ci-integration.mdx, cli-reference.mdx, tier1-validation.mdx, tier3-live-evaluation.mdx: both sides' rows and text. The blocking Tier 3 rule is main's (only a completed PASS with complete coverage passes); the PR's regression, partial-run and gated-skip wording stays. Kata and Hermes rows are both kept. The dependency audit text describes the merged audit below. - cli.py: the PR's target resolution and plugin dispatch, with main's publication_name, report-output isolation (on the resolved content root, plugins included), pre-Tier 1 autopilot generation, sanitized Tier 3 skip reasons, repo-context exclusions and expected_skill_name. - deduplication/utils/skill_collector.py: the PR's descriptor-anchored collector; generated files are matched with main's matches_filesystem_name, since main renamed the constant to BENCHMARK.md. - evaluation/tier3_report.py: the PR's dataset source and HTML helper, with main's persisted publication target, skill name and agent seconds. - reporting/base.py, cli.py, console_ui.py, json_reporter.py: main's publication assessment, skip-reason and display hardening, with the PR's plugin helpers and run-status rows. The PR's lift-basis line is limited to finite in-range scores. - reporting/html.py and templates/report.html.j2: the PR's run-status cards and rows with main's publication badge, cleanly-skipped filter and data-attribute handlers. A completed Tier 3 card can only become more conservative from main's evidence status. _results_to_dict takes an optional run status. - reporting/markdown.py: the PR's run-status headline and rows, with main's publication status line, Validators Run and advisory-skip rows, and main's inline, code-span and number hardening. - reporting/benchmark.py: the PR's run-status card and plugin card. The skill card's verdict and each Tier Status row are the more conservative of the run status and main's publication assessment (_publication_evidence_tier_status keeps main's row rules whole). Main's metadata lines (source digest, Tier 3 run ID, Tier 2 policy) and text hardening are kept. - tier1/commands.py: main's per-check producer stamps and target binding on the PR's plugin flow. Skill-scoped plugin checks scan skills/ but bind the plugin root. - tier2/commands.py, tier3/commands.py: imports and keyword arguments from both sides. - tier3/eval_core/atif_helpers.py, llm_judge.py, harbor/templates/eval.py: the PR's tool-call iteration and N/A judges, with main's is_error marking and skill-identification applicability on accuracy. - tier3/harbor/report_data.py: imports from both sides. - tier3/harbor/runner.py: main's Docker-engine env modes and repo-context exclusions in the PR's shared task inputs. Every arm's staged tasks are checked for publication-target binding. - validators/base.py, schema.py: main's filesystem-aware exclusions with the PR's plugin-tree pruning. - validators/dependencies.py: the PR's no-install engine for requirements, npm, container and MCP pins, with main's #196 rules. pyproject.toml follows main's static PEP 621 contract; anything it cannot audit is INCOMPLETE. pip-audit evidence is validated strictly and missing or failed evidence is INCOMPLETE in every run. Clean runs record success details and per-target dependency_coverage. - tests/reporting/test_advisory_skip_verdict.py: main's Markdown counts. - tests/reporting/test_reporters.py: both sides' new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
11 tasks done
chrisknvidia
pushed a commit
that referenced
this pull request
Oct 30, 2026
* feat(tier3): run hardened Docker trials under Kata Containers * fix(tier3): close Kata DNS and sidecar gaps * test(tier3): expect the Docker agent wrapper for Kata trials * docs(changelog): move the Kata entries under Unreleased Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia
pushed a commit
that referenced
this pull request
Oct 30, 2026
Main added two terminal failure paths to _run_harbor_eval_impl: the Kata staged-task environment rejection (#182) and the publication source changing while the evaluator snapshot is created (#77). Both already return coded results through the branch's existing handlers; these tests pin that they report SKILLEVALUATOR-UNKNOWN-001 and, for the post- reservation case, persist it in result.json. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia
pushed a commit
that referenced
this pull request
Oct 30, 2026
Brings in #77 (publication evidence: required-tier rule, source digest and publication target identity, recognized Tier 1/2 producers, Tier 3 run ID, report-output isolation, runtime binding), #182 (Kata), #196 (target dependency audits, negative-case accuracy, resource usage), #190 (criterion-derived accuracy), #201 (failed skill reads earn no credit) and the third-party notice updates. Conflicts: - CHANGELOG.md: every entry from both sides under one Unreleased Added, Changed, Fixed and Security heading. The PR entry saying NEUTRAL never fails --block-on-agent-eval is dropped for main's PASS-only rule. - THIRD_PARTY_NOTICES.md: no generator exists, so merged by hand: the Base row lists Packaging (main) and regex (PR); both the OpenClaw fixture and the Unicode data notices are kept. - docs/ci-integration.mdx, cli-reference.mdx, tier1-validation.mdx, tier3-live-evaluation.mdx: both sides' rows and text. The blocking Tier 3 rule is main's (only a completed PASS with complete coverage passes); the PR's regression, partial-run and gated-skip wording stays. Kata and Hermes rows are both kept. The dependency audit text describes the merged audit below. - cli.py: the PR's target resolution and plugin dispatch, with main's publication_name, report-output isolation (on the resolved content root, plugins included), pre-Tier 1 autopilot generation, sanitized Tier 3 skip reasons, repo-context exclusions and expected_skill_name. - deduplication/utils/skill_collector.py: the PR's descriptor-anchored collector; generated files are matched with main's matches_filesystem_name, since main renamed the constant to BENCHMARK.md. - evaluation/tier3_report.py: the PR's dataset source and HTML helper, with main's persisted publication target, skill name and agent seconds. - reporting/base.py, cli.py, console_ui.py, json_reporter.py: main's publication assessment, skip-reason and display hardening, with the PR's plugin helpers and run-status rows. The PR's lift-basis line is limited to finite in-range scores. - reporting/html.py and templates/report.html.j2: the PR's run-status cards and rows with main's publication badge, cleanly-skipped filter and data-attribute handlers. A completed Tier 3 card can only become more conservative from main's evidence status. _results_to_dict takes an optional run status. - reporting/markdown.py: the PR's run-status headline and rows, with main's publication status line, Validators Run and advisory-skip rows, and main's inline, code-span and number hardening. - reporting/benchmark.py: the PR's run-status card and plugin card. The skill card's verdict and each Tier Status row are the more conservative of the run status and main's publication assessment (_publication_evidence_tier_status keeps main's row rules whole). Main's metadata lines (source digest, Tier 3 run ID, Tier 2 policy) and text hardening are kept. - tier1/commands.py: main's per-check producer stamps and target binding on the PR's plugin flow. Skill-scoped plugin checks scan skills/ but bind the plugin root. - tier2/commands.py, tier3/commands.py: imports and keyword arguments from both sides. - tier3/eval_core/atif_helpers.py, llm_judge.py, harbor/templates/eval.py: the PR's tool-call iteration and N/A judges, with main's is_error marking and skill-identification applicability on accuracy. - tier3/harbor/report_data.py: imports from both sides. - tier3/harbor/runner.py: main's Docker-engine env modes and repo-context exclusions in the PR's shared task inputs. Every arm's staged tasks are checked for publication-target binding. - validators/base.py, schema.py: main's filesystem-aware exclusions with the PR's plugin-tree pruning. - validators/dependencies.py: the PR's no-install engine for requirements, npm, container and MCP pins, with main's #196 rules. pyproject.toml follows main's static PEP 621 contract; anything it cannot audit is INCOMPLETE. pip-audit evidence is validated strictly and missing or failed evidence is INCOMPLETE in every run. Clean runs record success details and per-target dependency_coverage. - tests/reporting/test_advisory_skip_verdict.py: main's Markdown counts. - tests/reporting/test_reporters.py: both sides' new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #83 (Harbor 0.24.0). The base is
feat/christopherk/issue-79-harbor-upgrade; retarget tomainafter #83 merges.Summary
This PR adds
--env-mode kata. Trials run through SkillEvaluator's hardened Docker Compose backend, and Harbor 0.24's Kata overlay runs every task service in a Kata Containers KVM microVM.flowchart LR SE["SkillEvaluator<br/>--env-mode kata"] --> H["harbor run<br/>--env SkillEvaluatorSecureKataEnvironment"] H --> HD["Hardened Docker runner<br/>argv-safe exec, stdin key handoff,<br/>Compose model checks, containment"] HD --> C["docker compose<br/>task files + Kata overlay last"] C --> VM1["main service<br/>runtime: kata-*"] C --> RES["resolv.conf<br/>validated kata_dns IPs"] VM1 --> KVM["KVM microVM<br/>agent and verifier"]Backend
SkillEvaluatorSecureKataEnvironmentcombinesSkillEvaluatorSecureDockerEnvironmentwith Harbor'sKataEnvironment. This needs no new runner code:runtime:on every service and binds a literalresolv.conf._docker_compose_pathsentry to Compose.stream=Falseandgpus=False./dev/kvmand registered-runtime preflight;windows=False;Rules
kata_runtimeandkata_dnsenvironment kwargs are accepted.keep_containersand the other runtime-policy kwargs stay reserved.kata_runtimemust name a handler containingkata, the same filter Harbor uses for registered handlers, and Docker must register the selected handler. Handlers such asruncwould silently drop the microVM boundary.kata_dnsmust list at least one IP literal. IPv6 zone IDs, whitespace and control characters are rejected, so nothing butnameserverlines reachesresolv.conf.mainare rejected while staging. Kata replaces each service'sresolv.conf, so sidecars cannot be resolved by name.Docs: a Kata mode section with Harbor's limits, the table row, mode counts of 25/24, the one-key NVIDIA Build path, and the eval-datasets sidecar row. The CHANGELOG is updated.
Podman is not included
Podman stays unexposed, with the reason documented. Under Podman, Harbor runs without Compose's
up --waitreadiness gate, because healthcheck state does not reach Compose through the Docker-compatible API. For some Compose frontends it also has nocompose cp.SkillEvaluator's hardened runner relies on both, and it invokes
dockerand filters containers by Docker Compose labels. Supporting Podman needs a runtime-aware hardened runner, validated on a Podman host.Review
All findings from the review on this PR are fixed in
488338f; each thread has a reply:kata_dnszone-ID injection;kata_dns;Verification
49129fa(Python 3.12): 11,294 passed with 20 skipped. The only failure was the known timing-sensitivetest_streamed_timeout_callback_matches_result_and_contains_descendants, which passes in isolation. The original commit passed 11,283 tests on both Python 3.12 and 3.13.stream,gpusandwindows, the Compose overlay order, and preflight ordering;kata_dnsvalues;git diff --checkare clean.Not exercised on a real Kata host. This machine is macOS without KVM. On it,
skillevaluator doctor --env-mode kata:kata_runtime=runcand non-IPkata_dnsvalues.A live run needs a Linux host with
/dev/kvm, Docker Compose v2 and a Kata runtime registered with Docker. On such a host, runskillevaluator doctor --env-mode kataand one generated-dataset Codex run with--env-mode kata. Also exercise interrupt containment there, because Kata stop and remove must tear down a VM within the hardened runner's short containment limits.All commits carry DCO sign-offs.
🤖 Generated with Claude Code