Repository navigation
Conversation
When a prepared-runtime lease must borrow the published generation (the configured owner and the published dispatch runtime hold different generation objects, which is the normal shape of cron's nested admission), the borrow check requires every plugin in the runtime plugin load plan to be present in the borrowed registry, tolerating only plugins recorded with status "error". A plugin recorded as "disabled" was treated as missing, so the lease threw "prepared model runtime plugin generation was superseded". Primary admission already records disabled plan plugins as a generation outcome without requiring successful model resolution; whether the model can actually be served is decided downstream on both paths. Treat "disabled" like "error" in the borrow check so the borrow path cannot reject a generation that admission accepted. Observed with agents.defaults.model.fallbacks containing a bailian-token-plan model whose owner plugin (qwen) is disabled: every isolated cron run selecting a non-primary provider failed in ~150 ms.
|
🦞👀 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: needs maintainer review before merge. Reviewed September 8, 2026, 12:16 AM ET / 04:16 UTC. ClawSweeper reviewWhat this changesThe PR lets cron reuse prepared plugin state containing disabled plugins and shares one error recorder across fallback attempts so provider failures retain their original diagnostics. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: both defects persist on fetched main, the supplied runtime observations cover the changed behavior, and no blocking patch defect was found. The related runtime-refresh PR addresses a different failure mechanism. Priority: P1 Review scores
Verification
How this fits togetherIsolated cron jobs prepare model and plugin state before dispatching an agent turn through the configured fallback chain. Prepared-runtime leases retain that state, while a logical-run error recorder controls terminal transcript writes. flowchart TD
A[Scheduled cron job] --> B[Model and fallback selection]
B --> C[Prepared runtime lease]
C --> D{Recorded plugin outcome}
D --> E[Model availability and dispatch]
E --> F[Fallback attempts]
F --> G[Shared terminal error recorder]
G --> H[Run result and transcript]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +3, Tests +102. Total +105 across 3 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep plugin availability decisions downstream of lease reuse and settle fallback errors through the existing logical-run owner. Do we have a high-confidence way to reproduce the issue? Yes: fetched-main source establishes the disabled-outcome rejection and missing recorder handoff, supported by the supplied before/after Gateway observations. This read-only review did not execute a reproduction. Is this the best way to solve the issue? Yes: both changes repair existing ownership boundaries, preserve admission and model-availability checks, and reuse established behavior without adding configuration or parallel APIs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2eb8a5f84c74. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Thanks @Marvinthebored! Merged as Proof: The real Gateway cron path now reaches the usable non-primary provider while the fallback plugin remains disabled. Exhausted fallbacks report the original provider errors, and restoring the provider succeeds without restarting the Gateway.
|
…1-prep * commit 'da37d47920d102044a4cb33f8cd688b4abc3c2a6': (460 commits) refactor(memory): simplify built-in runtime delegation (openclaw#141847) refactor(comfy): remove unused cloud fixture input (openclaw#141844) fix(agents): keep canonical target casing for session-bound replies (openclaw#140418) fix(ci): hydrate release source ancestry through branch (openclaw#141840) fix(telemetry): include mixed-case configured providers (openclaw#141134) fix(qa): retain Slack presentation history (openclaw#127300) test(cli): compact argv case matrices (openclaw#141832) test(agents): compact code mode case matrices (openclaw#141831) test(gateway): compact control ui routing cases (openclaw#141834) test(reasoning): compact reasoning tag cases (openclaw#141833) fix(cli): keep progress spinners within terminal width (openclaw#141401) fix(release): provision native live harness dependencies (openclaw#141829) fix(cron): preserve prepared runtime and error ownership (openclaw#140941) fix(npm): recognize companion-owned runtime imports (openclaw#141647) fix(browser): reject unsupported buttons in click commands (openclaw#140976) refactor(gateway): keep cached turn replay with dedupe (openclaw#141824) fix(release): preserve frozen gateway package resolution (openclaw#141827) refactor: keep live image probe matching private (openclaw#141823) fix(browser): recover stale panel after stream disconnects (openclaw#141576) feat(cron): explain slow automation list requests (openclaw#141805) ...
…0941) Isolated cron runs can reject a usable non-primary model before dispatch when another plugin in the fallback plan is disabled. The prepared-generation borrow check treated that recorded outcome as a missing owner. Accept disabled outcomes alongside recorded load errors, while preserving the live parent lease, identity checks, and downstream model availability. The provider-error control also exposed a missing handoff in cron's shared execution path: each failed candidate settled a separate error recorder against the same terminal transcript key. Pass the existing logical-run error recorder into the embedded runner so exhausted fallbacks report the provider failures once. Validation: - Current main `0a2e206fbcc21393da6db341748c8975b6669436`: the real Gateway `cron run` path fails with generation supersession in 168 ms before any model POST. - Candidate: the same configuration and original job return the normal provider-B result with exactly one B model POST and no C model POST. - Disabled plugin-only model selection still returns `model_not_found` without model I/O. Explicitly configured generic provider transports retain their existing availability; disabling plugin code does not remove that separate configuration. - Injected B and C provider failures now report both original errors instead of a transcript idempotency conflict. Restoring B succeeds in the same Gateway process, without a restart or an intervening primary run. - Primary cron, interactive turns, first usable fallback, and disabled-plugin state pass. Earlier independent source-blind CLI acceptance remains recorded separately from owner-level checks. - The new borrowed-lease cases cover loaded, disabled, error, absent, and not-imported outcomes. Reverting only the predicate makes the disabled case fail; the repaired owner/lifecycle set passes 99 tests. Cron fallback and shared-entry siblings pass 40 tests. - Fresh independent P0–P2 review is clean. Hosted CI checks the published head. The current native proof used candidate tree `6a051fda57b16deecc389828b52ba9605cb68e38`, now committed as `55a440123a0850b48f14213e38129cb74e27c34e`. Its pre-commit build stamp retains the original checkout base; no artifact was restamped. Earlier baseline/candidate proof and failed CI attempts are preserved with their original identities. Fixes openclaw#140940. Co-authored-by: Ayaan Zaidi <[email protected]>
Isolated cron runs can reject a usable non-primary model before dispatch when another plugin in the fallback plan is disabled. The prepared-generation borrow check treated that recorded outcome as a missing owner. Accept disabled outcomes alongside recorded load errors, while preserving the live parent lease, identity checks, and downstream model availability.
The provider-error control also exposed a missing handoff in cron's shared execution path: each failed candidate settled a separate error recorder against the same terminal transcript key. Pass the existing logical-run error recorder into the embedded runner so exhausted fallbacks report the provider failures once.
Validation:
252158295ee487c4145404367fa15e3db588989b: the real Gatewaycron runpath fails with generation supersession in 168 ms before any model POST.model_not_foundwithout model I/O. Explicitly configured generic provider transports retain their existing availability; disabling plugin code does not remove that separate configuration.The current native proof used candidate tree
6a051fda57b16deecc389828b52ba9605cb68e38, now committed as55a440123a0850b48f14213e38129cb74e27c34e. Its pre-commit build stamp retains the original checkout base; no artifact was restamped. Earlier baseline/candidate proof and failed CI attempts are preserved with their original identities.Fixes #140940.