Skip to content

fix(runs): find an agent job's nop and oracle jobs whatever hyphens its agent name holds - #312

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/feasibility-hyphen-agent
Nov 23, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/feasibility-hyphen-agent

Conversation

@harenome

Copy link
Copy Markdown
Collaborator

Closes #274

What

feasibility.related found an agent job's controls by dropping only the last hyphen segment of its id. So run-x-claude-code looked for run-x-claude-nop. The job page then showed no Feasibility link, and the feasibility page said no control ran. The same happened to terminus-2, mini-swe-agent and a standard job whose word holds a version (run-x-codex-2.2.2).

  • Today's rule runs first, unchanged. A job that finds its controls today finds the same ones.
  • For each control still missing, related then looks under the job id with the job's own agent removed from its end. The agent name is the one in the job's config.json (agents[0].name, as parsed into Job.agent_name). If a version follows the agent name, it is removed too.
  • Nothing is renamed or stored. Existing jobs show their controls on the next read. The dataset check and the check that a match really is a control both stay.

feasibility.report and the job page's Feasibility link both call related, so they are fixed by the same change.

Touches

backend (nullius/runs/feasibility.py) · tests

Verified

  • The issue's test, on upstream/main (ca2eb76d) in a rootless podman python:3.12 container: 3 of the 4 agents fail.

    FAIL: ... (job='run-0000-terminal-bench-claude-code')
    AssertionError: Lists differ: [] != ['nop', 'oracle']
    FAIL: ... (job='run-0000-terminal-bench-terminus-2')
    AssertionError: Lists differ: [] != ['nop', 'oracle']
    FAIL: ... (job='run-0000-terminal-bench-mini-swe-agent')
    AssertionError: Lists differ: [] != ['nop', 'oracle']
    Ran 1 test in 0.014s
    FAILED (failures=3)
    
  • New app/tests/test_feasibility_hyphen_agent.py: the issue's test, plus these cases:

    • A standard job std-codex-2.2.2 finds std-nop and std-oracle.
    • A job whose recorded agent is not its suffix (x-mine, agent claude-code) still finds its controls by today's rule.
    • When today's rule finds a control, that control wins over one found by the agent rule.
    • A job with no agent suffix finds nothing new.

    Without the fix, the issue's test, the versioned case and the precedence case fail.

  • app/ui_tests/test_feasibility_routes.py: the job page of tb-x4-claude-code links to its feasibility report, and the report lists nop.

  • In a rootless podman python:3.12 container with Node:

    • python3 app/tests/parallel.py: 3212 tests in 169 modules. Everything passed except one module, test_osworld2_docker_create, whose test that the sweeper outlives a SIGTERM failed once. That module passed 3 times out of 3 on its own and does not touch this code.
    • python3 app/tests/parallel.py app/ui_tests: 717 tests in 61 modules, OK.

Risk

  • An agent job could now match controls under a shorter base where it matched none before. Example: x-claude-code matching x-nop. The match still needs the same dataset and a real control job.
  • A custom module:Class agent's job name holds the builder's id, not the class name. If that id has a hyphen, the job still finds no controls, as before.
  • Undone by a revert. Nothing on disk changes.

…ts agent name holds

feasibility.related dropped only the last hyphen segment of an agent
job's id, so run-x-claude-code looked for run-x-claude-nop. A control
still unfound is now looked for under the id with the job's recorded
agent removed from its end, with the version a standard job's word
adds (run-x-codex-2.2.2). Today's rule runs first, so every match it
makes is unchanged; nothing is renamed or stored.

Closes ThinkFlowLab#274
@harenome
harenome merged commit b1938e8 into ThinkFlowLab:main Nov 23, 2026
2 checks passed
@harenome
harenome deleted the fix/feasibility-hyphen-agent branch November 23, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feasibility: an agent job whose agent name has a hyphen does not find its nop and oracle jobs

1 participant