Skip to content

fix(agentsapi): load OpenClaw persona and workspace context - #158328

Merged
sjf-oa merged 12 commits into
mainfrom
sjf/agentsapi-agent-instructions
Sep 26, 2026
Merged

sjf-oa merged 12 commits into
mainfrom
sjf/agentsapi-agent-instructions

Conversation

@sjf-oa

@sjf-oa sjf-oa commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Why This Change Was Made

An Agents API session should follow the configured OpenClaw agent's identity, personality, user preferences, and operating rules even though its commands run in a separate hosted workspace. Loading only root AGENTS.md omitted the personal context that the Codex harness already receives.

What Problem This Solves

New Agents API sessions omitted the OpenClaw agent's persona and user context because they received only the Gateway's root operating rules.

User Impact

New sessions receive the same eligible workspace files prepared for Codex, together with applicable shared prompt guidance. Existing sessions need /new or /reset to adopt this context or later file edits.

Changes

  • Use the full shared workspace preparation introduced by refactor(agents): share workspace context preparation #158389. New sessions receive bounded root AGENTS.md, SOUL.md, IDENTITY.md, shared USER.md, the session-selected personal USER overlay, and eligible supporting bootstrap files. The shared owner retains budgets, bootstrap hooks, missing-file handling, and session privacy rules.
  • Route root memory through enabled memory tools when they address the configured workspace, retaining the memory plugin's recall guidance. Otherwise include eligible memory through ordinary bounded preparation.
  • Reuse existing shared builders for applicable delegation, Skill Workshop, UI presentation, credential handling, Git coauthor, and extra system guidance. Each turn receives current temporal, active-computer, reply-delivery, permission-change, and watched-session context through the existing input carrier. Lightweight cron input stays unchanged.
  • Keep the remote session's initial instruction snapshot stable. Use /new or /reset for updated files or changed personal-user selection. Preparation failures remain retryable before remote creation/binding.

Codex source and shared preparation behavior are unchanged. Existing attachment upload and hosted output transfer are already implemented and preserved; this change does not copy Gateway bootstrap files into the hosted VM.

MVP gaps

  • Multi-user Gateways are not supported by the Agents API MVP.
  • The current client has no per-turn developer-message carrier or instruction-refresh operation. Initial workspace/persona context remains fixed until reset, unlike Codex's per-turn persona refresh. Current runtime facts travel as input context, not as a developer message.
  • Gateway skill-file access and skill catalog delivery remain unimplemented. Advertising Gateway-only skill paths would not make those files accessible in the hosted VM.
  • Plugin command prompt registration for the Agents API surface, before_prompt_build and context-engine prompt assembly, and native fork preparation remain unimplemented.
  • Native Codex project discovery, collaboration-mode/native-subagent guidance, deferred-tool search, and inference-egress context are transport-specific and are not copied into this harness.

Evidence

Workspace injection verified through a local native arm64 Docker Gateway, ordinary Slack turns, and SDK retrieval of the resulting Agents API instructions. Complete contents of the Gateway's AGENTS, SOUL, IDENTITY and USER files appear in the native instructions; responses use independent facts from those files. Continuation retains the initial snapshot, and reset adopts edited files. Per-turn runtime context and real memory-tool use also passed.

The 12-case instruction suite passes, including a regression shown to fail against the prior AGENTS-only implementation. A comprehensive local run passed 154 tests across 11 related files. Selected formatter, type, lint, SDK boundary and import checks passed. Instruction suite cost: 25.41 seconds wall, 22.43 seconds Vitest duration; per-file CI seconds are unavailable.

Tested runtime: b6a87ff583d021e9801120698ed84a1574db8ec2. The later f1858c4d52ed9087aaeb6882ab9a65ec5870436c adds only the package README limitation. The PR is now rebased onto public main at 4ed4df0e9b3f617c51a03c5e81d37534e0c32865, with head 40e5c6a07fee6f6f4b7ba84025d01f2f54286bc5. All 12 commit patches are identical after rebase, and the production Agents API and shared workspace preparation files are unchanged. The incorporated main-only change in this package improves an attachment-test byte assertion. Live proof is from the tested runtime above. Normal PR CI passed on the rebased head: 26 jobs passed, 23 skipped, no failures; both required merge-gate surfaces passed. Merged into public main as 099220cc937ad0b3ee24fee60cfd45e24e091e41.

