Skip to content

fix: preserve requester-scoped memory in system-agent turns - #127775

Closed
shad0wca7 wants to merge 304 commits into
openclaw:mainfrom
shad0wca7:agent/fix-wiki-agent-context
Closed

shad0wca7 wants to merge 304 commits into
openclaw:mainfrom
shad0wca7:agent/fix-wiki-agent-context

Conversation

@shad0wca7

@shad0wca7 shad0wca7 commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #127774

What Problem This Solves

Fixes an issue where users asking the system agent about configured knowledge would lose the requesting agent’s scoped memory. The turn could continue with no wiki supplement after logging Unknown memory-wiki agentId: openclaw.

Why This Change Was Made

The host carries a separate memory owner through the existing embedded and native-harness prompt preparation paths. The verified requester owns memory; an undelegated turn uses its verified inference owner.

The real fallback proof also exposed a pre-existing generation handoff defect. Delegated turns now use the verified inference agent’s published generation, retaining its projected tool and parameter policy. Execution, transcript, conversation, authentication, and admission remain under their existing owners.

User Impact

The system agent receives the requester’s compiled knowledge even when another configured agent supplies inference. Invalidated knowledge is withheld on the next turn in the same conversation.

Evidence

Tested through ordinary Telegram Test Server DMs, the registered delegation tool, an isolated Gateway, a registered non-legacy inner context engine, real compiled SQLite publications, and a deterministic provider.

  • Pinned baseline: 227e7ae26af4e4f3f8a256c4fa808c7b046f4c88. Candidate: 9c94731939e.
  • Baseline: the real delegated turn logs the unknown synthetic memory owner, omits the requester supplement, and returns through Telegram.
  • Candidate: the actual inner provider instructions contain HQ_WIKI_127775, exclude the other configured owners’ claims, and return through the matching delegation result and Telegram.
  • Real inference fallback: requester verification fails, the alternate route verifies and runs, and the inner request still receives only requester memory. The baseline independently reproduces the generation rejection before this repair.
  • Real publication invalidation: both the original conversation and the retained fallback conversation withhold all scoped claims. Their session identities and prior conversation history remain intact. Republication restores requester memory.
  • Native-harness proof: actual launcher/native process identities, complete native protocol frames, final provider instructions, matching tool result, and final Telegram delivery are captured. The current candidate’s three physical connections decode without failures.
  • Preserved controls include non-owner denial and undelegated inference-owner memory.
  • Owner removal is a negative control: roster removal stops the original outer turn before delegation and produces a visible error. The deletion API reports a partial session purge; this is not a claim of an inner request with empty memory. The run’s aggregate exit 1 and incomplete deletion journal remain recorded. All test messages, credentials, processes, and owned scratch were subsequently cleaned up and verified.
  • Validation: 236 focused memory-handoff tests passed during the repair; 61 focused ownership and lifecycle tests passed after the generation correction. The original regression run had eight intended failures and four preservation passes. Native formatting, syntax checks, commit hooks, and the complete candidate build passed. Full type checks and suites run in GitHub CI.

The initial user stimulus was:

Ask the OpenClaw system expert to explain what configured knowledge is available for this conversation. Make no changes. Return its answer.

The matched inner response was SYS_TURN_127775; the selected test bot returned TELEGRAM_DONE_127775. Complete private observations were independently reviewed. Public evidence omits test-account identities, credentials, and infrastructure details.

Exact-head watcher evidence (76b51d1)

  • Completed memoryPromptAgentId propagation into Codex memory collaboration guidance while preserving execution/workspace identities.
  • Removed unused setup introduced by the test splits.
  • oxlint, check:line-cap-ratchet, and git diff --check pass.
  • Focused low-level rejection tests pass; Codex suites are blocked before collection by the checkout's existing fs-safe export mismatch.
  • Awaiting exact-head CI and ClawSweeper re-review.

Test-cost evidence (a8a627d)

Measured one-worker wall time on the validated candidate with node scripts/run-vitest.mjs <suite> --maxWorkers=1:

Suite Wall time
extensions/codex/src/app-server/attempt-context.test.ts 32.41s
extensions/codex/src/app-server/run-attempt.context-engine.anchors.test.ts 23.81s
extensions/codex/src/app-server/run-attempt.context-engine.test.ts 19.20s
src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-engine.test.ts 25.62s
src/agents/embedded-agent-runner/run/attempt.spawn-workspace.tool-result-guard.test.ts 10.65s
src/system-agent/agent-turn.low-level-rejection.test.ts 13.99s
src/system-agent/agent-turn.test.ts 10.49s
src/system-agent/chat-turn-router.approval.test.ts 18.58s

