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: preserve project status.yaml on cleanup — commit to main at pr-ready gate #532
af cleanup calls cleanupPorchState() which deletes codev/projects/<id>-*/ entirely, including status.yaml. This destroys all project completion data (protocol, wall clock time, gate timestamps, phase history).
This means analytics can only see projects that haven't been cleaned up yet. All completed and cleaned-up projects lose their status.yaml forever.
Impact
Analytics "Projects by Protocol" breakdown shows incomplete data
Wall clock time (started_at → updated_at) is lost for completed projects
Gate timestamps (spec-approval, plan-approval, pr-ready) are lost
No historical record of completed projects
Expected Behavior
At the pr-ready gate (or on project completion), porch should commit the final status.yaml to the main branch so it persists after cleanup.
Options (pick one):
Commit status.yaml at pr-ready gate: Builder commits codev/projects/<id>/status.yaml to its PR branch → gets merged to main → survives cleanup
Copy to archive before cleanup: af cleanup copies status.yaml to codev/projects/.archive/<id>/status.yaml before deleting
Don't delete on cleanup: Change cleanupPorchState to preserve the directory (only delete if --force)
Option 1 is preferred — the data lands on main via the normal PR merge flow.
Acceptance Criteria
Completed project status.yaml files survive af cleanup
Historical data available for analytics (protocol, timing, gates)
No regression in cleanup behavior for worktrees/branches
This ensures the data survives cleanup permanently — GitHub issues are the canonical record. The status.yaml should ALSO be committed to the PR (so analytics can scan it), but the issue comment is the human-readable summary.
Activity
waleedkadous commentedon Feb 23, 2026
Additional Requirement: Post completion stats as issue comment
When a project completes (pr-ready gate or merge), porch should post a completion summary comment on the GitHub issue with stats from status.yaml:
This ensures the data survives cleanup permanently — GitHub issues are the canonical record. The status.yaml should ALSO be committed to the PR (so analytics can scan it), but the issue comment is the human-readable summary.
waleedkadous commentedon Feb 23, 2026
Data Capture Convention
Bugs → Post completion statistics as a comment on the GitHub Issue when the bug is resolved.
Projects (SPIR/ASPIR/TICK) → Capture everything in status.yaml, which gets committed to main at the pr-ready gate.
This convention should be documented in the relevant protocol docs so builders and porch follow it consistently.
waleedkadous commentedon Feb 23, 2026
On it! Working on a fix now.
[Bugfix #532] Fix: Preserve project status.yaml on cleanup
[Bugfix #532] Fix: Quote status.yaml path in git add instruction
Merge pull request #534 from cluesmith/builder/bugfix-532-porch-prese…