Verified workspace-injection proof

CI recovery context

The first rebased run retained the obsolete stack merge base during GitHub retargeting and failed preflight on unrelated locale files. After the merge projection refreshed, an extra full-release dispatch surfaced one existing-main failure in test/scripts/lint-suppressions.test.ts: AssertionError: expected [ …(78) ] to deeply equal [ …(77) ], for the no-implicit-coercion suppression in src/gateway/server-chat-progress-snapshot.ts. Both files are byte-identical to the PR main base; this PR changes neither the suppression nor its allowlist. Original failed job. The extra full-release run was stopped, and normal PR CI was reattached after the base transition. This does not claim a fix or passing reproduction of that unrelated baseline failure.

@clawsweeper

clawsweeper Bot commented Sep 25, 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 extensions: agentsapi size: M labels Sep 25, 2026
@clawsweeper clawsweeper Bot added 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 1:22 AM ET / 05:22 UTC (Revision 9).

ClawSweeper review

What this changes

New Agents API sessions receive bounded OpenClaw workspace and persona instructions, while each turn receives current runtime context; the branch also documents and tests when those instructions refresh.

Merge readiness

✅ Ready for maintainer review

Keep this PR open. Current main still omits workspace persona from new Agents API sessions, and the branch uses the merged shared preparation owner to address that gap. The supplied live Slack and SDK evidence covers session creation, continuation, and reset.

Priority: P2
Reviewed head: 40e5c6a07fee6f6f4b7ba84025d01f2f54286bc5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong live boundary proof and a focused shared-owner implementation support a normal good PR rating.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed Agents API creation path sends shared Gateway persona files as hosted instructions. A native arm64 Docker Gateway, Slack turns, and SDK session retrieval showed complete file contents, stable continuation, and refreshed instructions after reset; both production blobs match the tested runtime. No stored-data format changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed Agents API creation path sends shared Gateway persona files as hosted instructions. A native arm64 Docker Gateway, Slack turns, and SDK session retrieval showed complete file contents, stable continuation, and refreshed instructions after reset; both production blobs match the tested runtime. No stored-data format changes.
Evidence reviewed 10 items Current main still lacks persona loading: The current-main session creation path sends fixed hosted-workspace guidance and extra system text, without preparing workspace persona files.
Introduced production path: The proposed creation path prepares instructions before hosted session creation and rechecks current run authority before the remote call.
Shared preparation owner: The existing shared owner resolves session-filtered bootstrap files, budgets them, and separates instruction, persona, supporting context, and memory references.
Findings None None.
Security None None.

How this fits together

The Agents API plugin connects Gateway agent runs to an OpenAI-hosted session. It prepares local workspace guidance and Gateway tools for that session, then returns the hosted response through the originating channel.

flowchart LR
  A[Gateway workspace files] --> B[Shared context preparation]
  B --> C[Agents API harness]
  D[Current turn facts] --> C
  C --> E[Hosted session]
  E --> F[Channel reply]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +146, Tests +470, Docs +32. Total +648 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 172 26 +146
Tests 1 470 0 +470
Docs 2 32 0 +32
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 674 26 +648

Review metrics

Metric Value Why it matters
Production and test growth production +146 lines, tests +470 lines The production growth composes hosted instructions around the existing shared preparation owner; the tests exercise the native request boundary.
Instruction suite cost 12 cases; 25.41 seconds wall The measured single-worker cost is below the repository's 30-second explanation threshold.

Technical review

Best possible solution:

Land the shared-owner integration through the normal exact-head gates, retain reset as the documented instruction-refresh operation, and design cross-user hosted-session rotation separately if multi-user support is added.

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

