fix: authoritative cross-role generic queue allocation (Closes #840) #841
Merged
sysadmin
merged 2 commits from 2026-07-23 00:37:55 -05:00
fix/issue-840-cross-role-queue-allocation into master
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#841
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.
Closes #840
Summary
Makes controller-owned queue allocation authoritative across roles so
gitea_allocate_next_workunder gitea-controller returns one eligible author/reviewer/merger/reconciler selection instead of binding only torole=controllerand returningselected=null.Changes
process_work_queue(and hyphen alias) for controller routing.controlleracross whoami, control-plane guide, router, and allocator (stop silent reclassification as reconciler).Validation
Canonical PR State
CTH: Author Handoff
Canonical Issue State
STATE: awaiting-review
WHO_IS_NEXT: reviewer
NEXT_ACTION: Review PR #841 against issue #840 acceptance criteria at head 9468dd624d2f193ee30d931e4760707976bf84d3; submit verdict; stop
NEXT_PROMPT:
WHAT_HAPPENED: Published unpublished branch fix/issue-840-cross-role-queue-allocation at 9468dd624d2f193ee30d931e4760707976bf84d3; created PR #841 into master with Closes #840; issue #840 labels set to status:pr-open; recovered dead-session issue lock as jcwalker3/prgs-author
WHY: Author stage complete; implementation already committed; remaining work is publish + PR + handoff to reviewer
RELATED_PRS: #841
BLOCKERS: none
VALIDATION: 64 focused tests passed; 78 adjacent regression tests passed (author cycle evidence)
LAST_UPDATED_BY: jcwalker3 (prgs-author)
Canonical Handoff
REPOSITORY: Scaled-Tech-Consulting/Gitea-Tools
ISSUE: #840
PR: #841
WORKFLOW_STATE: needs-review
HEAD_SHA:
9468dd624dBASE_BRANCH: master
BASE_OR_MERGE_SHA:
caaae9b6eeACTING_ROLE: author
ACTING_IDENTITY: jcwalker3 (prgs-author)
COMPLETED_ACTIONS: published unpublished branch fix/issue-840-cross-role-queue-allocation at 9468dd624d2f193ee30d931e4760707976bf84d3; created PR #841 into master with Closes #840; issue labels status:pr-open
VALIDATION_EVIDENCE: 64 focused tests passed; 78 adjacent regression tests passed (author cycle evidence)
MUTATION_LEDGER: gitea_publish_unpublished_issue_branch performed; gitea_lock_issue dead-session recovery; gitea_create_pr #841
BLOCKERS: none
NEXT_ACTOR: reviewer
NEXT_ACTION: Review PR #841 against issue #840 acceptance criteria at head 9468dd624d2f193ee30d931e4760707976bf84d3; submit verdict; stop
PROHIBITED_ACTIONS: merge, approve-as-author, rewrite published head without expected_head pin
NEXT_PROMPT: Resume as prgs-reviewer on PR #841 for issue #840 at head 9468dd624d2f193ee30d931e4760707976bf84d3; validate ACs (cross-role allocate, process_work_queue route, controller role metadata, role isolation); submit review verdict; do not merge; stop
WORKFLOW_FAILURE_ISSUES: none
LAST_UPDATED: 2026-07-23T04:21:29Z
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: none
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 99151-fbe053dbf1f0
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-issue-840-cross-role-queue-allocation
phase: claimed
candidate_head: none
target_branch: master
target_branch_sha: none
last_activity: 2026-07-23T04:34:31Z
expires_at: 2026-07-23T04:44:31Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: none
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 99151-fbe053dbf1f0
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-issue-840-cross-role-queue-allocation
phase: released
candidate_head: none
target_branch: master
target_branch_sha: none
last_activity: 2026-07-23T04:39:33Z
expires_at: 2026-07-23T04:49:33Z
blocker: manual-release
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: none
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 33606-97164d686627
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-issue-840-cross-role-queue-allocation
phase: claimed
candidate_head: none
target_branch: master
target_branch_sha: none
last_activity: 2026-07-23T04:50:10Z
expires_at: 2026-07-23T05:00:10Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: #840
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 73969-4828a781c03b
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-issue-840-cross-role-queue-allocation
phase: claimed
candidate_head:
9468dd624dtarget_branch: master
target_branch_sha: none
last_activity: 2026-07-23T05:18:00Z
expires_at: 2026-07-23T05:28:00Z
blocker: none
Approved PR #841. Code implementation correctly makes controller queue allocation authoritative across all worker roles (Issue #840), registers process_work_queue, normalizes controller metadata, and all unit test suites (238 tests) pass.
Canonical PR State
STATE: ready-to-merge
WHO_IS_NEXT: merger
NEXT_ACTION: Merge PR #841 into master branch
NEXT_PROMPT:
WHAT_HAPPENED: Terminal review approved for PR #841 at head
9468dd624dby sysadmin.WHY: Implementation satisfies all acceptance criteria of Issue #840 and passed 238 unit tests.
ISSUE: #840
HEAD_SHA:
9468dd624dREVIEW_STATUS: approved / approval_at_current_head
MERGE_READY: true
BLOCKERS: none
VALIDATION: 238 unit tests passed across cross_role_queue_allocation, allocator, inventory, lease, capability, and dashboard suites
NATIVE_REVIEW_PROOF: transport=native_mcp; entrypoint=mcp_server; token_fingerprint=4e784cbaffe67e4e
LAST_UPDATED_BY: sysadmin
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: #840
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 73969-4828a781c03b
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/fix-issue-840-cross-role-queue-allocation
phase: released
candidate_head:
9468dd624dtarget_branch: master
target_branch_sha: none
last_activity: 2026-07-23T05:23:07Z
expires_at: 2026-07-23T05:33:07Z
blocker: manual-release
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: #840
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 13395-68b9ad4520a3
worktree: /Users/jasonwalker/Development/Gitea-Tools
phase: claimed
candidate_head:
9468dd624dtarget_branch: master
target_branch_sha:
caaae9b6eelast_activity: 2026-07-23T05:37:08Z
expires_at: 2026-07-23T05:47:08Z
blocker: none
Stale #332 review-decision lock cleanup (#594)
Status: APPLIED
sysadminprgs-merger2026-07-23T05:37:57.458038+00:00approveon PR fix: authoritative cross-role generic queue allocation (Closes #840) (#841)closed(merged=True)4f3a464a90e14a6595cfb7339dd3d8d6ed957c933prgs-reviewerManual deletion of session-state files is not the workflow.
This path only clears a lock when the referenced PR is merged/closed.
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #841
issue: #840
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 13395-68b9ad4520a3
worktree: /Users/jasonwalker/Development/Gitea-Tools
phase: released
candidate_head:
9468dd624dtarget_branch: master
target_branch_sha:
caaae9b6eelast_activity: 2026-07-23T05:43:28Z
expires_at: 2026-07-23T05:53:28Z
blocker: post-merge-moot