Skip to content

fix(agents): prevent needless cache rebuilds from workspace and turn context - #174235

Closed
VishalJ99 wants to merge 10 commits into
openclaw:mainfrom
VishalJ99:codex/workspace-context-refresh
Closed

VishalJ99 wants to merge 10 commits into
openclaw:mainfrom
VishalJ99:codex/workspace-context-refresh

Conversation

@VishalJ99

@VishalJ99 VishalJ99 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenClaw can change an early instruction block when workspace Markdown files are edited or when an otherwise unchanged conversation moves between ordinary input, internal handoffs and completion turns. That can invalidate a large reusable prompt prefix. The reporting user experienced rapid Claude allowance depletion that made the PA feel practically unusable.

This is a cache-efficiency bug, with two distinct causes addressed here. Three observed resumed Claude calls recorded system_changed and about 943,000 total cache-created input tokens despite identical retained workspace content. An offline regression also reproduced three system variants across four turns with unchanged intended authority/tools/workspace. Historical full system bodies were not retained, so the exact avoidable share cannot be reconstructed. Cache-token counts do not measure subscription allowance consumed or prove this alone exhausted it.

Changes

Automatic correction: current turn facts leave reusable system instructions

Producers identify their exact generated routing, delivery, account-format and inbound-metadata contribution. On the existing eligible per-turn context path, preparation carries those current facts through that carrier—private turn context on native Claude—while enduring conditional rules stay authoritative system instructions.

For example, the current account/thread is turn context; authorization, privacy, progress/final delivery and reaction rules remain system policy. Exact producer-recorded offsets/components establish ownership. Missing or mismatched provenance preserves the original caller instructions; there is no heading matching or arbitrary text stripping. Required facts survive optional-context failure.

This correction applies automatically on the eligible path, independently of the workspace setting. It does not freeze the whole system prompt. Genuine owner, permissions, tools, plugin and caller instruction changes remain current and may legitimately invalidate a cache prefix. Ineligible paths retain existing behavior.

Opt-in workspace freshness cadence

{
  agents: {
    defaults: { workspaceContextRefresh: "compaction" },
  },
}
  • "compaction": load current workspace files for a new session, retain their snapshot across ordinary turns/process restarts, and refresh at compaction before continuation.
  • "every-turn": immediate file refresh; remains the default. Per-agent overrides are supported.

An agent's own edits and tool results are normally already in the conversation, so reloading the file into an earlier block can be redundant. External edits may not be: operators selecting compaction mode intentionally defer their visibility. Snapshots cover workspace-file input, not dynamic permissions/tools/skills. Saved raw files rerender under current privacy filters and injection budgets; scope changes cannot reuse another scope's private native context.

The implementation reuses existing session metadata and lifecycle ownership, without a new database schema or sidecar. The opt-in supports managed local Claude and embedded execution with built-in compaction; unsupported harnesses/remote snapshot paths/opaque compaction owners reject it explicitly. Codex support for this snapshot mode is not claimed. An optional public CLI workspace lifecycle callback is part of the proposed contract and needs maintainer approval.

General mechanism versus Claude integration

Changing an early prefix can affect any exact-prefix cache; OpenAI documents the same requirement. This is not established as a Claude Code cache defect.

OpenClaw's managed Claude transport receives rebuilt appendSystemPrompt with systemPromptSnapshot:false, exposing host prefix changes on resume. Codex's parent-local persona/skills/memory instructions also expose early-prefix changes, although its AGENTS snapshot differs. Embedded exposure depends on the final carrier: eligible native OpenAI Responses and direct Anthropic on this newer base already preserve prompt-series prefixes and append updates. Builder changes alone do not prove a changed outgoing prefix on every route. GPT cache loss, comparative allowance impact and universal provider coverage have not been measured.

Evidence

Current PR head: 585915a9020e96a69e2110540f23977197db5111.

