Skip to content

fix(talk): preserve source outcomes when native tool presentation fails - #159693

Closed
roboclaw-bot wants to merge 5 commits into
mainfrom
openclaw/voice-execution-outcomes-pr1
Closed

roboclaw-bot wants to merge 5 commits into
mainfrom
openclaw/voice-execution-outcomes-pr1

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #153299

What Problem This Solves

Fixes successful voice-originated tool effects being reported as blocked or failed when native middleware changes the presented result after execution.

User Impact

Talk records the execution owner's actual outcome separately from presentation failures and optional diagnostics. This change does not grant execution permission or change ordinary approvals. Generic voice/text permission parity and optional Linux app launch do not depend on this reporter.

Open compatibility finding: released-host admission is not established for the reporter required by the updated Codex plugin. The previously inspected published 2026.9.6 host lacks it; the pinned main's newer plugin-API declaration is not evidence that this reporter shipped. A real coordinated rollout or host-first release/floor decision and published-driver acceptance proof remain necessary. Do not independently release the updated plugin against unsupported hosts. No release version or floor is invented here.

DRAFT — no merge-readiness, deployment, full-product-build or full-CI claim.

Why This Change Was Made

Execution owners record source facts. Native adapters use an action reporter bound to the admitted run, plugin and tool. Live authority is required to bind or start work; an already accepted handle may record one terminal settlement after cancellation without retaining permission to execute. Diagnostics and model-facing presentation cannot overwrite those facts.

The normal merge preserves main's native participant authority, consolidated timing, extracted failure buffer and asynchronous quarantine cleanup. The touched side-tool composition was moved unchanged to its own module to meet the existing line cap. No permission manager, public free emitter, diagnostic fallback, schema change or cap increase is added.

Source and dependency scope

  • Independent reporting draft targeting main; not a prerequisite for the parity or app drafts.
  • Head: 0f64900c67abb437cb088658eae49f6af9355f68.
  • Pinned main: f59e97921315d14e6316598d889009b97710e67b.
  • Normal merge parents are retained head 6ff285da40af30dad5135b0edc6928e5717a742c and that pin. Nine actual conflicts justified integration. History is preserved; no rebase or force push.

Evidence

  • 14/14 real-source composition scenarios passed on the exact final commit, 34.18 s. Real filesystem/core-exec effects cross the production wrapper, native request controller/bridge and SQLite voice-effect/transcript owners. Successful effects remain successful after blocked, failed or throwing presentation; genuine denial/failure, cancellation, timeout and the baseline's confirmation lifecycle remain covered.
  • 68/68 focused owner cases passed, 75.59 s, covering host reporting/lifetimes, quarantine and native failure projection.
  • Seven selected native cleanup cases passed, 54.21 s. Seven selected side-tool cases passed after extraction, 77.50 s; five overlap the earlier selection and are not additional unique cases.
  • Five selected type projects passed. Affected extension types, lint and side-tool cases were refreshed after extraction. Scoped formatting, lint, line/assertion ratchets and SDK registration sync passed.
  • Inherited SDK budget failure remains explicit: candidate and pinned-main source inputs both report 4,595 public exports against a 4,594 budget, and 2,699 callable exports against 2,698. SDK facades, inventories and caps are unchanged; this check is not claimed green.

Exact-commit composition command:

node --import ./scripts/tsx.mjs scripts/test-projects.mts test/client-voice-source-outcome.codex.integration.test.ts

Source composition · Host custody · Native reporting

One bounded merge/repair review invocation completed in 80.09 s, automatically partitioned into three chunks, with no new actionable P0–P2 findings in that scope. Unchanged-file and cross-chunk context was limited; this is not whole-product signoff and does not close the shipping-admission finding.

The exact Codex dependency was personally inspected: dynamic response ownership and app-server response routing. Its model-facing terminal is not authoritative evidence of the OpenClaw source effect.

Limits: controlled source composition, not microphone/ASR, live-provider inference, a product Codex binary, GUI or production-node proof. Published-driver installation/upgrade/rollback was not executed. Earlier-head CI and package inspection remain historical evidence, not current-head acceptance. No readiness change is implied by these retained results.

Against the pinned main: production +485/−335 (net +150); tests/fixtures +1,078/−109 (net +969); docs +37. Growth supplies bound reporting and distinct admission/settlement lifetimes; the side-tool extraction moves existing code rather than duplicating it.

