feat: add worktree hygiene dashboard to web UI (Closes #432) #453
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#453
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 #432. Child of tracker #425. Stacks on current
master(ee8e9a) with only #432 worktree-hygiene work.Adds read-only
/worktreesand/api/worktreesroutes that scan localbranches/directories, classify hygiene state, flag missing preserved worktrees (#404), and surface the canonical cleanup prompt — no deletion actions.Base / head
master276a71b276a71b(feat #432)Changes (only #432)
webui/worktree_scanner.py— git worktree scan, classification, lock anomalieswebui/worktree_views.py— HTML table + cleanup prompt copy buttonwebui/app.py—/worktrees,/api/worktreesroutes (replaces stub)docs/webui-local-dev.md— worktree hygiene sectiontests/test_webui_worktree_hygiene.py— 8 tests; skeleton tests updatedClassifications
active-pr,active-issue,dirty,stale-clean,detached-review,unsafe-unknown,orphanValidation
43 passed (9 subtests).
Worktree
branches/issue-432-worktree-hygiene@276a71bpr: #453
branch: feat/issue-432-worktree-hygiene
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/issue-432-worktree-hygiene
profile: prgs-author
session_id: unknown
phase: claimed
head_before:
276a71bd1aexpires_at: 2026-07-09T04:42:41Z
reviewer_active: no
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #453
issue: #432
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 38902-b20551f05e00
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-feat-issue-432-worktree-hygiene
phase: claimed
candidate_head:
87d6532cb3target_branch: master
target_branch_sha: none
last_activity: 2026-07-09T03:12:41Z
expires_at: 2026-07-09T05:12:41Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #453
issue: #432
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 38902-b20551f05e00
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-feat-issue-432-worktree-hygiene
phase: released
candidate_head:
87d6532cb3target_branch: master
target_branch_sha: none
last_activity: 2026-07-09T03:12:56Z
expires_at: 2026-07-09T05:12:56Z
blocker: manual-release
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #453
issue: #432
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 65352-b8e6f81d9ef8
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-453-worktree-hygiene
phase: claimed
candidate_head:
b3bc459423target_branch: master
target_branch_sha:
5cf44d78e6last_activity: 2026-07-09T13:23:46Z
expires_at: 2026-07-09T15:23:46Z
blocker: none
Review: APPROVE PR #453
Closes #432 — worktree hygiene dashboard in web UI.
Pre-review
Rebased onto master after #452 (docs conflict resolved; dropped obsolete skeleton stub assertion for
/worktrees).Scope (6 files)
webui/worktree_scanner.py/worktree_views.py— read-onlybranches/scan/worktrees+/api/worktreesValidation
Identity
Canonical PR State
STATE: approved ready-to-merge
WHO_IS_NEXT: merger
NEXT_ACTION: merge PR #453 at pinned head
NEXT_PROMPT:
WHAT_HAPPENED: Rebased after #452, fixed skeleton stub assertion, re-validated, APPROVE.
WHY: Scope matches #432; read-only scan only; tests green.
ISSUE: #432
HEAD_SHA:
b3bc459423REVIEW_STATUS: approved
MERGE_READY: yes
BLOCKERS: none
VALIDATION: 28 passed; mergeable True
LAST_UPDATED_BY: sysadmin / prgs-reviewer
adopted_at: 2026-07-09T13:24:24Z
adopted_by_identity: sysadmin
adopted_by_profile: prgs-merger
adopted_from_session_id: 65352-b8e6f81d9ef8
adopted_from_profile: prgs-reviewer
adopted_from_reviewer_identity: sysadmin
adopted_from_comment_id: 8005
adoption_reason: merger-handoff-approved-head
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #453
issue: #432
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 66139-d4c7ef3f8dba
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-453-worktree-hygiene
phase: adopted
candidate_head:
b3bc459423target_branch: master
target_branch_sha:
5cf44d78e6last_activity: 2026-07-09T13:24:24Z
expires_at: 2026-07-09T15:24:24Z
blocker: none