Add Codex happy path prompt snapshots#75807
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: not applicable. for the requested feature; the snapshot drift behavior is covered by Next step before merge Security Review detailsBest possible solution: Keep this PR on the normal maintainer review path and land it only after exact-head CI completes and a maintainer accepts the broader adjunct fixes. Do we have a high-confidence way to reproduce the issue? Not applicable for the requested feature; the snapshot drift behavior is covered by Is this the best way to solve the issue? Yes. Generator-backed snapshots using the Codex app-server composition helpers are the narrow maintainable direction, and the latest stale-file cleanup makes the documented regeneration command repair check drift. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 3f2c3a69d76d. |
|
Addressed the ClawSweeper finding in d4f912b859cbbd5a563524819ad37d15bb9dad95. The Discord snapshot now builds its dynamic tool catalog from the Discord group context instead of reusing Telegram-derived tools, and the full dynamic tool JSON is split per scenario: Telegram direct, Discord group, and heartbeat. I also fixed the CI failure from the built-artifact shard by resolving the repo-local Checked locally with |
d4f912b to
4787266
Compare
|
Addressed the follow-up ClawSweeper P3 in d4d153c.
Checked locally with |
d4d153c to
9bffe0e
Compare
|
Pushed 9bffe0ed12f45340b49fb41b76c79b0dada6cd03 to handle the latest exact-head build failure. The failed GitHub build path was not in the prompt snapshot code. I reproduced the build path in Testbox. The first ad hoc Testbox shell exposed runner setup issues ( |
9bffe0e to
f806ab0
Compare
|
Pushed f806ab0a633b659d55ab0efd6c87d6b2465bdb0d for the next exact-head CI failure.
Checked with |
9642285 to
95a9b7f
Compare
|
Pushed 95a9b7f after rebasing onto current main. The latest exact-head failure was checks-fast-protocol. It reproduced locally with pnpm protocol:check after the rebase: the JSON schema was current, but the two generated Swift protocol model files were stale for the current base. The branch now includes only the generated Swift updates for WizardStep.format and ChannelsStopParams. Checked locally with pnpm protocol:check, pnpm prompt:snapshots:check, pnpm test test/scripts/prompt-snapshots.test.ts src/agents/tools/tts-tool.test.ts, and git diff --check origin/main...HEAD. New exact-head CI is running now. |
|
The red check state was from a duplicate cancelled Current evidence: head |
95a9b7f to
b3d4b17
Compare
384bdf8 to
b4f4d28
Compare
22aa02b to
899cecb
Compare
2c4c591 to
2ef6d46
Compare
2ef6d46 to
2febdff
Compare
2febdff to
151670d
Compare
|
Addressed the latest ClawSweeper P3 in 641f2de.
Checked locally with |
|
The current red CI state on head
I reran the failed jobs for CI run |
|
The rerun cleared the current red CI state. CI run |
* Add Codex prompt snapshots * Fix prompt snapshot scenario catalogs * Harden prompt snapshot drift check * Fix CLI compat build export * fix: keep codex snapshots out of core plugin surface * fix: harden prompt snapshot ci checks * fix: accept readonly web search onboarding scopes * fix: repair plugin sdk package boundary types * fix: clear prompt snapshot ci regressions * fix: clear latest main ci checks * fix: resolve latest main discord helper overlap * fix: refresh codex dynamic tool snapshots * fix: align prompt snapshot branch with latest ci * fix: isolate plugin auto enable tests * test: refresh prompt dynamic tool snapshots * fix: stabilize bundled channel auto enable * fix: clean stale prompt snapshots
* Add Codex prompt snapshots * Fix prompt snapshot scenario catalogs * Harden prompt snapshot drift check * Fix CLI compat build export * fix: keep codex snapshots out of core plugin surface * fix: harden prompt snapshot ci checks * fix: accept readonly web search onboarding scopes * fix: repair plugin sdk package boundary types * fix: clear prompt snapshot ci regressions * fix: clear latest main ci checks * fix: resolve latest main discord helper overlap * fix: refresh codex dynamic tool snapshots * fix: align prompt snapshot branch with latest ci * fix: isolate plugin auto enable tests * test: refresh prompt dynamic tool snapshots * fix: stabilize bundled channel auto enable * fix: clean stale prompt snapshots
After the message-tool and heartbeat changes, the default Codex path is important enough that we should be able to inspect it without reconstructing a live run by hand. This adds committed prompt snapshots for that happy path: an OpenAI model running through the Codex harness/runtime, message-tool-only visible replies, Telegram direct chat, Discord group chat, and a heartbeat turn with the structured heartbeat tool available.
The snapshots are generated from the same OpenClaw prompt composition pieces the Codex app-server path uses. They include the OpenClaw-owned developer instructions, selected thread start/resume params, turn input, and dynamic tool specs. They intentionally do not try to render Codex's hidden base prompt or turn-scoped collaboration-mode instructions, since those belong to the Codex runtime rather than OpenClaw.
This also adds
pnpm prompt:snapshots:genandpnpm prompt:snapshots:check, plus a test that keeps the committed artifacts current. While generating the snapshots, one remaining hardcodedNO_REPLYinstruction surfaced in the TTS tool description; that is removed here so message-tool mode keeps a single silence convention: do not call the visible message tool when no visible reply is needed.