Cross-PR proof boundary — 2026-10-02

Core parity #159697 now has independently verified integrated-package fresh/update evidence at 61ec99c. That package does not contain this reporter and is not reporter installation/upgrade proof. This reporter’s shipping-floor/host-first versus coordinated-rollout decision remains separate and does not block core parity.

Worked on by: @brokemac79.

roboclaw-bot and others added 3 commits September 25, 2026 22:44
Keep raw tool execution facts separate from middleware presentation and optional diagnostics. Retire voice bindings on definitive run lifecycle events.

Co-authored-by: brokemac79 <[email protected]>
Keep raw operational emission internal. Supply native adapters an action-bound
host reporter, fence new reporting work with admitted authority, and preserve
one terminal settlement for accepted work after cancellation or closure.
Carry the same reporter through native hook retention and side-run adapters.

Add source composition of persisted spoken yes/no with actual core exec,
request replay and consumed-grant controls, and enforced host security denial.
Document the additive optional host SDK contract without increasing export caps.

Co-authored-by: brokemac79 <[email protected]>
Declare the synthetic Codex inference environment and restore it through the
existing test lifecycle. Keep native HTTP relay fixtures on their owned
loopback endpoint, reject unexpected responses before policy entry, and share
the same scoped transport with byte-limit and token-binding coverage.

Preserve production proxy and CA behavior, cancellation and late-approval
assertions, and the existing test line caps.

Co-authored-by: brokemac79 <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 27, 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 agents Agent runtime and tooling extensions: codex plugin: file-transfer size: XL labels Sep 27, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 2, 2026, 4:58 PM ET / 20:58 UTC (Revision 5).

ClawSweeper review

What this changes

The branch separates actual tool execution outcomes from native result presentation so Talk retains successful effects when presentation fails, and ties voice-run cleanup to definitive lifecycle events.

Merge readiness

⛔ Blocked before merge - 4 items remain

This remains useful work absent from current main, but the prior released-host admission blocker is unresolved. The updated body correctly keeps the reporter’s rollout decision separate from voice-permission parity.

Likely related people: Peter Steinberger and Vincent Koc, as routing candidates from merged area history.

Priority: P2
Reviewed head: 0f64900c67abb437cb088658eae49f6af9355f68
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong bounded source-effect proof supports the repair, while the known released-host admission defect prevents merge readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Recorded exact-head composition exercises the production wrapper, native request controller/bridge, real filesystem/core-exec effects, and SQLite voice records, observing preserved success after presentation faults and rejection of retained source execution. This establishes the bounded reporting behavior, not native startup or released-host installation/update acceptance. The introduced delta changes no stored format or schema.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Recorded exact-head composition exercises the production wrapper, native request controller/bridge, real filesystem/core-exec effects, and SQLite voice records, observing preserved success after presentation faults and rejection of retained source execution. This establishes the bounded reporting behavior, not native startup or released-host installation/update acceptance. The introduced delta changes no stored format or schema.
Evidence reviewed 9 items Introduced unconditional host requirement: The pinned introduced delta adds an unconditional bindToolExecution guard before normal Codex attempt preparation; side questions add the same requirement. Original-head raw parents match the supplied identities.
Admission still permits the unsupported release: The plugin retains minHostVersion >=2026.5.1-beta.1 and pluginApi >=2026.9.7. The installation owner compares these ranges against the host compatibility version; released 2026.9.7 satisfies both.
Released host lacks the reporter: Direct GitHub inspection of v2026.9.7 shows no bindToolExecution in the capability contract; separate inspection of its host implementation also found no reporter. Local historical blob retrieval failed with HTTP 403, so these release facts were inspected through the read-only contents API.
Findings 1 actionable finding [P1] Require a shipping reporter host before admitting the updated plugin
Security None None.

How this fits together

Talk records tool effects from voice consultations for continuity and mutation summaries. Core tool wrappers and the Codex adapter supply execution facts, which feed voice-session records independently of model-facing results and optional diagnostics.

flowchart TD
  A[Voice consultation] --> B[Admitted agent run]
  B --> C[Core tools or native Codex tools]
  C --> D[Source execution facts]
  C --> E[Result presentation]
  D --> F[Voice effect records]
  B --> G[Definitive run completion]
  G --> F
