Repository navigation
fix(runs): find an agent job's nop and oracle jobs whatever hyphens its agent name holds - #312
Merged
harenome merged 1 commit intoNov 23, 2026
Conversation
…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
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.
Closes #274
What
feasibility.relatedfound an agent job's controls by dropping only the last hyphen segment of its id. Sorun-x-claude-codelooked forrun-x-claude-nop. The job page then showed no Feasibility link, and the feasibility page said no control ran. The same happened toterminus-2,mini-swe-agentand a standard job whose word holds a version (run-x-codex-2.2.2).relatedthen looks under the job id with the job's own agent removed from its end. The agent name is the one in the job'sconfig.json(agents[0].name, as parsed intoJob.agent_name). If a version follows the agent name, it is removed too.feasibility.reportand the job page's Feasibility link both callrelated, so they are fixed by the same change.Touches
backend (
nullius/runs/feasibility.py) · testsVerified
The issue's test, on upstream/main (
ca2eb76d) in a rootless podmanpython:3.12container: 3 of the 4 agents fail.New
app/tests/test_feasibility_hyphen_agent.py: the issue's test, plus these cases:std-codex-2.2.2findsstd-nopandstd-oracle.x-mine, agentclaude-code) still finds its controls by today's rule.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 oftb-x4-claude-codelinks to its feasibility report, and the report lists nop.In a rootless podman
python:3.12container 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
x-claude-codematchingx-nop. The match still needs the same dataset and a real control job.module:Classagent'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.