Repository navigation
feat(judge-panel): WORKDIR and batches spec hooks; safer cursor lookup - #149
Merged
Merged
Conversation
Callers had to monkeypatch panel internals (run_cmd, batches, _cursor_cmd) to run judges in a scrubbed blind folder or group items by pose. A spec can now set: - WORKDIR: the working directory for the claude, codex and agy calls. - batches(items, n): its own grouping instead of chunks of n. _cursor_cmd now considers only versions with node.exe and index.js, picks the newest numerically instead of by string order, and explains a missing install instead of raising KeyError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YCSfgsSXqzhvxi16Cv72LS
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.
Summary
synth-photo-lab's
edit-round-eval/scripts/run_judges.pymonkeypatches threepanel.pyinternals:run_cmd,batchesand_cursor_cmd. It needs that to run the judges inside a scrubbed blind folder and to batch items by pose. A change to the harness would break it without warning. This PR gives specs supported hooks instead:WORKDIR(optional spec attribute): the working directory for the claude, codex and agy calls. Cursor keeps using the images' folder, as before.batches(items, n)(optional spec function): the spec's own grouping instead of consecutive chunks ofn._cursor_cmd:node.exeandindex.js;2025.10.x>2025.9.x) instead of by string order;KeyError: 'LOCALAPPDATA'.Without the new hooks, behaviour is unchanged. The docstring and SKILL.md list both hooks. The
.cursorand.agentsmirrors are regenerated.Verification
tests/test_judge_panel.py(new):WORKDIRfor claude, codex and agy; inherited working directory without it; spec batching; numeric cursor version choice; missing-install message. 7 passed.sync_assistant_trees --check, inventory--check, OKF lint, frontmatter, portability, secrets, eval fixtures, andpytest tests.Follow-up
Once installed copies are updated, synth-photo-lab's
run_judges.pycan setWORKDIRandbatchesin itsjudge_spec.pyand drop the monkeypatching.Generated by Claude Code