From 19d6119542f710efe4b04be2b90a00bc1db69a9d Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 1 Nov 2025 01:44:18 -0300 Subject: [PATCH] fix: Disable unnecessary automation outputs during initial setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disabled two outputs that were causing errors during first commit: 1. implementation_gate (features.ai-rules.yml) - Was trying to generate implementation.discussion.md on every request.md commit - Should only run when feature status = READY_FOR_IMPLEMENTATION - Error: "Sanitized patch missing diff header" - Fix: Set enabled: false by default - Users can enable in project .ai-rules.yml when needed 2. readme normalizer (root.ai-rules.yml) - Was trying to update README.md whenever policies.yml was staged - Caused errors during initial commit - Error: "Sanitized patch missing diff header" - Fix: Set enabled: false by default - Users can enable when they want AI to maintain README Benefits: - Clean setup with no [runner] errors - Faster first commit (fewer AI calls) - Users can enable features incrementally as needed - Only essential automation runs by default (feature discussions) Remaining warnings are expected: - [agents] warnings: Claude CLI permission prompts (normal behavior) - [summary] warnings: Template markers not found (handled gracefully) Testing: Setup now completes cleanly with only feature.discussion.md generated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- assets/templates/rules/features.ai-rules.yml | 3 +++ assets/templates/rules/root.ai-rules.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/assets/templates/rules/features.ai-rules.yml b/assets/templates/rules/features.ai-rules.yml index befe2f8..34a8398 100644 --- a/assets/templates/rules/features.ai-rules.yml +++ b/assets/templates/rules/features.ai-rules.yml @@ -14,8 +14,11 @@ rules: path: "Docs/features/{feature_id}/discussions/feature.discussion.md" output_type: "feature_discussion_writer" implementation_gate: + enabled: false # Disabled by default - enable when feature is ready for implementation path: "Docs/features/{feature_id}/discussions/implementation.discussion.md" output_type: "implementation_gate_writer" + # To enable: set "enabled: true" in your project's .ai-rules.yml + # This prevents unnecessary AI calls during initial feature discussion phase feature_discussion_update: outputs: diff --git a/assets/templates/rules/root.ai-rules.yml b/assets/templates/rules/root.ai-rules.yml index efbcb61..72fe236 100644 --- a/assets/templates/rules/root.ai-rules.yml +++ b/assets/templates/rules/root.ai-rules.yml @@ -9,6 +9,7 @@ rules: readme: outputs: normalize: + enabled: false # Disabled by default - enable in your project when you want AI to maintain README path: "{repo}/README.md" output_type: "readme_normalizer" instruction: |