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"