From 681f0ce4fa1cf5dbb638871bba80ad540d2cc57e Mon Sep 17 00:00:00 2001 From: Paul O'Reilly Date: Tue, 7 Jul 2026 16:56:24 +1200 Subject: [PATCH] =?UTF-8?q?fix(hugo-content-workspace):=20never=20commit?= =?UTF-8?q?=20.agent-output/=20runner=20scratch=20=E2=80=94=20was=20creati?= =?UTF-8?q?ng=20junk=20content=20commits=20+=20spurious=20CI=20rebuilds=20?= =?UTF-8?q?on=20every=20AI=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- harnesses/contexts/hugo-content-workspace/v1/finalize.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/harnesses/contexts/hugo-content-workspace/v1/finalize.sh b/harnesses/contexts/hugo-content-workspace/v1/finalize.sh index 723361a..12b1767 100755 --- a/harnesses/contexts/hugo-content-workspace/v1/finalize.sh +++ b/harnesses/contexts/hugo-content-workspace/v1/finalize.sh @@ -30,6 +30,13 @@ commit_repo() { # Stage all changes git add -A + # Never commit the agentic runner's scratch: `.agent-output/` (task-complete.json, + # logs) is written into the CWD, which is the content repo checkout. Committing it + # produced a junk "AI content update" commit on every AI task — including read-only + # flows (draft, section-edit) where cms-proxy applies the real change via PATCH — and + # each junk commit to the content branch triggered a spurious content-CI site rebuild. + git reset -q -- .agent-output >/dev/null 2>&1 || true + # Double-check — after staging, is there anything to commit? if git diff --cached --quiet; then echo "${label}: nothing staged after add -A"