Skip to content

refactor(eval): make framework selection single-source #3036

Closed

Description

@Astro-Han

Problem

The Eval harness currently selects Harbor or Pier twice:

  1. The validated framework is passed to run_trial.py through argv.
  2. The same value is injected as MAKA_EVAL_FRAMEWORK, which relay_agent.py reads 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.ts no longer injects or reserves MAKA_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.ts
  • packages/eval/harbor/run_trial.py
  • packages/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

  1. added
    enhancement
    help wanted
    on Aug 15, 2026
  2. 1625567290 commented on Aug 15, 2026

    @1625567290
    Contributor

    I'm working on this. I'll make the validated run_trial.py framework argument the single authority, install that selection before Harbor/Pier or the relay import, and stop injecting or reserving MAKA_EVAL_FRAMEWORK from TypeScript.

    Grok is assisting with the implementation; I will review the change and remain the human contributor of record.

    简体中文对照

    我来处理。让校验过的 run_trial.py framework 参数成为唯一权威,在导入 Harbor/Pier 或 relay 之前装上这个选择,并停止 TypeScript 注入或保留 MAKA_EVAL_FRAMEWORK。

    Grok 协助实现;我会审阅改动,并作为 human contributor of record。

  3. added a commit that references this issue on Aug 16, 2026
    d6bef01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions