Skip to content

Persist automatic worktree cleanup eligibility#337

Merged
chubes4 merged 1 commit into
mainfrom
fix/336-auto-cleanup-eligibility
May 11, 2026
Merged

Persist automatic worktree cleanup eligibility#337
chubes4 merged 1 commit into
mainfrom
fix/336-auto-cleanup-eligibility

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 11, 2026

Summary

  • Promotes durable PR and branch lifecycle signals into explicit cleanup_eligible metadata during reconciliation.
  • Records cleanup eligibility evidence including signal, reason, detection time, dirty/unpushed counts, and PR URL when available.
  • Preserves dirty and unpushed safety gates before auto-marking a worktree cleanup-eligible.

Closes #336.

Testing

  • php tests/smoke-worktree-metadata-reconcile.php
  • php -l inc/Workspace/Workspace.php
  • php -l tests/smoke-worktree-metadata-reconcile.php

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted and implemented lifecycle eligibility persistence and smoke coverage; Chris retains review and merge responsibility.

@chubes4 chubes4 merged commit 911df2a into main May 11, 2026
@chubes4 chubes4 deleted the fix/336-auto-cleanup-eligibility branch May 11, 2026 14:11
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.

Automatically mark worktrees cleanup-eligible from PR and branch lifecycle signals

1 participant