Skip to content

fix(orchestration): cap supervised app child execution slots - #1413

Merged
eunsoogi merged 2 commits into
mainfrom
eunsoogi/issue-1399-supervised-child-slots
Oct 25, 2026
Merged

eunsoogi merged 2 commits into
mainfrom
eunsoogi/issue-1399-supervised-child-slots

Conversation

@eunsoogi

@eunsoogi eunsoogi commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Closes #1399

Supervised app-child reservations, pending setup, and active executions now share a ceiling of min(8, explicitly lower host limit, resource limit). Overflow stays in the parent backlog without creating a thread or activating a child goal. The routing guidance no longer permits count-only deferral rules to bypass this ceiling or two eight-target waits to supervise sixteen children.

The three issue-owned references preserve pending setup reservations, one owner per issue, confirmed slot release, and per-target cursors across completion, attention, timeout, and later turns. Native subagent limits, unrelated app tasks, and the existing helper budget remain separate.

Verification

  • git diff --check: passed.
  • scripts/validate-plugin-config.sh --check: passed, including LSP projection check.
  • scripts/validate-plugin-config.sh --check-touched-loc --base-ref origin/main: passed.
  • Changed documents and relative links/anchors: passed; physical lines 234 / 249 / 47.
  • PR title validation: passed.
  • Repository-pinned dprint 0.55.2: passed after correcting Markdown wrapping.
  • Current-head GitHub CI: all 39 checks passed at 5ce3af7f47db1d9008b5a412e38787dcd2768de3 (Ubuntu/Windows tests, language lint, touched LOC, package lifecycle, and selected marketplace package checks).
  • Standard profile: Inspector PASS at current head 5ce3af7f47db1d9008b5a412e38787dcd2768de3; no unresolved findings.

Instruction-only scenario readback against issue #1399:

Case Required instruction outcome
0 / 1 slots Reserve before dispatch; admit eligible work within capacity.
8 / 9 eligible executions Eight occupy capacity; ninth stays uncreated in backlog.
Pending setup Retain its reserved slot; surfaced task replaces pending identity once.
Resume Reconcile retained owner and reserve capacity before resuming; no replacement owner.
Setup failure Release only after confirmed failure with no live owner; ambiguous failure, timeout, or omission retains capacity.
Completed execution Confirm completion or stop/release before slot reuse; preserve issue owner and cursor.
Duplicate owner Reuse existing usable owner; reconcile owner evidence before backlog admission.
Lower host/resource limit Enforce the lower ceiling; stop new dispatch if already over it without canceling existing work.
Completion / attention / timeout / later turn Save returned cursors as next afterCursor; omitted targets retain prior cursor; one event does not discard other targets.

These are document-contract checks, not live host capacity or latency measurements. No executable boundary changed, so no manufactured RED/GREEN or scheduler tests were added. Real host capacity evaluation remains unverified in this issue-owned documentation phase.

Scope and handoff

Only parent-supervision.md, thread-and-worktree-routing.md, and execution-budget.md changed. The #1397 merge documents and #1398 goal/heartbeat documents are untouched. Parent owns merge and milestone acceptance. No release/version or local installation changes.

Dogfood follow-up observed outside this issue's scope: Codexy PreToolUse returned CODEXY_DESTRUCTIVE_COMMAND_DESTRUCTIVE_EFFECT for a bounded command bundle containing read-only inspection plus git fetch origin main. Running the same bounded operations separately succeeded. This false-positive observation is retained for parent triage; no destructive operation or bypass was used.

@eunsoogi eunsoogi added type/fix Bug fix or correctness repair area/workflow Git, PR, review, merge, or orchestration workflow area/agents Agent roles, handoffs, child threads, or multi-agent policy priority/high High priority or blocking work status/review Pull request is open or review gate is active labels Oct 25, 2026
@eunsoogi
eunsoogi marked this pull request as ready for review October 25, 2026 12:07
@eunsoogi
eunsoogi merged commit bfc83fa into main Oct 25, 2026
39 checks passed
@eunsoogi
eunsoogi deleted the eunsoogi/issue-1399-supervised-child-slots branch October 25, 2026 12:12
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
@eunsoogi eunsoogi added this to the 2.0.1 milestone Oct 30, 2026 — with ChatGPT Codex Connector
@eunsoogi eunsoogi added status/merged Pull request has been merged and removed status/review Pull request is open or review gate is active labels Oct 30, 2026 — with ChatGPT Codex Connector
@eunsoogi eunsoogi self-assigned this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents Agent roles, handoffs, child threads, or multi-agent policy area/workflow Git, PR, review, merge, or orchestration workflow priority/high High priority or blocking work status/merged Pull request has been merged type/fix Bug fix or correctness repair

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cap supervised child execution at eight slots

1 participant