Repository navigation
fix(tasks): make delegated completions review-ready - #78985
Conversation
3b32fda to
300d9fd
Compare
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. as a source reproduction: current main still contains Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Land a refreshed narrow patch that preserves current main's review-and-follow-up subagent wording, updates the remaining status labels/docs, and routes delegated ACP terminal handoffs to the parent session without leaving terminal delivery indefinitely pending. Do we have a high-confidence way to reproduce the issue? Yes, as a source reproduction: current main still contains Is this the best way to solve the issue? No, not yet. The review-first direction is right, but the branch needs to preserve the merged follow-up guidance, avoid repeated parent-session terminal re-queues, and update proof for the current head. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 54619d403303. |
300d9fd to
d51ea15
Compare
|
Addressed the review feedback in
Focused checks run locally:
@clawsweeper re-review |
d51ea15 to
852cac8
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f4f828f to
06b8e8e
Compare
06b8e8e to
c064025
Compare
|
Verification for rebased head c064025. Behavior addressed: delegated ACP/subagent completion handoffs are labeled ready for parent review; successful ACP child task completions wake the requester session for parent review instead of raw direct "done" delivery. Direct-origin handoffs remain pending so the session event can be retried after restart.
|
Summary
Real behavior proof
Behavior addressed: Successful delegated/background task and subagent completion messages should no longer tell the requester the work is simply “done” or “completed successfully”; they should say the result is ready for parent review and tell the parent/requester to review/verify before calling it done.
Real environment tested: OpenClaw source checkout for branch
codex/parent-review-task-wording, commitd51ea15d0e.Exact steps or command run after the patch: Applied the wording patch, updated direct delivery/fallback test expectations, updated the requester handoff instruction plus docs/changelog, then ran the focused formatter/test commands and a source-runtime proof script that creates an ACP task record, emits its lifecycle completion event, and reads the queued requester system event.
Evidence after fix: Runtime output from the source checkout after the patch:
Additional source verification:
Observed result after fix: The actual task completion delivery path queued
Background task ready for review... Next: parent will review/verify before calling it done.for a completed ACP task. The subagent handoff instruction now tells the requester to review/verify before calling the result done, and docs/changelog are updated to match.What was not tested: I did not run a full external model-backed subagent conversation. The runtime proof exercises the source task-registry completion/delivery path directly with isolated temporary state; focused tests cover the task formatter, registry delivery/fallback expectations, and subagent announcement formatter.
Tests
node --import tsx <proof-script>— passed; produced the runtime output abovepnpm exec oxfmt --check --threads=1 src/agents/subagent-announce.ts src/agents/subagent-announce.format.e2e.test.ts src/tasks/task-registry.test.ts src/tasks/task-executor-policy.ts src/tasks/task-executor-policy.test.ts— passedpnpm exec vitest run --config test/vitest/vitest.tasks.config.ts src/tasks/task-executor-policy.test.ts src/tasks/task-registry.test.ts— passed: 2 files, 63 testspnpm exec vitest run --config test/vitest/vitest.e2e.config.ts src/agents/subagent-announce.format.e2e.test.ts— passed: 1 file, 79 testsgit diff --check— passedVerification
rgconfirmed new review-ready wording is present in the changed source/docs/tests/changelog.Closes #44471