Epic: Migrate the Gitea MCP fleet from local stdio processes to a remote MCP deployment #929
Open
opened 2026-07-26 00:28:12 -05:00 by jcwalker3
·
1 comment
No Branch/Tag Specified
master
fix/issue-987-native-mcp-bootstrap
feat/issue-985-project-scoped-launcher-identity
fix/issue-983-cross-repo-base-ref
feat/issue-980-stale-worker-retirement
fix/issue-975-client-identity-heartbeat
fix/issue-973-cross-repo-canonical-roots
fix/issue-970-safely-resolve-missing-worktrees
fix/issue-969-native-mcp-bootstrap
feat/issue-664-break-glass-restart
feat/issue-708-mcp-namespace-attachment
feat/issue-665-restart-audit
fix/issue-700-durable-walls
fix/issue-704-prevent-env-workspace-bindings
feat/issue-707-cross-project-boundaries
fix/issue-690-review-profile-switch-guard
fix/issue-953-bootstrap-lock-provenance
feat/issue-949-native-fleet-inventory
fix/issue-943-runtime-context-helpers
fix/issue-945-owning-pr-renewal-evidence
fix/issue-941-scope-guard-bootstrap-wiring
docs/issue-930-remote-mcp-coupling-inventory
fix/issue-892-author-bootstrap-deadlock
fix/issue-686-detect-reject-manual-mcp
fix/issue-672-mcp-config-drift
fix/issue-689-deterministic-mcp-namespace
feat/issue-666-concurrent-mcp-restart-tests
feat/issue-659-maintenance-drain-mode
feat/issue-648-notifications-console
fix/issue-670-direct-master-incident
feat/issue-644-console-recovery
feat/issue-650-providers-insights
feat/issue-669-scoped-component-recovery
docs/issue-668-mcp-ha-rolling-restart
feat/issue-667-console-restart-controls
feat/issue-645-linkage-console
feat/issue-643-request-preview-initiate
fix/issue-897-permission-stale-runtime-classification
feat/issue-641-runtime-session-view
feat/issue-663-restart-classes
feat/issue-661-drain-proof-hard-gate
fix/issue-854-semantic-container-exclusion
issue-640
fix/issue-682-starlette-httpx2
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
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
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
Something is not working
This issue or pull request already exists
New feature
Need some help
Something is wrong
More information is needed
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Scaled-Tech-Consulting/Gitea-Tools#929
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.
Problem
The Gitea MCP fleet runs as five local operating-system processes on the operator's Mac. Each one is
mcp_server.pylaunched by the LLM client, pinned to a single role by theGITEA_MCP_PROFILEenvironment variable, reading its token from the operator's macOS keychain, and speaking JSON-RPC over stdio pipes owned by that client.That model is load-bearing in the code, not incidental. The transport is bound literally, once, at process start:
and the safety architecture is built on top of that bind. Mutations fail closed unless the process can prove it was launched by a client with real stdio pipes and
GITEA_CLIENT_MANAGEDprovenance; the master-parity gate compares the commit the process started at against the working tree on the same disk; author tools operate directly on localbranches/worktrees; and every lock, lease, and session record lives in local files keyed to a local PID.The consequences of that coupling are the reason to move:
Children
Ten children, dependency-ordered. A child is implementation-ready only when every blocker is closed.
Dependency order, as a critical path:
The single implementation-ready child is #930. Everything else is blocked until its blockers close.
Epic completion gate
Do not decommission the local stdio fleet until all of the following hold:
Non-goals
Duplicate verdict
No existing issue covers this scope. Verified against a full scan of every issue in this repository, numbers 1 through 927. Issue #887 lists replacing the MCP transport and role-namespace model as an explicit non-goal. Issue #631 is a web console for the control plane, a different surface. Issue #689 is deterministic namespace attachment within the current local model. Issue #808 concerns worker discovery, not transport.
[THREAD STATE LEDGER] Issue #929 — verified child chain, seven new security owners, and the issue that completes workstation credential removal
What is true now
aad5c8b42361d380a8eeb07b94b90815e594c2c5. Seven security requirements that no child owned now have durable trackers: #956, #957, #958, #959, #960, #961, and #962.aad5c8b42361d380a8eeb07b94b90815e594c2c5; mutation_safe true; live_stale false; restart_required false.Verified #930 through #939 chain
The declared dependency edges were confirmed against the control-plane edge table. Querying edges targeting #930 returned three
issue_blocked_by_issueedges from #931, #932, and #936, each in statemetwith observed_state closed. #931 is therefore the only implementation-eligible child of the original ten.New canonical owners created this session
Why each was needed rather than folded into an existing child: #930 classifies portability, never trust, so no threat model exists. #932 carries six principal fields and states no deny-by-default or read-only posture. #938 covers transport, handshake, rate limiting, and logging, but no filesystem, service-account, egress, or packaging constraint. #700 AC1 and the closed #171 cover three redaction surfaces and raw URLs; structured errors, exceptions, traces, headers, and subprocess output are uncovered. The closed #18 added audit logging with no tamper-evidence. The closed #86 introduced
LLM-Agent-SHAattribution and nothing forbids treating it as authentication. #933 and #938 cover credential resolution and a rotation runbook, not revocation or emergency invalidation as operations.The issue that completes workstation credential and privileged-process removal
#961. This is the only issue whose completion definition is the stated end state: LLM clients possess no Gitea credentials or privileged infrastructure access.
Every other child makes the remote endpoint possible; none removes the credential from the workstation. #939 explicitly lists permanent decommissioning as a non-goal, calling it a separate decision for the operator. This epic's completion gate says no mutation path reads the operator's macOS keychain, but assigns that removal to no child. #933's non-goals retain the keychain provider. #961 closes that gap: it enumerates every workstation credential artifact, executes removal, converts every client to remote-endpoint configuration, and verifies absence by executed check rather than inspection.
Resulting dependency order
What changed
What is blocked
Who/what acts next
Canonical Issue State
STATE:
open — ten-child chain verified; seven security owners added; #961 identified as the end-state issue
WHO_IS_NEXT:
author
NEXT_ACTION:
Implement #931 and #956 in parallel; both depend only on the closed #930.
NEXT_PROMPT:
WHAT_HAPPENED:
A live roadmap audit mapped all nineteen secure-isolation requirements to canonical owners at master
aad5c8b423. The existing #930 through #939 chain covered transport, principal resolution, credential provisioning, provenance, freshness, tool boundary, concurrent state, endpoint authentication, and cutover. Fifteen requirements were uncovered or only partially covered. Seven new issues now own them, and #961 is identified as the single issue whose completion makes the secure-isolation end state objectively true.WHY:
This epic makes a remote endpoint possible but never removes the credential from the operator workstation, and #939 places that removal out of scope. Without #961 an LLM client still holds a Gitea token no matter how the endpoint behaves. Without #956 the later children have no trust model to scope themselves against. Without #957 a correctly authenticated caller can still act on a foreign lease or a stale head. Without #962 every control is asserted only by tests written alongside it, which #700 demonstrates is not trustworthy.
ISSUE: 929
RELATED_PRS:
none
BLOCKERS:
none
VALIDATION:
Parity verified before and after every mutation and unchanged at
aad5c8b423with mutation_safe true, live_stale false, restart_required false. The create_issue capability was resolved immediately before each creation. Each new issue was read back natively with issue state open, correct title, complete body, and valid workflow labels carrying exactly one type label and one status label. The duplicate search was repeated after every creation and returned exactly one instance of each new title. Dependency edges targeting #930 were confirmed live in state met.LAST_UPDATED_BY:
jcwalker3 / prgs-author / AUTHOR / 2026-07-28