You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Porch project state leaks across workspaces — codev-public projects appear in other repos #383
Every builder worktree inherits ALL project state directories from codev/projects/ because they're committed to git. A fresh builder for #373 contains stale directories for 0087, 0088, 0092, 0120, 0124, bugfix-327, bugfix-368 — none of which are relevant.
This also leaks codev-public project state into other repos (life, marketmaker) that share the codebase.
Root Cause
codev/projects/*/status.yaml and rebuttal files are committed to git. The .gitignore explicitly says "status.yaml IS versioned." When af cleanup runs, it may remove the directory from the worktree but doesn't remove it from git history, so it reappears in every new branch.
Fix
codev/projects/ should be gitignored. Porch state is runtime — it's only needed while a builder is active. The permanent record is captured in the review file. Specifically:
Add codev/projects/ to .gitignore
Remove all existing codev/projects/ entries from git tracking (git rm --cached)
Ensure af cleanup still removes the directory from the worktree
Ensure porch init still creates the directory at runtime (it already does with mkdirSync recursive)
Verify no code depends on finding other projects' status.yaml in the worktree
Evidence
Every active builder worktree contains 5-8 stale project directories:
Reverted PR #387 — the premise was wrong. status.yaml files are valuable data (timing metrics, phase history) and porch handles multi-project directories fine. No actual leak to other repos was confirmed.
Activity
waleedkadous commentedon Feb 17, 2026
On it! Working on a fix now.
[Bugfix #383] Fix: Gitignore codev/projects/ to prevent state leaks a…
[Bugfix #383] Fix: updateGitignore appends missing entries to existin…
Merge pull request #387 from cluesmith/builder/bugfix-383-porch-proje…
waleedkadous commentedon Feb 17, 2026
Reverted PR #387 — the premise was wrong. status.yaml files are valuable data (timing metrics, phase history) and porch handles multi-project directories fine. No actual leak to other repos was confirmed.
[Bugfix #407] Fix: findWorkspaceRoot() respects worktree boundaries