Available exact-head CI run 36081556192 completed successfully. Its run-level wall time was 2,924s (01:20:11Z–02:08:55Z); the changed Node shards ran from approximately 01:24:28Z to 01:38:46Z, with the longest changed shard taking 857s. The local one-worker focused suite measurements above total 154.75s.

@clawsweeper

ghost commented Aug 22, 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.

@shad0wca7
shad0wca7 marked this pull request as ready for review August 22, 2026 04:06
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Aug 22, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 22, 2026
@clawsweeper

ghost commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 11:57 PM ET / September 25, 2026, 03:57 UTC (Revision 23).

ClawSweeper review

What this changes

The branch carries a delegated requester’s memory identity through system-agent turns and embedded and Codex prompt preparation, while retaining separate inference and conversation identities.

Merge readiness

✅ Ready for maintainer review

Current main still prepares system-agent memory under the synthetic execution identity. This PR has a distinct fix for the linked report, and the updated discussion supplies real delegated-turn proof and the test-cost evidence requested in the prior review.

Priority: P2
Reviewed head: a8a627d1cc78eccb888bc34154985b1820b1b329

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused identity-boundary coverage and detailed real-flow evidence; its broad test reorganization keeps the implementation rating at the normal good tier.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body describes before-and-after delegated Telegram turns through the Gateway, registered tool, compiled SQLite memory, and final provider instructions: the candidate includes requester knowledge, excludes other owners’ claims, and returns a matched Telegram reply. The earlier Mantis Desktop run did not reach this path. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body describes before-and-after delegated Telegram turns through the Gateway, registered tool, compiled SQLite memory, and final provider instructions: the candidate includes requester knowledge, excludes other owners’ claims, and returns a matched Telegram reply. The earlier Mantis Desktop run did not reach this path. No stored-data contract changes.
Evidence reviewed 9 items PR introduction: The pinned merge-base-to-head diff adds a separate memory owner to the system-agent turn and its prompt preparation paths; base-only workflow changes are outside this PR.
Current-main need: Fetched main still supplies the synthetic session agent to embedded context-engine preparation; the PR changes that argument to prefer the explicit memory owner.
Gateway producer: The registered delegation tool supplies its session agent ID to the Gateway; the Gateway records that ID as the requester when creating the system-agent conversation.
Findings None None.
Security None None.

How this fits together

The Gateway receives a delegated system-agent request and selects a verified inference route. The embedded runner prepares agent-scoped memory for the provider prompt, then returns the system-agent reply to the requesting conversation.

flowchart LR
  A[Delegated request] --> B[Gateway identity and route]
  B --> C[System-agent turn]
  B --> D[Requester memory owner]
  C --> E[Embedded prompt preparation]
  D --> E
  E --> F[Provider prompt and reply]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +58, Tests +528. Total +586 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 8 111 53 +58
Tests 9 1207 679 +528
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 1318 732 +586

Review metrics

Metric Value Why it matters
Focused test cost 8 suites; 154.75s total one-worker wall time The PR body now measures the recurring test cost raised in the prior completed review.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #127774
Summary: The branch is the open candidate fix for the linked requester-scoped memory report; the separate Codex session-key report concerns conversation identity.

Members:

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

Technical review

Best possible solution:

Keep the requester memory owner explicit at prompt preparation, retain the verified inference route and synthetic execution policy, and land the linked fix through normal review gates.

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

Yes. The current-main preparation path still uses the synthetic session agent for this configuration; the PR documents a baseline delegated Telegram turn that omitted the requester supplement. This read-only review did not execute current main.

Is this the best way to solve the issue?