Loading

Decision needed

Question Recommendation
Should the reporter ship host-first with admission tied to that verified release, or through a coordinated host/plugin rollout that prevents unsupported plugin updates? Ship the host first: Release the reporter host, then align plugin admission with that verified shipping contract and prove install/update compatibility.

Why: No shipping reporter version or approved coordination contract is established, so a reviewer cannot safely invent a version floor or publication guarantee.

Before merge

  • Require a shipping reporter host before admitting the updated plugin (P1) - This unconditional guard rejects every normal Codex attempt on released v2026.9.7, whose host contract and implementation lack bindToolExecution; side questions have the same guard. That release still satisfies the unchanged plugin ranges (minHostVersion >=2026.5.1-beta.1, pluginApi >=2026.9.7), so an independent plugin update is admitted and breaks existing sessions at runtime. This prior finding remains unresolved. Tie admission to a verified shipping reporter host, or establish an approved coordinated rollout that prevents unsupported installation.
  • Resolve merge risk (P1) - An independently updated Codex plugin remains admissible on released 2026.9.7 hosts, then rejects ordinary sessions because those hosts lack execution reporting; neither a shipping host floor nor a coordinated rollout preventing that installation is established.
  • Complete next step (P2) - Obtain the reporter rollout decision, align admission and provide fresh/install-update acceptance evidence; resolve the currently reported merge conflicts before landing.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Require a shipping reporter host before admitting the updated plugin — extensions/codex/src/app-server/run-attempt-connection.ts:82-84
Agent review details

Security

None.

PR surface

Source +153, Tests +966, Docs +37. Total +1156 across 51 files.

View PR surface stats
Area Files Added Removed Net
Source 26 488 335 +153
Tests 23 1075 109 +966
Docs 2 37 0 +37
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 51 1600 444 +1156

Review metrics

Metric Value Why it matters
Host capability dependency 1 additive optional host method becomes mandatory for Codex attempts Plugin admission must distinguish hosts that actually supply the method.
Production versus test growth production net +150 lines; tests/fixtures net +969 lines The body justifies production growth with bound reporting and separate admission/settlement lifetimes.

Merge-risk options

Maintainer options:

  1. Establish shipping admission (recommended)
    Choose the host-first or coordinated delivery contract, align admission to it, and prove incompatible rejection plus compatible fresh/install-update operation.
  2. Keep the reporter draft pending
    Defer landing until the dependent plugin can be delivered without breaking admitted released hosts.

Technical review

Best possible solution:

Keep source-owned reporting and ship the host capability before admitting dependent plugin updates, with verified incompatible-host rejection and compatible fresh-install and published-driver upgrade behavior.

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

Yes, source establishes both the presentation-before-source-reporting failure path on current main and the introduced missing-reporter rejection on released hosts; this read-only review did not execute either.

Is this the best way to solve the issue?

Yes for separating source facts from presentation, but the proposed delivery is incomplete until plugin admission matches a verified shipping host or approved coordinated rollout.

Full review comments:

  • [P1] Require a shipping reporter host before admitting the updated plugin — extensions/codex/src/app-server/run-attempt-connection.ts:82-84
    This unconditional guard rejects every normal Codex attempt on released v2026.9.7, whose host contract and implementation lack bindToolExecution; side questions have the same guard. That release still satisfies the unchanged plugin ranges (minHostVersion >=2026.5.1-beta.1, pluginApi >=2026.9.7), so an independent plugin update is admitted and breaks existing sessions at runtime. This prior finding remains unresolved. Tie admission to a verified shipping reporter host, or establish an approved coordinated rollout that prevents unsupported installation.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded Talk outcome-reporting repair whose rollout compatibility remains unresolved.
  • merge-risk: 🚨 compatibility: Existing admitted released hosts lack a capability that the updated plugin unconditionally requires.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): Recorded exact-head composition exercises the production wrapper, native request controller/bridge, real filesystem/core-exec effects, and SQLite voice records, observing preserved success after presentation faults and rejection of retained source execution. This establishes the bounded reporting behavior, not native startup or released-host installation/update acceptance. The introduced delta changes no stored format or schema.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded exact-head composition exercises the production wrapper, native request controller/bridge, real filesystem/core-exec effects, and SQLite voice records, observing preserved success after presentation faults and rejection of retained source execution. This establishes the bounded reporting behavior, not native startup or released-host installation/update acceptance. The introduced delta changes no stored format or schema.

