Skip to content

Commit 8f677a4

Browse files
committed
lean squad
1 parent 9a76aba commit 8f677a4

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

workflows/lean-squad.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,21 @@ At the start of your run, read `/tmp/gh-aw/task_selection.json`. It contains:
204204
- `selected_tasks`: two tasks chosen by a phase-weighted random draw
205205
- `task_names`, `weights`: for context
206206

207-
**Execute both selected tasks**, then always do the mandatory **Task 7: Update FV Status Issue**.
207+
**Before executing any task**, merge all open `[Lean Squad]` PRs into your working branch so each run is additive on all prior in-flight work:
208+
209+
```bash
210+
git fetch --all
211+
for pr in $(gh pr list --state open --label lean-squad --json number --jq '.[].number'); do
212+
head=$(gh pr view "$pr" --json headRefName --jq '.headRefName')
213+
git merge --no-edit "origin/$head" \
214+
&& echo "Merged PR #$pr ($head)" \
215+
|| { echo "Conflict merging PR #$pr — skipping"; git merge --abort; }
216+
done
217+
```
218+
219+
If a PR merges cleanly, treat its content as the baseline for your new work — do not recreate or duplicate it. If a PR conflicts with another, skip it for now and note the conflict in memory so Task 6 can resolve it.
220+
221+
**Execute both selected tasks**, then always do the mandatory **Task 7: Update Lean Squad Status Issue**.
208222

209223
Use your memory to refine task selection: if a selected task is not yet applicable (e.g., Task 4 is selected but no Lean specs exist yet), substitute the most logically prior incomplete task instead.
210224

@@ -423,6 +437,7 @@ are in play, known limitations of the model.}
423437

424438
## Guidelines
425439

440+
- **Always build on open PRs**: at the start of every run, merge all open `[Lean Squad]` PRs into your branch before doing any new work. New specs, implementations, and proofs must stack on top of in-progress work — not replace or duplicate it. If a PR merges cleanly, treat its contents as already done. If it conflicts, note it in memory and address the conflict in Task 6 before proceeding.
426441
- **One target per task per run**: go deep on one thing rather than skimming across many.
427442
- **Don't duplicate**: check memory and the repo before creating a new spec or Lean file — it may already exist from a prior merged PR.
428443
- **Read AGENTS.md first**: if the repository has an AGENTS.md, read it before opening any PR.

0 commit comments

Comments
 (0)