Skip to content

fix: power-steering incorrectly blocks Q&A/PM sessions with dev checks (#2914) #1018

fix: power-steering incorrectly blocks Q&A/PM sessions with dev checks (#2914)

fix: power-steering incorrectly blocks Q&A/PM sessions with dev checks (#2914) #1018

Workflow file for this run

name: Root Directory Hygiene
on:
pull_request:
branches:
- main
- master
- develop
push:
branches:
- main
- master
jobs:
root-hygiene-checks:
name: Root Directory Hygiene Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history for git comparisons
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Check Root Files
id: check-root-files
run: |
echo "::group::Root Files Check"
python .claude/ci/check_root_files.py
echo "::endgroup::"
continue-on-error: true
- name: Check Unrelated Changes
id: check-unrelated-changes
run: |
echo "::group::Unrelated Changes Check"
python .claude/ci/check_unrelated_changes.py
echo "::endgroup::"
continue-on-error: true
- name: Check Point-in-Time Documentation
id: check-point-in-time-docs
run: |
echo "::group::Point-in-Time Documentation Check"
python .claude/ci/check_point_in_time_docs.py
echo "::endgroup::"
continue-on-error: true
- name: Summary
if: always()
run: |
echo "## Root Directory Hygiene Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "These checks help maintain a clean, organized repository structure." >> $GITHUB_STEP_SUMMARY
echo "**Note:** These checks warn but do not block CI." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Checks Performed:" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Root Files: Validates only approved files in project root" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Unrelated Changes: Detects mixing of unrelated concerns" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Point-in-Time Docs: Identifies temporal documentation" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "For more information, see:" >> $GITHUB_STEP_SUMMARY
echo "- [Root Hygiene Config](.github/root-hygiene-config.yml)" >> $GITHUB_STEP_SUMMARY
echo "- [Cleanup Agent Documentation](.claude/agents/amplihack/specialized/cleanup.md)" >> $GITHUB_STEP_SUMMARY
- name: Final Status
if: always()
run: |
echo "Root hygiene checks completed (warnings only, does not block merge)"
exit 0