Skip to content

improve: reduce repeated session startup scans - #99335

Merged
clawsweeper[bot] merged 5 commits into
mainfrom
feature/issue-99190-transcript-tail-read
Jul 6, 2026
Merged

clawsweeper[bot] merged 5 commits into
mainfrom
feature/issue-99190-transcript-tail-read

Conversation

@momothemage

@momothemage momothemage commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: #99190

What Problem This Solves

Fixes an issue where long-lived session transcripts could still be touched with full-file scans on run startup paths even when only the first non-empty JSONL header line was needed.

Why This Change Was Made

The no-assistant session reset guard only needs to validate the first non-empty transcript header before deciding whether reset is safe. The previous implementation read the entire JSONL transcript into memory, which made startup work scale with full transcript size even when the header was at the beginning of the file.

This change replaces that full-file read with a small-chunk streaming first-non-empty-line reader. It returns as soon as the first non-empty header is found, keeps scanning until EOF for blank-prefixed transcripts, and preserves the existing fail-closed behavior for corrupt or invalid headers. That avoids introducing a new "header must appear within N bytes" compatibility constraint.

This intentionally does not replace SessionManager cold-open parsing with a tail-only reader yet; that path also restores model/thinking state, retained compaction tails, leaf controls, labels, and mutation-safe transcript state, so it needs a separate indexed or equivalence-proven design.

AI-assisted: yes.

User Impact

Users with long-running agent sessions should see less avoidable pre-LLM file work on reset-preparation startup paths. Behavior is unchanged for session reset safety, including blank-prefixed transcripts and corrupt-header preservation.

Evidence

  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/session-manager-init.test.ts
    • 8 passed, including blank-prefixed corrupt-header preservation and a regression where the first non-empty valid header appears beyond the old 64 KiB scan cap.
  • node_modules/.bin/oxfmt --check --threads=1 src/agents/embedded-agent-runner/session-manager-init.ts src/agents/embedded-agent-runner/session-manager-init.test.ts
  • git diff --check

Benchmark for the reset guard path only:

  • Measured window: prepareSessionManagerForRun only; transcript generation time is excluded.
  • Input shape: first line is a valid session JSONL header, followed by repeated user-message JSONL entries.
  • Transcript size: 57,752,670 bytes (~55.1 MiB).
  • Runs per branch: 12.
  • Both branches reset the file to 0 bytes after the guard passes.
Branch median mean min p90 max
origin/main@8f2986290d 23.068 ms 23.449 ms 22.185 ms 23.704 ms 27.052 ms
PR reset-guard code measured at 32edc6865c 1.013 ms 1.028 ms 0.904 ms 1.064 ms 1.274 ms

Result: median elapsed time drops from 23.068 ms to 1.013 ms, about 22.8x faster / 95.6% less time for this path.

Additional process-level observation from /usr/bin/time -l for the benchmark command:

  • main max RSS: 275,726,336 bytes
  • PR branch max RSS: 118,292,480 bytes

The RSS numbers include Node/tsx and benchmark script overhead, but they match the expected direction: the PR no longer materializes the full ~55 MiB transcript just to validate the first non-empty header.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Jul 3, 2026
@clawsweeper

clawsweeper Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 8:15 AM ET / 12:15 UTC.

Summary
The PR replaces prepareSessionManagerForRun's full transcript-file header validation with a chunked first-non-empty-line reader and adds regression coverage for blank-prefixed transcripts.

PR surface: Source +55, Tests +116. Total +171 across 2 files.

Reproducibility: yes. Current main source reads the whole transcript in the reset guard, and the contributor posted a main-vs-branch benchmark for the same large generated transcript path.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: serialized state: src/agents/embedded-agent-runner/session-manager-init.test.ts, serialized state: src/agents/embedded-agent-runner/session-manager-init.ts, unknown-data-model-change: src/agents/embedded-agent-runner/session-manager-init.test.ts, unknown-data-model-change: src/agents/embedded-agent-runner/session-manager-init.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #99190
Summary: This PR is a partial candidate fix for the open long-session transcript performance issue; the canonical issue remains broader because full transcript-state tail-reader work is still not implemented here.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Update the PR body so it no longer claims the removed AGENTS.md digest-cache change and points to the before/after benchmark evidence.

Risk before merge

  • [P1] The latest PR body still describes an AGENTS.md digest cache that the current head removed, so merge or release context should not rely on that stale text.
  • [P1] The formal CHANGES_REQUESTED review is still attached to an older head, so a maintainer needs to confirm the current head and benchmark evidence satisfy that review.

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow streaming reset-guard change once the stale review state is resolved and the PR body accurately reflects that the AGENTS.md digest-cache change was dropped.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is needed; the remaining blocker is maintainer confirmation that the updated head and benchmark satisfy the existing changes-request review.

