Repository navigation
fix(cron): keep the missing-account refusal and its repair in automation results - #205873
Conversation
… enabled Co-authored-by: Marvinthebored <[email protected]>
…cause table
- The direct failure alert for an automation with no recorded inference account now renders operatorRefusalText("automation-account-unrecorded"), so the sentence and its next step live in src/gateway/operator-refusal.ts.
Co-authored-by: obviyus <[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. |
|
Head E2E on
The isolated run kept the refusal in One-admission Q/R/S on this head: all 4 checks pass ( |
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves missing-account refusal details in automation results, adds actionable direct alerts, and extends startup warnings to affected Codex jobs. Example: A session-target automation created using a configured key later encounters stored account openai:manual for openai/gpt-5.5.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored repair addresses a current automation diagnostics defect, preserves account authorization, and has no identified blocking correctness defect. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCron sends scheduled work through isolated execution or conversation admission; their terminal results feed scheduling, run history, diagnostics, and failure notifications. flowchart LR
A[Scheduled automation] --> B[Account admission]
B --> C[Isolated execution]
B --> D[Conversation execution]
C --> E[Cron result classification]
D --> E
E --> F[History and diagnostics]
E --> G[Scheduling and failure alerts]
Technical reviewBest possible solution: Carry the recognized refusal through existing terminal-result owners and render its repair through the shared refusal table while retaining account admission and recurring scheduling. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the dropped diagnostics path, corroborated by the supplied base-versus-head Gateway comparison; this review executed no target code. Is this the best way to solve the issue? The patch repairs propagation at existing execution owners, recognizes only producer-owned refusals, and reuses notification policy without introducing another account-selection or persistence owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6a0808d1235. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +93, Tests +178, Docs +2. Total +273 across 22 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 26, 2026, 4:13 AM ET / 09:13 UTC. |
|
Landed as The bug: an automation with no recorded inference account was refused before inference, as designed. The cause was then lost on the way to the person: a The fix: the refusal now reaches automation history, diagnostics and the direct alert. The alert sentence and its repair step come from the refusal cause table. The proof: the base and head isolated-Gateway runs above, 23 test files, and the Q/R/S E2E. Thank you, @dallinromney for the fix, and @Marvinthebored for the report (#195802). |
…ion results (openclaw#205873) Lands openclaw#195879 by @dallinromney (reported by @Marvinthebored in openclaw#195802), rebased on current `main`, with one change: the alert text now comes from the refusal cause table. ## Problem An automation with no recorded inference account is refused before inference with `Automation has no recorded inference account …`. A team member described it as "sub-agent death by loss of credentials, and a mis-reported error message": - In a session-target run, the refusal is in `lastError`, but the run has no diagnostics. When optional delivery suppresses the reply, the cause falls back to `Session event execution failed`. - The direct failure alert classified the run as `unknown` and said `Cause: unknown`. - Startup diagnostics did not warn about unbound Codex-runtime jobs that would use a stored account. ## Fix - The reply owner's failure cause goes to the session-event result separately from the optional chat text. A recognized account refusal is identified by error identity, not by its message text. It gets a permanent classification and a closed `inference-account-unrecorded` failure detail. - The direct alert text comes from `src/gateway/operator-refusal.ts` (new cause `automation-account-unrecorded`, with a required next step). It names the repair and does not name the stored account. Automation history keeps the full refusal. - Recurring jobs stay enabled; normal backoff and alert policy apply. Nothing is auto-disabled, no binding is written and no schema changes. - Startup inspection covers unbound Codex-runtime jobs on stored accounts. It warns only and does not rebind them. Production changes add more lines than they remove: the cause was dropped because no code carried it, so this PR adds that path. It adds no new state, retry or flag. ## User impact The history, diagnostics and chat alert all name the real cause (a missing recorded account) and the one command that repairs it, instead of `Session event execution failed` or `Cause: unknown`. ## Evidence - Isolated Gateway (from source), real `openai/gpt-5.5`, on base `main` `93c4244a2255`. Two automations were created while the provider used a configured key. The provider then moved to a stored account (`models auth paste-api-key`, config key removed, Gateway restarted), and both jobs came due on their timer. On base, both runs are refused with `Automation has no recorded inference account …`. The isolated run has diagnostics. The `session:` run has **no diagnostics**. - On this head, the same run is listed under the head E2E below. - Tests: 23 files, every changed test plus the direct importers of the changed modules, all pass (`ocx test`, 6 shards). - Same user report, other part: a woken owner chat can create a follow-up automation on `main` (the agent's own background exec wakes it, and the automation it creates runs `ok` on a stored account). That part is fixed on `main`, so openclaw#201146 was closed with that evidence. Closes openclaw#195879. Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
…ion results (#205873) Lands #195879 by @dallinromney (reported by @Marvinthebored in #195802), rebased on current `main`, with one change: the alert text now comes from the refusal cause table. An automation with no recorded inference account is refused before inference with `Automation has no recorded inference account …`. A team member described it as "sub-agent death by loss of credentials, and a mis-reported error message": - In a session-target run, the refusal is in `lastError`, but the run has no diagnostics. When optional delivery suppresses the reply, the cause falls back to `Session event execution failed`. - The direct failure alert classified the run as `unknown` and said `Cause: unknown`. - Startup diagnostics did not warn about unbound Codex-runtime jobs that would use a stored account. - The reply owner's failure cause goes to the session-event result separately from the optional chat text. A recognized account refusal is identified by error identity, not by its message text. It gets a permanent classification and a closed `inference-account-unrecorded` failure detail. - The direct alert text comes from `src/gateway/operator-refusal.ts` (new cause `automation-account-unrecorded`, with a required next step). It names the repair and does not name the stored account. Automation history keeps the full refusal. - Recurring jobs stay enabled; normal backoff and alert policy apply. Nothing is auto-disabled, no binding is written and no schema changes. - Startup inspection covers unbound Codex-runtime jobs on stored accounts. It warns only and does not rebind them. Production changes add more lines than they remove: the cause was dropped because no code carried it, so this PR adds that path. It adds no new state, retry or flag. The history, diagnostics and chat alert all name the real cause (a missing recorded account) and the one command that repairs it, instead of `Session event execution failed` or `Cause: unknown`. - Isolated Gateway (from source), real `openai/gpt-5.5`, on base `main` `4934b24699c0`. Two automations were created while the provider used a configured key. The provider then moved to a stored account (`models auth paste-api-key`, config key removed, Gateway restarted), and both jobs came due on their timer. On base, both runs are refused with `Automation has no recorded inference account …`. The isolated run has diagnostics. The `session:` run has **no diagnostics**. - On this head, the same run is listed under the head E2E below. - Tests: 23 files, every changed test plus the direct importers of the changed modules, all pass (`ocx test`, 6 shards). - Same user report, other part: a woken owner chat can create a follow-up automation on `main` (the agent's own background exec wakes it, and the automation it creates runs `ok` on a stored account). That part is fixed on `main`, so #201146 was closed with that evidence. Closes #195879. Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 480555a) Release adaptation: preserve stable cron preparation owner, abort/restart precedence, auto-disable policy and CLI guidance; use the stable cron alert renderer for sanitized repair copy. No required follow-up in the pinned audit. Co-authored-by: RomneyDa <[email protected]>
…ion results (#205873) Lands #195879 by @dallinromney (reported by @Marvinthebored in #195802), rebased on current `main`, with one change: the alert text now comes from the refusal cause table. ## Problem An automation with no recorded inference account is refused before inference with `Automation has no recorded inference account …`. A team member described it as "sub-agent death by loss of credentials, and a mis-reported error message": - In a session-target run, the refusal is in `lastError`, but the run has no diagnostics. When optional delivery suppresses the reply, the cause falls back to `Session event execution failed`. - The direct failure alert classified the run as `unknown` and said `Cause: unknown`. - Startup diagnostics did not warn about unbound Codex-runtime jobs that would use a stored account. ## Fix - The reply owner's failure cause goes to the session-event result separately from the optional chat text. A recognized account refusal is identified by error identity, not by its message text. It gets a permanent classification and a closed `inference-account-unrecorded` failure detail. - The direct alert text comes from `src/gateway/operator-refusal.ts` (new cause `automation-account-unrecorded`, with a required next step). It names the repair and does not name the stored account. Automation history keeps the full refusal. - Recurring jobs stay enabled; normal backoff and alert policy apply. Nothing is auto-disabled, no binding is written and no schema changes. - Startup inspection covers unbound Codex-runtime jobs on stored accounts. It warns only and does not rebind them. Production changes add more lines than they remove: the cause was dropped because no code carried it, so this PR adds that path. It adds no new state, retry or flag. ## User impact The history, diagnostics and chat alert all name the real cause (a missing recorded account) and the one command that repairs it, instead of `Session event execution failed` or `Cause: unknown`. ## Evidence - Isolated Gateway (from source), real `openai/gpt-5.5`, on base `main` `4934b24699c0`. Two automations were created while the provider used a configured key. The provider then moved to a stored account (`models auth paste-api-key`, config key removed, Gateway restarted), and both jobs came due on their timer. On base, both runs are refused with `Automation has no recorded inference account …`. The isolated run has diagnostics. The `session:` run has **no diagnostics**. - On this head, the same run is listed under the head E2E below. - Tests: 23 files, every changed test plus the direct importers of the changed modules, all pass (`ocx test`, 6 shards). - Same user report, other part: a woken owner chat can create a follow-up automation on `main` (the agent's own background exec wakes it, and the automation it creates runs `ok` on a stored account). That part is fixed on `main`, so #201146 was closed with that evidence. Closes #195879. Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 480555a) Release adaptation: Keep release CLI argument quoting and classify the existing refusal at outcome ownership; retain only the account-safe notification copy from the newer Gateway refusal table, not its broad authority refactor. Co-authored-by: RomneyDa <[email protected]>
Lands #195879 by @dallinromney (reported by @Marvinthebored in #195802), rebased on current
main, with one change: the alert text now comes from the refusal cause table.Problem
An automation with no recorded inference account is refused before inference with
Automation has no recorded inference account …. A team member described it as "sub-agent death by loss of credentials, and a mis-reported error message":lastError, but the run has no diagnostics. When optional delivery suppresses the reply, the cause falls back toSession event execution failed.unknownand saidCause: unknown.Fix
inference-account-unrecordedfailure detail.src/gateway/operator-refusal.ts(new causeautomation-account-unrecorded, with a required next step). It names the repair and does not name the stored account. Automation history keeps the full refusal.Production changes add more lines than they remove: the cause was dropped because no code carried it, so this PR adds that path. It adds no new state, retry or flag.
User impact
The history, diagnostics and chat alert all name the real cause (a missing recorded account) and the one command that repairs it, instead of
Session event execution failedorCause: unknown.Evidence
openai/gpt-5.5, on basemain4934b24699c0. Two automations were created while the provider used a configured key. The provider then moved to a stored account (models auth paste-api-key, config key removed, Gateway restarted), and both jobs came due on their timer. On base, both runs are refused withAutomation has no recorded inference account …. The isolated run has diagnostics. Thesession:run has no diagnostics.ocx test, 6 shards).main(the agent's own background exec wakes it, and the automation it creates runsokon a stored account). That part is fixed onmain, so fix(exec): let owner-started background commands schedule follow-ups when they finish #201146 was closed with that evidence.Closes #195879.