process: replace manual lease seeding with a durable, auditable merger lease adoption/recovery flow #536

Closed
opened 2026-07-08 06:37:14 -05:00 by jcwalker3 · 1 comment
Owner

Problem

During the merges of PR #493 and PR #421, the merger profile (prgs-merger) had to bypass the local process-memory session lease check by manually seeding reviewer_pr_lease._SESSION_LEASE in a dedicated Python script. While Gitea API gates remained active and secure, the merge path itself is classified as noncanonical because it bypassed the process-local preflight gate.

Proposed Hardening

Replace manual lease seeding in memory with a durable, auditable, non-bypassable merger lease adoption/recovery flow. A merger session must be able to explicitly verify and adopt the lease state via an authorized MCP tool path without requiring reviewer role permissions or manual variable mutation.

## Problem During the merges of PR #493 and PR #421, the merger profile (`prgs-merger`) had to bypass the local process-memory session lease check by manually seeding `reviewer_pr_lease._SESSION_LEASE` in a dedicated Python script. While Gitea API gates remained active and secure, the merge path itself is classified as noncanonical because it bypassed the process-local preflight gate. ## Proposed Hardening Replace manual lease seeding in memory with a durable, auditable, non-bypassable merger lease adoption/recovery flow. A merger session must be able to explicitly verify and adopt the lease state via an authorized MCP tool path without requiring reviewer role permissions or manual variable mutation.
Author
Owner

Controller Issue Audit & Taxonomy Request

  1. Incidents Audited: Confirmed that PR #493 and PR #421 were merged successfully (accepted outcome) but via a noncanonical merge path involving manual _SESSION_LEASE seeding.
  2. Acceptance Criteria: The solution must include automated test cases that explicitly reject ad hoc in-memory _SESSION_LEASE variable seeding as canonical proof of lease ownership, ensuring only a durable, auditable, signed lease-adoption flow is accepted.
  3. Taxonomy Request: Requesting an authorized operator/controller to apply the following process status labels to this issue:
    • type:process-hardening
    • area:merger-lease
    • guardrail
    • priority:high
    • status:ready
### Controller Issue Audit & Taxonomy Request 1. **Incidents Audited**: Confirmed that PR #493 and PR #421 were merged successfully (accepted outcome) but via a noncanonical merge path involving manual `_SESSION_LEASE` seeding. 2. **Acceptance Criteria**: The solution must include automated test cases that explicitly reject ad hoc in-memory `_SESSION_LEASE` variable seeding as canonical proof of lease ownership, ensuring only a durable, auditable, signed lease-adoption flow is accepted. 3. **Taxonomy Request**: Requesting an authorized operator/controller to apply the following process status labels to this issue: - `type:process-hardening` - `area:merger-lease` - `guardrail` - `priority:high` - `status:ready`
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#536