fix: durable author worktree resolution without control fallback (Closes #618) #771
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#771
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.
Closes #618
Summary
Recovers the preserved #618 implementation onto current
prgs/master(0568f44) and publishes the durable author worktree resolution layer.Author mutation tools now resolve workspace via:
worktree_pathGITEA_AUTHOR_WORKTREE/ active binding)Never silent fallback to the control checkout/master. Missing configured bindings fail closed with operator recovery.
create_issueandcreate_issue_commentenforce the same rule.Recovery proof
author-618-recovery-508eb3162d01-1784569919cbf56ccd84d81f509e9595fedac82848f8dd5de6preserve/issue-618-cbf56cc5ed2ab8a38d72e6959c8cd7704dc14f9a4eab9090568f44cb2d87e78fd394a27a670e33c84f7842fgitea_commit_filesValidation
Checklist
jcwalker3/prgs-author)Next role
reviewer — review at head
5ed2ab8a38d72e6959c8cd7704dc14f9a4eab909.Canonical Issue State
STATE: pr-open — PR #771 published for Issue #618 at head
5ed2ab8a38WHO_IS_NEXT: reviewer
NEXT_ACTION: review PR #771 at pinned head
5ed2ab8a38under prgs-reviewer; do not author further #618 changes unless requested changes landNEXT_PROMPT:
WHAT_HAPPENED: Author recovery for #618 completed. Recovered lock via gitea_lock_issue after parking branch at master tip with preserve/issue-618-cbf56cc holding candidate cbf56ccd. Cherry-picked preserved commit cleanly onto
0568f44, re-ran focused tests (43 passed), published via gitea_commit_files to head5ed2ab8, opened PR #771 only.WHY: Comment 13193 classified AUTHOR_RECOVERY_REQUIRED; #618 behavior was absent from master; exclusive author WIP was free (open PR inventory empty); candidate was complete and clean.
RELATED_PRS: #771 (this PR, open, closes #618)
BLOCKERS: none
VALIDATION: Gate Zero parity at
0568f44restart_required=false; identity jcwalker3/prgs-author match; no competing live author lease for #618; open PR inventory was empty before create; pytest 43 passed; remote branch head5ed2ab8verified via ls-remote; issue labels moved to status:pr-openLAST_UPDATED_BY: prgs-author / jcwalker3 / LLM_LOCK_ID=author-618-recovery-508eb3162d01-1784569919
[THREAD STATE LEDGER] PR #771 / Issue #618 — author recovery published; next role reviewer
What is true now:
5ed2ab8a38base master5ed2ab8a38What changed:
0568f44by clean cherry-pick (local intermediate 176ca02) then gitea_commit_files published5ed2ab8What is blocked:
Who/what acts next:
5ed2ab8a385ed2ab8repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #771
issue: #618
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: reviewer-771-618-6873209c0cd8-1784570422
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-418
phase: claimed
candidate_head:
5ed2ab8a38target_branch: master
target_branch_sha:
0568f44cb2last_activity: 2026-07-20T18:02:28Z
expires_at: 2026-07-20T18:12:28Z
blocker: none
Canonical PR State
STATE: open — formal review decision ready at head
5ed2ab8a38WHO_IS_NEXT: reviewer
NEXT_ACTION: complete native APPROVE submission for this exact head
NEXT_PROMPT:
WHAT_HAPPENED: Independent prgs-reviewer formal review of PR #771 only completed validation. Lease session reviewer-771-618-6873209c0cd8-1784570422 pinned to the reviewed head. Provenance: parent is base 0568f44; stable patch-id matches preserved candidate cbf56ccd; 9-file scope only. All #618 ACs verified. Focused suite 58 passed. APPROVE verdict prepared locally for native MCP submission.
WHY: Implementation meets #618 acceptance criteria with meaningful positive and negative tests; identity separation holds; no safety blockers found.
ISSUE: #618
HEAD_SHA:
5ed2ab8a38REVIEW_STATUS: APPROVE verdict prepared locally
MERGE_READY: no — awaiting native MCP review post and merger live re-check
BLOCKERS: none
VALIDATION: Gate Zero parity at
0568f44restart_required=false; reviewer sysadmin differs from author jcwalker3; live head pin match; pytest 58 passed; patch-id 5a96f15392e16c38777396b5604e97a59f259633 matches candidate; workflow_hash 263d0a6cb8a6 boundary_cleanLAST_UPDATED_BY: prgs-reviewer / sysadmin / LLM_LOCK_ID=reviewer-771-618-6873209c0cd8-1784570422
[THREAD STATE LEDGER] PR #771 / Issue #618 — APPROVE verdict prepared locally for native post
What is true now:
5ed2ab8a38What changed:
What is blocked:
Who/what acts next:
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #771
issue: #618
reviewer_identity: sysadmin
profile: prgs-reviewer
session_id: reviewer-771-618-6873209c0cd8-1784570422
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/review-418
phase: released
candidate_head:
5ed2ab8a38target_branch: master
target_branch_sha:
0568f44cb2last_activity: 2026-07-20T18:05:46Z
expires_at: 2026-07-20T18:15:46Z
blocker: manual-release
Canonical PR State
STATE: open — formal APPROVE visible at head
5ed2ab8a38WHO_IS_NEXT: merger
NEXT_ACTION: merge PR #771 only with explicit operator authorization via gitea_merge_pr after live eligibility re-check at this exact head
NEXT_PROMPT:
WHAT_HAPPENED: Independent prgs-reviewer formal review completed. Native APPROVE review_id 485 on PR #771 at exact head 5ed2ab8a…. Reviewer lease released after read-after-write verification. Handoff posted with native proof.
WHY: #618 ACs met; provenance intact vs preserved candidate; 58 focused tests passed; no safety blockers.
ISSUE: #618
RELATED_PRS: #771 (this PR, open, closes #618)
HEAD_SHA:
5ed2ab8a38REVIEW_STATUS: APPROVED review posted to Gitea (review_id 485)
MERGE_READY: true — merger must still re-check live eligibility and use explicit MERGE PR 771 confirmation
BLOCKERS: none
VALIDATION: approval_visible=true; approval_at_current_head=true; dismissed=false; stale=false; reviewed_head_sha=5ed2ab8a38d72e6959c8cd7704dc14f9a4eab909; has_blocking_change_requests=false; pytest 58 passed; workflow_hash 263d0a6cb8a6 boundary_clean
LAST_UPDATED_BY: prgs-reviewer / sysadmin / LLM_LOCK_ID=reviewer-771-618-6873209c0cd8-1784570422
NATIVE_REVIEW_PROOF: transport=native_mcp; tool=gitea_submit_pr_review; action=APPROVE; review_id=485; reviewer=sysadmin; profile=prgs-reviewer; pr=771; head=5ed2ab8a38d72e6959c8cd7704dc14f9a4eab909; dismissed=false; stale=false; approval_at_current_head=true; session_id=reviewer-771-618-6873209c0cd8-1784570422; lease_comment_id=13322; release_comment_id=13326; entrypoint=mcp_server; pid=70279
[THREAD STATE LEDGER] PR #771 / Issue #618 — formal APPROVE posted; next role merger
What is true now:
5ed2ab8a38What changed:
What is blocked:
Who/what acts next:
repo: Scaled-Tech-Consulting/Gitea-Tools
pr: #771
issue: #618
reviewer_identity: sysadmin
profile: prgs-merger
session_id: merger-771-618-5a50800ba9b9-1784570967
worktree: /Users/jasonwalker/Development/Gitea-Tools/branches/merge-pr-771
phase: claimed
candidate_head:
5ed2ab8a38target_branch: master
target_branch_sha:
0568f44cb2last_activity: 2026-07-20T18:10:11Z
expires_at: 2026-07-20T18:20:11Z
blocker: none
Stale #332 review-decision lock cleanup (#594)
Status: APPLIED
sysadminprgs-merger2026-07-20T18:10:27.368425+00:00approveon PR fix: durable author worktree resolution without control fallback (Closes #618) (#771)closed(merged=True)0c2f45abb7c0db96c477e9a6db35a6728e6543111prgs-reviewerManual deletion of session-state files is not the workflow.
This path only clears a lock when the referenced PR is merged/closed.
Canonical Issue State
STATE: terminal cleanup complete for PR #771 (closed; merge completed on master) / Issue #618 (closed)
WHO_IS_NEXT: controller
NEXT_ACTION: none - accept terminal cleanup ledger; do not re-review, re-merge, or allocate new work for #618/#771
NEXT_PROMPT:
WHAT_HAPPENED: Supervised reconciler terminal cleanup iteration completed for PR #771 (closed; merge completed) and closed Issue #618 only.
WHY: Post-merge residual labels, local worktrees, local source branch, and remote source branch remained after merge performed by the prior merger session.
RELATED_PRS: #771 (this PR, closed; merge completed)
BLOCKERS: none
VALIDATION: Gate Zero parity at
0c2f45arestart_required=false stop_required=false; lease dry-run already inactive; labels without status:pr-open; remote branch verified_absent; worktrees absent; preserve ref retained; control checkout cleanLAST_UPDATED_BY: prgs-reconciler / sysadmin / LLM_LOCK_ID=recon-771-618-1d8b29ec39a6491c
[THREAD STATE LEDGER] PR #771 / Issue #618 - supervised terminal cleanup complete
What is true now:
0c2f45abb70c2f45abb7What changed:
What is blocked:
Who/what acts next:
Merge mutations this session
5ed2ab8ato merge commit0c2f45a)