Repository navigation
fix(orchestration): decouple phase handoff from parent replies - #1415
Merged
Merged
Conversation
eunsoogi
marked this pull request as ready for review
October 25, 2026 12:49
eunsoogi
added a commit
that referenced
this pull request
Oct 25, 2026
…ority (#1418) ## Summary Ready independent Workers continue through implementation, verification, selected review, and handoff within their initial assignment. A short setup phase is used when parent environment validation is required. ## Rationale Routine read-only, plan-approval, and code-only prompts add parent round trips after execution has already been authorized. The initial assignment now carries finite-phase criteria, terminal submission, and supervised-slot reservations together. ## Changed Areas - Orchestration entry point: explicit setup release and independent execution boundaries. - Execution loop: preserve shared migration/Simulator, safety, authority, review, and capacity gates; consolidate duplicate dispatch/handoff templates. - Token-efficient coordination: consume compact actionable results first and use the accepted terminal-submission contract. ## Verification - Direct file and relative-link existence checks: PASS. - `git diff --check`: PASS. - Pinned dprint 0.55.2 check of all three changed Markdown files: PASS. - `scripts/validate-plugin-config.sh --check`: PASS. - `scripts/validate-plugin-config.sh --check-touched-loc --base-ref d14a9c0`: PASS (227/238/249 physical lines). - One standard-profile Codexy Inspector review: PASS on `fd5dc5dc28c8d0e075db44861c3b3cbeae5f4c9d`; no blocking or non-blocking findings. - Full PR CI: all 39 checks passed on `fd5dc5dc28c8d0e075db44861c3b3cbeae5f4c9d` (Rust tests, Language lint, package lifecycle, selected marketplace runtime packages, and touched LOC). ## Evidence Base: `d14a9c08af3548b013b45a1b714ee96754ad1e2f` (accepted #1398/#1399/#1401 artifacts via PR #1411/#1413/#1415). Head: `fd5dc5dc28c8d0e075db44861c3b3cbeae5f4c9d`. Source readback preserves setup/authority/conflict/review/slot gates and prevents capacity expansion through batched waits. Source scenario review: normal independent execution proceeds within authority; required setup stops until parent release; shared migration/Simulator conflicts stop affected work; capacity exhaustion stays in the parent backlog without child/goal activation. These are instruction-level findings, not runtime scenario results. Codegraph was callable and used before repository exploration. ## Not Run No installed-plugin update or real host collision/capacity scenario was run. Instruction and validator checks do not prove those runtime outcomes; no latency or token savings are claimed. No executable boundary changed, so prose RED/GREEN was not manufactured. ## Follow-ups Parent owns final acceptance and any merge. This lane stops with a verified PR and does not merge, release, archive, delete its branch, or update installed plugins. Runtime phase-idle proof remains separate under #1405. Fixes #1402
This was referenced Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A completed worker phase now submits one handoff and finishes without waiting for a parent reply. Delivery confirmation means task-message transport acceptance; absent message permission uses an explicitly unconfirmed host terminal result.
Rationale
The old pre-delivery, post-result, and terminal reports overlapped and could keep a satisfied finite phase active while the parent was silent. This applies #1398's accepted finite-phase contract while preserving blocked recovery.
Changed Areas
Verification
suite_child: 55 passed; pre-fix targeted run reproduced three expected failures.--checkand--check-touched-loc --base-ref bfc83faee07c305f577767c99abbe886126934a7: passed.git diff --check, Rust formatting, pinned dprint 0.55.2, changed-document existence and four relative links: passed.824401d3f8c592a637c4446b148bb4c531893242, no unresolved findings. The same reviewer replayed 19 actual validator CLI cases and reran seven focused tests; all expectations passed.824401d3f8c592a637c4446b148bb4c531893242, including pinned Rust 1.95 lint, all Ubuntu/Windows Rust suites, selected runtime packages, and package lifecycle checks.Evidence
Base includes accepted prerequisite #1398 through PR #1411 (
8e31f138b104ac4cfead8be83e45d956621c02f8). Local behavioral proof observes the validator CLI only. Governed files: validator 249 lines, top-level tests 235, record fixtures/tests 180, reporting reference 249.Not Run
Authentic host idle without a parent reply belongs to #1405 and is unverified here. No installation or release changes. Local Clippy used available Rust 1.98 and hit a pre-existing
chunks_exact_to_as_chunkserror outside scope; GitHub Language lint uses the repository's pinned Rust 1.95.Follow-ups
Parent owns acceptance and merge after current-head checks and review. This assignment stops before merge. #1405 owns authentic idle proof.
Separate dogfood follow-up for parent allocation: PreToolUse rejected read-only
gh pr checks 1415 --watch --interval 30with output redirected to a temporary CI log asCODEXY_DESTRUCTIVE_COMMAND_DESTRUCTIVE_EFFECT(rule=destructive-effect). No command ran; bounded read-only check snapshots succeeded. A later read-only shell snapshot command with file redirection was rejected by the same rule; stdout-only GraphQL and connected GitHub metadata, review, thread, and comment reads succeeded. The hook is outside the four-file issue scope and was not changed.Fixes #1401