Yes. Current-main source shows the new-session request omits workspace persona; the submitted regression and live trace exercise that entry point, though this read-only review did not run current main.

Is this the best way to solve the issue?

Yes. The branch consumes the existing shared workspace preparation and keeps hosted instruction delivery in the Agents API plugin, avoiding a second bootstrap policy owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The missing persona affects users of the optional Agents API harness, with a focused repair and limited product blast radius.
  • merge-risk: 🚨 security-boundary: Eligible Gateway persona and USER text now enters a persistent hosted instruction snapshot, making file selection and session lifetime security-relevant.
  • 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 (terminal): The changed Agents API creation path sends shared Gateway persona files as hosted instructions. A native arm64 Docker Gateway, Slack turns, and SDK session retrieval showed complete file contents, stable continuation, and refreshed instructions after reset; both production blobs match the tested runtime. No stored-data format changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Agents API creation path sends shared Gateway persona files as hosted instructions. A native arm64 Docker Gateway, Slack turns, and SDK session retrieval showed complete file contents, stable continuation, and refreshed instructions after reset; both production blobs match the tested runtime. No stored-data format changes.

Evidence

What I checked:

Likely related people:

  • sjf-oa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Lehman: 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 (8 earlier review cycles)
  • reviewed 2026-09-25T21:20:06.926Z sha 957e28d8c2cb294fe1b640f6b66bb00adf2ca194 :: blocked before merge. :: [P1] Honor the configured bootstrap opt-out before creating a session
  • reviewed 2026-09-25T21:55:23.099Z sha db731f194d373dfb3a8b70e6dc9854af6b43bab7 :: blocked before merge. :: [P1] Honor the workspace injection opt-out before session creation
  • reviewed 2026-09-25T22:05:07.942Z sha db731f194d373dfb3a8b70e6dc9854af6b43bab7 :: needs real behavior proof before merge. :: [P1] Honor the workspace injection opt-out before creating a session
  • reviewed 2026-09-25T22:49:40.193Z sha a44490d :: needs real behavior proof before merge. :: [P1] Honor the workspace injection opt-out before hosted I/O
  • reviewed 2026-09-26T01:58:58.913Z sha 6088721e593522149ab40d207ea44b82766d086a :: needs real behavior proof before merge. :: [P1] Honor contextInjection before hosted I/O
  • reviewed 2026-09-26T02:22:16.875Z sha c9f813e4c799e967702ab6d8203b29189467a7f7 :: needs real behavior proof before merge. :: [P1] Honor workspace injection policy before hosted creation | [P1] Stop using a saved snapshot after policy revocation
  • reviewed 2026-09-26T02:53:01.063Z sha f1858c4 :: blocked before merge. :: none
  • reviewed 2026-09-26T03:36:09.566Z sha f1858c4 :: needs changes before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling extensions: codex scripts Repository scripts labels Sep 25, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@sjf-oa
sjf-oa force-pushed the sjf/agentsapi-agent-instructions branch from db731f1 to 169c053 Compare September 25, 2026 22:19
@sjf-oa
sjf-oa changed the base branch from main to sjf/shared-agent-workspace-context September 25, 2026 22:19
@openclaw-barnacle openclaw-barnacle Bot removed scripts Repository scripts agents Agent runtime and tooling extensions: codex labels Sep 25, 2026
@sjf-oa
sjf-oa force-pushed the sjf/agentsapi-agent-instructions branch 2 times, most recently from db970fb to a44490d Compare September 25, 2026 22:40
Base automatically changed from sjf/shared-agent-workspace-context to main September 26, 2026 01:44
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts agents Agent runtime and tooling extensions: codex and removed size: M labels Sep 26, 2026
@clawsweeper clawsweeper Bot removed the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Sep 26, 2026
@sjf-oa

sjf-oa commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

Workspace instruction injection: PASS

