feat: discover merged cleanup worktree aliases (Closes #532) #571
Labels
Clear labels
allocator
anti-stomp
architecture
bug
chore
codex
concurrency
contamination
control-plane
dashboard
database
design
documentation
enhancement
gitea
glitchtip
important
incident
incident-bridge
integration
jenkins
labels
leases
mcp
mcp-health
mcp-menu
multi-project
mutating
nice-to-have
observability
portability
preflight
protected-branch
queue
read-only
reconnect
recovery
refactor
release
reliability
resumable-review
reviewer
roadmap
safety
security
self-hosted
sentry
stale-runtime
status:blocked
status:in-progress
status:pr-open
status:ready
terminal-lock
testing
tracker
type:bug
type:feature
type:feature
type:guardrail
visibility
workflow
workflow-hardening
workflow-hardening
Controller-owned work allocator
Prevent concurrent LLM session stomping
Architecture / structural design
OpenAI Codex client / workflow session surface
Concurrent session safety
Workflow or session contamination incident
MCP control-plane coordination and allocation authority
MCP operational dashboard/queue view
Internal coordination storage (SQLite/Postgres)
Design / investigation, no implementation
Docs / runbooks
New feature or improvement
Gitea MCP workflow
GlitchTip integration
Operational or process incident requiring durable audit trail
Sentry-to-Gitea incident bridging
Integration testing
Jenkins integration
Label taxonomy management
Lease adopt/release/expire lifecycle
MCP server / tooling
MCP namespace and runtime health
MCP menu surface
Work spanning multiple monitoring projects or Gitea repos
Mutating action; requires gating
Observability, metrics, traces, error reporting
Cross-platform / portability
Shared preflight gates before mutation
Protected branch / stable-branch policy concern
Work queue visibility and allocation
Read-only, no mutation
MCP client reconnect/reload recovery path
Recovery paths for stale/foreign leases
Code refactor / restructure
Release / versioning
Reliability / failure handling
Persist and resume prepared review verdicts across sessions
Reviewer workflow tooling
Roadmap / umbrella issue
Safety rails and fail-closed mutation guards
Security / trust boundary
Self-hosted infrastructure integration
Sentry error monitoring integration
Stale backend daemon / runtime-vs-master parity failures
Issue is blocked
Issue is being worked on
Issue has an open pull request
Issue is ready for work
Terminal review lock (#332) path
Tests / test coverage
Issue tracker hygiene / meta
Bug or defect
Feature or enhancement
Feature or enhancement
Safety gate or guardrail
Workflow state visibility for LLMs/operators
Cross-tool workflow
LLM workflow coordination hardening
LLM workflow coordination hardening
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Scaled-Tech-Consulting/Gitea-Tools#571
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Closes #532.
Teach merged cleanup reconciliation to find safe local issue-worktree aliases such as
branches/issue-510-*when the derived branch path would bebranches/feat-issue-510-*.Changes
git worktree list --porcelainfor structured local worktree discovery.branches/directory.Validation
Worktree
/Users/jasonwalker/Development/Gitea-Tools/branches/feat-issue-532-merged-cleanup-worktree-aliases@8d9f1f2Self-review: no.
8d9f1f2940to0a202970fdrepo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 54023-0f77f54e8870
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: claimed
candidate_head:
0a202970fdtarget_branch: master
target_branch_sha:
066eec8477last_activity: 2026-07-09T03:31:02Z
expires_at: 2026-07-09T05:31:02Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 54023-0f77f54e8870
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: released
candidate_head:
0a202970fdtarget_branch: master
target_branch_sha:
066eec8477last_activity: 2026-07-09T03:32:50Z
expires_at: 2026-07-09T05:32:50Z
blocker: manual-release
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 2908-9a17a98842c4
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: claimed
candidate_head:
a2e8bf17ectarget_branch: master
target_branch_sha: none
last_activity: 2026-07-09T12:52:29Z
expires_at: 2026-07-09T14:52:29Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 2908-9a17a98842c4
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: claimed
candidate_head:
a2e8bf17ectarget_branch: master
target_branch_sha: none
last_activity: 2026-07-09T12:54:22Z
expires_at: 2026-07-09T14:54:22Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 2908-9a17a98842c4
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: claimed
candidate_head:
a2e8bf17ectarget_branch: master
target_branch_sha: none
last_activity: 2026-07-09T12:55:02Z
expires_at: 2026-07-09T14:55:02Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 2908-9a17a98842c4
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: claimed
candidate_head:
a2e8bf17ectarget_branch: master
target_branch_sha:
8e7a69800alast_activity: 2026-07-09T13:04:17Z
expires_at: 2026-07-09T15:04:17Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 2908-9a17a98842c4
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: claimed
candidate_head:
a2e8bf17ectarget_branch: master
target_branch_sha:
8e7a69800alast_activity: 2026-07-09T13:04:48Z
expires_at: 2026-07-09T15:04:48Z
blocker: none
Review: APPROVE PR #571
Closes #532 — discover safe local worktree aliases during merged cleanup.
Scope (3 files)
merged_cleanup_reconcile.py— porcelain discovery; branch/issue alias underbranches/; PR-head or ancestry required; fail closed on ambiguity; dry-run path reused on executegitea_mcp_server.py— wire assessed pathtests/test_merged_cleanup_reconcile.pyValidation
8e7a698): no conflicts; post-sim 21 passedIdentity
Canonical PR State
STATE: approved ready-to-merge
WHO_IS_NEXT: merger
NEXT_ACTION: merge PR #571 at the pinned head with expected_changed_files, then run post-merge cleanup if needed
NEXT_PROMPT:
WHAT_HAPPENED: Completed formal review of PR #571 against issue #532 acceptance criteria; validation green; merge-sim clean on current master.
WHY: Scope matches #532, tests pass, no blocking findings; non-blocking nits only.
ISSUE: #532
HEAD_SHA:
a2e8bf17ecREVIEW_STATUS: approved
MERGE_READY: yes
BLOCKERS: none
VALIDATION: py_compile+diff-check clean; 67 focused tests passed; merge onto
8e7a698clean with 21 post-sim tests passedLAST_UPDATED_BY: sysadmin / prgs-reviewer
adopted_at: 2026-07-09T13:05:25Z
adopted_by_identity: sysadmin
adopted_by_profile: prgs-merger
adopted_from_session_id: 2908-9a17a98842c4
adopted_from_profile: prgs-reviewer
adopted_from_reviewer_identity: sysadmin
adopted_from_comment_id: 7933
adoption_reason: merger-handoff-approved-head
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #571
issue: #532
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 21215-6f9a631dd80e
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-571-merged-cleanup-aliases
phase: adopted
candidate_head:
a2e8bf17ectarget_branch: master
target_branch_sha:
8e7a69800alast_activity: 2026-07-09T13:05:25Z
expires_at: 2026-07-09T15:05:25Z
blocker: none