Standalone issue-close has no sanctioned path: capability resolution silently cross-switches instances, gitea_close_issue lacks worktree_path, and no mdcps reconciler route exists #711
Open
opened 2026-07-14 12:18:37 -05:00 by jcwalker3
·
1 comment
No Branch/Tag Specified
master
fix/issue-714-session-context-immutability
fix/issue-709-decision-lock-cross-profile
fix/issue-695-native-transport-quarantine
fix/issue-698-report-validator-schema
fix/issue-702-stale-binding-lease-recovery
fix/issue-699-structured-auth-mcp-errors
fix/issue-695-native-quarantine-v2
fix/issue-693-review-decision-lock-recovery
fix/issue-691-obsolete-reviewer-lease-cleanup
feat/issue-687-reconciler-branch-delete
fix/issue-683-workflow-guard-hardening
chore/issue-681-preserve-review-session-wip
feat/issue-604-anti-stomp-preflight
feat/issue-606-sentry-observability
fix/issue-671-block-stable-branch-push
fix/issue-675-residual-preflight-remediation
fix/issue-673-remediate-regressions-part2
fix/issue-673-remediate-regressions
feat/issue-603-lifecycle-labels
fix/issue-627-set-issue-labels-pagination
feat/issue-601-first-class-leases
feat/issue-612-incident-bridge
feat/issue-600-controller-allocator-api
fix/issue-620-head-scoped-review-locks
feat/issue-613-allocator-db-substrate
docs/mcp-stable-control-runtime-policy
feat/issue-609-prepared-review-verdict-resume
feat/issue-610-live-remote-parity
feat/issue-503-reviewer-active-worktree
feat/issue-470-preflight-contract
feat/issue-440-lock-recovery
feat/issue-440-branch-recovery
feat/issue-458-queue-fail-closed-copy
feat/issue-400-early-duplicate-work-gate
feat/issue-308-reconcile-inventory-pagination
feat/issue-308-reconcile-pagination-proof
docs/issue-261-agent-temp-artifact-cleanup
feat/issue-262-map-commit-files
fix/infra-stop-conflict-marker-false-positive
feat/issue-139-role-aware-task-routing
feat/issue-188-continuation-selection-wall
feat/issue-189-continuation-mode-proofs
feat/issue-232-refresh-wiki-proof-heads
feat/issue-210-block-workspace-edits
feat/issue-204-exact-issue-lock
docs/issue-80-label-taxonomy
docs/issue-79-safety-boundary-updates
v1.1.0
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
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#711
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
Closing a standalone Gitea issue (an issue with no PR — e.g. a duplicate) has no authorized, safe path for the
mdcps(gitea.dadeschools.net) instance. A real controller-triage task (close eAgenda913443/eAgenda#188as a duplicate of#170) could not be completed, and the attempt exposed three compounding workflow defects plus a capability gap.The two triage comments landed fine (they run under
gitea.issue.comment, whichmdcps-authorhas), but the terminal close could not be performed by any legitimate dadeschools profile.#188remains open only because the supported workflow offers no authorized close path.Reproduction (observed 2026-07-14)
mdcps-authorongitea.dadeschools.net, identity913443, repo913443/eAgenda.#170(comment 3264) and duplicate-closure comment on#188(comment 3273) — both succeeded undergitea.issue.comment.gitea_resolve_task_capability(task="close_issue", remote="dadeschools").mdcpsprofile holdsgitea.issue.close, the resolver silently switched the active profile toprgs-author(identityjcwalker3, host gitea.prgs.cc) — a different Gitea instance — instead of failing closed on the requesteddadeschoolsremote.dadeschoolsreads returned HTTP 404 (prgs credentials against dadeschools) until the profile was manually re-activated tomdcps-author.gitea_close_issue(remote="dadeschools", issue_number=188, ...).gitea_close_issueexposes noworktree_pathparameter (the comment tools do), so it cannot present the session-ownedbranches/worktree the guard wants.close_issue.gitea_list_profiles— no dadeschools profile can close an issue:mdcps-author— nogitea.issue.closemdcps-reviewer— PR review ops onlymdcps-merger— PR merge onlymdcps-reconcilerexists (theprgsside hasprgs-reconciler, but it only carriesgitea.pr.close, notgitea.issue.close, and is the wrong instance)prgs-authorhasgitea.issue.close, on the wrong instance.Impact
mdcpsthrough the supported workflow.#188open) despite full documentation, because there is no authorized close route.Root causes
remote/instance affinity.gitea_close_issuewas not given theworktree_pathguard-satisfaction parameter that the comment tools already have.mdcpsoperator/reconciler that can close a standalone issue without granting broad close permission to ordinary author sessions.Required behavior / Acceptance criteria
resolve_task_capability(remote=X)must only consider profiles bound to instanceX; a profile for another instance is never eligible.worktree_pathsupport for standalone issue closure.gitea_close_issueacceptsworktree_pathwith the same semantics as the comment tools.worktree_path, a legitimately-authorizedclose_issuesatisfies the branches-only guard (#274) from a session-ownedbranches/worktree.mdcpsreconciler/operator capability can close standalone issues (with reason) without granting broadgitea.issue.closeto ordinarymdcps-authorsessions.close_issuehonorsworktree_path; guard passes with worktree and blocks without; reconciler/operator can close a standalone issue; author cannot; success and failure paths.Concrete follow-up needed
worktree_pathtogitea_close_issue.gitea_resolve_task_capability(no cross-instance auto-switch).mdcpsreconciler/operator close path for standalone issues.913443/eAgenda#188as a duplicate of#170(rationale already on#188comment 3273; absorbed criteria on#170comment 3264).Related
gitea.branch.delete) — precedent for adding a scoped capability to a reconciler; extend the pattern to standaloneissue.close.worktree_pathasymmetry).Filed by prgs-author (jcwalker3) under a narrowly-scoped, operator-authorized switch solely to record this Gitea-Tools workflow gap. No eAgenda mutation performed under this profile; session restored to mdcps-author afterward.
Canonical Issue State
STATE: OPEN
WHO_IS_NEXT: reconciler
NEXT_ACTION: Evaluate adding MDCPS issue reconciliation profiles and capabilities
NEXT_PROMPT:
WHAT_HAPPENED:
Adding evidence for MDCPS issue reconciliation capability gap:
Problem:
No stable MDCPS profile can complete canonical issue reconciliation for eAgenda.
Current gaps:
reopen_issueis unknown to the task-capability map.Required design:
reopen_issueto the task-capability map.mdcps-reconcilerprofile for issue-state mutation.gitea.issue.commentto mdcps-reviewer; do not automatically grant broader issue administration.Acceptance criteria:
Incident linkage:
WHY: Need native issue reopen capabilities and a dedicated mdcps-reconciler to handle eAgenda issue-state mutations safely without relying on cross-host prgs profiles.
RELATED_PRS: PR #191
BLOCKERS: eAgenda Issues 170 and 188 reconciliation is blocked until an mdcps profile is granted these capabilities.
VALIDATION: Verified that existing profiles cannot reopen the eAgenda issues without falling back to a foreign host.
LAST_UPDATED_BY: Author