Scope Executed result and limitation
Latest upstream behavior plan Normal exit1: 38 passed, 6 failed, 219 skipped across nine files; a separate unchanged projection suite passed 8/8. The failures were a new native-initialization timeout, two fixture expectations, and three existing native stdio startup/cleanup controls. The fixture expectations and a subsequently reviewed test-import path were corrected but not rerun. Native timeout/cleanup failures remain unresolved.
Latest upstream static/source checks Production type checking, scoped lint and format/diff checks passed. Independent review verified the import correction and source semantics. Changed-test type checking is incomplete: an unrelated pre-existing NUL-damaged working file prevented scope discovery; the conservative broad fallback was stopped/joined. That file was preserved and excluded from the commit. No current-head upstream runtime-build pass is claimed.
Exact older installed-version port Official declarations, scoped typed lint, unified runtime build, source/output/import preservation and seven copied-installer cases passed. Independent source and exact-payload review approved the final candidate. These results concern 2026.10.2/b8952d4 plus existing local patches, not an executed runtime build of this newer PR head.
Genuine release compatibility attempt The genuine npm 2026.10.4 package wrote isolated settings/history/binding state; normal Doctor migration24→28 passed. Feature-disabled reading timed out on the original attempt and one unchanged authorized retry. Activation, restart and compaction phases did not execute. This is migration proof only, not upgrade continuity.

Executed compiled native-boundary proof on the older port

Actual ordinary reply producer/queue and public command producer/prepared-generation/attempt compose through actual admission, plugin loading and the unchanged Anthropic transport, with a synthetic stdio peer. Final run: exit0, eleven behavior groups.

ordinary -> internal handoff -> completion -> ordinary
host appendSystemPrompt: identical across four turns
native tool/settings argv: identical except session-id/resume selectors
current private facts, account formats and original input: pass
persisted binding and host resume/history: pass
saved workspace, compact refresh, stale-context refusal: pass
native exec denial, genuine overrides and policy/provenance: pass
specific closed/stale/foreign ownership controls: pass
native initializations=6; successful terminal results=5
provider/network/channel attempts=0 in this final corrected fixture
remaining children=0; backend/runtime/registry cleanup joined

Proof inputs/payload were unchanged before/after. Final result SHA256: 7fa6f83023807cfafa0be750607d736ae3751472e23d2c79848f5773aab2e74b. Exact reviewed payload manifest SHA256: a1af6a27393d83a57fe76b411a81fec40ce00b7a84192923e6c45f54c733360c. Failed setup attempts remain retained; the earlier isolated default-CLI/login failure is not described as zero provider activity.

This proves host system bytes, launch policy, host resume selection/history and transport lifecycle with a synthetic peer. It does not prove Claude consumes that native history, full native built-in prompt stability, live provider cache reuse, actual reply delivery or subscription savings. Raw reuse-with-drift labels can remain despite stable rendered system bytes.

Local deployment

The exact older-version port is deployed after cooperative drain, fresh backups and independent final payload approval. Twelve existing runtime files plus one pure source-owned chunk changed. All 24,935 original events across569 history sessions, including13,162 main events, original session windows, main/native bindings, native transcript prefix, settings and schemas are preserved. All55 runtime/preservation fingerprints and609 dependency hashes match. Gateway health passed; WhatsApp is running/connected/healthy, with no plugin errors. Existing main-only compaction mode is unchanged. No live model or WhatsApp test message was generated for deployment. Rollback must retain the compatible raw-snapshot reader and must not restore old history.

Before merge

The PR remains a draft. The current review has no code findings, but requires:

  • Completed current-head native-boundary evidence and a shipped Gateway/native automatic-compaction trace showing fresh workspace context in its first continuation. Synthetic/local-port evidence does not replace those gaps.
  • Genuine settings/history upgrade, activation, restart and compaction continuity proof.
  • A maintainer decision on compaction-delayed freshness and the public callback. The reviewer recommends separating the automatic turn-fact repair from the snapshot feature; that decision remains open.

