Repository navigation
Conversation
## What Problem This Solves Scheduled jobs that handed work to child agents could publish interim orchestration text, lose the final descendant result, or misroute structured threaded output across channel-specific delivery targets. ## Why This Change Was Made The cron delivery owner now treats completed and awaited child results through one canonical final-output flow, recognizes interim-only spawn handoffs, preserves structured payload classification, and chooses threaded direct versus normal delivery from the prepared target contract. ## User Impact Scheduled Telegram, Discord, Slack, Matrix, and Teams jobs deliver their actual final child response to the intended thread instead of leaking placeholder text, dropping completed work, or emitting duplicate announcements. ## Context Exact final-source trusted remote proof passed 259 tests across seven focused files, including actual channel target normalization and all five channel delivery families. The previously failing core and plugin-boundary type-aware lint gate passed after correcting the implementation; all six changed files pass formatting. Production code decreases by 12 lines.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 9, 2026, 1:47 PM ET / 17:47 UTC. ClawSweeper reviewWhat this changesThe PR routes final results from child agents through the prepared threaded cron-delivery target instead of publishing an interim parent response. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep this maintainer PR open: it fixes a real current-main threaded-child delivery gap, but its new text heuristic can suppress a substantive parent result when it contains an interim phrase. Priority: P1 Review scores
Verification
How this fits togetherAn isolated cron job can hand work to a child agent, then cron delivery chooses the final response and sends it to a prepared channel target and optional thread. This change governs the handoff between child completion and cross-channel outbound delivery. flowchart LR
A[Scheduled cron job] --> B[Parent agent response]
B --> C[Accepted child agent]
C --> D[Final-output decision]
D --> E[Prepared channel target]
E --> F[Threaded channel delivery]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -12, Tests +301. Total +289 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make child-only delivery depend on an explicit handoff signal or a much stricter acknowledgement-only shape, with a regression covering substantive text that contains an interim phrase. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: an accepted child plus a substantive short parent result containing a recognized interim phrase follows the new spawn-only branch and clears or replaces that result. Is this the best way to solve the issue? No; unifying completed and awaited child output is the right owner boundary, but a substring heuristic is not a safe authority signal for discarding parent output. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 34b8a6515d78. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Closing this branch remains correct, but the original “fully superseded” conclusion was too broad. Current What current
The remaining root cause is ownership, not thread routing: cron does not yet durably combine explicit yielded-descendant custody, exact accepted child generations, typed terminal reply disposition, This PR must not be merged or mechanically rebased. Its substring-based interim classifier can replace substantive parent output, and its pre-refactor branch conflicts with current ownership boundaries. Three private root-cause rewrites were evaluated. The final task-ledger design used existing
No private rewrite was pushed. The existing PR remains closed because there is no safe mergeable patch here. A future replacement must use one task-ledger-owned prepared/closed descendant obligation, execute outbound redrive outside the global scheduler lock, retain retryable/ambiguous custody, and close yielded descendants with typed intentional non-delivery when transport is unavailable. Reopen only with that clean implementation and exact-head proof. |
What Problem This Solves
Scheduled jobs that handed work to child agents could publish interim orchestration text, lose the final descendant result, or misroute structured threaded output across channel-specific delivery targets.
Why This Change Was Made
The cron delivery owner now treats completed and awaited child results through one canonical final-output flow, recognizes interim-only spawn handoffs, preserves structured payload classification, and chooses threaded direct versus normal delivery from the prepared target contract.
User Impact
Scheduled Telegram, Discord, Slack, Matrix, and Teams jobs deliver their actual final child response to the intended thread instead of leaking placeholder text, dropping completed work, or emitting duplicate announcements.
Context
Exact final-source trusted remote proof passed 259 tests across seven focused files, including actual channel target normalization and all five channel delivery families. The previously failing core and plugin-boundary type-aware lint gate passed after correcting the implementation; all six changed files pass formatting. Production code decreases by 12 lines.