Run the PR review, ship and merge skills from Pi #27

Manually merged
bryan merged 3 commits from pi-pr-skills into main 2026-11-10 06:00:26 +00:00
Owner

Part of piece W34.6 in bryan/dotfiles-workspace#34: the PR review, ship and merge skills now run from a Pi session.

What changed

  • pr-self-review, code-review, ship. When the Pi parent wrote the candidate, the independent review is a visible read-only Pi worker in Rex, because Pi has no hidden sub-agent. "Sol parent" now reads "the parent (Pi or Hermes)", and the review_context value sol-parent becomes parent.
  • Lane classifier path. code-review ran dot-agents/skills/pr-self-review/scripts/select_review_lanes.py relative to the current repository, which only worked inside this checkout. It now resolves the script from the skill directory. pr-self-review now calls the classifier its own script.
  • manual-merge. When the default-branch checkout holds unrelated work that must not be stashed or reset, or automation commits in it, the merge runs in a throwaway detached worktree at origin/<default>. The merge gates and the signed-squash rule are unchanged. Pitfall 7 (push, then tea api, as separate commands) now applies on every host.
  • update-pr-description. The approval question maps to a plain chat question on Pi.
  • Curation. Pi now gets manual-merge (scripts/reconcile-agent-skills.sh; the test now expects 19 Pi links).
  • Tests. tests/test-adapted-agent-skills.py pinned the old wording. One of those pins had been stale on main since 4ea4140.

Verification

  • Every tests/test-*.sh and tests/test-*.py, node --test tests/test-pi-split.ts, the pr-self-review unit tests and git diff --check pass on the head commit.
  • The classifier runs from /tmp through the Pi skill link.
  • pr-self-review ran from Pi with a visible Pi reviewer: one review, two corrections and two rereviews, ending clean. code-review's contract ran inside it.
  • ship ran from Pi to open this PR. Forgejo ignored draft in the create payload, so tea pulls edit --draft set it, as the skill says.
  • update-pr-description ran from Pi to write this body.
  • manual-merge from Pi merges this PR, using the new detached-worktree path, because the primary checkout holds unrelated work.
Part of piece W34.6 in [bryan/dotfiles-workspace#34](https://git.snowboardtechie.com/bryan/dotfiles-workspace/issues/34): the PR review, ship and merge skills now run from a Pi session. ## What changed - **`pr-self-review`, `code-review`, `ship`.** When the Pi parent wrote the candidate, the independent review is a visible read-only Pi worker in Rex, because Pi has no hidden sub-agent. "Sol parent" now reads "the parent (Pi or Hermes)", and the `review_context` value `sol-parent` becomes `parent`. - **Lane classifier path.** `code-review` ran `dot-agents/skills/pr-self-review/scripts/select_review_lanes.py` relative to the current repository, which only worked inside this checkout. It now resolves the script from the skill directory. `pr-self-review` now calls the classifier its own script. - **`manual-merge`.** When the default-branch checkout holds unrelated work that must not be stashed or reset, or automation commits in it, the merge runs in a throwaway detached worktree at `origin/<default>`. The merge gates and the signed-squash rule are unchanged. Pitfall 7 (push, then `tea api`, as separate commands) now applies on every host. - **`update-pr-description`.** The approval question maps to a plain chat question on Pi. - **Curation.** Pi now gets `manual-merge` (`scripts/reconcile-agent-skills.sh`; the test now expects 19 Pi links). - **Tests.** `tests/test-adapted-agent-skills.py` pinned the old wording. One of those pins had been stale on `main` since `4ea4140`. ## Verification - Every `tests/test-*.sh` and `tests/test-*.py`, `node --test tests/test-pi-split.ts`, the `pr-self-review` unit tests and `git diff --check` pass on the head commit. - The classifier runs from `/tmp` through the Pi skill link. - `pr-self-review` ran from Pi with a visible Pi reviewer: one review, two corrections and two rereviews, ending clean. `code-review`'s contract ran inside it. - `ship` ran from Pi to open this PR. Forgejo ignored `draft` in the create payload, so `tea pulls edit --draft` set it, as the skill says. - `update-pr-description` ran from Pi to write this body. - `manual-merge` from Pi merges this PR, using the new detached-worktree path, because the primary checkout holds unrelated work.
On Pi, independent review of a parent-authored candidate is a visible
read-only Pi worker. code-review now resolves the lane classifier from
its skill directory instead of the dotfiles checkout, and pr-self-review
names the classifier as its own. manual-merge can merge in a detached
worktree when the default-branch checkout holds unrelated work, and Pi
now gets it. Sol wording becomes "the parent (Pi or Hermes)".

Refs bryan/dotfiles-workspace#34 (W34.6)
Review correction for W34.6: the detached merge worktree records its own rollback point; drop two lines that changed no action.
Two assertions pinned the old Hermes-parent and Sol-parent wording; one was already stale on main since 4ea4140.
bryan changed title from Run the PR review, ship and merge skills from Pi to WIP: Run the PR review, ship and merge skills from Pi 2026-11-10 05:59:17 +00:00
bryan changed title from WIP: Run the PR review, ship and merge skills from Pi to Run the PR review, ship and merge skills from Pi 2026-11-10 05:59:47 +00:00
bryan manually merged commit 14d905582c into main 2026-11-10 06:00:26 +00:00
Sign in to join this conversation.
No reviewers
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bryan/dotfiles!27
No description provided.