feat: add workflow dashboard for queue, leases, and next safe action (Closes #605) #762
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#762
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
Implements #605: read-only MCP workflow dashboard so humans and LLMs can see live queue/lease/blocker state and the next safe action without reconstructing comments.
Delivered
workflow_dashboard.py(machine + human readable snapshot)gitea_workflow_dashboard(gitea.read, never assigns work)mcp-menu.sh+docs/mcp-menu.mdentry documenting the toolSafety
gitea_allocate_next_workValidation
pytest tests/test_workflow_dashboard.py tests/test_mcp_menu_script.py— 24 passedCloses #605
Head pin
feat/issue-605-workflow-dashboard7f2b9f36de4fa958e43fcee36e07b36e4cb53759master@8a851eb87e63fc236d8897ed67f67cbe295bc3aeCTH: Author Handoff
Canonical Issue State
STATE: author_implementation_complete_pr_open
WHO_IS_NEXT: reviewer
NEXT_ACTION: Independently review PR #762 at exact head
7f2b9f36deand submit one formal verdict; do not merge in the review phaseNEXT_PROMPT:
WHAT_HAPPENED: Implemented #605 (workflow dashboard). Added pure workflow_dashboard.py, MCP tool gitea_workflow_dashboard, mcp-menu + docs entry, and hermetic tests (terminal-lock queue cases). Opened PR #762. Control-plane assignment asn-7fe2dec0e5df42f7 / lease lease-1dfc4167c6bc490d. Issue lock on feat/issue-605-workflow-dashboard.
WHY: Issue #605 required a read-only operational view of queues, leases, blockers, and next safe action so agents do not reconstruct state from comments or self-select blocked work.
RELATED_PRS: PR #762 (this PR); Closes #605
BLOCKERS: none
VALIDATION: pytest tests/test_workflow_dashboard.py tests/test_mcp_menu_script.py — 24 passed; head 7f2b9f36de4fa958e43fcee36e07b36e4cb53759; base master
8a851eb87eLAST_UPDATED_BY: jcwalker3 / prgs-author (author session prgs-author-75593-01e31082)
CTH: Blocker / Review Handoff
Canonical Issue State
STATE: blocked
WHO_IS_NEXT: author
NEXT_ACTION: Assess and implement defect issue #763 through prgs-author / jcwalker3 subject to WIP and dependency policy; do not re-attempt the failed reviewer lease sequence on PR #762 until #763 is resolved and verified.
NEXT_PROMPT:
WHAT_HAPPENED: Reviewer session could not acquire a reviewer lease for PR #762 despite green identity, capability, parity, namespace, workflow proof, and clean pinned worktree. Defect recorded as #763; this comment is the durable blocker handoff. PR #762 remains open and unreviewed. Required head remains
7f2b9f36de. No reviewer lease exists. Review validation did not begin. No code change to PR #762 is requested.WHY: Formal review of PR #762 / #605 is blocked by MCP preflight order gate inconsistency (gitea_acquire_reviewer_pr_lease reason_code=preflight_order_violation, error_class=precondition, retryable=false), not by PR content.
RELATED_PRS: PR #762 (this PR, still unreviewed); defect #763; product issue #605
BLOCKERS: #763 — unblock only when #763 is fixed/verified such that whoami → resolve_task_capability(review_pr) → gitea_acquire_reviewer_pr_lease succeeds under prgs-reviewer for PR #762 at head 7f2b9f36de4fa958e43fcee36e07b36e4cb53759; repeating the failed lease sequence is not a safe next action until then.
VALIDATION: Author issue-recording preflight green on prgs-author/jcwalker3: identity_match=true; in_parity=true at 8a851eb87e63fc236d8897ed67f67cbe295bc3ae; create_issue allowed; duplicate inventory 415/500 complete; #763 created type:bug status:ready; no PR review/merge; no implementation branch/lock for #763; existing feat-issue-605 worktree used only as worktree_path binding for this PR discussion comment.
LAST_UPDATED_BY: jcwalker3 / prgs-author (issue-recording + blocker-handoff only; no implementation)
Reproduction signature (recorded on #763)
Why not #718
#718 was a merger-path
internal_errorongitea_adopt_merger_pr_leaseafter lease expiry. This failure is a deterministic non-retryablepreflight_order_violationongitea_acquire_reviewer_pr_leaseafter a green whoami + resolve_task_capability(review_pr) sequence under prgs-reviewer / sysadmin.Labels / issue state
Canonical PR State
STATE: blocked
WHO_IS_NEXT: author
NEXT_ACTION: Author implements issue #763 under operator blocker-remediation authorization comment #12981; do not re-attempt reviewer lease or review of this PR until #763 is fixed and verified
NEXT_PROMPT:
WHAT_HAPPENED: Operator posted one-time blocker-remediation WIP exception on issue #763 as comment #12981 (prgs-reconciler/sysadmin). This is a cross-reference only.
WHY: PR #762 remains blocked by tooling defect #763; independent review cannot start until #763 is remediated. This is not #557 and does not authorize review of #762.
ISSUE: #605
HEAD_SHA:
7f2b9f36deREVIEW_STATUS: unreviewed; formal review blocked pending #763
MERGE_READY: false
RELATED_PRS: this PR #762; defect issue #763 authorization comment #12981; no #763 remediation PR yet
BLOCKERS: #763 until fixed/verified such that reviewer lease acquisition succeeds for this PR at pinned head; then independent reviewer may review
VALIDATION: Authorization record visible on issue #763 as comment #12981 authored by sysadmin; no labels changed; no implementation in controller session
LAST_UPDATED_BY: sysadmin / prgs-reconciler (cross-reference only)
Cross-reference: see issue #763 comment #12981 — OPERATOR BLOCKER-REMEDIATION AUTHORIZATION (not #557).
[THREAD STATE LEDGER]
what is true now
d181d499d33f9c367d2d490ce88ba942d3ea51c6.7f2b9f36de4fa958e43fcee36e07b36e4cb53759and baseb7a5284b984d1d810123a23fe7adb7eb5ba6eb99(both proven bygit merge-base --is-ancestor).commits_behind=0,mergeable=true,has_conflicts=false.what changed
gitea_lock_issuecall: prior session pid 75589 proven dead, expired lease replaced by pid 86490, same identityjcwalker3/ profileprgs-author, same branch and worktree. No manual lock-file edit occurred.gitea_update_pr_branch_by_mergeperformed an update-by-merge of live basemaster @ b7a5284b984d1d810123a23fe7adb7eb5ba6eb99intofeat/issue-605-workflow-dashboard(style=merge, no rebase, no force-push).7f2b9f36de4fa958e43fcee36e07b36e4cb53759→d181d499d33f9c367d2d490ce88ba942d3ea51c6.workflow_dashboard.py,gitea_mcp_server.py(dashboard tool only),mcp-menu.sh,docs/mcp-menu.md,tests/test_workflow_dashboard.py,tests/test_mcp_menu_script.py.what is blocked
who/what acts next
d181d499d33f9c367d2d490ce88ba942d3ea51c6.gitea_lock_issue(recovery, performed=true),gitea_update_pr_branch_by_merge(performed=true), this comment. No review, merge, or branch-deletion mutation was attempted by this session.Canonical PR State
STATE:
PR-open, synchronized
WHO_IS_NEXT:
reviewer
NEXT_ACTION:
Independently review PR #762 at NEW_HEAD
d181d499d33f9c367d2d490ce88ba942d3ea51c6.NEXT_PROMPT:
WHAT_HAPPENED:
The #605 author lock was recovered from a dead session (pid 75589) through the sanctioned #753 recovery path, then PR #762 was synchronized onto current master by an author update-by-merge.
WHY:
Current-base protection is satisfied through an author merge rather than a rebase, so the review history stays intact and the exact new head can be reviewed against live master.
ISSUE:
#605
BASE:
master @
b7a5284b98HEAD:
feat/issue-605-workflow-dashboard
HEAD_SHA:
d181d499d3OLD_HEAD:
7f2b9f36deBASE_HEAD:
b7a5284b98NEW_HEAD:
d181d499d3REVIEW_STATUS:
none at the current head; the former-head approval was invalidated by the head change and no verdict was carried forward
LOCK_RECOVERY:
sanctioned #753 dead-session recovery succeeded (prior pid 75589 dead, replacement pid 86490, recovered_at 2026-07-19T23:53:34Z, lease expires 2026-07-20T03:53:34Z)
VALIDATION:
pytest tests/test_workflow_dashboard.py tests/test_mcp_menu_script.py tests/test_webui_queue_dashboard.py tests/test_allocator_dependencies.py tests/test_allocator_inventory_mcp.py tests/test_allocator_service.py tests/test_issue_763_reviewer_lease_preflight_order.py— 98 passed, 30 subtests passed.Full suite at the new head: 3695 passed, 2 failed, 6 skipped, 435 subtests passed.
The 2 failures (
tests/test_issue_702_review_findings_f1_f6.py::TestF1RecoveryBeforeTerminalProbe::test_removed_worktree_recovers_before_probe,tests/test_reconciler_supersession_close.py::TestReconcilerSupersessionMcpTool::test_tool_posts_comment_and_closes_superseded_pr_issue) are pre-existing on master: both test files are byte-identical tob7a5284b984d, and the #605 delta togitea_mcp_server.pyhas zero overlap withverify_preflight_purity/reconcile_close_superseded_pr/ worktree-recovery code paths.git diff --checkclean.MERGE_READY:
no — an independent review verdict at the exact current head does not yet exist
BLOCKERS:
none
SUPERSEDES:
none
SUPERSEDED_BY:
none
RELATED_PRS:
RELATED_ISSUES:
LAST_UPDATED_BY:
jcwalker3 / prgs-author / 2026-07-19
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #762
issue: #605
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 13372-d997000a7c61
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-762-d181d499-post763-canary
phase: claimed
candidate_head:
d181d499d3target_branch: master
target_branch_sha:
b7a5284b98last_activity: 2026-07-20T00:07:24Z
expires_at: 2026-07-20T00:17:24Z
blocker: none
Canonical PR State
STATE:
approved_at_current_head; ready for merger (do not merge in review phase)
WHO_IS_NEXT:
merger
NEXT_ACTION:
Fresh Claude prgs-merger session: reassess and merge PR #762 only at exact head
d181d499d3if all merge gates pass.NEXT_PROMPT:
WHAT_HAPPENED:
Independent reviewer (sysadmin / prgs-reviewer) completed POST-#763 canary + full review of PR #762 at synchronized head
d181d499. Canonical whoami → resolve_task_capability(task=review_pr) → gitea_acquire_reviewer_pr_lease succeeded once (CANONICAL_REVIEW_PR_CANARY=PASS). Six-file #605 feature reviewed against master; formal APPROVE submitted via native MCP. No merge performed.WHY:
#605 acceptance criteria are satisfied and safety gates are preserved; #763 preflight path remains intact on the synchronized head (live canary + tests).
ISSUE:
#605
HEAD_SHA:
d181d499d3REVIEW_STATUS:
APPROVED at
d181d499d3by sysadmin / prgs-reviewerMERGE_READY:
pending independent merger gate reassessment at the exact approved head (review phase does not merge)
BLOCKERS:
none
VALIDATION:
pytest dashboard+menu: 24 passed / 30 subtests; related allocator/webui/#763: 98 passed / 30 subtests; MCP safety: 120 passed / 38 subtests; full suite: 3695 passed, 2 failed (pre-existing on master b7a5284; identical failing tests), 6 skipped, 435 subtests; git diff --check clean. Worktree clean at reviewed head.
NATIVE_REVIEW_PROOF: transport=native_mcp; entrypoint=mcp_server; token_fingerprint=be1ea4ce53546b0a; pid=13372; mode=production
LAST_UPDATED_BY:
sysadmin / prgs-reviewer
Formal Review Detail — PR #762 / #605
Reviewed head SHA:
d181d499d33f9c367d2d490ce88ba942d3ea51c6Base:
master@b7a5284b984d1d810123a23fe7adb7eb5ba6eb99Author: jcwalker3 (≠ reviewer sysadmin)
Decision: APPROVE
CANONICAL_REVIEW_PR_CANARY=PASS
Sequence (one attempt; no intervening call between resolve and lease; no raw
task=acquire_reviewer_pr_lease):gitea_whoami(remote=prgs)→ identity_match=true; profile=prgs-reviewer; role=reviewer; identity=sysadmingitea_resolve_task_capability(task=review_pr, remote=prgs)→ allowedgitea_acquire_reviewer_pr_lease→ acquired=trueLease: session_id=
13372-d997000a7c61comment_id=13030candidate_head=d181d499…target_branch_sha=b7a5284…worktree=branches/review-pr-762-d181d499-post763-canarycreated=2026-07-20T00:07:24Zexpires=2026-07-20T00:17:24ZFiles reviewed
workflow_dashboard.py; gitea_mcp_server.py (additive dashboard tool only; #763 path preserved); mcp-menu.sh; docs/mcp-menu.md; tests/test_workflow_dashboard.py; tests/test_mcp_menu_script.py
Ancestry: contains old feature 7f2b9f36… and master b7a5284…; commits_behind=0; mergeable=true; no conflicts.
Acceptance criteria (#605)
All PASS: live queues; leases; blockers; next-safe-action; incomplete inventory fail-closed; terminal/blocked handling; deterministic ordering; MCP read-only integration; shell menu docs-only; no allocator/reviewer/merger/reconciler gate weakening.
Findings
None actionable.
Final decision
APPROVE at
d181d499d33f9c367d2d490ce88ba942d3ea51c6. Do not merge in this session.repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #762
issue: #605
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 28132-b6d845eed2de
worktree: branches/merge-pr-762-d181d499
phase: claimed
candidate_head:
d181d499d3target_branch: master
target_branch_sha:
b7a5284b98last_activity: 2026-07-20T00:19:20Z
expires_at: 2026-07-20T00:29:20Z
blocker: none
Stale #332 review-decision lock cleanup (#594)
Status: APPLIED
sysadminprgs-merger2026-07-20T00:20:23.074543+00:00approveon PR feat: add workflow dashboard for queue, leases, and next safe action (Closes #605) (#762)closed(merged=True)fcf6981b1ba4d8d5072357ba13be0fdb6baa07ff1prgs-reviewerManual deletion of session-state files is not the workflow.
This path only clears a lock when the referenced PR is merged/closed.