Evidence

What I checked:

  • Introduced unconditional host requirement: The pinned introduced delta adds an unconditional bindToolExecution guard before normal Codex attempt preparation; side questions add the same requirement. Original-head raw parents match the supplied identities. (extensions/codex/src/app-server/run-attempt-connection.ts:82, 0f64900c67ab)
  • Admission still permits the unsupported release: The plugin retains minHostVersion >=2026.5.1-beta.1 and pluginApi >=2026.9.7. The installation owner compares these ranges against the host compatibility version; released 2026.9.7 satisfies both. (extensions/codex/package.json:30, 0f64900c67ab)
  • Released host lacks the reporter: Direct GitHub inspection of v2026.9.7 shows no bindToolExecution in the capability contract; separate inspection of its host implementation also found no reporter. Local historical blob retrieval failed with HTTP 403, so these release facts were inspected through the read-only contents API. (src/agents/harness/host-capability-types.ts:34, c074824a27c9)
  • Current main does not supersede the repair: Fetched main still emits the wrapper's terminal diagnostics after preparing presentation, and voice-run cleanup still consumes optional run.completed diagnostics. Its host capability contract also lacks bindToolExecution. No merged fixing PR is established by the related context. (src/agents/agent-tools.before-tool-call.wrapper.ts:526, cb450bced528)
  • Production-boundary proof and its limits: The captured body records 14/14 exact-head composition scenarios passing in 34.18 seconds. The inspected harness calls the real native request controller and dynamic bridge, uses real filesystem/core-exec effects and SQLite voice owners, and observes successful source effects despite blocked, failed, or throwing presentation. It also covers denial, consumed grants, cancellation, timeout, and retained-source rejection. Native startup and published-driver installation are explicitly outside this evidence; no persisted format or schema is changed by the introduced delta. (test/client-voice-source-outcome.codex.integration.test.ts:159, 0f64900c67ab)
  • Reporter custody and settlement: The reporter copies host-owned identity, requires current authority to bind or start, selects terminal fields instead of spreading caller input, and permits only one terminal settlement. Focused coverage exercises closure, abort, replacement, release, forged identity/private fields, and retained-owner release. Settlement itself supplies no execution operation. (src/agents/harness/host-tool-execution.ts:19, 0f64900c67ab)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Choose the shipping host or coordinated rollout contract, align plugin admission accordingly, and demonstrate unsupported-host rejection plus compatible fresh-install and published-driver update operation.

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 (4 earlier review cycles)
  • reviewed 2026-09-27T14:37:10.000Z sha 707bb6e :: blocked before merge. :: [P1] Raise the Codex host floor before requiring execution reporting
  • reviewed 2026-09-27T19:10:42.127Z sha 6ff285d :: blocked before merge. :: [P1] Raise the Codex host floor before requiring execution reporting
  • reviewed 2026-09-30T22:19:14.592Z sha 0f64900 :: blocked before merge. :: [P1] Require a host release that supplies execution reporting
  • reviewed 2026-10-02T16:49:49.602Z sha 0f64900 :: blocked before merge. :: [P1] Require a shipping reporter host before admitting the updated plugin

roboclaw-bot and others added 2 commits September 27, 2026 16:51
Merge main at 1fe2f50. Preserve the admitted execution reporter and carry upstream source-wrapper authority through its existing extracted owner.

Co-authored-by: brokemac79 <[email protected]>
Preserve source-owned execution facts through the native lifecycle and failure-buffer refactors. Keep participant authority and asynchronous quarantine settlement intact; extract the touched side-tool composition without changing its behavior. Shipping admission remains an independent release decision.

Co-authored-by: brokemac79 <[email protected]>
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 30, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P1 High-priority user-facing bug, regression, or broken workflow. labels Oct 2, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Closing at Martin’s request: this separate draft is no longer needed for the completed voice/text permission-parity goal. This closure does not claim that its distinct source-outcome reporting changes were merged or comprehensively tested. The branch and retained work, evidence, and accounting history are being preserved.

@RomneyDa
RomneyDa deleted the openclaw/voice-execution-outcomes-pr1 branch October 22, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: file-transfer proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant