feat(obs): surface OpenClaw 2026.9.3 update-pipeline state in adapter (#5749) - #5763
Draft
vivekchand wants to merge 2 commits into
Draft
feat(obs): surface OpenClaw 2026.9.3 update-pipeline state in adapter (#5749)#5763vivekchand wants to merge 2 commits into
vivekchand wants to merge 2 commits into
Conversation
…#5749) OpenClaw 2026.9.3 rehearses core/plugin changes in candidate state before activation and recovers abandoned update records without stopping the Gateway. These events were invisible to ClawMetry: an agent stuck in a half-activated or abandoned state showed no signal on health surfaces. Adds _openclaw_update_pipeline_state() — same gateway-event-scan pattern as the 2026.9.1/2 scanners (#5547, #5548, #5618) — and wires it into detect(). 13 regression tests cover candidate-state, abandoned-recovery, both-in-session, no-match, empty list, None msg, missing ts, and exception safety. Closes #5749 Co-Authored-By: ClawMetry Autofix Bot <bot-autofix@clawmetry.dev> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ge18wEETZ88yfsvaxF7J5a
Owner
Author
|
Bot note: Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenClaw 2026.9.3's safer-update pipeline rehearses core/plugin changes in isolated candidate state before activation and can recover abandoned update records without stopping a healthy Gateway. These state transitions were logged by the Gateway but invisible to ClawMetry — an agent stuck in a half-activated or abandoned update state showed no signal on health surfaces.
This PR adds a targeted gateway-event scanner for update-pipeline state, following the exact same pattern as the 2026.9.1/2 scanners landed in #5547, #5548, and #5618.
Changes
clawmetry/adapters/openclaw.py: add_openclaw_update_pipeline_state(events)— scans already-fetched gateway log events for candidate-state transitions (candidate+update/activat), abandoned-update recovery (abandon+update/recover), and activation events (activation+update). ReturnsupdatePipelineStateDetected, optionallyupdatePipelineCandidateState,updatePipelineAbandoned,updatePipelineMsg,updatePipelineTs. Wired intodetect()immediately after the_backup_outcome_eventscall.tests/test_obs_gap_openclaw_update_pipeline_5749.py: 13 regression tests — candidate-state, abandoned-recovery, both-in-session, activation keyword, no-match, empty list, None msg, missing ts field, exception safety (None + non-list), and non-interference with the existing migration-warning scanner.Test plan
python3 -m pytest tests/test_obs_gap_openclaw_update_pipeline_5749.py -v— 13 passedpython3 -c 'import ast; ast.parse(open("clawmetry/adapters/openclaw.py").read())'— syntax OKupdatePipelineStateDetectedsurfaces in/api/overviewmeta when a 2026.9.3 Gateway logs a candidate or abandoned-update eventBot meta
Draft PR opened autonomously based on the plan in #5749. Marked draft for human review — mark Ready for Review once happy.
No-PRD: autofix bot implementing harness-gap issue #5749, which was filed by the automated audit script; the audit finding itself is the product record for this observability addition
Closes #5749
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ge18wEETZ88yfsvaxF7J5a