PER-564

Persist effective workspace snapshots through the existing session metadata owner.
Keep ordinary turns and restarts stable, refresh at new-session/compaction
boundaries, and isolate native history when workspace context scope changes.

Default to every-turn refresh and reject unsupported harnesses explicitly.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: anthropic size: L labels Oct 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR separates changing turn facts from reusable instructions and adds opt-in workspace snapshots that refresh at compaction.

Example: AGENTS.md changes from FIRST_WORKSPACE to EDITED_WORKSPACE during a session with workspaceContextRefresh="compaction".

  • Before: The next turn reloads the edited file into earlier instructions, potentially invalidating the cached prefix.
  • After: Ordinary turns retain FIRST_WORKSPACE; the first continuation after successful compaction receives EDITED_WORKSPACE.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Meaningful production-boundary coverage supports the design, but current behavior and upgrade evidence remain incomplete and the added product contract awaits an owner decision.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Ordinary workspace edits and changing host-generated delivery context can force expensive prompt-cache rebuilds.
Reason: The automatic projection has clear value, but the combined PR introduces a configurable freshness policy and public callback without a recorded owner decision.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this PR contains meaningful cache-efficiency work that current main does not supersede, with an unresolved freshness and plugin-contract decision.

Priority: P2
Reviewed head: 585915a9020e96a69e2110540f23977197db5111
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should OpenClaw expose compaction-delayed workspace freshness and the new public workspaceContext lifecycle callback?
  • Recommendation: Separate the automatic correction: Review turn-fact relocation independently and hold snapshot configuration and its public callback for a separate owner-approved change.
  • Why: Existing merged work intentionally preserves fresh instructions, while this PR offers delayed external-file visibility as a new operator choice; no owner approval of that setting or callback was found.

Before merge

  • Add real behavior proof - Supplied receipts exercise real preparation, SQLite metadata, and managed stdio transport against a synthetic native peer, including allowed delivery, profile reassignment, and revoked refresh; an older local port completed an ordinary turn. Current-head turn-fact separation lacks a completed native-boundary result, and no shipped Gateway/native trace demonstrates automatic compaction followed by fresh workspace context in its first continuation. Supply redacted terminal output or logs for those scenarios, excluding IPs, API keys, phone numbers, and non-public endpoints. The v2026.10.4 compatibility attempt completed isolated migration but timed out before feature-disabled reading, activation, restart, and compaction, leaving settings/history continuity unproven. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Missing a shipped Gateway/native run covering current turn facts and the first automatic-compaction continuation; the latest native initialization regression has no completed passing result.
Agent review details

How this fits together

Reply and command preparation assemble workspace instructions and current conversation facts; the agent runtime projects them into system instructions, private native context, and transcript-backed prompt state before model dispatch.

flowchart TD
  A[Incoming message or internal command] --> B[Conversation preparation]
  C[Workspace files] --> D[Transcript snapshot owner]
  B --> E[Agent prompt preparation]
  D --> E
  E --> F[Reusable system instructions]
  E --> G[Current private context]
  F --> H[Native or embedded runtime]
  G --> H
Loading

Technical review

Best possible solution:

Reuse the existing private-context and transcript prompt owners, with turn-fact relocation as an independent stage and snapshots governed by an approved freshness and callback contract.

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

Source shows refreshed workspace files and changing conversation guidance entering early Claude instructions; supplied traces support cache churn, but do not establish subscription savings or universal provider impact.

Is this the best way to solve the issue?

The turn-fact correction extends existing private-context ownership and preserves caller instructions; persisted snapshots are a separate freshness feature whose product contract should be decided independently.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 140dda0308c3.

