Repository navigation
Closed
Labels
Description
Problem
The Eval harness currently selects Harbor or Pier twice:
- The validated framework is passed to
run_trial.pythrough argv. - The same value is injected as
MAKA_EVAL_FRAMEWORK, whichrelay_agent.pyreads to select its base class.
These values originate from the same TypeScript call but travel through separate contracts. A mismatch would let the trial runner load one framework while the relay imports the other framework's BaseAgent.
The environment variable is also treated as a reserved public preparation value even though framework selection is already encoded in the validated command.
Proposed change
Make the validated run_trial.py framework argument the single authority:
- validate the framework argument before importing framework modules;
- provide the validated selection internally before the relay module is imported;
- remove TypeScript-side injection and reservation of
MAKA_EVAL_FRAMEWORK; - retain one shared Harbor/Pier executor and relay.
Acceptance criteria
- Framework selection has one authoritative input.
- The trial runner and relay cannot select different frameworks.
-
harness-executor.tsno longer injects or reservesMAKA_EVAL_FRAMEWORK. - Invalid framework values fail before trial or relay execution.
- Harbor and Pier relay tests cover the resulting contract.
- Focused Eval tests, type checking, and formatting pass.
Non-goals
- Adding another evaluation framework.
- Creating framework-specific execution workflows.
- Changing pinned framework versions.
- Changing Eval result or artifact semantics.
- Replacing the shared Harbor/Pier relay.
Context
Verified on main at 1a71db5c0fa85771330354360388ecf47ba95c2e.
Relevant code:
packages/eval/src/harness-executor.tspackages/eval/harbor/run_trial.pypackages/eval/harbor/relay_agent.py
This issue was identified and prepared with AI assistance (Codex). A human contributor reviewed the analysis and owns the submission.
Activity
1625567290 commentedon Aug 15, 2026
I'm working on this. I'll make the validated
run_trial.pyframework argument the single authority, install that selection before Harbor/Pier or the relay import, and stop injecting or reservingMAKA_EVAL_FRAMEWORKfrom TypeScript.Grok is assisting with the implementation; I will review the change and remain the human contributor of record.
简体中文对照
我来处理。让校验过的
run_trial.pyframework 参数成为唯一权威,在导入 Harbor/Pier 或 relay 之前装上这个选择,并停止 TypeScript 注入或保留MAKA_EVAL_FRAMEWORK。Grok 协助实现;我会审阅改动,并作为 human contributor of record。
refactor(eval): make framework selection single-source (#3066)