Production launcher cannot issue trusted client-instance identity for project-scoped LLM launches #985
Open
opened 2026-07-31 02:39:43 -05:00 by jcwalker3
·
2 comments
No Branch/Tag Specified
master
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
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#985
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 fleet-safety implementation requires each application launch to receive one trusted, unique
GITEA_MCP_CLIENT_INSTANCE, shared by every MCP namespace worker belonging to that launch.Current MCP configurations bypass the launcher API and omit trusted instance identity. Workers fall back to
legacy-pid-*, which is intentionally classified aslegacy_incomplete. When multiple LLM applications run concurrently, workers using the same profile become indistinguishable and capability resolution fails closed withruntime_reconnect_required.The existing launcher cannot fully remediate this:
build_application_mcp_serversrequires profiles for all five sanctioned namespaces..mcp.jsonwould cause concurrent sessions to reuse one trusted identity and trigger the stricter duplicate-worker failure.Required behavior
Acceptance criteria
legacy-pid-*identity still fails closed when processes cannot be distinguished safely.Source references
mcp_application_launcher.pymcp_fleet_snapshot.pygitea_mcp_server.pygitea_config.pygitea_config_menu.pydocs/instance-fleet-identity.mdtests/test_issue_978_instance_fleet_snapshot.pyOut of scope
.mcp.jsonIssue claim heartbeat
Canonical Issue State
STATE: pr-open-awaiting-independent-review
WHO_IS_NEXT: reviewer
NEXT_ACTION: Review PR #986 at exact head
7e19079b5cagainst the #985 acceptance criteria and submit exactly one formal verdict at that head.NEXT_PROMPT: Role REVIEWER on prgs / Scaled-Tech-Consulting / Gitea-Tools; target PR #986 at head 7e19079b5cc6b029aed729945c91e9edc5a1c721; full prompt below.
WHAT_HAPPENED: Issue #985 was claimed under a canonical author issue lock, implemented on branch feat/issue-985-project-scoped-launcher-identity, published as commit
7e19079b5c, and opened as PR #986 against master carrying a Closes #985 reference; issue #985 transitioned to status:pr-open. Six files changed: mcp_application_launcher.py, mcp_fleet_snapshot.py, gitea_config.py, docs/instance-fleet-identity.md, tests/test_issue_978_instance_fleet_snapshot.py, and the new tests/test_issue_985_project_scoped_launcher.py. Three behavioural changes landed: build_application_mcp_servers now accepts an explicitly checked project-scoped namespace subset so an author/reviewer/merger launch needs no controller or reconciler profile; a runnable entry point mints one trusted GITEA_MCP_CLIENT_INSTANCE per launch, writes a per-launch 0600 config, and execs the client; and launcher provenance sealing now fails closed.WHY: The author phase is finished and the prgs-author profile forbids gitea.pr.approve and gitea.pr.merge, confirmed via gitea_check_pr_eligibility, so only an independent reviewer can decide this PR.
RELATED_PRS: PR #986 carries this work and closes #985. Context only, not dependencies: issue #978 and its PR #979 introduced the instance-fleet snapshot this builds on; issues #980 and #981 each explicitly placed trusted launcher identity outside their own scope.
BLOCKERS: No blocker. No gate is refusing anything; the author lock is released and PR #986 awaits an independent reviewer decision, which is the normal next transition.
VALIDATION: tests/test_issue_985_project_scoped_launcher.py reports 47 passed and 3 subtests passed. Full suite on this branch reports 28 failed, 6252 passed, 6 skipped, 1109 subtests passed. Full suite on the master baseline at
32ab8392reports 28 failed, 6204 passed, 6 skipped, 1106 subtests passed. The sorted FAILED sets are byte-identical between the two runs, so zero regressions were introduced and zero pre-existing failures were masked; the +48 passing delta is 47 new #985 tests plus the new #978 unsealed-case test.LAST_UPDATED_BY: jcwalker3 (prgs-author) author handoff
[THREAD STATE LEDGER]
What is true now
Server-side decision state: PR #986 is open and mergeable with zero reviews recorded at head 7e19079b5cc6b029aed729945c91e9edc5a1c721; no approval, no requested changes, and no merge exists.
Local verdict/state: author implementation is finished, committed, and published; no review verdict exists locally or server-side because prgs-author forbids gitea.pr.approve and gitea.pr.merge.
Blocker classification: no blocker
What changed
Branch feat/issue-985-project-scoped-launcher-identity was created from master
32ab839289, six files were changed, and commit7e19079b5cwas published and opened as PR #986. Issue #985 moved to status:pr-open.What is blocked
Blocker classification: no blocker
Nothing is impeded. The author lock is released and the cycle advances to independent review.
Who/what acts next
Next actor: reviewer (prgs-reviewer namespace, independent session)
Required action: review PR #986 at head
7e19079b5cand submit exactly one formal verdict at that head.Do not do: approve, request changes on, or merge PR #986 using the author namespace; re-run the author workflow for #985; modify unrelated issues, PRs, branches, worktrees, labels, or configuration; attribute the 28 pre-existing full-suite failures to this PR.