Verified the behavior changed by this PR through a local native arm64 Docker Gateway, ordinary Slack turns, and direct inspection of the resulting Agents API sessions using the official SDK.

Runtime source: b6a87ff583d021e9801120698ed84a1574db8ec2. Published head: f1858c4d52ed9087aaeb6882ab9a65ec5870436c. The difference is only the package README sentence documenting that multi-user Gateways are unsupported. The running image's compiled build-info matches the tested runtime source.

Files actually received by the Agents API

The complete text of each file below, ignoring surrounding whitespace, was found in the remote session's stored agent.instructions. These checks compare the real Gateway files with the SDK-retrieved session, rather than relying solely on the assistant's answer.

Gateway source file File bytes Complete text present
/home/node/.openclaw/workspace/AGENTS.md 10,482 PASS
/home/node/.openclaw/workspace/SOUL.md 1,631 PASS
/home/node/.openclaw/workspace/IDENTITY.md 1,358 PASS
/home/node/.openclaw/workspace/USER.md 617 PASS

Each file also contained an independently generated fact. The Slack request asked for those facts by label without supplying their values. The completed response returned all four correctly.

Lifecycle and prompt checks

Case Verified result
New session Prepared workspace/persona files are included in the native instruction snapshot and influence the completed response.
Continue after editing the files The same native session retains byte-identical instructions and returns the original facts. This is the intended MVP snapshot behavior.
Reset, then send another turn The supported reset replaces the native binding. The new session receives the updated file contents and returns all four updated facts.
Per-turn runtime context Captured turn inputs include temporal context, active-computer context, reply-delivery guidance and the current user request.
Memory guidance Instructions include the enabled memory tools' guidance. Real memory_search and memory_get calls retrieve an independent fixture fact and produce a correct cited reply.
Group-session memory preparation The root memory sentinel is omitted from the initial instruction snapshot. This is bootstrap omission, not a claim of memory-tool isolation.

Relevant automated verification

The instruction suite passes all 12 cases through the attempt entry point and official SDK request serialization. It covers full workspace preparation, stable continuation/reset behavior, selected-profile forwarding, memory routing, temporal/delivery/watched-session input, missing or blank instructions, bootstrap budgets, lightweight cron, and retryable preparation failures. The full-file regression was also verified to fail against the prior AGENTS-only implementation.

pnpm test extensions/agentsapi/agentsapi-attempt.instructions.test.ts --maxWorkers=1

Measured cost: 25.41 seconds wall, 22.43 seconds Vitest duration. Per-file CI seconds are not available. The later comprehensive local run passed 154 tests across 11 related files, including this suite and the shared workspace/bootstrap owners. Selected formatting, type, lint, SDK boundary and import checks also passed. Current head CI has no failed or pending checks; skipped checks are not counted as test passes.

Boundaries

  • Live complete-file proof covers the four files above. Eligible first-run /home/node/.openclaw/workspace/BOOTSTRAP.md, personal-profile forwarding, watched-session context and lightweight cron branches have unit coverage, not live claims here. Existing workspace setup removed BOOTSTRAP for the already configured test profile.
  • Multi-user Gateways and profile-owner rotation are unsupported by this MVP.
  • Initial workspace/persona instructions remain fixed until reset. Per-turn runtime facts use the existing input carrier; the client has no instruction-refresh or per-turn developer-message operation.
  • Gateway skill-file/catalog delivery, plugin command prompts, prompt hooks/context-engine assembly and native fork preparation remain documented gaps.
  • Gateway paths identify instruction sources. This PR injects their contents as instructions; it does not copy these files into the hosted VM.

Personal fixture text, session identifiers and private channel receipts are omitted from this public proof. Attachment-transfer and Docker diagnostic evidence are outside this PR's change and are not claimed here.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 26, 2026
@sjf-oa
sjf-oa force-pushed the sjf/agentsapi-agent-instructions branch from f1858c4 to 40e5c6a Compare September 26, 2026 05:12
@sjf-oa
sjf-oa changed the base branch from sjf/no-reply-explicit-silence to main September 26, 2026 05:12
@sjf-oa sjf-oa closed this Sep 26, 2026
@sjf-oa sjf-oa reopened this Sep 26, 2026
@sjf-oa
sjf-oa merged commit 099220c into main Sep 26, 2026
380 of 464 checks passed
@sjf-oa

