Repository navigation
Conversation
This was referenced Nov 19, 2026
xeophon
marked this pull request as ready for review
November 19, 2026 01:13
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The OpenClaw bundle patch now preserves reasoning summaries even when the bundled variable name changes. Existing validation, installation locking, and atomic replacement safeguards remain unchanged, keeping the change narrowly scoped. No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
xeophon
force-pushed
the
codex/3205-openclaw-sanitizer
branch
from
November 19, 2026 01:30
a709b3d to
3f656bf
Compare
xeophon
force-pushed
the
codex/3205-codex-background
branch
from
November 19, 2026 01:30
dd171ab to
b290a99
Compare
This branch has not been deployed
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.
The published transcript sanitizer renames the local variable holding the validated reasoning item. Read its name from the summary validation before patching the replay serializer. The patch preserved multipart replay tokens and reasoning summaries on both OpenClaw release bundles and was idempotent on a second application.
Local unit suite on this commit reported 299 passed, 19 skipped. Full-stack CI before review fixes
Layer 7 of 13. Builds on #3213. Stack index
Note
Preserve OpenClaw reasoning summaries across bundle renames in harness patch
The OpenClaw harness patch in harness.py no longer targets a fixed patch context for reasoning summaries. It now inspects the bundle source to find the local variable used in the reasoning-summary validation, then patches that variable to use the parsed summary with an empty-list fallback. If the validation pattern cannot be located, the patch raises an explicit error.
Macroscope summarized 3f656bf.
Note
Low Risk
Narrow harness install-time patching logic with explicit failure modes; no auth, data, or runtime API changes.
Overview
The OpenClaw install-time transcript sanitizer replay patch no longer assumes a fixed minified local named
parsedwhen rewriting reasoning items. Before patching, it regex-scans the bundle for the variable used in the reasoning-summary validation (<var>.summary !== void 0 && !Array.isArray(<var>.summary)) and fails fast if that pattern is missing.The reasoning replay rewrite now sets
summaryfrom that discovered variable with an empty-array fallback (${item}.summary ?? []) instead of a hard-codedparsed.summary, so reasoning summaries stay preserved when published OpenClaw bundles rename locals. The existing multipart opaque replay token regex widening is unchanged.Reviewed by Cursor Bugbot for commit 3f656bf. Bugbot is set up for automated code reviews on this repo. Configure here.