Skip to content

GITHUB-ISSUES-2026-03-22-repo-cleanup.md — Issue + fix operations

GITHUB-ISSUES-2026-03-22-repo-cleanup.md — Issue + fix operations

Section titled “GITHUB-ISSUES-2026-03-22-repo-cleanup.md — Issue + fix operations”

Combined issue creation and fix instructions. Harley: run operations in order, confirm each.


Operation 1 — Create issue for ai-sessions tracked on repo

Section titled “Operation 1 — Create issue for ai-sessions tracked on repo”
gh issue create --title "fix: remove tracked ai-sessions files from repo" --label "bug" --body "ai-sessions/CURRENT-CHAT.md and ai-sessions/CURRENT-CODE.md are tracked on all three branches (main, staging, dev) despite ai-sessions/ being in .gitignore. They were committed before the gitignore rule was added. Fix: git rm -r --cached ai-sessions/ to untrack without deleting local files."

Operation 2 — Create issue for stale Plane reference in STANDARDS template

Section titled “Operation 2 — Create issue for stale Plane reference in STANDARDS template”
gh issue create --title "fix: stale Plane Integrated reference in STANDARDS.md template" --label "bug" --body "templates/project-root/STANDARDS.md has a stale line in Scale tier definitions section: 'Plane Integrated: PM tools with Plane sync, milestones, work tracking'. Should be 'Team: PM workflow + work tracking, CI required'. Present on all three branches."

Operation 3 — Create fix branch from dev

Section titled “Operation 3 — Create fix branch from dev”
git checkout dev
git pull origin dev
git checkout -b fix/repo-cleanup
git rm -r --cached ai-sessions/

IMPORTANT: This removes from git index only. Local files stay intact. Verify local files still exist after running.

Edit templates/project-root/STANDARDS.md — in the ## Scale tier definitions section near the bottom, change:

- Plane Integrated: PM tools with Plane sync, milestones, work tracking

to:

- Team: PM workflow + work tracking, CI required
git add templates/project-root/STANDARDS.md
git add ai-sessions/
git commit -m "fix: remove tracked ai-sessions and fix stale Plane reference in STANDARDS template"
git push origin fix/repo-cleanup
gh pr create --base dev --head fix/repo-cleanup --title "fix: remove tracked ai-sessions and fix stale Plane reference" --body "Closes #[issue-1] and #[issue-2]
- Untracks ai-sessions/ files that were committed before gitignore rule was added (git rm --cached, local files preserved)
- Fixes stale 'Plane Integrated' reference in templates/project-root/STANDARDS.md Scale tier definitions to 'Team'"

Note: Replace #[issue-1] and #[issue-2] with the actual issue numbers from Operations 1 and 2.

Operation 8 — Verify local files still exist

Section titled “Operation 8 — Verify local files still exist”
ls ai-sessions/CURRENT-CHAT.md ai-sessions/CURRENT-CODE.md

Both files must still exist locally. If they don’t, STOP and report to operator.

Operation 9 — Create issue for sc start bug

Section titled “Operation 9 — Create issue for sc start bug”
gh issue create --title "fix: sc start calls harley alias which doesn't resolve in execSync" --label "bug" --body "sc start uses execSync('harley') in handleStart (src/sc.ts). execSync spawns /bin/sh which does not load ~/.bashrc aliases. The harley alias points to claude. Fix: replace the execSync call with the actual binary name claude instead of the alias harley. The codeAiName config value is a display name, not a binary — do not read it from config for this."