From 00a688674150536b35aa0165a439012860550884 Mon Sep 17 00:00:00 2001 From: RodisTTV Date: Tue, 28 Jul 2026 00:56:06 -0300 Subject: [PATCH] fix: stop ignoring tracked source and docs directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Several .gitignore rules covered directories whose contents are tracked. Git keeps tracked files working, so nothing was visibly broken — but a NEW file in those directories is silently skipped by `git add`, with no error. - `tests/` — the 7 test files are tracked and CI runs `npm test` over them, so a new test file would pass locally and never reach the repository. Added by 7c6c370 ("update ignore patterns"), which over-reached. - `docs/` — ignored since the initial commit, yet 48 design docs are tracked and new ones are still being committed (8be326c, 85c74fa, 07e78cc), so the rule has been worked around rather than honoured. CLAUDE.md points here. Also: - `dashboards/test-results/` was a typo — the directory is `dashboard/` (singular), so the rule matched nothing while the real path went uncovered. - `temp/squads/` was redundant with `temp/`. `temp/`, `test-results/` and `dashboard/test-results/` stay ignored: they are scratch and build-artifact directories, where silently skipping new files is the desired behaviour. Their already-tracked contents are unaffected. Verified by probing a new file in each directory: tests/ and docs/ now accept one, the artifact directories still reject it. Co-Authored-By: Claude Opus 5 --- .gitignore | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 810d2529..3b24792e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,18 @@ node_modules/ .env *.log + +# User-generated content in a project that has run `opensquad init`. +# The tracked squads/*/state.json fixtures predate these rules and stay tracked. squads/*/ _opensquad/_memory/company.md _opensquad/_memory/preferences.md _opensquad/_browser_profile/ -docs/ -.superpowers/ + +# Local scratch and build artifacts. temp/ -tests/ test-results/ -temp/squads/ +dashboard/test-results/ +.superpowers/ + .claude/settings.local.json -dashboards/test-results/