Maintainer decision needed

  • Question: Does the current head plus the posted main-vs-branch reset-guard benchmark satisfy the earlier changes-request review so this PR can proceed?
  • Rationale: The code now addresses the requested streaming reader and drops the AGENTS.md cache, but the open review decision and human-review label are maintainer-owned signals that automation should not clear by inference.
  • Likely owner: hxy91819 — hxy91819 made the concrete changes-request review and follow-up proof request.
  • Options:
    • Accept current proof and clear review (recommended): Treat the posted benchmark and latest code as satisfying the requested changes, then allow normal merge/automerge gates after PR-body cleanup if desired.
    • Require PR body cleanup first: Ask the contributor to update the PR body so it no longer claims an AGENTS.md digest-cache change before clearing the review.
    • Request more benchmark evidence: Keep the changes-request review active if the posted timing table is not enough proof for the performance claim.

Security
Cleared: The final diff changes only TypeScript session reset-guard code and tests, with no dependencies, workflows, secrets handling, downloads, or supply-chain surface added.

Review details

Best possible solution:

Land the narrow streaming reset-guard change once the stale review state is resolved and the PR body accurately reflects that the AGENTS.md digest-cache change was dropped.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main source reads the whole transcript in the reset guard, and the contributor posted a main-vs-branch benchmark for the same large generated transcript path.

Is this the best way to solve the issue?

Yes for the narrow reset guard. Streaming only the first non-empty header line preserves the old safety check while avoiding full-file materialization; the broader transcript tail-reader work remains with the linked canonical issue.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8b86645f5c9b.

Label changes

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. A contributor comment provides copied benchmark output comparing current main and the PR branch on the same roughly 55 MiB generated transcript reset-guard input; the latest commit only removes the unrelated digest-cache change, so that proof still applies.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded agent/session performance fix with limited blast radius and no emergency user-facing outage signal.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Sufficient (live_output): A contributor comment provides copied benchmark output comparing current main and the PR branch on the same roughly 55 MiB generated transcript reset-guard input; the latest commit only removes the unrelated digest-cache change, so that proof still applies.
  • proof: sufficient: Contributor real behavior proof is sufficient. A contributor comment provides copied benchmark output comparing current main and the PR branch on the same roughly 55 MiB generated transcript reset-guard input; the latest commit only removes the unrelated digest-cache change, so that proof still applies.
Evidence reviewed

PR surface:

Source +55, Tests +116. Total +171 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 57 2 +55
Tests 1 117 1 +116
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 174 3 +171

What I checked:

  • Root and scoped policy applied: Root AGENTS.md and src/agents/AGENTS.md were read; their hot-path/performance guidance and deep-review requirements shaped the review. (AGENTS.md:13, 8b86645f5c9b)
  • Current main behavior: Current main still validates the reset guard by reading the whole transcript and splitting it to find the first non-empty line. (src/agents/embedded-agent-runner/session-manager-init.ts:17, 8b86645f5c9b)
  • PR implementation: The PR head adds a chunked StringDecoder reader that stops once the first non-empty transcript line is found, avoiding full-file materialization for the normal header case. (src/agents/embedded-agent-runner/session-manager-init.ts:20, baf54d804621)
  • Regression coverage: The PR adds tests for blank-prefixed corrupt headers and valid headers beyond the old 64 KiB cap, covering the compatibility issue raised in review. (src/agents/embedded-agent-runner/session-manager-init.test.ts:357, baf54d804621)
  • Maintainer review context: A member review requested a streaming first-non-empty-line reader and removal or justification of the AGENTS.md digest cache; the latest head streams the reader and drops the digest-cache change. (baf54d804621)
  • Related canonical issue: The linked issue remains broader than this PR because it still tracks full transcript-state tail-reader work beyond the reset guard.

