Skip to content

fix(sessions): avoid excessive history copies and preserve fork provenance - #134238

Merged
steipete merged 2 commits into
mainfrom
steipete/festive-rosalind-6a1dfb
Aug 31, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/festive-rosalind-6a1dfb

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Related: active Codex transcript overhead (#115049). This does not claim to supersede that broader work.

Additional instructions

MUST: Keep Allow edits from maintainers enabled. This is a same-repository maintainer branch.

What Problem This Solves

Long sessions could incur large, unnecessary history allocations while preparing a final answer after tools completed: settled-turn capture loaded and cloned the complete application-context prefix before the finalizer enforced its existing replay limits.

The same acquisition audit found three connected defects: native Codex forks accepted prompt drift beyond a display-text truncation boundary or normalized away whitespace changes; CLI byte-bounded history fetched oversized headers/boundaries before deciding whether they fit; and an empty BTW snapshot reloaded the already-persisted current user message.

Integration with newer main also exposed eligible finalization losing its host fallback when evidence was rejected earlier, and command-only fallback throwing despite an attributed assistant tool-call in the settled batch.

Why This Change Was Made

Reuse one canonical context-window selector and a synchronous, read-only SQLite snapshot consumer. Codex validates identities and source evidence while projecting under the existing limits, then hands off frozen native input items instead of a raw history clone. Successful capture still finishes suffix duplicate checks; host-prompt adoption remains verification-only. Core passes harness-owned evidence opaquely and retains the built-in transcript handoff.

Native fork verification compares complete attested submitted text, CLI acquisition preflights metadata before payload reads, and BTW records the exact admission parent, including an intentionally empty parent. Shared Codex mirror-origin checks replace duplicated untyped reads. This preserves the existing model-only context repair.

An explicit unavailable-evidence state preserves only the owning harness's existing finalization eligibility; it does not authorize replay. The native finalizer rejects it before provider I/O, leaving the existing no-model host fallback available. Authentication and usage-limit exclusions remain unchanged. Command-only fallback reuses assistant identity from the canonical settled-tool-batch owner, rather than fabricating model/provider metadata.

User Impact

  • Lower transient/retained history memory during settled-turn finalization, without silently truncating evidence or raising limits.
  • Native message forks reject changed submitted prompts, including long suffixes and whitespace.
  • CLI byte limits apply before header/reset/compaction payload acquisition.
  • BTW does not duplicate the current user when its in-memory snapshot is empty.
  • Eligible post-tool turns retain a visible host fallback when safe finalizer evidence is unavailable, without repeating completed actions.

No configuration, schema, storage-policy, retention, projection-limit, timeout, or heap-limit changes. Legacy file-only imports and upstream pagination remain unchanged. Navigation and individual selected rows still scale with the transcript; this is not a fixed process-memory ceiling.

Evidence

Candidate: e27db7b938e7d6e6975fee1f86881aff28761a58, based on main ace8a13f19ccc2805b3d458026de3ab4bbbd8878. Both commits retained identical patches through the rebase (git range-diff). The final OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build passed in 6m17s, including runtime/SDK compilation, import-boundary checks, and Control UI budgets. No ineffective dynamic import warning or budget increase.

Exact-head CI run 33418461319 passed, including the required openclaw/ci-gate and the Windows lane. The previous run 33412016671 failed two pre-existing Gateway fixture checks; this candidate incorporates the existing Gateway recovery fixture repair (#134207), not a duplicate fix or a retry of the stale head.

Production: +664/-685, net -21. Tests/support: +777/-110, net +667. Docs: net +33. Assertion-baseline maintenance: net -3, recording only removed violations.

The original regressions failed before production repair: native prompt drift was accepted; oversized settled context was captured and later payloads decoded; four CLI metadata fixtures acquired payloads before rejection; three real SQLite → prompt preparation → snapshot → BTW cases included the current user when the snapshot should be empty. The integration regressions also failed for their intended reasons: two eligible oversized cases lost context presence, and command-only fallback threw Settled-turn fallback has no assistant identity.

Focused validation passed 295 tests during the original repair, then 106 Codex support and 111 core snapshot/finalization/context tests after integration with main. The final eligibility/fallback repair passed 24 native tests and 55 core finalization/settled-tool-evidence tests; these groups overlap earlier coverage and are not an aggregate total. The complete changed-file gate passed again on the published candidate: all four type lanes, core/plugin/scripts lint, dead exports, import cycles, and architecture/storage guards. The SDK surface gate also passed during the original repair. Fresh isolated Codex autoreview passed at the configured P0 threshold for both the primary repair and final integration diff.

The maintained subagent-forked-context QA smoke passed in both embedded and actual Codex 0.151.0 runtimes against a local mock Responses server on the pre-integration head, using synthetic homes and ephemeral auth. Native process identity and codex-app-server mirror provenance were observed; all owned processes were cleaned up. Parity reported sessions_spawn tool-result-shape drift, not zero drift. This is runtime smoke, not independent proof that a child recalled inherited history or of operator message-fork/BTW acquisition; targeted regressions own those assertions, and the child-history assertion gap is recorded separately. The harness performed an update-check Git fetch; candidate HEAD, build identity, and tracked source remained unchanged.

A source-only benchmark with 20,002 synthetic messages rejected oversized history under the existing limits in both versions. Payload reads fell from 40,000 to 128; peak process RSS from about 397 MiB to 118 MiB; projection time from about 618 ms to 1.2 ms. This is an isolated stress case, not a production Gateway measurement.

Pinned Codex 0.151.0 source was personally inspected: exclusive beforeTurnId, literal text conversion, native item validation/history-only injection, and persisted canonical fork boundaries. Source citations and ClawSweeper finding disposition explain why the proposed adopted-prompt rewrite is not applied: the previous implementation also cloned the original persisted prompt. The projection is a transient host-process handoff, not a persistent data-model change.

All application proof uses source and synthetic fixtures. No operator conversations, configuration, credentials, core dumps, heaps, or running Gateway were used. Authenticated provider/channel behavior and visual UI proof are not claimed; the exercised surface is source/native-runtime synthetic evidence, not a signed-in operator flow. The separate oversized weekly skill-collection review issue remains out of scope.

@steipete steipete self-assigned this Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 15:52
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 1:24 PM ET / 17:24 UTC.

ClawSweeper review

What this changes

This PR replaces eager session-history copies with bounded lazy context reads, strengthens Codex fork prompt verification, and preserves the host fallback when settled-turn evidence is unavailable.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer review: the re-review resolves the prior prompt-replay finding, but the required independent Codex protocol inspection could not run because the sibling checkout is absent and GitHub DNS is unavailable.

Priority: P1
Reviewed head: e27db7b938e7d6e6975fee1f86881aff28761a58
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has focused owner-boundary coverage and no confirmed defect, but cannot be fully cleared without the required independent Codex protocol inspection.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied synthetic regression and native-runtime evidence is relevant supplemental validation, while the independent Codex contract check remains unavailable here.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied synthetic regression and native-runtime evidence is relevant supplemental validation, while the independent Codex contract check remains unavailable here.
Evidence reviewed 7 items Introduced bounded projection: The introduced capture path consumes the full-fidelity transcript through the synchronous reader and immediately projects it into a frozen Codex-owned context, rather than returning a cloned message array.
Fallback remains no-I/O on unavailable evidence: The Codex attempt records an explicit unavailable state after capture failure, while the Codex finalizer rejects every non-owner context before starting the bounded native turn; core then uses the existing terminal fallback path.
Prior finding disposition: The raw parent implementation verified an adopted logical prompt but cloned the original raw params.historyMessages into the finalization context. The new iterator likewise yields the canonical persisted message after verification, so the earlier proposed rewrite would not repair an introduced regression.
Findings None None.
Security None None.

How this fits together

OpenClaw stores session transcripts in SQLite, then its Codex plugin reads and projects the settled tool-turn history into a restricted native finalization call. When that call cannot safely run, the embedded agent runner produces the host-owned fallback instead of replaying completed tools.

flowchart LR
  A[SQLite session transcript] --> B[Session context reader]
  B --> C[Codex evidence projection]
  C --> D[Restricted native finalizer]
  D --> E[Visible final answer]
  C --> F[Evidence unavailable]
  F --> G[Host fallback reply]
Loading

Decision needed

Question Recommendation
After an independent inspection of the pinned Codex 0.151 protocol source, should this protected session-state PR land once its exact-head checks are green? Complete the dependency gate and land: Make the pinned Codex source available to a reviewer, confirm the app-server history and fork semantics, and land after exact-head CI is green.

Why: The source review finds no remaining discrete patch defect, but repository policy requires direct upstream Codex inspection for this dependency-sensitive behavior and that evidence is unavailable in this review environment.

Before merge

  • Resolve merge risk (P1) - The changed Codex projection and fork paths remain compatibility-sensitive until a reviewer can independently inspect the pinned upstream Codex contract; this environment cannot access the required sibling checkout or GitHub source.
  • Complete next step (P2) - No mechanical repair remains from this re-review; a maintainer must complete the required Codex dependency inspection and wait for exact-head CI rather than dispatching an automated fix.
Agent review details

Security

None.

PR surface

Source -18, Tests +664, Docs +33, Other -3. Total +676 across 32 files.

View PR surface stats
Area Files Added Removed Net
Source 18 667 685 -18
Tests 11 774 110 +664
Docs 2 41 8 +33
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 6 -3
Total 32 1485 809 +676

Review metrics

Metric Value Why it matters
Production versus test delta production +664/-685 (net -21); tests/support +777/-110; docs +41/-8; baseline +3/-6 The refactor is net-negative in production while adding focused owner-boundary regression coverage; the baseline reduction records removed assertions rather than suppressing new ones.

Stored data model

Persistent data-model change detected: serialized state: extensions/codex/src/app-server/settled-turn-projection.ts, unknown-data-model-change: extensions/codex/src/app-server/settled-turn-projection.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify the native contract before merge (recommended)
    Inspect the pinned Codex app-server and fork implementation alongside this exact head before landing the session-context change.
  2. Pause pending an equipped reviewer
    Keep the PR open if the required Codex source checkout cannot be made available for independent review.

Technical review

Best possible solution:

Retain the single lazy transcript reader and Codex-owned frozen projection, then complete an independent pinned Codex protocol review before landing the exact checked head.

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

No high-confidence live reproduction was run in this read-only review. The owner-boundary tests make the reported cases source-reproducible, including oversized acquisition, prompt drift, and command-only fallback identity.

Is this the best way to solve the issue?

Unclear: the revised design is consistent with the local ownership and fallback boundaries, and the prior replay finding is disproved by the raw parent, but direct upstream Codex contract verification remains unavailable.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied synthetic regression and native-runtime evidence is relevant supplemental validation, while the independent Codex contract check remains unavailable here.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: The PR changes how active session history and post-tool recovery determine a visible final outcome.
  • merge-risk: 🚨 session-state: The introduced reader and projection change transcript acquisition, fork verification, and finalization evidence for existing sessions.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied synthetic regression and native-runtime evidence is relevant supplemental validation, while the independent Codex contract check remains unavailable here.

Evidence

What I checked:

  • Introduced bounded projection: The introduced capture path consumes the full-fidelity transcript through the synchronous reader and immediately projects it into a frozen Codex-owned context, rather than returning a cloned message array. (extensions/codex/src/app-server/settled-turn-context.ts:172, e27db7b938e7)
  • Fallback remains no-I/O on unavailable evidence: The Codex attempt records an explicit unavailable state after capture failure, while the Codex finalizer rejects every non-owner context before starting the bounded native turn; core then uses the existing terminal fallback path. (extensions/codex/src/app-server/run-attempt-finalize.ts:361, e27db7b938e7)
  • Prior finding disposition: The raw parent implementation verified an adopted logical prompt but cloned the original raw params.historyMessages into the finalization context. The new iterator likewise yields the canonical persisted message after verification, so the earlier proposed rewrite would not repair an introduced regression. (extensions/codex/src/app-server/settled-turn-context.ts:157, 659e381072f3)
  • Current main still lacks this branch change: The fetched-main source still uses the earlier full-array clone through the settled boundary, so this PR is not already implemented on main. (extensions/codex/src/app-server/settled-turn-context.ts:174, b6cd3c6de3e9)
  • Focused regression coverage: The changed tests cover frozen bounded projection, rejection of foreign or unavailable contexts before native I/O, full-text and whitespace fork drift, and command-only fallback identity. (extensions/codex/src/app-server/settled-turn-context.test.ts:93, e27db7b938e7)
  • Codex contract inspection blocked: This PR directly depends on Codex app-server item and fork semantics, but the required ../codex checkout is absent and an attempted read-only GitHub source fetch failed because DNS could not resolve github.com.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Make the pinned ../codex source available for direct inspection of the fork and history-injection contract.
  • Complete the running exact-head CI before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-31T16:07:59.401Z sha 5823476 :: found issues before merge. :: [P1] Replay the verified host prompt

@steipete

steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Review resolution and dependency evidence

I checked the prompt-adoption finding against the raw parent of the reviewed commit. The claimed introduced change is not present: the old implementation verifies using the adopted local historyMessages, but its final clone explicitly reads params.historyMessages, the original unmodified input (baseline lines 174–179). Its existing regression also explicitly required the persisted display prompt and absent upstream-text metadata (baseline test). The iterator preserves that projection input; it does not discard metadata that the previous finalizer received. I am therefore not applying the proposed prompt rewrite. Verification-only adoption remains documented at the owner; the stored transcript is not mutated.

This is separate from native message forking, where this PR strengthens exact attested submitted-prompt comparison. I personally inspected the pinned Codex source at 78c290807ce710180111df227df3b7a4fe845452 (rust-v0.151.0): exclusive beforeTurnId, literal text conversion, native item validation, history-only injection, and persisted canonical fork boundary. The review worker's missing sibling checkout is not a missing dependency check in this landing.

The projection is a transient, frozen host-process handoff to an isolated native turn—not an OpenClaw persistent data model. There is no SQLite schema, version, retention, migration, or storage-policy change. Existing file-only import compatibility is retained.

All five Before merge items reduce to the same prompt rewrite and dependency-check requests: the rewrite is declined for the source-backed reason above; the dependency inspection is complete. Focused capture/projection/finalizer tests exercise those owner boundaries. A subsequent integration repair separately preserves eligible host fallback after bounded capture rejection and obtains command-only assistant identity from the existing settled-tool-batch owner. Authentication/usage-limit exclusions and the native no-I/O guard remain intact.

Updated head: e27db7b938e7d6e6975fee1f86881aff28761a58. The final build passed; 24 native eligibility/finalizer tests and 55 core finalization/tool-evidence tests passed, with intended pre-fix reproductions recorded. Fresh isolated Codex autoreview is scoped-clean at the configured P0 threshold. Exact-head CI is running. The PR body now contains the final scope, production/test LOC, runtime smoke evidence, and explicit proof gaps.

@clawsweeper re-review — please account for the raw-parent params.historyMessages clone above and inspect the additional eligibility/command-only identity repair.

@steipete
steipete force-pushed the steipete/festive-rosalind-6a1dfb branch from 5823476 to e27db7b Compare August 31, 2026 17:14
@clawsweeper

clawsweeper Bot commented Aug 31, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 31, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification

Head e27db7b938e7d6e6975fee1f86881aff28761a58 passed CI run 33418461319, including Windows and the required openclaw/ci-gate. The prior Gateway fixture failures were resolved by incorporating the existing main repair (#134207); neither repair patch changed during rebase.

The final full build and complete changed-surface gate passed. Fresh isolated Codex autoreview reported no accepted/actionable findings at the configured P0 threshold. Production is net -21 LOC; tests/support net +667. No configuration, schema, storage policy, budget, timeout, or heap-limit changes.

Exact final local commands (run in the candidate checkout):

OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build
python3 - <<'PY'
import subprocess
files = subprocess.check_output(['git', 'diff', '--name-only', '-z', 'ace8a13f19ccc2805b3d458026de3ab4bbbd8878...HEAD']).decode().rstrip('\0').split('\0')
subprocess.run(['node', 'scripts/check-changed.mjs', '--', *files], check=True)
PY
OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=.artifacts/vitest-history-landing-codex node scripts/run-vitest.mjs extensions/codex/src/app-server/run-attempt.test.ts extensions/codex/src/app-server/settled-turn-finalizer.test.ts --testNamePattern 'preserves settled finalization eligibility|runCodexSettledTurnFinalization' --reporter=verbose

The native command passed 24 selected tests; 153 unrelated cases were deliberately unselected. It preserves completion/overload eligibility with normal and oversized history, excludes auth/usage failures, and rejects unavailable/foreign evidence before native I/O.

OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=.artifacts/vitest-history-landing-core node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/settled-turn-finalization.test.ts src/agents/embedded-agent-runner/run/settled-tool-evidence.test.ts --reporter=verbose

The core command passed 55 tests, including command-only fallback identity, cancellation, silence, failure-honest output, and writer-fence handling. Both integration defects were reproduced before their owner repairs. Earlier acquisition/BTW/native-fork regressions and the synthetic native/embedded runtime smoke are documented in the PR body; these overlapping counts are not an aggregate total.

ClawSweeper's exact-head re-review reports no actionable finding and withdrew the prompt-replay claim after the raw-parent evidence. Its remaining rank-up requests are the pinned dependency inspection and completed CI. CI is complete; the parent directly inspected the pinned source, with public file/line citations in that response. A separate local reviewer has now independently inspected immutable Codex tag rust-v0.151.0 (78c290807ce710180111df227df3b7a4fe845452) and confirmed compatibility, with no discrepancy: native item shapes, history injection, and paginated exclusive fork boundaries, alongside the previously cited literal-text and legacy-boundary contracts. Injection can queue if a turn is already active; OpenClaw avoids that path by starting a fresh ephemeral thread, injecting history, then starting the turn. Unavailable evidence refuses before that flow.

The native review artifacts validate, and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 134238 passed its hosted gates and confirmed the remote branch remains at the exact reviewed head. Both latest Rank-up moves are addressed. Proceeding with the native merge workflow.

Proof limits remain explicit: source and synthetic fixtures only, no authenticated provider/channel or operator data. The native QA run is runtime smoke, not independent child-history recall or visual UI proof. Navigation and one selected row can still grow with history. Separate task chips record the child-history QA assertion gap and the trusted-wrapper dependency-packaging defect. The latter was handled using a complete clean trusted-main linked checkout, with the same native locks, validators, and merge guards—not a bypass.

@steipete
steipete merged commit 4431033 into main Aug 31, 2026
255 checks passed
@steipete
steipete deleted the steipete/festive-rosalind-6a1dfb branch August 31, 2026 17:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
…nance (openclaw#134238)

* fix(sessions): bound history acquisition and preserve fork provenance

* fix(agents): preserve eligible settled-turn fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex maintainer Maintainer-authored PR merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant