Skip to content

feat(eval): rebuild the measurement and control plane in Rust #6667

Open

Description

@Colafornia
English

Goal

Rebuild Maka's evaluation runner in Rust (products/eval, binary maka-eval) for rust-preview, replacing the legacy TypeScript packages/eval stack while delegating task environments and scoring to Harbor and benchmark-native verifiers.

Eval must measure the same Maka that users and external benchmarks (such as FrontierHarness) actually run: configured exclusively through public product interfaces using the released product's default prompts, tools, skills, and permission semantics. Infrastructure or runner faults must stay strictly separated from measured agent outcomes so neither inflates nor penalizes capability scores.

Deliverables

  1. Public headless product entry (maka): Headless State Root bootstrap (maka host init --settings-stdin) and single-task headless execution on the main maka CLI, allowing both maka-eval and third-party Harbor harnesses (e.g., FrontierHarness) to configure and run Maka directly without internal shims or private storage edits.
  2. Single-task and batch Harbor runner (maka-eval): Containerized single-task (run) and multi-task / multi-subject (batch) execution on Harbor that honors task-native budgets and declared user-facing settings (provider, model, thinking level, sandbox mode), isolates per-trial failures, safely resumes interrupted runs, and allows explicit recovery of infrastructure failures without resampling already-scored trials.
  3. Authoritative usage accounting and reports: Token usage, call counts, duration, and cost derived from Maka Host's committed usage ledger alongside native verifier rewards — populated into Harbor's standard trial result (AgentContext / agent_result) and exported as self-contained batch summaries (summary.json), paired comparison tables (CSV), and per-trial execution transcripts (transcript.json).