Provenance checked

  • Workspace-file freshness changes intended behavior with a stated reason (015f7dc: The merged bootstrap refresh repair restored later-turn visibility of on-disk workspace changes; this PR documents why operators might intentionally defer those changes while retaining every-turn as default.)
  • Claude native prompt freshness keeps the original intent (810c56d: Native snapshots could retain stale appended instructions after resume; the host therefore disables native system-prompt snapshots.)
  • Private Claude Runtime facts keeps the original intent (31ec669: Unique Runtime facts belonged in private turn context while policy, caller overrides, and optional-context failure behavior remained intact.)
  • Embedded prompt-series updates keeps the original intent (a79e29e: Preserve the reusable system prefix and append refreshed instructions through the transcript-backed series owner rather than replace that owner.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 35feb4c adds src/agents/system-prompt-messaging.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 35feb4cb84bb; files: src/agents/system-prompt-messaging.ts)

PR surface

Source +1259, Tests +2535, Docs +57. Total +3851 across 75 files. Added test files: 6.

View PR surface stats
Area Files Added Removed Net
Source 50 1670 411 +1259
Tests 24 2586 51 +2535
Docs 1 57 0 +57
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 75 4313 462 +3851

Review metrics

Metric Value Why it matters
Workspace refresh configuration 1 setting, 2 values, default and per-agent scopes workspaceContextRefresh defaults to every-turn and adds opt-in compaction cadence.
Plugin contract expansion 1 optional callback with 3 lifecycle sources CliBackendExecuteContext.workspaceContext accepts startup, resume, or compact and returns awaited context.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: Avoidable prompt-cache invalidation has concrete efficiency impact, without evidence of a current core-runtime outage or data loss.
  • merge-risk: 🚨 compatibility: The PR expands a public plugin execution contract and introduces persisted snapshot behavior controlled by a new setting.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-16T13:34:45.609Z sha e0aaa32 :: needs real behavior proof before merge. :: [P1] Support native Claude login without requiring history-reseed authority | [P2] Apply current bootstrap limits when rendering a saved snapshot
  • reviewed 2026-10-16T17:31:49.546Z sha 1b20166 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-16T23:10:02.853Z sha 9ca4549 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-17T01:54:18.929Z sha 6312080 :: needs real behavior proof before merge. :: [P1] [P1] Preserve supported compaction and diagnostic loader callers | [P3] [P3] Use the plugin's public backend API in the core transport test
  • reviewed 2026-10-17T04:23:12.748Z sha d866927 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-17T05:51:59.430Z sha 2f0ff2b :: needs real behavior proof before merge. :: none

Reviewed October 17, 2026, 4:17 PM ET / 20:17 UTC (Revision 7).

@VishalJ99 VishalJ99 changed the title feat(agents): add opt-in workspace context refresh at compaction fix(claude): prevent large prompt-cache rebuilds after workspace edits (opt-in) Oct 16, 2026
@VishalJ99 VishalJ99 changed the title fix(claude): prevent large prompt-cache rebuilds after workspace edits (opt-in) fix(agents): prevent workspace edits from invalidating prompt caches (Claude opt-in) Oct 16, 2026
@VishalJ99 VishalJ99 changed the title fix(agents): prevent workspace edits from invalidating prompt caches (Claude opt-in) fix(agents): avoid repeated prompt-cache invalidation from workspace edits Oct 16, 2026
PER-564

Share durable raw workspace files across supported harnesses and refresh through the existing embedded prompt preparation owner. Preserve dynamic prompt guidance, native scope isolation and durable compaction recovery.
PER-564

Support native subscription login through the admitted transcript metadata owner while preserving unknown-history restrictions. Guard first-enable native continuity, reapply current file budgets, and prove profile isolation and revoked refresh at the managed transport. Refresh compaction diagnostics and prevent stale same-input replay.
@VishalJ99

Copy link
Copy Markdown
Contributor Author

Review repairs are in 1b201669fc538fb9d165df6065724fa3112de76f, following the embedded generalization in d3318eff0e9.

Reported defects

  • P1 — native subscription login: snapshots now use the existing admitted metadata fence independently of the credential-derived CLI history writer. Native login still requires no Anthropic API key. Account-bound history-reseed restrictions remain intact. First activation of an existing native binding is guarded and stamped before snapshot persistence; failed persistence retries without resetting the native conversation or inventing history provenance.
  • P2 — current limits: snapshots retain raw file input and rerender it with current budgets. The restart regression uses a retained 10,000-character AGENTS.md, a new 1,000-character per-file limit and a 1,200-character total limit. The subprocess receives the canonical bounded workspace block: 714 + 485 + 1 = 1,200 file characters. It does not receive the old rendered payload or the later disk edit.
  • Additional compaction defect: same-input hook reruns cannot reinsert a cached pre-compaction workspace block. Refreshed /context truncation metadata is also updated through the existing report helper.

Stronger behavior proof

The fixture composes actual OpenClaw CLI preparation, native-login policy, profile/file selection, SQLite metadata and managed subprocess transport. Its native peer is deterministic and synthetic; it is not the Claude provider. Assertions inspect the bytes received by the subprocess:

  • Initial workspace delivery and restart reuse of old-v1 raw snapshot content.
  • Current per-file and total budget enforcement at hook output.
  • Positive same-profile --resume/native ID, followed by profile reassignment that excludes the old resume ID and old private content.
  • Revocation while a refresh awaits: no private hook response receipt and no continuation.
  • Required persistence failure aborts workspace delivery; same-input compact/rerun uses fresh context.

Controlled replays of the old P1 writer requirement and old P2 saved-render behavior failed these regressions; repaired semantics pass. These are controlled old-semantics replays, not a claim that this new fixture ran unchanged on the pristine old revision.

The mocked profile-forwarding-only test was removed. Existing native subscription compaction behavior is retained. The opt-in mode requires a regular turn to establish its snapshot before a first native control operation; it does not claim first-ever /compact adoption.

Scope and remaining gates

The implementation supports managed local Claude and local embedded built-in compaction. Codex remains explicitly unsupported for this opt-in contract until first-post-compaction ordering is proven. Existing append-only prompt-series owners and current permissions, skills and job instructions are preserved.

Maintainer approval of the opt-in policy/public callback remains outstanding. These deterministic production-boundary tests do not establish a complete shipped Gateway/provider automatic-compaction run or a real upgrade from v2026.10.4. No provider quota was consumed, and no cache/allowance-saving percentage is claimed. The PR remains a draft with those proof boundaries stated.

Feedback repair proof

The regressions exercise real CLI preparation, admitted transcript metadata, retained raw file inputs, and the managed Claude transport talking to a synthetic Node subprocess. They make no provider calls.

  • Native subscription login: the imported native OAuth identity is cleared from forwarded credentials; workspace metadata uses the host fence without granting conversation-history reseed authority. Legacy unknown history stays unknown; first-enable native continuity is guarded and a failed snapshot write can retry without resetting history.
  • Current limits after restart: retain a 10,000-character AGENTS.md, then use per-file1000/total1200 limits. Actual subprocess hook bytes contain the exact current bounded renderer block; file bodies are714+485+1=1200 characters. Edited disk content and legacy unbounded rendered metadata are absent. Runtime/temporal guidance appended after workspace context is outside the file-content budget.
  • Reassignment: positive same-profile control actually receives --resume plus the prior native ID. Reassigned profile output excludes the old personal marker and old resume/native ID.
  • Revocation: close the admitted run while compact refresh awaits file loading; no private hook response or continuation reaches the subprocess after release. Initial native I/O occurred before the hook, so this does not claim zero native I/O overall.
  • Compact hook rerun: a same-input UserPromptSubmit after SessionStart(compact) cannot replay precompact files. Embedded refresh diagnostics also follow the new truncation state.

Controlled old-semantics replays failed: reintroducing the prior absent-history-writer check rejects native login; reintroducing saved rendered-context reuse delivers LEGACY_UNBOUNDED at the subprocess. These were targeted temporary source-condition replays restored byte-for-byte, not pristine baseline checkout runs.

Before the host reboot,90 distinct focused tests across8 files passed through scoped reruns; final affected suite was31/31, and maintained native declarations passed in116.3s. The14 approved source-file bytes were recovered unchanged (manifest40174180aa95c69d088f9cdff852fb67be6b2dd1901aa768e57a7cce2d758cdf). Temporary pre-reboot stdout logs were lost during reboot; this summary records reported results rather than claiming preserved terminal artifacts.

Post-reboot runtime build and lint are PENDING while the sole maintained builder reads a cold external APFS disk image. Draft publication does not imply those checks passed.

Limits: no real-provider/native automatic-compaction trace, shipped Gateway upgrade trace, or provider cache-savings measurement is claimed. Maintainer approval of the opt-in product policy remains an upstream decision.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@VishalJ99

Copy link
Copy Markdown
Contributor Author

Live deployment follow-up: snapshot mode in our exact older-version local port failed before the Claude call with Workspace snapshot requires the current host transcript writer fence. The installed generic-fence reader already includes the native-login history-writer decoupling; this is not evidence that the earlier P1 remains unfixed in this PR. Every-turn refresh is the current operational workaround.

Source tracing found an integration gap to verify: the real auto-reply CLI admission path does not establish the transcript-owner scope expected by the snapshot reader, while the existing synthetic preparation fixture explicitly supplies that scope. We are adding an actual entrypoint regression and preserving canonical writer/lifecycle admission, revocation and final-write checks. The pending generalization is not claimed to repair this outage yet.

Fresh post-reboot native preparation fixture execution also timed out at120seconds (no assertion result); it is not passing current-head execution evidence. Runtime build passed, but final scoped lint and corrected entrypoint proof remain pending. We will update with reviewed source and durable results before requesting another review. No provider-quota or subscription-savings claim is made.

@VishalJ99

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 585915a9020e96a69e2110540f23977197db5111 adds harness-enforced separation of producer-owned current routing, formatting and inbound metadata from reusable authoritative system instructions. It uses the existing eligible per-turn carrier, preserves current permissions/caller instructions and keeps legacy paths unchanged; workspace-file refresh cadence remains separate.

Please review provenance, end-to-end forwarding, policy parity and simplicity. The description records the executed passes, unresolved native timeout/cleanup failures, repaired but unrerun fixtures, and incomplete changed-test type check. Exact-version local runtime/payload validation is ongoing; this is not a fully-green or deployment claim. Earlier compaction/upgrade and maintainer-policy gates remain open.

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 17, 2026
@VishalJ99

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Added executed native-boundary and deployment evidence to the rewritten description. The exact older installed-version port passed official declarations/lint/runtime build, preservation/import audits, seven copied-installer cases and eleven actual host/native-transport behavior groups with a synthetic peer. Four ordinary/internal/completion/ordinary turns have identical host system bytes and actual native policy/settings argv except session selectors, with fresh private facts/account formats. Ownership/permission/compaction/cleanup controls pass.

After independent exact-payload approval, that port is deployed: all24,935 original events across569 history sessions, main/native bindings, native transcript prefix, settings and schemas are preserved; gateway/WhatsApp health passed. Final result SHA256 7fa6f83023807cfafa0be750607d736ae3751472e23d2c79848f5773aab2e74b.

This is explicitly older-port evidence, not a current-head upstream runtime-build/native-control pass or real Claude cache/allowance measurement. The upstream timeout/cleanup, upgrade continuity, shipped real-provider automatic-compaction and maintainer-contract gaps remain open. The description retains your recommendation to separate the automatic correction from the snapshot setting/public callback; no maintainer decision is claimed.

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 17, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

@openclaw-barnacle openclaw-barnacle Bot closed this Nov 9, 2026
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: anthropic merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant