Skip to content

fix(delegation): require progress evidence before retiring subagents - #179

Open
thisisjun786 wants to merge 2 commits into
lidge-jun:devfrom
thisisjun786:codex/subagent-retirement
Open

thisisjun786 wants to merge 2 commits into
lidge-jun:devfrom
thisisjun786:codex/subagent-retirement

Conversation

@thisisjun786

@thisisjun786 thisisjun786 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Closes #178.

An executor can keep investigating while its working tree stays clean. The old
waiting guidance treated roughly three empty waits as dispatch failure, while
the delegation reference described wait timeout as a normal outcome.

This change makes the waiting reference the decision owner: compare meaningful
progress, request a non-interrupting checkpoint when needed, and confirm
stagnation before retirement. It preserves explicit cancellation and resource
limits, checks actual shutdown before handing off work, and keeps replacement
and main reclaim behind the existing managed dispatch results.

This is agent-followed guidance, not a runtime watchdog. Automated checks cover
document hygiene and owner routes; a separate reviewer evaluates the decision
procedure against the recorded scenarios. No model-compliance guarantee is made.

Verification at 3767ae88:

  • npm run gate passed.
  • Existing manifest-policy suite: 7 passed, 0 failed.
  • git diff --check passed.
  • Fresh independent review derived the intended action for all 12 observation-only scenarios; final verdict PASS, no blockers.

The scenario review covers active analysis without edits, long commands, repeated busywork, missing visibility, queued checkpoints, cancellation/limits, and shutdown/recovery authority. Local checks did not rerun unrelated runtime suites; hosted CI reports those separately.

Verification record.

@github-actions github-actions Bot added the bug Something isn't working label Sep 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-14T20:18:11.674352Z 3767ae8 PR opened
🔒 Security Review Completed 2026-09-14T20:18:52.883870Z 3767ae8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3767ae8826

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +199 to +201
copy (packet-failure reclaim, 260711 fork-debate verdict #4); under configured
first fallback the protocol result owns that decision — `main-direct` permits
reclaim, `reconcile`/`stop` permit neither reclaim nor a replacement spawn. Lineage:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the plan template to preserve managed recovery

When configured first fallback returns reconcile or stop after two agent failures, this new rule forbids main from reclaiming the work, but plugins/codexclaw/skills/pabcd/references/plan-output.md:18 still requires every delegation plan to state unconditionally that main reclaims after two failures. A coordinator following that template can therefore start direct work while execution remains unreconciled, potentially overlapping an existing writer; update the template to defer to the managed protocol result.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant