Repository navigation
Fix case-study runner: CWD-independent paths and clear task_repo error - #5
Merged
Merged
Conversation
…task_repo Two usability bugs reported when running the runner: 1. Path issue: config paths (prompt_file, workdir, copilot_repo) resolved against the current working directory, so the runner only worked from the project root and doubled paths (case-study/case-study/task/prompt.txt) when run from case-study/. Now they resolve against the repo root derived from the script location, so it works from any directory. Only --config stays CWD-relative. 2. Unedited placeholder task_repo (/path/to/task_ist_preprocessing) produced a raw FileNotFoundError deep in shutil.copytree. A real run now preflights task_repo and exits 2 with an actionable message pointing at the config and the --mock-harness offline option. - arms.example.json: add a _comment making the task_repo requirement explicit - runner/README: note it runs from any directory and task_repo is required - 2 regression tests (cwd-independent path resolution; placeholder -> exit 2) 96 tests pass; generated agent files in sync. https://claude.ai/code/session_01KedkjeNphkH8BvRYuGNDzq
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
Follow-up to #4 (merged). Fixes two usability bugs in the case-study runner that
surfaced on a real run, rebased onto current
mainas a single commit.What's fixed
Runs from any directory. Config paths (
prompt_file,workdir,copilot_repo) resolved against the current working directory, so the runneronly worked from the project root and doubled paths
(
case-study/case-study/task/prompt.txt) when run fromcase-study/. Theynow resolve against the repo root derived from the script's location. Only the
--configpath stays relative to your shell.Clear error for an unset
task_repo. The unedited placeholder(
/path/to/task_ist_preprocessing) crashed with a rawFileNotFoundErrordeep in
shutil.copytree. A real run now preflightstask_repoand exits2with an actionable message pointing at the config and the offline
--mock-harnessoption.Also:
arms.example.jsongains a_commentmaking thetask_reporequirementexplicit;
runner/READMEnotes the run-from-anywhere behavior; 2 regressiontests added (CWD-independent path resolution; placeholder → exit 2).
Verification
case-study/,the placeholder error (exit 2), and
--mock-harnessfromcase-study/main(fast-forwardable, no conflicts)https://claude.ai/code/session_01KedkjeNphkH8BvRYuGNDzq
Generated by Claude Code