PX Work Stop Diagnostics
Trace in this order:
- Read the current task revision, state, dependencies, blockers, and acceptance evidence.
- Check worker/node session health and distinguish ephemeral presence from durable execution state.
- Check claim mode, authority, lease expiry, fencing token, revocation, and overlapping scopes.
- Check workspace, worktree, branch, dirty/unpushed work, and manual movement/change.
- Check task/worker/provider/model time, token, cost, and local-resource budgets.
- Check provider/runtime doctor state, authentication without exposing secrets, model compatibility, and cancellation residue.
- Check contracts, permissions, effect admission, approvals, evidence, and downstream failures.
- Verify the resume envelope revision/state hash and reject stale native-session hints.
- Classify one primary stop reason, identify the unblock owner/action, and release only scopes proven safe to reassign.
- Record a durable repair receipt and replan dependents. Retry only after the failed boundary changes.
Use the project coordination diagnoseWorkStop controller or MCP pacify_work_stop_diagnostics when available. Do not poll agents or blindly retry. Never delete dirty worktrees, unpushed branches, evidence, quarantine, or project memory during recovery.