* fix(runs): a pull request is a run's only when it is on one of the run's own branches
Run 70d1a78d on loki ran git status and nothing else; its page claimed
loki#1636 as its pull request and "Pushed:" with that pull request's commit.
#1636 was opened by hand on another branch while the run was open. "The
newest pull request since the run started" is a time window, not an
attribution.
- lib/run-branches: a run's branches are loki/run-<id8>, its worktree branch,
and every branch its runner reported the agent's checkout on. Never main.
- findRepoWorkEvidence takes those branches; a pull request's head or a
pushed ref must be one of them. Watch, the reaper's correction and the
outcome post all pass them.
- The runner's progress beat carries the checkout's branch; the server keeps
the list on the run (payload.branches).
- The two branch names have one source; the builder code re-exports it.
- scripts/test/run-branches.ts replays the incident against the real finder.
* chore(runner): 0.8.66 with its release note
---------
Co-authored-by: Claude <noreply@anthropic.com>