From 6d698c1db78f424a9b24d53e48aad20d1d95ab9a Mon Sep 17 00:00:00 2001 From: James Date: Sun, 29 Mar 2026 07:28:30 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20auto-commit=20from=20git-audit.?= =?UTF-8?q?sh=20=E2=80=94=20audit=20only,=20no=20silent=20mutations=20(C-0?= =?UTF-8?q?07)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/git-audit.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/scripts/git-audit.sh b/scripts/git-audit.sh index 0a83b1b..283e80e 100755 --- a/scripts/git-audit.sh +++ b/scripts/git-audit.sh @@ -55,19 +55,8 @@ audit_repo() { fi fi - # Auto-commit repos I own (skip inou — Johan's code) - if [ "$DIRTY_COUNT" -gt 0 ] && [ "$repo" != "inou" ]; then - git -C "$dir" add -A 2>/dev/null - git -C "$dir" commit -m "chore: auto-commit uncommitted changes" --quiet 2>/dev/null && { - AHEAD=$(git -C "$dir" rev-list --count "origin/$BRANCH..HEAD" 2>/dev/null || echo 0) - } - DIRTY_COUNT=0 - fi - - # Auto-push if ahead - if [ "$AHEAD" -gt 0 ] && [ "$repo" != "inou" ]; then - timeout 5 git -C "$dir" push origin "$BRANCH" --quiet 2>/dev/null && AHEAD=0 || true - fi + # NOTE: auto-commit and auto-push removed (C-007) — audit only, no mutations + # Commits must have meaningful messages written by the agent doing the work [ "$DIRTY_COUNT" -gt 0 ] && ANOMALIES+="⚠️ $repo: $DIRTY_COUNT uncommitted file(s)\n" [ "$AHEAD" -gt 0 ] && ANOMALIES+="🔺 $repo: $AHEAD unpushed commit(s) on $BRANCH\n"