TEST-PR324 — gitignore operator custom root files
TEST-PR324 — gitignore operator custom root files
Section titled “TEST-PR324 — gitignore operator custom root files”Created: 2026-03-22 PR: #324 (hotfix/gitignore-operator-files → main) Purpose: Verify the two test-plan items before operator merges PR #324
Prerequisites
Section titled “Prerequisites”- You are in the scaffolder engine root:
/mnt/d/scaffolder-engine/ - You are on the
hotfix/gitignore-operator-filesbranch - No uncommitted changes that would be lost (stash if needed)
- The following files exist locally as operator custom files:
- CLAUDE.md
- STANDARDS.md
- PROJECT-INSTRUCTIONS.md
- RELEASE-CHECKLIST.md
Test 1 — Branch switch protection after local merge
Section titled “Test 1 — Branch switch protection after local merge”What we’re testing: After the hotfix .gitignore lands, switching branches no longer overwrites the operator’s custom root files with generic versions.
-
Record current state of operator files (checksums for comparison):
Terminal window md5sum CLAUDE.md STANDARDS.md PROJECT-INSTRUCTIONS.md RELEASE-CHECKLIST.mdSave this output — you’ll compare against it at the end.
-
Checkout main and pull latest:
Terminal window git checkout maingit pull origin main -
Merge the hotfix branch locally (do NOT push):
Terminal window git merge hotfix/gitignore-operator-files --no-edit -
Remove the 4 files from git tracking (they’re now gitignored):
Terminal window git rm --cached CLAUDE.md STANDARDS.md PROJECT-INSTRUCTIONS.md RELEASE-CHECKLIST.mdgit commit -m "chore: stop tracking operator custom root files"Note:
git rm --cachedremoves from tracking only — files stay on disk. -
Verify files still exist on disk:
Terminal window ls -la CLAUDE.md STANDARDS.md PROJECT-INSTRUCTIONS.md RELEASE-CHECKLIST.md -
Verify files are untracked:
Terminal window git statusThe 4 files should NOT appear at all (not modified, not staged, not untracked) because .gitignore now hides them.
-
Switch to dev and back:
Terminal window git checkout devgit checkout main -
Verify files survived the round-trip — checksums must match step 1:
Terminal window md5sum CLAUDE.md STANDARDS.md PROJECT-INSTRUCTIONS.md RELEASE-CHECKLIST.md -
PASS if checksums match. FAIL if any file changed or disappeared.
-
Clean up — undo the local merge and untrack commit:
Terminal window git reset --hard origin/maingit checkout hotfix/gitignore-operator-files
Test 2 — Engine-root swap still works with git add -f
Section titled “Test 2 — Engine-root swap still works with git add -f”What we’re testing: Even though the 4 files are gitignored, git add -f
can still force-stage them (needed for the engine-root swap that commits
generic product versions for PRs).
-
Confirm you’re on
hotfix/gitignore-operator-files:Terminal window git branch --show-current -
Verify the files are gitignored:
Terminal window git check-ignore CLAUDE.md STANDARDS.md PROJECT-INSTRUCTIONS.md RELEASE-CHECKLIST.mdAll 4 should be listed.
-
Force-add one file:
Terminal window git add -f CLAUDE.md -
Verify it staged:
Terminal window git diff --cached --name-onlyShould show
CLAUDE.md. -
PASS if the file staged successfully despite being gitignored.
-
Clean up — unstage without committing:
Terminal window git reset HEAD CLAUDE.md
Results
Section titled “Results”| Test | Result | Notes |
|---|---|---|
| 1 — Branch switch protection | ||
| 2 — Engine-root swap with -f |
After both tests pass
Section titled “After both tests pass”Report results to operator. Operator merges PR #324 on GitHub, then:
git checkout maingit pull origin maingit rm --cached CLAUDE.md STANDARDS.md PROJECT-INSTRUCTIONS.md RELEASE-CHECKLIST.mdgit commit -m "chore: stop tracking operator custom root files"git push origin maingit checkout devgit merge main --no-editgit push origin dev