Repository navigation
fix(agents): harden skill-review lane against cold-load stalls - #115950
Conversation
…ying terminal auth-migration reviews
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 10:35 AM ET / 14:35 UTC. ClawSweeper reviewWhat this changesThis PR adds a shared lane-heartbeat helper around prepared model-runtime acquisition and stops the skill-workshop review scheduler from retrying terminal auth-profile migration failures. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 8 items remain Keep this PR open for a targeted correction. The shared helper emits timer-driven heartbeats while prepared-runtime acquisition is merely pending, so a genuinely stalled plugin load or provider discovery can no longer trip the lane’s no-progress watchdog. The supplied validation is mock/test and changed-check evidence, not after-fix real runtime proof. Priority: P1 Review scores
Verification
How this fits togetherEmbedded agent runs execute inside command lanes guarded by a no-progress watchdog. Before a model can run, the lane acquires a prepared runtime that loads plugin/provider state; completed runs can also enqueue a skill-workshop experience review for later model analysis. flowchart LR
A[Agent or CLI run] --> B[Embedded run lane]
B --> C[Prepared runtime acquisition]
C --> D[Plugin and provider discovery]
D --> E[Model execution]
E --> F[Completed-run review candidate]
F --> G[Skill workshop scheduler]
B --> H[No-progress watchdog]
Decision needed
Why: This is an availability contract choice: accepting timer-driven liveness can preserve slow cold starts but also removes the existing recovery path for acquisition deadlocks. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +33, Tests +151. Total +184 across 6 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Carry real progress signals from prepared-runtime loading and provider discovery into the lane watchdog, or retain a bounded acquisition-phase timeout, then provide redacted runtime evidence for both the cold-load success path and a deliberately stalled acquisition. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: make prepared-runtime acquisition remain pending after it starts; the new interval continues calling the lane progress callback, so the no-progress watchdog cannot distinguish that stall from real loader progress. Is this the best way to solve the issue? No. The scheduler’s terminal-auth handling is narrow and appropriate, but the shared heartbeat is not the best watchdog fix because it records elapsed time rather than progress at the acquisition boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 628262a4afb3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper rank-up moves reviewed for
These moves were considered and are being skipped deliberately; no |
|
Merged via squash.
|
…ying terminal auth-migration reviews (openclaw#115950)
What Problem This Solves
Fixes two live defects observed on 2026-07-29 in the skill-workshop experience review running on
CommandLane.SkillWorkshopReviewwith the 150-second no-progress watchdog. On a fresh process, cold-loading all bundled extensions (~122 seconds) plus provider/model discovery ran inside the lane task without reporting progress, so the watchdog raisedCommandLaneTaskTimeoutError(no progress for 216227ms) before the review model call started. Separately,AuthProfileMigrationRequiredErrorsurfaced only after the lane timeout (observed at 550 seconds), and the scheduler re-looped on this terminal error class.Why This Change Was Made
Prepared-model-runtime acquisition is live work, not a hang, so it now feeds the lane watchdog through a shared heartbeat helper extracted from the identical inlined settled-turn-finalization pattern; settled-turn finalization now uses the helper too. The experience-review scheduler treats
AUTH_PROFILE_MIGRATION_REQUIREDas terminal: it drops the pending candidate and logs the actionable doctor message instead of re-arming.The pending entry is intentionally deleted after
runReviewsucceeds rather than before the call. Transient review failures therefore retain their evidence and re-arm after the 30-second idle interval, while terminal auth-migration failures drop cleanly.User Impact
The first review after gateway startup, CLI runs, or fresh test processes no longer self-terminates during cold loading. Operators with legacy auth stores receive one clear
run openclaw doctor --fixwarning instead of a silent retry loop.Evidence
node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/lane-runtime.test.ts src/skills/workshop/experience-review.test.tskeeps a slow lane task alive while runtime acquisition makes progressproves a lane task with a 25-second no-progress budget survives a 52-second acquisition under the heartbeat.node scripts/check-changed.mjslanes=core, coreTestsexitCode: 0(commandMs: 556915)