Skip to content

chore: remove tracked runtime .squad/ state files - #1056

Closed
bdang-okta wants to merge 1 commit into
github:devfrom
bdang-okta:chore/remove-tracked-runtime-state
Closed

bdang-okta wants to merge 1 commit into
github:devfrom
bdang-okta:chore/remove-tracked-runtime-state

Conversation

@bdang-okta

Copy link
Copy Markdown

Summary

Removes machine-local runtime files from git tracking that were previously force-added.

Why

PR #44 added squad-main-guard.yml to block future leaks of .squad/ state into main. This PR does the companion cleanup: removes what's already tracked on dev.

What's removed from tracking

Category Files Why
Agent history .squad/**/history.md Personal session memory, machine-local
Session logs .squad/log/ Already in .gitignore, leaked before
Orchestration logs .squad/orchestration-log/ Already in .gitignore, leaked before
Session state .squad/sessions/ Already in .gitignore, leaked before
Inbox decisions .squad/decisions/inbox/ Already in .gitignore, leaked before
Identity runtime .squad/identity/now.md + PRD/SDK analysis files Transient session context
Temp artifacts .squad/commit-message.txt, .squad/commit-msg.txt Scribe temp files

What's preserved

  • All charter.md files (agent identity — intentional)
  • team.md, routing.md, decisions.md, ceremonies.md (team config)
  • casting/ state (persistent name registry)
  • skills/ (earned team knowledge)
  • templates/ (distribution templates)
  • .squad/identity/wisdom.md (curated team wisdom, intentional)

.gitignore hardening

Added missing patterns to catch what wasn't previously covered:

.squad/**/history.md
.squad/history.md
.squad/identity/now.md
.squad/identity/prd-*.md
.squad/identity/sdk-init-*.md
.squad/commit-message.txt
.squad/commit-msg.txt

How to verify

After this PR merges, squad-main-guard.yml (from PR #44) will enforce these rules on every future PR to main.

Remove agent history.md files, session logs, orchestration logs, inbox
decisions, identity runtime files, and temp commit artifacts from git
tracking. These are machine-local runtime state that should never have
been committed.

PR #44 added CI enforcement (squad-main-guard.yml) to block future
leaks. This commit removes the existing tracked files and hardens
.gitignore to cover the remaining gaps.

Files untracked (not deleted):
- .squad/**/history.md (agent personal memory)
- .squad/log/ (session logs)
- .squad/orchestration-log/ (agent run logs)
- .squad/sessions/ (session state)
- .squad/decisions/inbox/ (pending inbox files)
- .squad/identity/now.md + runtime PRD/SDK files
- .squad/commit-message.txt, commit-msg.txt

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 29, 2026 23:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes previously tracked, machine-local .squad/ runtime/state artifacts from the repo and hardens .gitignore to prevent them from being reintroduced.

Changes:

  • Deleted tracked .squad/ runtime/state files (sessions, logs, inbox decisions, identity scratch docs, temp commit message files, agent history).
  • Updated .gitignore with additional .squad/ ignore patterns for the leaked/force-added paths.

Reviewed changes

Copilot reviewed 44 out of 45 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.squad/sessions/2026-03-04T16-20-51Z_e90fb146-17b4-4d72-a4c5-933ea5946b3f.json Removed tracked session state file.
.squad/sessions/2026-03-01T20-12-48Z_fdc8d707-7d36-4b23-abd9-80b6558f7673.json Removed tracked session state file.
.squad/orchestration-log/2026-03-26T17-09-investigation-631.md Removed tracked orchestration log file.
.squad/orchestration-log/2026-03-25T18-11-Procedures.md Removed tracked orchestration log file.
.squad/orchestration-log/2026-03-25T18-11-PAO.md Removed tracked orchestration log file.
.squad/orchestration-log/2026-03-25T18-11-GNC.md Removed tracked orchestration log file.
.squad/orchestration-log/2026-03-25T18-11-Flight.md Removed tracked orchestration log file.
.squad/orchestration-log/2026-03-25T18-11-EECOM.md Removed tracked orchestration log file.
.squad/orchestration-log/2026-03-25T18-11-CAPCOM.md Removed tracked orchestration log file.
.squad/log/2026-03-27T21-42-00Z-decisions-archival.md Removed tracked runtime log file.
.squad/log/2026-03-26T17-09-631-investigation.md Removed tracked runtime log file.
.squad/log/2026-03-25T18-11-work-session.md Removed tracked runtime log file.
.squad/identity/sdk-init-umbrella-issue.md Removed tracked identity/runtime analysis document.
.squad/identity/sdk-init-technical-analysis.md Removed tracked identity/runtime analysis document.
.squad/identity/sdk-init-implementation-roadmap.md Removed tracked identity/runtime analysis document.
.squad/identity/prd-sdk-init-shoreup.md Removed tracked identity/runtime PRD document.
.squad/identity/prd-next-waves.md Removed tracked identity/runtime PRD document.
.squad/identity/prd-consult-mode.md Removed tracked identity/runtime PRD document.
.squad/identity/now.md Removed tracked “current session context” runtime file.
.squad/history.md Removed tracked project history runtime file.
.squad/decisions/inbox/retro-copilot-git-safety.md Removed tracked inbox decision file.
.squad/decisions/inbox/flight-versioning-policy.md Removed tracked inbox decision file.
.squad/decisions/inbox/booster-release-skill-v094.md Removed tracked inbox decision file.
.squad/decisions/inbox/booster-ci-deletion-guard.md Removed tracked inbox decision file.
.squad/commit-msg.txt Removed tracked temp commit message artifact.
.squad/commit-message.txt Removed tracked temp commit message artifact.
.squad/agents/vox/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/surgeon/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/scribe/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/retro/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/ralph/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/procedures/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/pao/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/network/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/inco/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/handbook/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/gnc/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/flight/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/fido/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/eecom/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/control/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/capcom/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/booster/history.md Removed tracked agent history (machine-/session-local) file.
.squad/agents/_alumni/kobayashi/history.md Removed tracked alumni agent history file.
.gitignore Added explicit ignore rules for leaked .squad/ runtime/state artifacts.

@bdang-okta bdang-okta closed this Apr 29, 2026
@bdang-okta
bdang-okta deleted the chore/remove-tracked-runtime-state branch April 29, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants