Skip to content

Commit f55df3a

Browse files
committed
AGENTS.md: wait for mergeStateStatus CLEAN before merging (VisualCI's check posts after the visual job)
1 parent 47057e0 commit f55df3a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎AGENTS.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ design is in `docs/design.md`; read it before changing the architecture, and upd
2222
id=$(fleetlayer lease acquire main-merge --payload '{"repo":"DocSpring/visualci"}' --reason "merge PR #N" \
2323
--pid $$ --wait --json | jq -r .id | tail -1)
2424
trap 'fleetlayer lease release "$id"' EXIT
25-
# rebase onto origin/main, push, wait for the checks (with a timeout), gh pr merge N --squash --delete-branch
25+
# rebase onto origin/main, push, wait for the checks (with a timeout), then until
26+
# `gh pr view N --json mergeStateStatus -q .mergeStateStatus` is CLEAN, then gh pr merge N --squash --delete-branch
2627
```
2728

2829
`--pid $$` ties the lock to the script, so it outlives an idle session and is freed when the script ends. (3 Dec
29-
2026: two agents' merges kept making each other's green PRs out of date.)
30+
2026: two agents' merges kept making each other's green PRs out of date.) Wait for CLEAN, not for the CI jobs: the
31+
VisualCI check posts a few seconds after the `visual` job ends, and a merge in that gap is refused (4 Dec 2026).
3032
- No backwards compatibility before launch. There are no old setups to keep working: rename, change formats and
3133
drop old behaviour outright, with no redirects, aliases, fallbacks or shims for the old way (Nathan, 1 Dec 2026).
3234
- `skills/` is generated from the docs pages with `skill:` front matter. After editing such a page, run

0 commit comments

Comments
 (0)