From 6a814a793ac54561dedb0d02e37a455ff7e10122 Mon Sep 17 00:00:00 2001 From: R script <1695515+ms609@users.noreply.github.com> Date: Tue, 4 Aug 2026 17:48:47 +0100 Subject: [PATCH 1/2] docs: fix GHA dispatch recipe to use absolute script paths The ../gha-dispatch.sh relative path only resolves from the main checkout; it fails with "No such file or directory" from a ../worktrees/TreeSearch/ worktree, where feature work is supposed to happen per this same file. Hard-code the scripts' known absolute location instead. --- AGENTS.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 2eb22376f..52d1a9fb3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -53,18 +53,25 @@ to `inst/WORDLIST`. Once confirmed, dispatch GHA with: +The scripts live at `C:/Users/pjjg18/GitHub/gha-dispatch.sh` and +`C:/Users/pjjg18/GitHub/gha-poll.sh` — a fixed location, not `../` relative to your checkout. +`../` only resolves from the main checkout; from a `../worktrees/TreeSearch/` worktree +(where feature work happens) it doesn't exist. Use the absolute path from either location: + ```bash # Push your branch and dispatch checks — run these FROM the repo, not from ../ git push -u origin feature/ -bash ../gha-dispatch.sh agent-check.yml feature/ +bash /c/Users/pjjg18/GitHub/gha-dispatch.sh agent-check.yml feature/ # Poll for results -bash ../gha-poll.sh +bash /c/Users/pjjg18/GitHub/gha-poll.sh ``` Both scripts resolve the target repo with `gh repo view --json nameWithOwner`, so they pick up whatever `gh repo set-default` points at — the fork. **Do not `cd ..` first** (as this recipe used to say): outside a git repo that lookup fails and the dispatch targets nothing. +"Run these FROM the repo" means your `cwd` must be the git checkout/worktree doing the +`gh repo view` lookup — it does not mean the scripts themselves must be found relatively. ### Local builds (targeted iteration only) From 3917e94a65bcfa57a59abe041af149f9ba6b971c Mon Sep 17 00:00:00 2001 From: R script <1695515+ms609@users.noreply.github.com> Date: Tue, 4 Aug 2026 17:57:12 +0100 Subject: [PATCH 2/2] docs: use C:/ path style consistent with rest of AGENTS.md --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 52d1a9fb3..2e894f7e4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -61,10 +61,10 @@ The scripts live at `C:/Users/pjjg18/GitHub/gha-dispatch.sh` and ```bash # Push your branch and dispatch checks — run these FROM the repo, not from ../ git push -u origin feature/ -bash /c/Users/pjjg18/GitHub/gha-dispatch.sh agent-check.yml feature/ +bash C:/Users/pjjg18/GitHub/gha-dispatch.sh agent-check.yml feature/ # Poll for results -bash /c/Users/pjjg18/GitHub/gha-poll.sh +bash C:/Users/pjjg18/GitHub/gha-poll.sh ``` Both scripts resolve the target repo with `gh repo view --json nameWithOwner`, so they pick