Non-goals

  • Retaining or porting legacy TS packages/eval shims, custom agent loops, or legacy internal file schemas.
  • Rewriting Harbor, benchmark datasets, or native verifiers in Rust.
  • Maintaining benchmark-specific Maka profiles, prompt/tool overrides, or silent approval bypasses.
  • Multi-host distributed fleet scheduling (tracked separately in #5284).
简体中文

目标

在 rust-preview 上用 Rust 重建评测执行器(products/eval,二进制 maka-eval),替代旧版 TypeScript packages/eval,同时继续由 Harbor 与基准测试原生 verifier 负责任务环境与判分。

Eval 测量的必须是普通用户和外部评测(如 FrontierHarness)实际运行的同一个发布版 Maka:仅通过公开产品接口配置,直接复用默认的提示词、工具集、内置 skills 与权限语义。基础设施或执行器故障必须与被测 Agent 的真实表现严格区分,既不把环境故障算成零分,也不对已有效判分的样本重复抽样。

最终交付物

  1. maka 本体公开无头入口:在 maka CLI 上提供公开的无头初始化(maka host init --settings-stdin)与单任务无头运行入口,使 maka-eval 与外部 Harbor 评测框架(如 FrontierHarness)都能直接调用发布版 maka 完成评测,无需私有垫片或直接读写内部存储。
  2. maka-eval 单题与批量执行器:对接 Harbor 容器执行单题(run)与多题/多被测配置矩阵(batch),遵循题目原生预算与显式声明的用户侧设置(服务商、模型、推理挡位、沙箱模式),支持单格失败隔离、中断续跑,以及在不重抽已判分样本的前提下显式补跑基础设施失败项。
  3. 权威用量对账与标准产出:直接基于 Maka Host 账本汇总 Token 明细、调用次数、耗时与成本,结合原生 verifier 判分,同时回填至 Harbor 标准结果上下文(AgentContext / agent_result)并输出自包含的批量汇总(summary.json)、配对对比表(CSV)与单题完整对话轨迹(transcript.json)。

非目标

  • 在生产路径中保留或平移旧版 TS packages/eval 垫片、自定义 Agent 循环或旧版内部落盘格式。
  • 用 Rust 重写 Harbor、基准测试数据集或原生验证器。
  • 维护评测专用的 Maka profile、提示词/工具裁剪,或静默绕过审批逻辑。
  • 多机分布式集群调度(仍在 #5284 独立跟踪)。

Activity

  1. self-assigned this
    on Nov 6, 2026
  2. Astro-Han commented on Nov 11, 2026

    @Astro-Han
    Contributor

    +1 on rebuilding Eval in Rust as scoped here, and on keeping Harbor/Pier and the native verifiers as the environment and scoring authority.

    One thing to pin down before M3: I'd suggest the frozen profile for the Maka subject be the product's default composition rather than a dedicated eval profile, so our numbers match what users and third-party evaluators (e.g. FrontierHarness) actually run.

    简体中文

    支持按本 issue 的范围用 Rust 重建 Eval,并继续由 Harbor/Pier 和原生 verifier 负责环境与评分。

    M3 之前有一点值得先定:建议 Maka subject 冻结的 profile 直接用产品默认配置,而不是专门的评测 profile,这样我们的数字和用户、第三方评测(如 FrontierHarness)实际跑的是同一个东西。

  3. Astro-Han commented on Nov 11, 2026

    @Astro-Han
    Contributor

    One more input for M3. Today a fresh Root can't get a model connection without the desktop UI: maka host init --settings-stdin only accepts proxy settings, and no CLI or env path creates a connection. The capability already exists in ConfigurationStore (the ACP provider fixture creates an openai-compatible connection, enables models with overrides, and sets the default target), it just isn't exposed. Extending the --settings-stdin payload with connections (secrets still via stdin) would give the subject adapter a public bootstrap path, and let third-party harnesses such as Harbor's generic ACP agent configure Maka without a hand-written adapter.

    简体中文

    再补充一点给 M3。目前新的 Root 不通过桌面界面就无法配置模型连接:maka host init --settings-stdin 只接受代理设置,CLI 和环境变量都没有创建连接的入口。这个能力其实已经在 ConfigurationStore 里(ACP 的 provider 测试 fixture 就用它创建 openai-compatible 连接、启用模型并设置覆盖参数、设默认模型),只是没有暴露。把连接配置加进 --settings-stdin 的 JSON(密钥照旧走 stdin),subject adapter 就有了公开的初始化路径,Harbor 通用 ACP agent 这类第三方也不必再手写适配器就能配置 Maka。

  4. M4n5ter commented on Nov 12, 2026

    @M4n5ter
    Member
    English

    I'd like to make product parity an explicit requirement of this rebuild: Eval should make Maka easier to evaluate, while measuring the same Maka that users normally run. A benchmark-specific agent with different prompts, tools, or execution policies would make the results unrepresentative of the product.

    The earlier suggestion to use the product's default composition matches this requirement. We should incorporate it into the issue body and acceptance gates, rather than leave it as an optional choice for M3.

    Concretely:

    • Use the released product's composition and execution path. System prompts, tool descriptions and schemas, tool discovery, Code Mode, built-in skills, context compaction, continuation, and permission/approval behavior must come from the same product implementation and configuration sources. Eval must not maintain its own copy of these.
    • Keep the adapter limited to evaluation plumbing. It may prepare environments, submit benchmark tasks, observe execution, collect evidence, and invoke native verifiers. It must not inject benchmark-specific instructions, prune or replace tools, add planning or recovery logic, or send extra hints to improve a result. Maka's own normal execution behavior remains responsible for solving the task.
    • Configure Maka through public product interfaces. Model, reasoning, permissions, and other settings must be available to ordinary users and declared in the run. Unattended execution must not silently bypass approvals or change interaction semantics. Any capability improvements needed for evaluation must also ship in the normal product.
    • Verify parity as an acceptance gate. Under the same declared version, configuration, workspace, and task input, the normal client and Eval entry point must produce equivalent effective instructions, tool exposure, and execution policies. Fingerprints document the conditions; freezing a dedicated eval profile does not establish product parity.

    Isolated Roots, containers, and headless operation are fine, provided they preserve those semantics. Environment limitations must be reported explicitly rather than hidden behind substitute tools or a special profile.

    Please make this a prerequisite for M3 acceptance and M5 production delivery. The published result should describe the Maka users can actually run.

    简体中文

    我希望把产品一致性明确列为这次重建的硬性要求:Eval 应该让 Maka 更方便被评测,同时测的仍然是用户平时使用的那个 Maka。 如果为 benchmark 单独换了提示词、工具集或执行策略,成绩就不能代表实际产品。

    前面评论提出直接使用产品默认 composition,符合这个要求。应该把它写进 issue 正文和验收条件,而不是留作 M3 的可选方案。

    具体来说:

    • 复用正常发布产品的 composition 和执行路径。 系统提示词、工具描述与 schema、工具发现、Code Mode、内置 skills、上下文压缩、续执行,以及权限和审批行为,都必须使用产品相同的实现与配置来源。Eval 不应另外维护一份。
    • 适配层只负责评测接入。 可以准备环境、提交 benchmark 任务、观察执行、收集证据和调用原生 verifier;不能注入评测专用指令、裁剪或替换工具、添加规划或失败恢复逻辑,也不能额外发送提示来提高成绩。解题由 Maka 自身正常的执行机制负责。
    • 通过公开产品接口配置 Maka。 模型、推理等级、权限等设置必须是普通用户也能使用的配置,并在本次运行中明确声明。不能为了无人值守就静默绕过审批或改变交互语义。评测所需的任何能力改进,也必须同时进入正常产品。
    • 把一致性验证列为验收门槛。 在相同的声明版本、配置、工作区和任务输入下,正常客户端与 Eval 入口实际生效的指令、工具暴露和执行策略必须等价。指纹用于记录实验条件;冻结一套评测专用 profile,并不能证明它与产品一致。

    独立 Root、容器和无界面运行都可以,前提是保留上述语义。环境存在能力限制时,应明确报告,不能用替代工具或特殊 profile 把差异藏起来。

    请将这一要求作为 M3 验收与 M5 生产交付的前置条件。最终发布的成绩,应该代表用户实际能运行的 Maka。

  5. Colafornia commented on Nov 14, 2026

    @Colafornia
    MemberAuthor
    English

    Thanks @Astro-Han and @M4n5ter — agreed on product parity. We also trimmed the issue description above to drop speculative legacy-projection and control-plane machinery so every piece lands against live Harbor runs and public maka interfaces.

    Merged on rust-preview

    Remaining

    1. Batch runner & reporting (feat(eval): add resumable batch runner and verifier-env forwarding #6977) — resumable maka-eval batch matrix execution, task-native budget and user-setting passthrough, Harbor AgentContext population, and batch summary / paired CSV outputs.
    2. Public headless maka CLI entry & container validation — expose single-task headless execution directly on maka so external Harbor suites (e.g., FrontierHarness) and maka-eval share one product entry point, then validate across a representative set of real Harbor tasks.
    简体中文

    谢谢 @Astro-Han 和 @M4n5ter,完全认同产品一致性的要求。我们也同步精简了上面的主贴范围,砍掉了预设的旧版兼容投影和过度控制面设计,确保每一块都基于真实 Harbor 容器运行和公开的 maka 产品接口落地。

    已合入 rust-preview

    剩余工作

    1. 批量执行与报告产出(feat(eval): add resumable batch runner and verifier-env forwarding #6977):支持断点续跑的 maka-eval batch 矩阵执行、题目原生预算与用户侧配置透传、回填 Harbor AgentContext,以及汇总报告与配对 CSV 导出。
    2. maka 公开无头执行入口与真题验收:在 maka CLI 本体补齐公开的单任务无头执行入口,使外部 Harbor 套件(如 FrontierHarness)与 maka-eval 共用同一条产品命令链路,并在代表性真实容器任务集上完成验收。
  6. 12 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions