Skip to content

feat(judge-panel): WORKDIR and batches spec hooks; safer cursor lookup - #149

Merged
synthet merged 1 commit into
mainfrom
feat/judge-panel-spec-hooks
Dec 3, 2026
Merged

synthet merged 1 commit into
mainfrom
feat/judge-panel-spec-hooks

Conversation

@synthet

@synthet synthet commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

synth-photo-lab's edit-round-eval/scripts/run_judges.py monkeypatches three panel.py internals: run_cmd, batches and _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 of n.
  • _cursor_cmd:
    • considers only versions that contain node.exe and index.js;
    • picks the newest numerically (2025.10.x > 2025.9.x) instead of by string order;
    • reports a missing install clearly instead of raising KeyError: 'LOCALAPPDATA'.

Without the new hooks, behaviour is unchanged. The docstring and SKILL.md list both hooks. The .cursor and .agents mirrors are regenerated.

Verification

  • tests/test_judge_panel.py (new): WORKDIR for claude, codex and agy; inherited working directory without it; spec batching; numeric cursor version choice; missing-install message. 7 passed.
  • Ran every CI step locally, all OK: sync_assistant_trees --check, inventory --check, OKF lint, frontmatter, portability, secrets, eval fixtures, and pytest tests.

Follow-up

Once installed copies are updated, synth-photo-lab's run_judges.py can set WORKDIR and batches in its judge_spec.py and drop the monkeypatching.


Generated by Claude Code

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
@synthet
synthet merged commit 60249e4 into main Dec 3, 2026
1 check passed
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.

1 participant