feat(webui): Gitea issue and PR linkage console (Closes #645) #904
Merged
sysadmin
merged 1 commits from 2026-07-25 16:32:21 -05:00
feat/issue-645-linkage-console 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#904
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 the Phase 3 Gitea issue↔PR linkage console for #645.
Operators can see which PR carries which issue (and the reverse), how each edge was found, contested/ambiguous claims, and the latest Canonical Thread Handoff on a focused thread — without replacing Gitea as editor or review surface.
Surfaces
GET /gitea— HTML linkage browser (always 200; failed reads render the reason)GET /api/v1/gitea/linkage— JSON export (schema_version: 1; 502 when the read cannot be answered)Evidence model (strongest → weakest)
closes_keyword— PR title/body declares closes/fixes/resolves #Nbranch_marker— head branch carries(fix|feat|docs|chore)/issue-N-…body_reference— bare#Nmention (not treated as ownership on the issue→PR side)Safety / honesty
not_loaded(not “none”)GITEA_MCP_REVEAL_ENDPOINTSis setTest plan
pytest tests/test_webui_gitea_linkage.py— 49 passeddocs/webui-local-dev.mdCloses #645
Canonical handoff
Canonical Issue State
STATE: ready-for-review
WHO_IS_NEXT: reviewer
NEXT_ACTION: Review PR #904 for the #645 linkage console (read-only issue↔PR browser, handoff summary, deep-link reveal, tests+docs)
NEXT_PROMPT:
WHAT_HAPPENED: Implemented and published the Phase 3 Gitea issue↔PR linkage console. Commit
211890fon feat/issue-645-linkage-console; PR #904 opened; issue #645 labeled status:pr-open.WHY: Issue #645 acceptance criteria require linkage visibility, handoff summary, opt-in deep links, mocked tests, and docs — all delivered in this PR.
RELATED_PRS: #904
BLOCKERS: none
VALIDATION: pytest tests/test_webui_gitea_linkage.py — 49 passed
LAST_UPDATED_BY: author/jcwalker3
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #904
issue: #645
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 82281-038460a4caca
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr904-head-211890f
phase: claimed
candidate_head:
211890f361target_branch: master
target_branch_sha:
76f293eb28last_activity: 2026-07-25T20:43:46Z
expires_at: 2026-07-25T20:53:46Z
blocker: none
Review summary
Independent approval of PR #904 (Closes #645) at head
211890f.Canonical PR State
STATE: ready-to-merge
WHO_IS_NEXT: merger
NEXT_ACTION: Merge PR #904 at exact head
211890f361if still mergeable with approval at that headNEXT_PROMPT:
WHAT_HAPPENED: Reviewer validated scope and ACs for the Phase 3 Gitea issue↔PR linkage console and submits formal APPROVE via native MCP gitea_review_pr.
WHY: Matches #645 acceptance criteria; tests green; safety model intact; no unrelated scope.
ISSUE: #645
HEAD_SHA:
211890f361REVIEW_STATUS: approved / approval_at_current_head
MERGE_READY: true
BLOCKERS: none
VALIDATION: pytest tests/test_webui_gitea_linkage.py — 49 passed (worktree branches/review-pr904-head-211890f @
211890f); POST /gitea and /api/v1/gitea/linkage return 405NATIVE_REVIEW_PROOF: transport=native_mcp; entrypoint=mcp_server; tool=gitea_review_pr; profile=prgs-reviewer; session=gitea-reviewer
LAST_UPDATED_BY: reviewer/sysadmin
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #904
issue: none
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 82281-038460a4caca
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr904-head-211890f
phase: claimed
candidate_head: none
target_branch: master
target_branch_sha: none
last_activity: 2026-07-25T20:45:58Z
expires_at: 2026-07-25T20:55:58Z
blocker: none
PR #904 Review: APPROVED
Implements Phase 3 Gitea issue↔PR linkage console (#645).
Canonical PR State
STATE: ready-for-merge
WHO_IS_NEXT: merger
NEXT_ACTION: Merge PR #904
NEXT_PROMPT:
WHAT_HAPPENED: Reviewed PR #904, verified evidence model, fail-soft behavior, and executed full test suite (561/561 passed).
WHY: Code quality is high, tests pass 100%, and implementation satisfies acceptance criteria for #645.
ISSUE: #645
HEAD_SHA:
211890f361REVIEW_STATUS: APPROVED
MERGE_READY: true
BLOCKERS: none
VALIDATION: pytest tests/test_webui_gitea_linkage.py (49 passed), full webui suite (561 passed).
LAST_UPDATED_BY: sysadmin
NATIVE_REVIEW_PROOF: native-mcp-gitea-reviewer
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #904
issue: none
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 79064-a6e196832a09
worktree: /Users/jasonwalker/Development/Gitea-Tools
phase: claimed
candidate_head:
211890f361target_branch: master
target_branch_sha: none
last_activity: 2026-07-25T21:31:56Z
expires_at: 2026-07-25T21:41:56Z
blocker: none
finalized_at: 2026-07-25T21:32:29Z
finalized_by_identity: sysadmin
finalized_by_profile: prgs-merger
finalized_by_session_id: 79064-a6e196832a09
finalization_outcome: released
finalization_reason: merge-not-performed
finalized_lease_comment_id: 16821
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #904
issue: none
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 79064-a6e196832a09
worktree: /Users/jasonwalker/Development/Gitea-Tools
phase: released
candidate_head:
211890f361target_branch: master
target_branch_sha: none
last_activity: 2026-07-25T21:32:29Z
expires_at: 2026-07-25T21:42:29Z
blocker: merge-not-performed