feat: merge-report lease proof fields and handoff audit (Closes #535) #585
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#585
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
Closes #535 residual acceptance gaps from comment #8314. Core adoption path already landed via #536 / PR #538.
Changes
gitea_merge_prlease proof report fields viadescribe_session_lease_proof:lease_proof_source,lease_recovery_reasonlease_proof_kind(sanctioned_adoption / sanctioned_acquire / unsanctioned_manual_seed / none)lease_proof_sanctioned,lease_proof_comment_id,lease_adopted_from_session_idshared.manual_lease_proof_handoffblocks handoffs claiming manual/seeded/injected lease proof without MCP adoption evidenceValidation
Worktree
branches/issue-535-lease-proof-report@2b4c291f12bd3433cad5654d27ad6924f725cb20Canonical PR State
STATE: ready-for-review
WHO_IS_NEXT: reviewer
NEXT_ACTION: review PR at head
2b4c291f12NEXT_PROMPT:
WHAT_HAPPENED: Implemented residual #535 gaps only; preserved #536 adoption runtime.
WHY: Merge reports and controller handoffs must distinguish sanctioned MCP lease proof from manual seeding.
PRIOR_PR: #538
BLOCKERS: none
VALIDATION: 32 passed targeted suite; diff --check clean
LAST_UPDATED_BY: jcwalker3 (prgs-author)
Canonical PR State
STATE: ready-for-review
WHO_IS_NEXT: reviewer
NEXT_ACTION: review and approve PR #585 at head
2b4c291f12NEXT_PROMPT:
WHAT_HAPPENED: Opened PR #585 implementing residual #535 gaps only.
WHY: Need merge-report lease proof fields and controller audit for unsafe lease claims.
RELATED_PRS: #585 #538
BLOCKERS: none
VALIDATION: pytest targeted suite 32 passed; git diff --check clean
LAST_UPDATED_BY: jcwalker3 (prgs-author)
Files changed
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #585
issue: #535
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: 55582-433dd4700275
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-pr-585-issue-535
phase: claimed
candidate_head:
2b4c291f12target_branch: master
target_branch_sha: none
last_activity: 2026-07-09T17:51:17Z
expires_at: 2026-07-09T19:51:17Z
blocker: none
Canonical PR State
STATE: approved
WHO_IS_NEXT: merger
NEXT_ACTION: merge PR #585 at expected head
2b4c291f12after explicit operator authorizationNEXT_PROMPT:
WHAT_HAPPENED: Reviewed PR #585 for Issue #535 residual gaps from comment #8314. Scope is residual-only (merge-report lease proof fields + controller handoff audit); does not rework #536 adoption core. APPROVE at pinned head.
WHY: #535 residual acceptance required lease_proof_source/recovery reason on merge reports and a final-report rule blocking bare manual/seeded/injected lease claims without sanctioned MCP evidence.
ISSUE: #535
HEAD_SHA:
2b4c291f12REVIEW_STATUS: approved
MERGE_READY: yes
BLOCKERS: none
VALIDATION: pytest tests/test_merger_lease_adoption.py tests/test_reviewer_pr_lease.py tests/test_final_report_validator.py::TestMergePrRules -q -> 32 passed; worktree branches/review-pr-585-issue-535
LAST_UPDATED_BY: sysadmin (prgs-reviewer)
Review findings
adopted_at: 2026-07-09T18:10:03Z
adopted_by_identity: sysadmin
adopted_by_profile: prgs-merger
adopted_from_session_id: 55582-433dd4700275
adopted_from_profile: prgs-reviewer
adopted_from_reviewer_identity: sysadmin
adopted_from_comment_id: 8400
adoption_reason: merger-handoff-approved-head
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #585
issue: #535
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 55588-eb3301ea0c5d
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/merge-pr-585
phase: adopted
candidate_head:
2b4c291f12target_branch: master
target_branch_sha: none
last_activity: 2026-07-09T18:10:03Z
expires_at: 2026-07-09T20:10:03Z
blocker: none
adopted_at: 2026-07-09T18:14:30Z
adopted_by_identity: sysadmin
adopted_by_profile: prgs-merger
adopted_from_session_id: 55588-eb3301ea0c5d
adopted_from_profile: prgs-merger
adopted_from_reviewer_identity: sysadmin
adopted_from_comment_id: 8413
adoption_reason: merger-handoff-approved-head
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #585
issue: #535
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 94021-376bf6ba1523
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/merge-pr-585
phase: adopted
candidate_head:
2b4c291f12target_branch: master
target_branch_sha: none
last_activity: 2026-07-09T18:14:30Z
expires_at: 2026-07-09T20:14:30Z
blocker: none
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #585
issue: #535
reviewer_identity: sysadmin
profile: prgs-merger
session_id: 94021-376bf6ba1523
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/merge-pr-585
phase: released
candidate_head:
2b4c291f12target_branch: master
target_branch_sha: none
last_activity: 2026-07-09T18:22:29Z
expires_at: 2026-07-09T20:22:29Z
blocker: post-merge-moot