Repository navigation
fix: keep accepted automation runs revocable after turn completion - #188530
roboclaw-bot wants to merge 3 commits into
Conversation
Transfer durably accepted management requests to scheduler custody while retaining live source, cancellation, policy and job checks. Co-authored-by: steipete <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Integrate the actual main conflict while preserving ordinary caller-scoped after-turn execution. Transfer one accepted request's source guard through the scheduler and the existing executor admission checks, including checks after asynchronous preparation. Co-authored-by: steipete <[email protected]>
Combine the duplicate healthy matrix executions while retaining every row's occurrence identity and release checks plus aggregate executor reachability. Keep the four awaited-source refusal regressions and the existing paused matrix. Co-authored-by: steipete <[email protected]>
Related: #168568. Builds on #188513; does not claim the broader Matrix report is resolved.
What Problem This Solves
Fixes: an accepted immediate automation can still perform work after its requesting turn is explicitly canceled or its authenticated source is revoked.
User Impact
Owner/administrator requests retain main's after-turn execution behavior while remaining bound to the original live source and exact executable job. Cancellation, source/device revocation, and changed or ineligible jobs produce a visible terminal outcome. No configuration or storage migration is required.
The standalone proof covers authenticated Control UI administrator authority. Configured external-channel owner removal and literal owner metadata reassignment were not exercised; the public job-update API does not expose owner reassignment. The provider is deterministic local HTTP. Target command processes and provider HTTP I/O are real; isolated-agent, script and trigger consumers have focused tests and source review rather than standalone effect campaigns.
Why This Change Was Made
Main #188513 independently supplies the after-turn handoff. Caller admission still consumes its one-use management grant with the original exact-run and 60-second expiry checks. Once durable, the scheduler retains a separate source check for that one request and executable definition. Ordinary settlement differs from cancellation, and the existing execution owners recheck the retained source after asynchronous preparation and before effects.
The actual merge conflict was resolved against main
bf2284a636c6ecd5b07f1de531a35f7fe93fbf23: ordinary caller-scoped manual work keeps main's handoff; event and on-exit custody keep their existing guards. The queue owns disable/delete eligibility and its specific terminal messages. Fresh review found the initial launch-only check insufficient; its source assertion now reaches the existing executor/admitted-run checks and completion delivery. No receipt schema, policy setting or credential flow changed.Evidence
bf2284a636c6ecd5b07f1de531a35f7fe93fbf23, real Gateway/agent regression: 1 failed, 1 passed. The authenticated management cancellation case makes the fourth provider call and recordsokinstead ofskipped; the caller-scoped control passes. The focused post-await source contract is 36 passed, 4 failed on that base.cron.runreceipt → successful actualchat.abort→ queue opens → one unwanted child-process effect. Separate base preparation proof: accepted receipt → normal caller settlement → public cronstartedwhile the real target session remains busy → actual device-token revocation → target release → one unwanted provider HTTP request,okhistory. Both fail their zero-effect assertions; these are product failures, not setup failures.a9473dd6d46ee7f2df8c33c607c9d1831692a6db: 2 Gateway E2E rows pass; 14/14 real-effect cases pass; all four container exits are 0. Settlement/disconnect produce exactly one intended child effect; actualchat.abort, device/origin revocation, disable/delete and agent retarget produce zero. The forbidden command request is refused before receipt/history/effect. After public cron start and a genuinely blocked target session, settlement/disconnect produce one target provider HTTP request; actual abort/device/origin revocation produce zero and terminalerrorhistory. Independent audit matched every receipt/history ID, effect artifact and trace ordering. The published head differs only in the occurrence test consolidation; all 20 production files and the unchanged E2E input are byte-identical, so this effect proof is reused with its original head identity.git diff --checkpass.pr-simplifyremoves the guard alias and duplicate eligibility checks and shares repeated acknowledgement fixtures: 88 added / 90 deleted test lines (net −2); production +172/−45 (net +127) against the pinned main base. No test allocation or baseline exception was added.childParentdestructuring removes repeated lookups to satisfy the existing file-line limit; typecheck, lint and affected consumers pass.fb8514aba1678f3df007bb047730b0c19138605d: CI run 41114327223, attempt 1, completed failed. The only failed test job, 124265221440, has three cron fallback failures: the stored-session explicit/own-model fallback cases (line 160) and timeout fallback transcript (line 137). All three match the exact path, line, title and complete failure message in scheduled main job 124239591861, main head9e8a058de8afcdaf03f5774979e7d2e494b80a1c, where the executor is unchanged by this PR. The aggregate gate also failed; every other job succeeded or was skipped. A focused Node replay passes those three cases, but CI uses Bun and remains red; no repair or CI success is claimed. The tested merge is281da785c79c743d1f358245f4e2a4073c76c05e(basec0c068e1ecd9ec78a75ad6847e032f4d0f5b1241). This PR remains ready for lead inspection; no merge or auto-merge has been requested.0ee9c5794264d050ff4c0635f91f0b9cd22cebc7remains failed: two Bunchat.historypagination assertions and the aggregate gate. Both exact signatures also occur in scheduled main job 124149135009. This attributes that old head only; it does not turn red CI green.Requested by @steipete.
Work sessions