defect: gitea_adopt_merger_pr_lease duplicate verify_preflight_purity call clears capability state #548

Closed
opened 2026-07-08 13:34:58 -05:00 by jcwalker3 · 1 comment
Owner

Defect Report

Tool: gitea_adopt_merger_pr_lease

Observed: Duplicate call to verify_preflight_purity (or equivalent purity/capability preflight) between lease adoption checks.

This cleared the capability state accumulated by the first check, so the second check saw a "clean" slate and could not carry forward proofs.

Context (post #542 merge for #517):

  • Merger (sysadmin / prgs-merger, session 71085-694544fbb790, worktree branches/merge-pr542)
  • Lease adoption proof at comment 7152 (adopted reviewer lease from session 32547-09f40fe5cf6d, lease comment 7110)
  • A temporary one-line local change was applied to allow the merge run, then reverted afterward.

Requirement:

  • File this as a separate defect issue (not accepted workaround).
  • The temporary local edit must not be treated as an accepted or documented workflow path.
  • Fix must preserve capability state across any internal preflight calls inside adopt/adoption flows.

Related:

Impact: Capability proofs can be lost mid-operation in lease adoption paths, requiring unsafe local patches for otherwise valid merges.

Acceptance:

  • Root cause identified in the adopt implementation.
  • No temp patches required for future adoptions.
  • Test coverage for capability state preservation across preflights in adoption.
## Defect Report **Tool:** `gitea_adopt_merger_pr_lease` **Observed:** Duplicate call to `verify_preflight_purity` (or equivalent purity/capability preflight) between lease adoption checks. This cleared the capability state accumulated by the first check, so the second check saw a "clean" slate and could not carry forward proofs. **Context (post #542 merge for #517):** - Merger (sysadmin / prgs-merger, session `71085-694544fbb790`, worktree `branches/merge-pr542`) - Lease adoption proof at comment `7152` (adopted reviewer lease from session `32547-09f40fe5cf6d`, lease comment `7110`) - A temporary one-line local change was applied to allow the merge run, then reverted afterward. **Requirement:** - File this as a *separate* defect issue (not accepted workaround). - The temporary local edit must not be treated as an accepted or documented workflow path. - Fix must preserve capability state across any internal preflight calls inside adopt/adoption flows. **Related:** - PR #542 - Issue #517 - Adoption comment: #7152 - Merger session: 71085-694544fbb790 **Impact:** Capability proofs can be lost mid-operation in lease adoption paths, requiring unsafe local patches for otherwise valid merges. **Acceptance:** - Root cause identified in the adopt implementation. - No temp patches required for future adoptions. - Test coverage for capability state preservation across preflights in adoption.
jcwalker3 added the status:in-progress label 2026-07-08 13:56:34 -05:00
Author
Owner

Issue claim heartbeat

<!-- gitea-issue-claim-heartbeat:v1 --> **Issue claim heartbeat** - kind: claim - issue: #548 - branch: issue-548-fix-duplicate-preflight - phase: claimed - profile: author - pr: none - blocker: none - next_action: create worktree and begin implementation
sysadmin removed the status:in-progress label 2026-07-08 20:54:41 -05:00
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#548