sjf-oa commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@sjf-oa
sjf-oa deleted the sjf/agentsapi-agent-instructions branch September 26, 2026 05:39
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (#158689)
  fix(gateway): reset staged headers on authority errors (#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (#158612)
  fix(ui): keep automation starter prompts out of startup (#158482)
  fix(cli): distinguish configuration read failures from invalid input (#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (#158662)
  fix(daemon): keep native service checks within their timeout (#154565)
  fix(test): restore gateway steering fixture contracts (#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633)
  perf(gateway): release event payloads from live text guards (#158643)
  perf(sessions): reduce stalls when saving large chat messages (#158402)
  fix(qa): reject history-bearing utility requests without session affinity (#158496)
  test: allow intentional progress snapshot coercion
  ...
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* fix(test): verify followup completion ordering

Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults.

* fix(test): verify followup completion ordering

* chore: retain followup test branch ancestry

The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update.

* commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8':
  fix(test): verify followup completion ordering

* test(auto-reply): signal queued presentation entry

* chore: refresh followup test on boundary fix

* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (#158689)
  fix(gateway): reset staged headers on authority errors (#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (#158612)
  fix(ui): keep automation starter prompts out of startup (#158482)
  fix(cli): distinguish configuration read failures from invalid input (#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (#158662)
  fix(daemon): keep native service checks within their timeout (#154565)
  fix(test): restore gateway steering fixture contracts (#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633)
  perf(gateway): release event payloads from live text guards (#158643)
  perf(sessions): reduce stalls when saving large chat messages (#158402)
  fix(qa): reject history-bearing utility requests without session affinity (#158496)
  test: allow intentional progress snapshot coercion
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…#158328)

* test(agentsapi): cover Gateway instruction snapshots

* fix(agentsapi): load Gateway agent instructions for new sessions

* style(agentsapi): format instruction snapshot regression

* fix(agentsapi): declare the canonical attempt result

* test(agentsapi): use canonical fixture cloning

* refactor(agentsapi): use shared workspace preparation

* style(agentsapi): format shared preparation fixture

* docs(agentsapi): state the unimplemented context carrier gap

* style(agentsapi): format rebased instruction fixture

* fix(agentsapi): include OpenClaw persona and prompt context

* fix(agentsapi): preserve admitted tools in workspace context

* docs(agentsapi): document single-user MVP scope

---------

Co-authored-by: Sarah Fortune <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* fix(test): verify followup completion ordering

Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults.

* fix(test): verify followup completion ordering

* chore: retain followup test branch ancestry

The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update.

* commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8':
  fix(test): verify followup completion ordering

* test(auto-reply): signal queued presentation entry

* chore: refresh followup test on boundary fix

* commit '622be54be3ffe0fce27d6a4b147c76d4b19c528c': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (openclaw#158689)
  fix(gateway): reset staged headers on authority errors (openclaw#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (openclaw#158612)
  fix(ui): keep automation starter prompts out of startup (openclaw#158482)
  fix(cli): distinguish configuration read failures from invalid input (openclaw#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (openclaw#158662)
  fix(daemon): keep native service checks within their timeout (openclaw#154565)
  fix(test): restore gateway steering fixture contracts (openclaw#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (openclaw#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (openclaw#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (openclaw#158633)
  perf(gateway): release event payloads from live text guards (openclaw#158643)
  perf(sessions): reduce stalls when saving large chat messages (openclaw#158402)
  fix(qa): reject history-bearing utility requests without session affinity (openclaw#158496)
  test: allow intentional progress snapshot coercion
  ...

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

Labels

docs Improvements or additions to documentation extensions: agentsapi merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

2 participants