Likely related people:

  • hxy91819: Requested the streaming reader, digest-cache simplification, and benchmark evidence that now gate the remaining maintainer decision. (role: reviewer; confidence: high; files: src/agents/embedded-agent-runner/session-manager-init.ts, src/agents/embedded-agent-runner/session-manager-init.test.ts)
  • vincentkoc: GitHub history shows substantial recent work in session transcript state and the existing bounded tail-scan pattern used as the related issue's implementation model. (role: adjacent session/runtime owner; confidence: high; commits: 9122e762d8f5, 568f2d563144, 9ba97ceaed89; files: src/agents/embedded-agent-runner/transcript-file-state.ts, src/agents/sessions/session-manager.ts, src/agents/bootstrap-files.ts)
  • Alix-007: Authored recent session transcript cache work that reduced repeated full JSONL parsing across turns, adjacent to this reset-guard optimization. (role: session cache contributor; confidence: medium; commits: a0b16f37e835; files: src/agents/sessions/session-manager.ts)
  • steipete: Local blame on current main attributes the reset-header guard lines to a recent broad commit, and GitHub history shows adjacent agent runtime and session helper work. (role: recent area contributor; confidence: medium; commits: c05766b2fff2, bb46b79d3c14; files: src/agents/embedded-agent-runner/session-manager-init.ts, src/agents/sessions/session-manager.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (2 earlier review cycles)
  • reviewed 2026-07-03T12:21:41.527Z sha bb57e41 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-06T09:21:40.938Z sha 32edc68 :: needs real behavior proof before merge. :: none

@momothemage
momothemage marked this pull request as ready for review July 3, 2026 03:10
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jul 3, 2026
@momothemage

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the P1 session-state finding:

  • readFirstSessionFileLine now keeps scanning within the bounded 64 KiB window until it finds the first non-empty line, preserving the previous first-non-empty header validation behavior.
  • Added regression coverage for blank-prefixed corrupt headers so the reset path rejects and preserves the transcript instead of truncating it.
  • Updated the PR body with focused test output and a local generated long-session startup proof.

Validation run:

  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/session-manager-init.test.ts
  • node scripts/run-vitest.mjs src/agents/embedded-agent-helpers.buildbootstrapcontextfiles.test.ts
  • git diff --check

@clawsweeper

clawsweeper Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 3, 2026
@momothemage

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the new P1 capped-header finding:

  • The bounded header scan now distinguishes EOF from hitting the 64 KiB cap before any non-empty line is found.
  • If the cap is reached first, prepareSessionManagerForRun fails closed and preserves the transcript instead of treating it as an empty transcript.
  • Added regression coverage for a transcript with more than 64 KiB of blank prefix followed by a corrupt header.

Validation run:

  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/session-manager-init.test.ts (8 passed)
  • node scripts/run-vitest.mjs src/agents/embedded-agent-helpers.buildbootstrapcontextfiles.test.ts (24 passed)
  • git diff --check
  • Local behavior proof: long-session reset 57,300,171 bytes -> 0 bytes in 1.22ms; capped blank-prefix corrupt header rejected and preserved in 12.07ms.

@clawsweeper

clawsweeper Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 3, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 3, 2026
@momothemage
momothemage force-pushed the feature/issue-99190-transcript-tail-read branch from 3dfaa47 to 32edc68 Compare July 6, 2026 08:33
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. labels Jul 6, 2026
@clawsweeper

clawsweeper Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [P1] No ClawSweeper repair is appropriate right now because no concrete code defect remains; the open blocker is proof sufficiency and maintainer re-review after the requested benchmark evidence.; Cleared: The diff adds no dependencies, workflows, secret handling, downloaded artifacts, or new code-execution surface, and I found no concrete security or supply-chain concern. (sha=32edc6865c62d6062c654173f72abded6cec2c77)

Why human review is needed:
This PR affects proof-label or proof-gate automation. ClawSweeper can identify the risk, but a maintainer needs to decide whether the available proof is enough before automation continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If proof is still missing, add redacted real behavior proof for the affected proof-label workflow, then comment @clawsweeper automerge to re-review and continue. If automation should not continue, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@hxy91819

hxy91819 commented Jul 6, 2026

Copy link
Copy Markdown
Member

One remaining concern on the AGENTS.md digest cache: please add before/after measurement for this part as well.

The current one-entry cache is much easier to reason about than the previous 16-entry LRU, and I do not see a correctness blocker with the content-hash key. But the optimization still adds cache state and SHA-256 hashing to the bootstrap path, so it would be helpful to show that it actually wins for the intended case.

Please include a small benchmark or timing comparison for a large AGENTS.md that exercises repeated buildBootstrapContextFiles / policy-digest generation with unchanged content, comparing main vs this branch. The important question is whether hash + cache lookup is materially cheaper than the existing split/regex/digest pass for realistic large AGENTS.md inputs.

@momothemage

Copy link
Copy Markdown
Contributor Author

Benchmark for the transcript reset-guard path requested by @hxy91819.

Scope: only prepareSessionManagerForRun on the reset path for a user-only transcript. The benchmark constructs a fresh transcript each run, but the measured window only wraps prepareSessionManagerForRun.

Input shape:

  • First line: valid session JSONL header.
  • Remaining lines: repeated user-message JSONL entries.
  • Transcript size: 57,752,670 bytes (~55.1 MiB).
  • Runs per branch: 12.
  • Both branches reset the file to 0 bytes after the guard passes.
Branch median mean min p90 max
origin/main@8f2986290d 23.068 ms 23.449 ms 22.185 ms 23.704 ms 27.052 ms
PR branch 32edc6865c 1.013 ms 1.028 ms 0.904 ms 1.064 ms 1.274 ms

Result: median elapsed time drops from 23.068 ms to 1.013 ms, about 22.8x faster / 95.6% less time for this path.

Additional process-level observation from /usr/bin/time -l for the benchmark command:

  • main max RSS: 275,726,336 bytes
  • PR branch max RSS: 118,292,480 bytes

The RSS numbers include Node/tsx and benchmark script overhead, but they match the expected direction: the PR no longer materializes the full ~55 MiB transcript just to validate the first non-empty header.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 6, 2026
@clawsweeper

clawsweeper Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - No automated repair is needed; the remaining blocker is maintainer confirmation that the updated head and benchmark satisfy the existing changes-request review.; Cleared: The final diff changes only TypeScript session reset-guard code and tests, with no dependencies, workflows, secrets handling, downloads, or supply-chain surface added. (sha=baf54d8046217a1452182afbae93c69a113dc3f2)

Why human review is needed:
This item has security-sensitive risk. ClawSweeper is pausing instead of making an autonomous change that could affect trust, credentials, permissions, or exposure.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If the security-sensitive detail still needs changes, describe the safe path or push the fix, then comment @clawsweeper automerge. If the risk should not be automated, keep the PR paused for manual review or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@hxy91819 hxy91819 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The requested changes have been addressed: the reset guard now streams to the first non-empty header without the 64 KiB compatibility cap, the AGENTS.md digest cache change was removed, and the transcript reset-guard benchmark shows the expected main-vs-branch improvement.

Please update the PR body before merge so it no longer mentions the removed AGENTS.md cache and so the Evidence section reflects the latest benchmark/current behavior.

@momothemage

Copy link
Copy Markdown
Contributor Author

@clawsweeper approve

@momothemage

Copy link
Copy Markdown
Contributor Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper clawsweeper Bot removed the clawsweeper:human-review Needs maintainer review before ClawSweeper can continue label Jul 6, 2026
@clawsweeper
clawsweeper Bot merged commit 17605c5 into main Jul 6, 2026
137 of 141 checks passed
@clawsweeper
clawsweeper Bot deleted the feature/issue-99190-transcript-tail-read branch July 6, 2026 12:30
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
Summary:
- Merged improve: reduce repeated session startup scans after ClawSweeper review.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: preserve blank-prefixed session header guard
- PR branch already contained follow-up commit before automerge: fix: fail closed on capped transcript header scan
- PR branch already contained follow-up commit before automerge: fix: stream transcript reset guard
- PR branch already contained follow-up commit before automerge: chore: drop bootstrap digest cache change

Validation:
- ClawSweeper review passed for head baf54d8.
- Required merge gates passed before the squash merge.

Prepared head SHA: baf54d8
Review: openclaw#99335 (comment)

Co-authored-by: momothemage <[email protected]>
Approved-by: momothemage
zeekay pushed a commit to hanzoai/bot that referenced this pull request Sep 11, 2026
Summary:
- Merged improve: reduce repeated session startup scans after ClawSweeper review.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: preserve blank-prefixed session header guard
- PR branch already contained follow-up commit before automerge: fix: fail closed on capped transcript header scan
- PR branch already contained follow-up commit before automerge: fix: stream transcript reset guard
- PR branch already contained follow-up commit before automerge: chore: drop bootstrap digest cache change

Validation:
- ClawSweeper review passed for head baf54d8046217a1452182afbae93c69a113dc3f2.
- Required merge gates passed before the squash merge.

Prepared head SHA: baf54d8046217a1452182afbae93c69a113dc3f2
Review: openclaw/openclaw#99335 (comment)

Co-authored-by: momothemage <[email protected]>
Approved-by: momothemage
zeekay pushed a commit to hanzoai/bot that referenced this pull request Sep 11, 2026
Summary:
- Merged improve: reduce repeated session startup scans after ClawSweeper review.

Automerge notes:
- PR branch already contained follow-up commit before automerge: fix: preserve blank-prefixed session header guard
- PR branch already contained follow-up commit before automerge: fix: fail closed on capped transcript header scan
- PR branch already contained follow-up commit before automerge: fix: stream transcript reset guard
- PR branch already contained follow-up commit before automerge: chore: drop bootstrap digest cache change

Validation:
- ClawSweeper review passed for head baf54d8046217a1452182afbae93c69a113dc3f2.
- Required merge gates passed before the squash merge.

Prepared head SHA: baf54d8046217a1452182afbae93c69a113dc3f2
Review: openclaw/openclaw#99335 (comment)

Co-authored-by: momothemage <[email protected]>
Approved-by: momothemage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants