Repository navigation
feat(eval): add native Host Harbor evaluation runner - #6938
Merged
M4n5ter merged 9 commits intoNov 16, 2026
Merged
Conversation
- Add products/eval (maka-eval) with host-side 'run' (Harbor trial orchestrator) and container-side 'guest-run' driving native 'maka host init --settings-stdin' and 'maka host serve --root' directly over HostClient and maka-app-client without ACP or an HTTP metering proxy. - Bootstrap sandbox defaults and Harbor workspace roots via apache#6909 (chatDefaults.sandboxMode and projectDirectoryRoots), defaulting containerized Harbor runs to danger-full-access. - Separate GuestRunStatus (completed / subjectStopped / infraFailed) from Verifier scoring so model-side stops reach grading, and validate settled Host usage (usageSummary pending.models == 0 plus cursor-paginated usage attempts sharing the same through fence) alongside paginated transcript.json export in validate_trial_evidence. - Add Harbor BaseAgent bridge (products/eval/harbor/maka_host_agent.py) and bilingual READMEs. Refs apache#6667. Generated-by: Google Antigravity
Colafornia
marked this pull request as draft
November 16, 2026 00:19
…giene - Remove libc dependency/unsafe SIGTERM in favor of native HostClient::retire_with_options, drop duplicate RunArgs struct, drop stderr ring buffer (use Stdio::inherit()), drop composer draft workaround (use direct Client::mutation agent.send), drop 200ms execution polling race, and simplify internal cross-layer checks. - Remove hardcoded PATH override in maka_host_agent.py so benchmark toolchains in task container images stay intact; write transcript.json and guest-result.json directly to Harbor's /logs/agent/maka mount. - Immediately delete the request file in run_from_files before execution, isolate temp State Root under 0700 and clean it up on exit, align Harbor agent timeout (override_timeout_sec = timeout_ms / 1000 + 30s), reconcile stepsObserved from exported history/attempts, and reject all-missing token usage in validate_trial_evidence. Refs apache#6667. Generated-by: Google Antigravity
…en usage - Transfer uploaded guest request file ownership to the live execution UID:GID as root while keeping 0600 permissions, handle missing or root (/etc/passwd pw_dir=/) home directories safely, and clean up stranded request files on failure in maka_host_agent.py. - Settle pending.tools alongside pending.models in guest.rs, require pending.models == 0 and pending.tools == 0, non-zero model calls on Completed runs, and input.missing == 0 and output.missing == 0 in validate_trial_evidence so partial usage gaps fail verification. Refs apache#6667. Generated-by: Google Antigravity
- Reshape GuestRunResult into a 3-variant tagged enum (Completed / SubjectStopped / InfraFailed) wrapping GuestEvidence, removing flat Option duplication, session_err cloning, and unused container transcriptFile field while still preserving evidence if Host shutdown fails after run_session succeeds. - Decouple export_history from step_ids backfill (leaving step reconciliation to query_all_usage_attempts + observe_run), return Result<Value, String> directly from query_settled_usage_summary, and omit redundant backend from agent.send so it uses create's persisted session backend. Refs apache#6667. Generated-by: Google Antigravity
Generated-by: Google Antigravity
Generated-by: Google Antigravity
Generated-by: Google Antigravity
Generated-by: Google Antigravity
Colafornia
marked this pull request as ready for review
November 16, 2026 05:46
8 of 12 tasks
…t live Host - Embed maka_host_agent.py via include_str! and materialize it under --out instead of resolving compile-time CARGO_MANIFEST_DIR at runtime. - Query settings.usageSummary and settings.usage across the whole isolated State Root (sessionId: null) so delegated subagent calls are accounted. - Validate complete token counts on successful model attempts while accepting SubjectStopped in-flight stream interruptions and recovered provider retries; always emit run-summary.json before validation. - Fix Host startup readiness busy-spin, avoid inflating stepsObserved with the aborted over-budget step, register maka-eval in CI taskHelperConsumers, and replace synthetic struct unit tests with real Host + CLI integration tests. Refs apache#6667. Generated-by: Google Antigravity
This was referenced Nov 24, 2026
Merged
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.
English
Summary
Adds
maka-eval(products/eval) to run a Harbor Docker benchmark trial against the released native Rust Host and verify task scoring, conversation history export, and settled token/cost accounting end to end—without ACP shims or an external HTTP metering proxy.Within #6667, this PR establishes the single-trial container execution and native Host metering foundation. Multi-cell experiment specifications and pricing (#6849), append-only attempt storage and crash recovery, a host-side credential-isolating metering gateway, multi-trial scheduling, and cohort parity gates will land in separate PRs.
Refs #6667
Design & Boundaries
PATH, hands off the request payload as0600owned by the container's runtimeUID:GIDand unlinks it immediately on read, and emits a compactrun-summary.jsoncontaining top-level conclusions alongside paths toguest-result.json(which retains per-call usage),transcript.json, and Harbor'sresult.json.Verification
rustfmt,clippy(--all-targets -D warnings),maka-evalunit tests (5/5),maka-settings-nativelibrary tests, CI routing tests (18/18), and Apache license/notice checks passed locally.aarch64Harbor Docker container probes under a non-root user (UID 65534) verified:reward = 1.0) and leaves zero leaked containers after teardown;--max-steps 1) retires the Host and removes temporary state before Verifier runs;1of2model calls missing usage) fails CLI validation even whenreward = 1.0.deepseek/deepseek-chat(local/smoke-acp) verified real model execution, token/USD accounting, and Verifier scoring (reward = 1.0). Live external API smoke andgpgsource-release signing were not re-run on the final commit.AI use
Tool(s) and scope: Google Antigravity implemented
products/eval, unit tests, bilingual READMEs, and container verification probes.Checklist
Does this PR entail a change in behavior?
简体中文
概述
新增
maka-eval(products/eval),用于在 Harbor Docker 容器内直接驱动原生 Rust Host 完成单题评测,并端到端校验 Verifier 判分、会话历史导出与原生 token/成本账本结算,无需经过 ACP 垫片或外置 HTTP 计量代理。在 #6667 的整体规划中,本 PR 负责打通“单题容器执行 + 原生 Host 计量对账”基础闭环。多单元实验规格与定价(#6849)、只追加尝试存储与崩溃恢复、宿主机侧凭据隔离计量网关、多题并发调度以及产品一致性对照门禁将在后续独立 PR 中交付。
Refs #6667
设计与边界
PATH;请求文件以0600权限交给容器实际运行UID:GID并在读取后立即删除;顶层run-summary.json仅输出汇总结论及三份原始产物的路径索引(逐次调用明细保留在guest-result.json,对话历史在transcript.json,原始判分在 Harborresult.json)。验证
rustfmt、clippy(--all-targets -D warnings)、maka-eval单元测试(5/5)、maka-settings-native库测试、CI 路由测试(18/18)以及 Apache License/Notice 检查。UID 65534)下完成 Linuxaarch64Harbor Docker 真实容器探针验证:reward = 1.0),Harbor 收尾后无残留容器;--max-steps 1)时,在 Verifier 运行前已完成 Host 退役与临时目录清理;reward = 1.0也会被 CLI 拒绝。local/smoke-acp上通过deepseek/deepseek-chat真实模型容器闭环验证(reward = 1.0);最终提交未重跑外网 API 烟雾测试与依赖gpg的源码发布签名检查。AI 使用
工具与范围:Google Antigravity 完成了
products/eval实现、单元测试、双语说明文档与容器验收探针。审查清单
本 PR 是否带来行为变更?