Skip to content

fix: keep agent handoff and recovery on a fixed procedure - #270

Merged
yongjip merged 1 commit into
mainfrom
codex/simplify-agent-procedure
Oct 16, 2026
Merged

yongjip merged 1 commit into
mainfrom
codex/simplify-agent-procedure

Conversation

@yongjip

@yongjip yongjip commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Agents use the fixed status → enqueue → stop handoff. Runner guidance exposes eligible batch work despite unrelated failures, and points an ordered queue at its current failed submission before historical verification warnings.

An ordered position completes when its Git push succeeds. Post-push verification warnings remain in Attention and history, so an approved corrective submission can land. Uncertain pushes still require reconciliation. Earlier unreleased ordered approvals are invalidated; published batch approval hashes, destination fencing, manual approval, retry order and default pre-push checks are preserved.

MCP terminal fallback retains the selected repository, configuration and queue. Duplicate errors identify the existing job, and inspect provides the existing retry command only for ordinary pre-push failures. Generated agent instructions and contract documentation match these procedures. No commands, options, modes, configuration fields or MCP tools are added.

Validation:

  • The default Mergetrain deployment gate passed 877 tests and 728 subtests, with 92.59% coverage and all critical-module coverage floors met. Lint and types passed.
  • PR CI passed all 15 jobs, including Linux/macOS Python 3.10–3.14, Windows, packaged-sdist tests, strict package checks, plugins and clean-wheel MCP launch. The demo workflow passed.
  • Disposable Git remotes cover batch survivors, corrective ordered landings after failed/unknown verification, preserved retry order, stale approvals, uncertain pushes and manual approval. Architecture, generated protocol, discovery metadata and release metadata checks passed. Independent reviews found no remaining P1/P2 issue.

Mergetrain job 184 deployed ef0bfb6 to main. Push and post-push verification succeeded. The initial main rerun exposed an existing Windows cancellation-test startup race. #271 replaces the 0.5-second assumption with readiness from the actual gate subprocess and preserves all heartbeat/cancellation assertions. Its 15-job PR CI passed, and Mergetrain job 185 deployed the follow-up as 7966a90. Final workflows: main CI, demo.

Version remains 3.5.1. These changes stay under Unreleased for the next regular package release.

@yongjip
yongjip merged commit ef0bfb6 into main Oct 16, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant