Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 27, 2026, 9:06 PM ET / August 28, 2026, 01:06 UTC. ClawSweeper reviewWhat this changesThe PR forwards configured agent thinking policy into ACP binding records, initializes or reconciles reused ACP sessions with it, and rejects unsupported live Codex Merge readiness⛔ Blocked until stronger real behavior proof is added - 4 items remain Keep open: the core repair is source-supported, but the final head’s Codex live- Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherConfigured channel bindings select an OpenClaw agent and materialize an ACP session record. The selected model and thinking policy then flow through the ACP manager to the external harness before the next agent turn. flowchart LR
A[Channel conversation] --> B[Configured ACP binding]
B --> C[Agent model and thinking policy]
C --> D[Binding session record]
D --> E[ACP session manager]
E --> F[ACP runtime adapter]
F --> G[External harness turn]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -8, Tests +378, Docs +18. Total +388 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after an exact-head real Codex ACP session demonstrates high-to- Do we have a high-confidence way to reproduce the issue? Yes, by source: current main materializes configured ACP bindings without a thinking value, while the PR’s producer and lifecycle path carry it through to session initialization. This review did not execute the external-harness reproduction. Is this the best way to solve the issue? Mostly yes: carrying policy at the configured-binding producer and applying accepted live controls through the manager is the narrow owner-boundary repair. Final confidence depends on proving the new Codex rejection behavior against its actual runtime contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f40f90727c8b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
|
Addressed both P1 findings:
Added regression coverage for both (fails without the fix): |
|
Confirmed the new P1 by reading the actual boundary: I'm not making a code change on this pass. This PR is already at +173 added lines against this task's 120-line size cap ( |
…ings Configured channel-to-ACP bindings only forwarded the owner agent's model into the ACP session's runtime options, so the agent's thinkingDefault (e.g. "off") never reached the ACP session. The underlying backend then applied its own default thinking level, which some models reject outright (e.g. ollama-cloud/glm-5.2:cloud rejects "adaptive"), breaking configured/swarm ACP runs with no workaround. Resolve the owner agent's effective thinking default (per-agent thinkingDefault, falling back to agents.defaults.thinkingDefault, per docs/tools/thinking.md) alongside its model, persist it on the binding spec/record, and forward it through session init and the existing live model-drift patch path.
Reuses the canonical resolveConfiguredThinkingDefaultCore helper so a configured ACP binding's thinking default respects agents.defaults.models[key].params.thinking ahead of the global default, matching normal reply resolution. Also reconciles the explicit-to-unset transition: removing an agent/global thinking default now clears a previously pinned value on a live session instead of leaving it stuck.
Consolidate configured model/thinking reconciliation without clearing backend state or replacing conversations. Honor target-agent thinking defaults during ACP spawn and document precedence and omission. Co-authored-by: chelsealong <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]>
55e8b81 to
ab915c0
Compare
|
@clawsweeper re-review The canonical repair at
Exact-head CI and the complete live Gateway/ACP/Ollama update-and-history comparison are still running; landing remains gated on those results. The PR body records the separate existing reset-options and explicit-auto-mode limitations rather than presenting either as fixed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Apply configured live controls through the existing checked manager path. Keep accepted settings and conversation state when a control is rejected, and distinguish Codex startup omission from unsupported live effort clearing. Co-authored-by: chelsealong <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]>
Keep the real manager/lifecycle regression in a focused test file and narrow the adapter case union explicitly. Runtime behavior is unchanged. Co-authored-by: chelsealong <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]>
|
@clawsweeper re-review The maintainer selected the recommended visible unsupported-live-clear error. Final head The PR body now includes paired real native Codex proof: four completed provider turns per phase, passive native effort receipts, stable session IDs, history recall, repeated configured rejection, and usable fresh |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The refreshed review at 2026-08-28 01:06 UTC has no actionable code findings. Its remaining proof/contract requests are now addressed in the updated PR body:
Both current rank-up moves are satisfied. The final Ollama trace also passed |
|
Merged via squash.
|
…#128169) * fix(acp): forward owner agent thinking default to configured ACP bindings Configured channel-to-ACP bindings only forwarded the owner agent's model into the ACP session's runtime options, so the agent's thinkingDefault (e.g. "off") never reached the ACP session. The underlying backend then applied its own default thinking level, which some models reject outright (e.g. ollama-cloud/glm-5.2:cloud rejects "adaptive"), breaking configured/swarm ACP runs with no workaround. Resolve the owner agent's effective thinking default (per-agent thinkingDefault, falling back to agents.defaults.thinkingDefault, per docs/tools/thinking.md) alongside its model, persist it on the binding spec/record, and forward it through session init and the existing live model-drift patch path. * fix(acp): honor per-model thinking policy and reconcile removed defaults Reuses the canonical resolveConfiguredThinkingDefaultCore helper so a configured ACP binding's thinking default respects agents.defaults.models[key].params.thinking ahead of the global default, matching normal reply resolution. Also reconciles the explicit-to-unset transition: removing an agent/global thinking default now clears a previously pinned value on a live session instead of leaving it stuck. * fix(acp): preserve configured thinking across session reuse Consolidate configured model/thinking reconciliation without clearing backend state or replacing conversations. Honor target-agent thinking defaults during ACP spawn and document precedence and omission. Co-authored-by: chelsealong <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]> * fix(acp): reject unsupported live effort before persisting Apply configured live controls through the existing checked manager path. Keep accepted settings and conversation state when a control is rejected, and distinguish Codex startup omission from unsupported live effort clearing. Co-authored-by: chelsealong <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]> * test(acp): isolate configured binding regression coverage Keep the real manager/lifecycle regression in a focused test file and narrow the adapter case union explicitly. Runtime behavior is unchanged. Co-authored-by: chelsealong <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: ayeshafayyaz-pixel <[email protected]>
… thinkingDefault over ACP - Add the OpenClaw-only `adaptive` thinking tier to Ollama's reasoning profile (maps to native `think: "high"` via normalizeOllamaThinkValue). - ACP session presentation now falls back to the configured `thinkingDefault` when no explicit `thinkingLevel` is set, instead of forcing "adaptive". - Add ACP presentation tests (honors thinkingDefault; explicit level wins) and an Ollama Cloud live proof (gpt-oss:20b accepts think:"high"). Scope narrowed from the previous revision: the earlier /acp spawn additions were incomplete (did not compile) and overlap the already-merged bridge thinkingDefault handling in openclaw#128169, so they are dropped here.
Summary
Configured live controls now apply before saving their accepted values. Codex ACP rejects unsupported live
offchanges explicitly, retaining the conversation and previous effort; fresh-sessionoffcontinues to omit the startup override. This behavior was explicitly approved by the maintainer and verified with paired real native Codex sessions. The final Ollama sibling trace, all 255 isolated ACPX tests, and exact-head CI also pass.Configured ACP agents now carry their thinking policy alongside their model, both when creating a bound session and when updating an existing conversation. ACP spawning also honors a configured target agent's
thinkingDefaultafter explicit/subagent overrides.Fixes #128145. Consolidates the configured-binding work in #129260 into this PR; thanks @chelsealong and @ayeshafayyaz-pixel.
What Problem This Solves
The configured-binding producer and record carried model, backend, and cwd but omitted thinking. The lifecycle consequently never applied a configured thinking value. ACP spawning had the adjacent mismatch: it inherited the configured agent's model but skipped that agent's thinking default.
The canonical flow now resolves configured thinking at the binding producer (agent, then per-model policy, then global), carries it through the binding record, and reuses one explicit model/thinking projection for initialization and in-place reconciliation. Unconfigured external-harness defaults remain external-harness owned. A redundant spec-copy helper and the custom model-ref parser are removed in favor of the typed materialization and existing parser/resolver.
Removing the last configured value preserves the current session selection in both metadata and the backend. This follows the existing configured-model contract from #120046; it does not introduce an unset operation or reset a conversation. If removing an agent default reveals a remaining per-model/global policy, that concrete replacement is applied normally.
Ready-session updates reuse the manager's existing checked config-option command instead of metadata-only updates. Each model/thinking value is persisted only after backend acceptance. Rejection returns a visible error without marking the session broken or triggering recreation on the next admission. Model is applied before thinking; these are independent operations, not an atomic batch.
Review findings and scope
thinking: undefinedupdate, not by discarding conversation history. ACPX 0.13.1 exposes string-valued config writes, not generic unset; ordinary close also preserves its desired settings.offfinding at the plugin-owned adapter boundary: unsupported clearing is an error, not an acknowledged no-op. The configured lifecycle now uses apply-before-persist semantics, while startup omission remains supported.9ead0ae9219e87ba2c223ada385f380fea9415cc; its code author was Peter Steinberger. These identify the incomplete owner boundary, not an assertion that this PR introduced the original defect.Evidence
ab915c0: all three live Codex effort aliases acknowledgeoffinstead of rejecting it, and the real lifecycle/manager boundary accepts a rejected configured value. After repair, 136 focused tests pass, including freshoff, acceptedhigh, repeated rejectedoff, omission, unchanged accepted metadata, and conversation reuse.ab915c0, including core/plugin type checks, tests type checks, lint, import cycles, dependency/boundary guards, and state guards. The final full changed-check run also passed, including the storage, sidecar, webhook, and pairing guards. Its initial file plan preceded the test-only move; the new focused file separately passed the ACP-owning test type shard and lint, and final exact-head CI covers the full resulting tree.20eb662338b51c1c40d2c530953b82e559e4e439. Final exact-head CI passed, including the required gate and build artifacts. The separate OpenGrep scan passed on retry: its first attempt failed to fetch the base commit before any scan ran; the second fetched it and completed the scan and SARIF upload successfully, with no source change.ab915c0e30dd02f9ef9bde426ac8f2425964306e, includingbuild-artifactsand requiredopenclaw/ci-gate. An earlier PR-context check rejected the heading names; the required problem/evidence headings are now present and the checks are green.d47e5cc0e2bbd35774dff15c83570519735d2ac4: sparse model/effort settings and queued-versus-applied settings. The automated review's missing sibling checkout is not a remaining inspection gap.Live configured-binding trace
Completed an isolated, authenticated real-provider comparison: managed Gateway with normal signed-device authentication and real
config.sethot reloads; actual configured-binding consumer → serialized record → lifecycle admission; publicchat.send→ real ACPX stdio → OpenClaw ACP bridge →ollama-cloud/glm-5.2:cloud. No manager/backend/provider mocks. This is owner-boundary integration, not Slack transport E2E or live model-switch proof.Both versions received the same three-step scenario: configure owner thinking
off, change it tohigh, then remove it entirely. Each step made a real provider turn. Later prompts asked for a randomized fictional sentence from the first turn without resending it. The final paired runs both exited 0; the baseline verdict deliberately asserts the known regression, while the candidate asserts the repair.{ "baseline": { "source": "801cbbd665ef73027f1fc0e7ac52be1dc8cfe280", "configuredThinking": ["off", "high", null], "bindingSpecThinking": [null, null, null], "innerSessionThinking": [null, null, null], "acpxCurrentThoughtLevel": ["adaptive", "adaptive", "adaptive"], "acpxDesiredThoughtLevel": [null, null, null], "completedProviderTurns": 3, "innerOuterAndBackendSessionIdsStable": true, "historyRecallPreserved": true, "expectedRegressionReproduced": true }, "candidate": { "source": "ab915c0e30dd02f9ef9bde426ac8f2425964306e", "configuredThinking": ["off", "high", null], "bindingSpecThinking": ["off", "high", null], "innerSessionThinking": ["off", "high", "high"], "acpxCurrentThoughtLevel": ["off", "high", "high"], "acpxDesiredThoughtLevel": ["off", "high", "high"], "completedProviderTurns": 3, "innerOuterAndBackendSessionIdsStable": true, "historyRecallPreserved": true, "repairVerified": true } }Provenance: all eight candidate source files matched their exact
ab915c0Git blobs after transport; patch SHA-2564ae7008ecb6e8f51595b41b746e33c65e5cd7c3ba75ac888b59776c366145bac. The live process source-loaded the changed owners with the unchanged trusted-baseline built plugin/child runtime; candidate build coverage comes separately from exact-head CI. The identical final proof script had SHA-25629ae1ca452ddc021a2ee9c44ee3f0ae26d28469b4bcb793c49ee0ffde0208146and was invoked withnode --import tsx gateway-proof.mjsin each isolated source copy.One earlier fixture attempt failed its expected-reply marker because the model mistook a UUID-shaped test phrase for a credential. Canonical transcript evidence showed a normal completed high-thinking reply in approximately ten seconds, not a provider timeout. Replaced only the synthetic recall content with an ordinary fictional sentence and made terminal marker failures immediate; reran both versions with unchanged settings/history assertions and unchanged deadlines.
This trace addresses the earlier ClawSweeper configured-binding next-turn/session-state proof request. The binding field is ordinary existing metadata, not vector/embedding storage or a schema migration. The final candidate additionally changes the checked live-control path; its Codex proof is recorded separately below.
Codex explicit-off repair
The final candidate additionally repeated the supported-control Ollama scenario with its fully rebuilt ACPX plugin and canonical active Gateway config. All three real provider turns passed: inner session thinking, current backend option, and desired option were each
off → high → high; outer, inner, and backend session IDs stayed stable, and later replies recalled the first turn's fictional sentence. Final script SHA-256948e0fe874242fcedc3165ab8e0cb72cc7a0e0a4820dabb4201d11c69ba1ed2c. The fixture uses the documented--token-filewith an isolated generated Gateway token; an earlier missing-token handshake failed before any provider turn and is not counted as proof. The inner model is explicitly configured as reasoning-capable; this does not verify or change published model-catalog reasoning metadata. Both Codex and Ollama final phases use candidate5c8f87f, whose production/docs are byte-identical to final test-only head20eb662.The subsequent ClawSweeper review correctly identified an uncovered Codex transition:
extensions/acpx/src/runtime.tsmappedoffto no effort and returned before delegate I/O, so an existinghighselection was not cleared. The Ollama trace above does not establish Codex live-clear behavior.Direct source inspection confirms the constraint: pinned
@agentclientprotocol/[email protected]accepts only advertised string-valued reasoning efforts, not null/default/off. Codexturn/startmaps its optional effort to a supplied update; null/omission preserves the current setting, despite an internal nullable update type. The adapter's legacy bare-model operation can select the model default, but that is neither the original startup policy nor a generic clear exposed through the current ACPX delegate. Nativenoneis valid only for models advertising it and is not equivalent to the shipped OpenClawoffcontract.Stable OpenClaw
v2026.7.1-2already omits the Codex startup override foroff. The approved repair preserves that startup contract and returnsACP_BACKEND_UNSUPPORTED_CONTROLfor live clearing. It does not mapoffto nativenone, reset the conversation, or claim metadata-only success. A separately defined upstream reset contract remains out of scope.Paired native Codex final-effect proof
Both phases completed successfully on isolated Linux: baseline
ab915c0and candidate5c8f87f(production/docs byte-identical to final head20eb662). Each source copy received a full build, including its actual ACPX plugin, and used realcodex-cli 0.149.1with@agentclientprotocol/[email protected], public modelopenai/gpt-5.6-sol, normal signed Gateway authentication, publicchat.send, actual configured-binding admission, and real config reloads. A passive allowlisted native-protocol tap recorded actualturn/startefforts and matching completed turns, not just OpenClaw metadata. Native startup default was deliberately set tomediumin the test harness; this is not a claim about the model's catalog default.highhighoffreplyoffACP_BACKEND_UNSUPPORTED_CONTROL; metadata remainshighhighdespite the acknowledgmenthigh, matching the retained accepted stateoff, including repeated admissionhighmediumafter actual config reloadhighoffsessionmediummediumThe baseline's warm explicit control is the reproduced no-op. Its later genuine config reload can resume the same thread with the controlled startup default, so the proof does not claim that every reinitialization retains
high. The candidate retains acceptedhighacross both rejected controls and reloads. Both phases used identical final harness SHA-256711f287ac04629464927c3196bb9b5b8f572e7ca28e11536d68a222198b15e45and passive tap SHA-2561a614ed7b8fb07319bab6f4b1590e98e8886c047250d1ea888cdb0839ab28226; candidate behavior patch SHA-25693fe08a70f87f31bfee103445e383122cccd85b586a7816764c89791453de054. The acting maintainer agent inspected the actual structured state, error replies, stable IDs, native requests/completions, and history replies.Earlier fixture failures were corrected, not counted as proof: cold source initialization preceded the client connection to avoid an idle client watchdog; the model was changed to an advertised public model with actual effort controls; and observation was made passive using the canonical active config object. Passing a separate raw config object to a status call had inadvertently reinitialized the runtime and changed what was being measured. Both baseline and candidate were rerun with the identical corrected harness; no production timeout, assertion, or reset workaround was added.
The latest ClawSweeper rank-up moves are addressed: the maintainer selected the visible-error contract, the real manager/lifecycle regression covers acceptance and rejection, and this trace establishes final effects on an existing Codex session. Direct acting-agent dependency inspection also includes pinned Codex
rust-v0.149.1(ff29a44391deccde0aba0f8390337d7f3c319ea4),codex-rs/app-server/src/request_processors/turn_processor.rs:535-549, plus the current sparse-setting boundary linked above. This remains owner-boundary/provider proof, not Slack transport E2E or cross-model normalization proof.Live cleanup was verified before the clean-machine test sweep: all seven task-owned state directories removed, no owned Gateway/ACP/Codex children remaining, all seven Gateway ports closed, and no provider credentials forwarded to tests. After the suite passed, the owned isolated lease was verified released and the task secret window removed. No operator state was touched.
Known separate follow-up
Named follow-up: Hidden native models lack ACP effort controls. Pinned Codex can run a configured public model omitted from its default
model/list, while the ACP adapter synthesizes a model choice without corresponding effort controls. The initialgpt-5.4fixture completed a real high-effort turn but exposed no effort option; pinned catalog visibility and adapter model-list handling explain the mismatch. This is a separate catalog/control-availability boundary. Final proof uses the advertised public model above and does not claim to fix hidden-model control discovery.Named follow-up: Model changes need pairwise model/effort acceptance ownership. Codex ACP can retain the old effort when supported by the new model or select the new model's default otherwise (
[email protected],applyModelChange). The existing generic model setter persists only the requested model and retains thinking metadata; automatic next-turn thinking rejection is optional. Thus an unchanged configured effort can disagree with the new model's effective effort. Merely rechecking thinking on the first model-change admission is insufficient: after that rejection, the accepted model is already stored, so a retry can skip both matching values. This also affects the existing manual model-control owner and needs a separately defined effective-settings/acceptance contract, not a metadata-only guard, a Codex-specificoffexception in core, or an assertion of atomic batch behavior. This PR's paired live proof keeps the model fixed and does not claim to repair cross-model effort normalization./acp reset-optionscurrently closes the runtime normally and deletes OpenClaw option metadata; ACPX ordinary close preserves its own desired settings. A generic non-destructive backend-default reset needs a separate explicit contract. This PR does not recommend that command as a proven backend reset and does not add destructive reset behavior.The report's explicit runtime mode
autois a separate control from configured thinking. The OpenClaw ACP bridge maps it to adaptive thinking, which can legitimately be rejected by an incompatible model; forwarding an owner default does not make unsupported explicit modes valid.The paired live runs separately exercised
/acp set-mode auto: both returned a visible unsupported-adaptive error. The candidate retained its acceptedhighsetting after that rejection. This is not claimed as repaired by configured-default forwarding.Named follow-up: ACP
chat.sendduplicates canonical transcript turns becausereply_dispatchdoes not communicate transcript ownership. Both baseline and candidate canonical transcripts showed two outer user/assistant copies but one inner copy for each of the three provider turns. Source inspection finds both producers already on the trusted baseline: ACP dispatch persists the pair, then Gateway's non-agent finalizer persists it again with different idempotency ownership. The correct follow-up is the dispatch/recorder ownership handoff, not text-based storage deduplication or pretending a native agent run started. This independent path is unchanged by this PR.