Repository navigation
Conversation
Failure-Class: FC-split-mutation-authority
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 598de2f37a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| static func decide( | ||
| screenGroundingState: RealtimeScreenGroundingState, | ||
| hasCanonicalSpawnReceipt: Bool, | ||
| reducerOutputSuppressed: Bool | ||
| ) -> Disposition { |
There was a problem hiding this comment.
Restore the spawn-receipt presentation fence
For successful spawn_agent PTT turns, this policy no longer knows that acceptedSpawnJournalReceiptByContinuityKey exists, so hubDidReceiveAudio/hubDidEmitText present the provider's post-tool continuation and the turn keeps waiting for that continuation to finish. That breaks the locked product invariant in docs/product/invariants/agent-control-plane.md:84-90, which requires deterministic acknowledgement, provider-continuation suppression, and completion from the validated receipt; if the provider continues with a child-lifecycle claim or fails to continue, users get non-canonical output or a failed PTT turn after the agent was already accepted.
Useful? React with 👍 / 👎.
Failure-Class: FC-split-mutation-authority
The PR changes spawn receipts to persistence-only: the native provider's post-tool continuation is the sole audible response, replacing the previous deterministic local-TTS acknowledgement. The invariant doc at agent-control-plane.md:84-92 still required suppression of provider continuations, contradicting the deliberate behavior change and the updated tests. Align the doc with the new intended behavior.
Monitor run — invariant doc alignmentThread addressed: Codex P1 Analysis: The P1 correctly identified that Fix applied: Updated the invariant bullet at Verification:
|
kodjima33
left a comment
There was a problem hiding this comment.
Fix(desktop): stabilize PTT agent routing — spawn receipt no longer hijacks voice lane, strip model-claimed provider (owner-override)
Resolve merge conflicts after syncing latest main: - Keep split RealtimeHubController modules; reject monolithic re-inline. - Update product line-count baseline: sync.py at 1981, omit split transcribe.py and RealtimeHubController.swift entries. - Port PTT agent routing (#9859) into split modules: preserve native provider continuation on spawn receipts, drop spawn acknowledgement playback, and simplify output presentation policy calls. Co-authored-by: David Zhang <[email protected]>
The Desktop Swift CI workflow runs the check manifest scoped to macOS. backend-route-policy-baseline triggers on backend/**/*.py (no platform restriction) and requires uv via openapi_runner.sh. Without uv installed, the check fails immediately. Every other CI workflow that runs manifest checks already installs uv via astral-sh/setup-uv. Also corrects swift-format drift in PushToTalkStateMachineTests.swift after rebase onto upstream main (PR #9859 added new tests with 4-space indentation).
The Desktop Swift CI workflow runs the check manifest scoped to macOS. backend-route-policy-baseline triggers on backend/**/*.py (no platform restriction) and requires uv via openapi_runner.sh. Without uv installed, the check fails immediately. Every other CI workflow that runs manifest checks already installs uv via astral-sh/setup-uv. Also corrects swift-format drift in PushToTalkStateMachineTests.swift after rebase onto upstream main (PR #9859 added new tests with 4-space indentation).
The Desktop Swift CI workflow runs the check manifest scoped to macOS. backend-route-policy-baseline triggers on backend/**/*.py (no platform restriction) and requires uv via openapi_runner.sh. Without uv installed, the check fails immediately. Every other CI workflow that runs manifest checks already installs uv via astral-sh/setup-uv. Also corrects swift-format drift in PushToTalkStateMachineTests.swift after rebase onto upstream main (PR #9859 added new tests with 4-space indentation).
* fix(desktop): keep PTT on native voice after agent spawn Failure-Class: FC-split-mutation-authority * fix(desktop): default PTT agents to Omi Failure-Class: FC-split-mutation-authority * docs: align spawn-receipt invariant with native-voice-lane behavior The PR changes spawn receipts to persistence-only: the native provider's post-tool continuation is the sole audible response, replacing the previous deterministic local-TTS acknowledgement. The invariant doc at agent-control-plane.md:84-92 still required suppression of provider continuations, contradicting the deliberate behavior change and the updated tests. Align the doc with the new intended behavior. --------- Co-authored-by: David Zhang <[email protected]>
Resolve merge conflicts after syncing latest main: - Keep split RealtimeHubController modules; reject monolithic re-inline. - Update product line-count baseline: sync.py at 1981, omit split transcribe.py and RealtimeHubController.swift entries. - Port PTT agent routing (BasedHardware#9859) into split modules: preserve native provider continuation on spawn receipts, drop spawn acknowledgement playback, and simplify output presentation policy calls. Co-authored-by: David Zhang <[email protected]>
Summary
OpenCloudalias for OpenClaw.Root cause and durable guard
An accepted spawn receipt previously claimed a deterministic local-TTS lease, stopped the native realtime stream, and treated the provider continuation as suppressed. The receipt now remains persistence-only; the existing post-tool continuation fence keeps the native provider responsible for the audible reply.
Separately, the realtime schema exposes optional local providers and the model emitted
provider: "hermes"for a generic request ("Have an agent sleep for five seconds"). That enum was treated as a provider choice, which admitted a local Hermes runtime even though the user never selected it. The shared external-surface policy now owns that boundary before child-session admission: only a directed provider selection in the current user utterance may reach the control plane. Tests cover generic delegation, model/provider mismatch correction, explicit Hermes, and unavailable explicit OpenClaw.Invariants
Failure class
Failure-Class: FC-split-mutation-authority
Verification
cd desktop/macos/agent && npx vitest run tests/external-surface-authority.test.ts tests/omi-tool-manifest.test.ts— 32 passedcd desktop/macos && xcrun swift test --package-path Desktop --filter HubSystemInstructionTests— 17 passedcd desktop/macos && ./scripts/agent-logic-harness.sh --cross-surface-smoke— Swift 76, Node 247, Rust 13 passedOMI_PR_BODY_FILE=/tmp/omi-ptt-spawn-native-voice-pr.md make preflight— passed