惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: show bootstrap context in prompt snapshots (#76302)...
pashpashpash · 2026-05-03 · via Recent Commits to openclaw:main

@@ -7,6 +7,7 @@

77

- Default happy path: OpenAI model through the Codex harness/runtime, Telegram direct conversation, and message-tool-only visible replies.

88

- A quiet turn is represented by not calling `message(action=send)`; the normal final assistant text is private to OpenClaw/Codex.

99

- This captures the OpenClaw-owned Codex app-server inputs and reconstructs the stable Codex model/permission layers from committed Codex prompt fixtures.

10+

- This also simulates workspace bootstrap files forwarded through Codex `config.instructions`: `SOUL.md`, `TOOLS.md`, and `HEARTBEAT.md`.

10111112

## Scenario Metadata

1213

@@ -19,6 +20,11 @@

1920

"model": "gpt-5.5",

2021

"modelProvider": "openai",

2122

"runtime": "codex_app_server",

23+

"simulatedWorkspaceBootstrapFiles": [

24+

"/tmp/openclaw-happy-path/workspace/SOUL.md",

25+

"/tmp/openclaw-happy-path/workspace/TOOLS.md",

26+

"/tmp/openclaw-happy-path/workspace/HEARTBEAT.md"

27+

],

2228

"sourceReplyDeliveryMode": "message_tool_only",

2329

"toolSnapshot": "codex-dynamic-tools.telegram-direct.json",

2430

"trigger": "user"

@@ -69,6 +75,9 @@

6975

{

7076

"approvalPolicy": "never",

7177

"approvalsReviewer": "user",

78+

"config": {

79+

"instructions": "OpenClaw loaded these user-editable workspace files. Treat them as project/user context. Codex loads AGENTS.md natively, so AGENTS.md is not repeated here.\n\n# Project Context\n\nThe following project context files have been loaded:\nIf SOUL.md is present, embody its persona and tone. Avoid stiff, generic replies; follow its guidance unless higher-priority instructions override it.\n\n## /tmp/openclaw-happy-path/workspace/SOUL.md\n\n<SOUL.md contents will be here>\n\n## /tmp/openclaw-happy-path/workspace/TOOLS.md\n\n<TOOLS.md contents will be here>\n\n## /tmp/openclaw-happy-path/workspace/HEARTBEAT.md\n\n<HEARTBEAT.md contents will be here>"

80+

},

7281

"cwd": "/tmp/openclaw-happy-path/workspace",

7382

"developerInstructions": "<see Reconstructed Model-Bound Prompt Layers>",

7483

"dynamicTools": [

@@ -103,6 +112,9 @@

103112

{

104113

"approvalPolicy": "never",

105114

"approvalsReviewer": "user",

115+

"config": {

116+

"instructions": "OpenClaw loaded these user-editable workspace files. Treat them as project/user context. Codex loads AGENTS.md natively, so AGENTS.md is not repeated here.\n\n# Project Context\n\nThe following project context files have been loaded:\nIf SOUL.md is present, embody its persona and tone. Avoid stiff, generic replies; follow its guidance unless higher-priority instructions override it.\n\n## /tmp/openclaw-happy-path/workspace/SOUL.md\n\n<SOUL.md contents will be here>\n\n## /tmp/openclaw-happy-path/workspace/TOOLS.md\n\n<TOOLS.md contents will be here>\n\n## /tmp/openclaw-happy-path/workspace/HEARTBEAT.md\n\n<HEARTBEAT.md contents will be here>"

117+

},

106118

"developerInstructions": "<see Reconstructed Model-Bound Prompt Layers>",

107119

"model": "gpt-5.5",

108120

"persistExtendedHistory": true,

@@ -136,7 +148,7 @@

136148137149

## Reconstructed Model-Bound Prompt Layers

138150139-

This is the deterministic model-bound layer stack OpenClaw can snapshot for the Codex happy path. It uses a pinned Codex `gpt-5.5` prompt fixture generated from Codex's model catalog/cache shape, then adds the Codex permission developer text, OpenClaw developer instructions, turn input, and the OpenClaw dynamic tool catalog. Codex can still add runtime-owned context such as workspace `AGENTS.md`, environment context, memories, app/plugin instructions, and future collaboration-mode instructions inside the Codex runtime.

151+

This is the deterministic model-bound layer stack OpenClaw can snapshot for the Codex happy path. It uses a pinned Codex `gpt-5.5` prompt fixture generated from Codex's model catalog/cache shape, then adds the Codex permission developer text, simulated OpenClaw workspace bootstrap config instructions, OpenClaw developer instructions, turn input, and the OpenClaw dynamic tool catalog. Codex can still add runtime-owned context such as native workspace `AGENTS.md`, environment context, memories, app/plugin instructions, and future collaboration-mode instructions inside the Codex runtime.

140152141153

### Layer Metadata

142154

@@ -161,9 +173,10 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

161173

},

162174

"limitations": [

163175

"This is a reconstructed prompt-layer snapshot, not a byte-for-byte raw OpenAI request captured from Codex core.",

164-

"Codex-owned workspace and app context is listed as a runtime-owned gap until Codex exposes a rendered-prompt inspection API."

176+

"Codex-owned workspace AGENTS.md, environment context, memories, app/plugin instructions, and provider tool serialization are still runtime-owned gaps until Codex exposes a rendered-prompt inspection API."

165177

],

166178

"openClawRuntime": {

179+

"configInstructionsFrom": "extensions/codex app-server thread/start config.instructions",

167180

"developerInstructionsFrom": "extensions/codex app-server thread/start developerInstructions",

168181

"dynamicToolsFrom": "codex-dynamic-tools.telegram-direct.json",

169182

"userInputFrom": "extensions/codex app-server turn/start input"

@@ -183,6 +196,10 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

183196

"chars": 307,

184197

"roughTokens": 77

185198

},

199+

"codexWorkspaceBootstrapConfigInstructions": {

200+

"chars": 632,

201+

"roughTokens": 158

202+

},

186203

"dynamicToolsJson": {

187204

"chars": 49749,

188205

"roughTokens": 12438

@@ -192,12 +209,12 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

192209

"roughTokens": 1934

193210

},

194211

"totalTextOnly": {

195-

"chars": 29751,

196-

"roughTokens": 7438

212+

"chars": 30385,

213+

"roughTokens": 7597

197214

},

198215

"totalWithDynamicToolsJson": {

199-

"chars": 79502,

200-

"roughTokens": 19876

216+

"chars": 80136,

217+

"roughTokens": 20034

201218

},

202219

"userInputText": {

203220

"chars": 370,

@@ -373,6 +390,29 @@ Filesystem sandboxing defines which files can be read or written. `sandbox_mode`

373390

Approval policy is currently never. Do not provide the `sandbox_permissions` for any reason, commands will be rejected.

374391

```

375392393+

### User: Codex Config Instructions (OpenClaw Workspace Bootstrap Context)

394+395+

```text

396+

OpenClaw loaded these user-editable workspace files. Treat them as project/user context. Codex loads AGENTS.md natively, so AGENTS.md is not repeated here.

397+398+

# Project Context

399+400+

The following project context files have been loaded:

401+

If SOUL.md is present, embody its persona and tone. Avoid stiff, generic replies; follow its guidance unless higher-priority instructions override it.

402+403+

## /tmp/openclaw-happy-path/workspace/SOUL.md

404+405+

<SOUL.md contents will be here>

406+407+

## /tmp/openclaw-happy-path/workspace/TOOLS.md

408+409+

<TOOLS.md contents will be here>

410+411+

## /tmp/openclaw-happy-path/workspace/HEARTBEAT.md

412+413+

<HEARTBEAT.md contents will be here>

414+

```

415+376416

### Developer: OpenClaw Runtime Instructions

377417378418

````text