Skip to content

Preserve OpenClaw reasoning summaries across bundle renames - #3214

Open
xeophon wants to merge 1 commit into
codex/3205-codex-backgroundfrom
codex/3205-openclaw-sanitizer
Open

xeophon wants to merge 1 commit into
codex/3205-codex-backgroundfrom
codex/3205-openclaw-sanitizer

Conversation

@xeophon

@xeophon xeophon commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

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 parsed when 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 summary from that discovered variable with an empty-array fallback (${item}.summary ?? []) instead of a hard-coded parsed.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.

@macroscopeapp

macroscopeapp Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at a709b3d

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 3f656bf. Prior analysis still applies.

You can add or adjust custom eligibility rules. Learn more.

@xeophon
xeophon force-pushed the codex/3205-openclaw-sanitizer branch from a709b3d to 3f656bf Compare November 19, 2026 01:30
@xeophon
xeophon force-pushed the codex/3205-codex-background branch from dd171ab to b290a99 Compare November 19, 2026 01:30

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant