Skip to content

Update PR Review Squad config with operational knowledge#220

Merged
PureWeen merged 7 commits intomainfrom
squad/update-pr-review-squad-config
Feb 26, 2026
Merged

Update PR Review Squad config with operational knowledge#220
PureWeen merged 7 commits intomainfrom
squad/update-pr-review-squad-config

Conversation

@PureWeen
Copy link
Copy Markdown
Owner

Updates the .squad/ team definition with operational knowledge accumulated from 15+ PR review/fix cycles.

Changes

routing.md

  • Task assignment patterns (review-only vs fix tasks)
  • Orchestrator responsibilities (track state, verify pushes, re-dispatch, merge)
  • Shared worktree safety rules
  • Repo-specific commands (merge, test, push conventions)

decisions.md

  • Fix standards (rebase, test, Co-authored-by, force-with-lease)
  • Operational lessons (worker reliability, re-dispatch patterns, full diff requirement)

agents/reviewer-*/charter.md (all 5)

  • Added fix process (checkout, rebase, edit, test, commit, push, re-review)
  • Added re-review process (include previous findings, verify FIXED/STILL PRESENT)
  • Added rules (never checkout during review-only, always full diff, use edit tool)

Why

A fresh PR Review Squad created from this .squad/ definition will now inherit all process knowledge, making it immediately effective without needing to re-learn operational patterns.

Update the built-in PR Review Squad preset with fix process, re-review
patterns, orchestrator responsibilities, and operational lessons learned
from 15+ PR review/fix cycles. Revert .squad/ to original state since
the built-in preset is the canonical source.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen force-pushed the squad/update-pr-review-squad-config branch from c3b29e9 to a41d6ac Compare February 26, 2026 01:28
PureWeen and others added 6 commits February 25, 2026 19:30
Replace repo-specific test command with generic discovery instruction
so the preset works across any GitHub repository, not just PolyPilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
RepoManager.GetBaseDir() resolved to the real ~/.polypilot/ directory
during test runs, so tests creating new RepoManager() instances could
overwrite repos.json with test data (repo-1/MyRepo), destroying the
user's registered repositories.

Add SetBaseDirForTesting() to RepoManager (matching the existing
CopilotService pattern) and call it from TestSetup.Initialize().

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ctory

Delete repo-level .squad/PR-Review-Squad so it no longer shadows the
built-in preset in the Multi dropdown. The operational knowledge is now
in the built-in preset in ModelCapabilities.cs.

Also fix WorkingDirectory not being set in demo mode CreateSessionAsync,
which caused WorktreeStrategyTests.Shared_WithRepoButNoWorkDir to fail.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Worker rules and routing context now adapt based on worktree strategy:
  shared worktrees prevent checkout during reviews, isolated worktrees
  allow free checkout
- Review synthesis now includes test coverage assessment: suggests
  specific test cases or scenarios for new code paths

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ensure memory ordering on ARM64: after the release write to _baseDirOverride,
the null assignments to _reposDir/_worktreesDir/_stateFile are now also
volatile writes so concurrent readers cannot observe the new override with a
stale cached path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen merged commit d2276a4 into main Feb 26, 2026
@PureWeen PureWeen deleted the squad/update-pr-review-squad-config branch February 26, 2026 02:39
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