Yes. Passing a separate memory owner through the existing preparation paths repairs the reported behavior while preserving the established inference, session, and tool-policy identities.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 71cc18ae186d.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The fix addresses omitted scoped knowledge in a particular delegated system-agent setup, with limited demonstrated blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body describes before-and-after delegated Telegram turns through the Gateway, registered tool, compiled SQLite memory, and final provider instructions: the candidate includes requester knowledge, excludes other owners’ claims, and returns a matched Telegram reply. The earlier Mantis Desktop run did not reach this path. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body describes before-and-after delegated Telegram turns through the Gateway, registered tool, compiled SQLite memory, and final provider instructions: the candidate includes requester knowledge, excludes other owners’ claims, and returns a matched Telegram reply. The earlier Mantis Desktop run did not reach this path. No stored-data contract changes.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. A delegated Telegram request can now receive an answer informed by its requester-scoped memory, which is visible in the chat result.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: 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)

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 (22 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-18T19:32:49.565Z sha 9ce489c :: blocked before merge. :: [P2] Pass the explicit memory owner into Codex workspace guidance | [P2] Remove unused setup left by the test splits
  • reviewed 2026-09-18T19:49:48.555Z sha 76b51d1 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T20:19:45.504Z sha 608d424f9a6b3e9874106a8bfa4bf75453a949b0 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T20:41:08.852Z sha 589bd0e1336fef2ab591974466328011e62a8303 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T08:47:18.668Z sha 67876f951c068d91d1fc61184b52dc0a4886cb4a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-24T03:54:57.609Z sha 47f30aacc51020cdfdb4af34d6f43ddc37404dc0 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-25T00:36:48.658Z sha c513f498faceb2c2d5a071ec135675118331f3bf :: blocked before merge. :: none
  • reviewed 2026-09-25T01:28:28.580Z sha a8a627d :: blocked before merge. :: none

@obviyus

ghost commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

@openclaw-mantis Prove this PR's fix through the real Telegram flow. The claim: with a non-legacy context engine enabled and the memory-wiki plugin active, a system-agent turn previously lost agent-scoped wiki/memory context and the gateway logged context engine assemble failed, using pipeline messages: Error: Unknown memory-wiki agentId: openclaw.

Suggested proof shape:

  1. Configure the SUT gateway with the context engine enabled and the memory-wiki extension active for the default agent, seeding a small compiled wiki/memory entry with a distinctive marker string.
  2. Send a Telegram turn that causes a system-agent invocation (the system-agent tool path), scripting the mock provider so the turn completes deterministically.
  3. Candidate evidence: gateway log contains no Unknown memory-wiki agentId error and the recorded provider request for the system-agent turn includes the seeded memory/wiki supplement. Baseline evidence: the same scenario on the baseline ref reproduces the Unknown memory-wiki agentId: openclaw log line (the PR body's before-fix observation).
  4. Report the diff between candidate and baseline provider-request context plus the relevant log lines.

If the system-agent path cannot be reached through a Telegram turn with the mock provider, report exactly where it dead-ends instead of substituting a weaker probe.

@openclaw-mantis

ghost commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Mantis Telegram Desktop Proof

Summary: Mantis captured native Telegram Desktop evidence but blocked the PR comparison because native Telegram exposes /openclaw rescue, not the hosted openclaw.chat system-agent turn needed to compare memoryPromptAgentId behavior.

Main screenshot This PR screenshot
Baseline native Telegram Desktop screenshot Candidate native Telegram Desktop screenshot
Main This PR
Baseline native Telegram Desktop proof GIF Candidate native Telegram Desktop proof GIF

Motion-trimmed clips:

Raw QA files: https://artifacts.openclaw.ai/mantis/telegram-desktop/pr-127775/run-32570115916-1/index.json

@shad0wca7

ghost commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the deterministic CI assertion failure in b362406ee7c: the CLI-loop expectation now includes the propagated memoryPromptAgentId. node scripts/run-vitest.mjs src/system-agent/chat-turn-router.operations.test.ts passes 22/22. The changed-files gate reached the plugin-boundary ratchet and stopped on five pre-existing compatibility records, unrelated to this test-only correction. @clawsweeper re-review

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 5, 2026
@shad0wca7
shad0wca7 force-pushed the agent/fix-wiki-agent-context branch from b362406 to 04db87f Compare September 5, 2026 01:50
@shad0wca7

ghost commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Rebased and force-pushed 04db87f309d onto current main (e2b49d25399). The latest actionable review items are addressed:

  • Codex context-engine assembly and Codex memory-collaboration guidance now consume the same host-projected memoryPromptAgentId as the generic embedded path.
  • The shared lifecycle input is explicitly memory-only; it is not passed to contextEngine.assemble(), and the synthetic OpenClaw session/model/tool identities remain unchanged.
  • The Codex regression failed before the repair (hq/marketing-agent observed as openclaw) and passes after it. The final captured thread/start.developerInstructions contains the selected owner marker and excludes the decoy owner marker.
  • Final focused verification: 202 tests passed; core/extension production and extension-test typechecks passed; focused core/extension Oxlint and git diff --check passed.
  • Directly audited pinned Codex rust-v0.153.4 (3d2ee51ca2d5) at codex-rs/app-server-protocol/src/protocol/v2/thread.rs:62-159, turn.rs:156-263, thread_processor.rs:1120-1192, and turn_processor.rs:502-686.

The PR body now contains the red/green evidence, production/test LOC, exact protocol proof, and the local check:changed limitation. That aggregate reached and passed every typecheck lane, dead-export scan, and core lint, then its extension-lint preparation hit current upstream's macOS /Users → /users native-declaration inventory mismatch before Oxlint; direct focused extension Oxlint passed. Fresh Linux PR CI is pending.

Telegram proof remains structurally unavailable: native /openclaw is handled by the no-model rescue path, so both Mantis baseline and candidate produced zero provider requests. The existing Codex JSON-RPC harness gives the exact affected final pre-provider boundary without broadening channel behavior.

@clawsweeper re-review

@clawsweeper

ghost commented Sep 5, 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 removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 5, 2026
@shad0wca7
shad0wca7 force-pushed the agent/fix-wiki-agent-context branch from 6d5058a to 1541f8b Compare September 5, 2026 02:29
@shad0wca7

ghost commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Addressed both P1 findings in 1541f8ba800: delegated requester identity now remains the memory owner across inference fallback, while the fallback route still owns model/auth and the ring-zero tool; the exported assembleHarnessContextEngine({ agentId }) contract is restored. Added requester/fallback separation coverage and a real Memory Wiki compiled-digest invalidation check. Verification: 264 focused tests passed, core/extension production and test typechecks passed, and focused Oxlint/oxfmt plus git diff --check passed. Updated the PR body with exact evidence. @clawsweeper re-review

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 5, 2026
Peter Steinberger and others added 13 commits September 25, 2026 07:30
…8139)

* fix(models): preserve scoped provider discovery outcomes

* fix(models): preserve upstream catalog integration

Co-authored-by: Peter Steinberger <[email protected]>
… auth (openclaw#158020)

* refactor(agents): deslop subagents, sessions, worktrees, commands and auth

Reuse canonical normalization, result projection, and lifecycle owners.
Remove dead private paths while preserving public and persisted contracts.
Synchronize registry fixtures with runtime registration and publication.

* test(agents): await registered subagent completion
## What Problem This Solves

Fixes: signing in to a provider briefly empties an already-open model picker and replaces its choices with “Loading models…” or “Checking models...”.

## User Impact

Existing choices stay visible and usable in Control UI chat, New Session, and the terminal picker while provider discovery refreshes. Changes to model restrictions, operator roles, or catalog mode still retire the previous choices. This does not change how soon a newly connected provider's models are discovered.

## Why This Change Was Made

Every config commit previously retired model choices, including the auth/provider config written during sign-in. The Gateway now compares selection policies before sending the existing retirement signal. The web and terminal catalog caches treat ordinary config notifications as refreshes; explicit selection-policy changes still clear them.

The comparison reuses the model visibility and operator-policy preparation owners. No protocol, configuration, or persistence changes are required.

## Evidence

Built baseline and candidate Gateways used isolated state and a task-owned provider whose HTTP model listing was held for eight seconds. The sign-in action was Settings → Connect provider → API key → Save, with chat and New Session pickers already open.

- Baseline: the open chat picker lost its choices and displayed the blocking loading state; the captured transition began 309 ms after Save.
- Candidate: neither web picker displayed “Loading models…”. The terminal PTY capture contained no “Checking models...” frame while sign-in and discovery ran. Existing choices remained visible, and discovered models appeared after publication.
- The held-catalog web regression fails against the original invalidation behavior because its current model list becomes empty, and passes with the fix (four tests in that file; 3.52 s wall time).
- Scoped lifecycle, terminal, and web suites: 65 tests passed; 34.50 s wall time. Permission-retirement assertions remain covered, including a real allowlist change after an auth-only config commit.
- Review found older config-event expectations in chat, New Session, and command-palette tests. Those now expect retention; explicit policy-change and connection/identity retirement cases remain intact. All 110 tests in those three files passed (18.65 s wall time including the requested changed-lane dry run).
- The existing operator-model-policy reload regression passed unchanged. The first CI run caught the obsolete UI expectations (UI shard: 230.38 s); they were corrected rather than rerun unchanged.
- Catalog-mode coverage now verifies unrestricted merge-to-replace retirement while metadata is held. The added assertion failed before the comparison fix; all 65 lifecycle/web/terminal tests passed afterward (32.58 s). A built Gateway `config.patch` smoke observed `modelSelectionChanged: true` on that transition.
- No real provider inference or paid API calls were made. This PR addresses retention of existing choices, not immediate publication of new provider rows.

Before (blocking state; dark theme):

![Open picker replaced by Loading models during sign-in](https://github.com/user-attachments/assets/41fae691-3234-40f9-98fa-22c83ebf667e)

After (existing provider choices remain available; light theme):

![Open picker retains existing choices while discovery refreshes](https://github.com/user-attachments/assets/7f0000f6-6161-40f4-83fd-b7f148945da7)

Co-authored-by: Ayaan Zaidi <[email protected]>
…58157)

Preserve the catalog publication behavior deadline by preparing the lazy Gateway module in suite setup. Restore the focused fixture change from ec66ba9 after it was removed to keep the cron performance PR scoped.

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
* fix(test): prepare catalog fixture modules before startup

Preserve the catalog publication behavior deadline by preparing the lazy Gateway module in suite setup. Restore the focused fixture change from ec66ba9 after it was removed to keep the cron performance PR scoped.

Co-authored-by: vincentkoc <[email protected]>

* feat(desktop): isolate managed Linux application audio

Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
…nclaw#158050)

* refactor(gateway): split companion prompts and metadata fixtures

* refactor(gateway): preserve companion updates in helper extraction

* refactor(gateway): integrate upstream Doctor fixture repair

* refactor(gateway): integrate catalog lifecycle fixture fix

* test(gateway): retain metadata fixture extraction after upstream integration

Co-authored-by: Peter Steinberger <[email protected]>
…#157722)

* fix(test): prepare catalog fixture modules before startup

Preserve the catalog publication behavior deadline by preparing the lazy Gateway module in suite setup. Restore the focused fixture change from ec66ba9 after it was removed to keep the cron performance PR scoped.

Co-authored-by: vincentkoc <[email protected]>

* feat(desktop): isolate managed Linux application audio

Co-authored-by: vincentkoc <[email protected]>

* feat(desktop): bind audio streaming to screen authorization

Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
The retained-runtime entry loop already creates destination parents.
Portable copyIn repeated the guarded ancestor-creation walk for every
copied file, producing hundreds of thousands of handled existing-directory
errors when OverlayFS required byte copies.

Use the existing mkdir:false option after caller-owned parent preparation.
Keep source and destination checks, create-only publication, modes, and
file/directory syncs. Extend the OverlayFS regression with nested files
and a linear filesystem-work bound.

The measured dev copy reduced mkdir calls from 445338 to 39731 and
materialization from 83.2s to 45.9s. The historical CI timeout was not
reproduced; the redundant work itself is the verified defect.
@openclaw-barnacle

ghost commented Sep 26, 2026

Copy link
Copy Markdown

This assigned pull request has been automatically marked as stale after being open for 27 days.
Please add updates or it will be closed.

@clawsweeper

ghost commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix: preserve requester-scoped memory in system-agent turns This is item 1/1 in the current shard. Shard 0/1.

This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@openclaw-barnacle

ghost commented Sep 27, 2026

Copy link
Copy Markdown

This assigned pull request has been automatically marked as stale after being open for 27 days.
Please add updates or it will be closed.

@openclaw-barnacle

ghost commented Oct 4, 2026

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.

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

Labels

agents Agent runtime and tooling app: android App: android app: ios App: ios app: linux app: macos App: macos app: web-ui App: web-ui channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalouser Channel integration: zalouser cli CLI command changes commands Command implementations deploy: cloudflare Cloudflare deployment template and docs docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: acpx extensions: agentsapi extensions: amazon-bedrock extensions: anthropic-vertex extensions: browser extensions: canvas extensions: clickclack extensions: codex extensions: diffs extensions: firecrawl extensions: fish-audio Extension: fish-audio extensions: github GitHub plugin: link previews and reader extensions: google extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: oc-path extensions: ollama extensions: openai extensions: opencode extensions: openshell extensions: qa-lab extensions: tavily extensions: tts-local-cli extensions: xai fleet gateway Gateway runtime P2 Normal backlog priority with limited blast radius. plugin: azure-speech Azure Speech plugin plugin: cua-computer plugin: facetime FaceTime plugin plugin: file-transfer plugin: google-meet plugin: migrate-claude plugin: migrate-hermes plugin: mxc plugin: onnx plugin: team-reports plugin: teams-meetings Teams Meetings plugin plugin: typesafe plugin: visitor-access plugin: workboard plugin: zoom Zoom plugin proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security Security documentation size: XL stale Marked as stale due to inactivity 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.

System-agent turns lose agent-scoped wiki context