From 47057e04ee3474d85e0b993ce70d09ff0a427123 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 4 Dec 2026 15:18:37 +1300 Subject: [PATCH 1/2] CI: send the admin MCP's JSON goldens to VisualCI with the public MCP's --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fde44a0..727f57f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -269,6 +269,7 @@ jobs: frontend/src --from vitest --prefix components/ app/tests/golden/api --prefix json/api/ --format json app/tests/golden/mcp --prefix json/mcp/ --format json + app/tests/golden/mcp_admin --prefix json/mcp_admin/ --format json tmp/email-snapshots --prefix emails/ --keep-extension # The journeys (scripts/journeys/run.sh): VisualCI as production runs it, on four .test hosts behind Caddy with From f55df3a81775fbb9e15eb56dea90141cf4bbd0da Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 4 Dec 2026 15:19:10 +1300 Subject: [PATCH 2/2] AGENTS.md: wait for mergeStateStatus CLEAN before merging (VisualCI's check posts after the visual job) --- AGENTS.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c5e50a79..7f2e2a6f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,11 +22,13 @@ design is in `docs/design.md`; read it before changing the architecture, and upd id=$(fleetlayer lease acquire main-merge --payload '{"repo":"DocSpring/visualci"}' --reason "merge PR #N" \ --pid $$ --wait --json | jq -r .id | tail -1) trap 'fleetlayer lease release "$id"' EXIT - # rebase onto origin/main, push, wait for the checks (with a timeout), gh pr merge N --squash --delete-branch + # rebase onto origin/main, push, wait for the checks (with a timeout), then until + # `gh pr view N --json mergeStateStatus -q .mergeStateStatus` is CLEAN, then gh pr merge N --squash --delete-branch ``` `--pid $$` ties the lock to the script, so it outlives an idle session and is freed when the script ends. (3 Dec - 2026: two agents' merges kept making each other's green PRs out of date.) + 2026: two agents' merges kept making each other's green PRs out of date.) Wait for CLEAN, not for the CI jobs: the + VisualCI check posts a few seconds after the `visual` job ends, and a merge in that gap is refused (4 Dec 2026). - No backwards compatibility before launch. There are no old setups to keep working: rename, change formats and drop old behaviour outright, with no redirects, aliases, fallbacks or shims for the old way (Nathan, 1 Dec 2026). - `skills/` is generated from the docs pages with `skill:` front matter. After editing such a page, run