Skip to content

fix(voice-call): make verified callback replay and durability lifecycle-safe - #118754

Merged
steipete merged 1 commit into
mainfrom
codex/qa0803-voice-webhook-replay-lifecycle
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa0803-voice-webhook-replay-lifecycle

Conversation

@steipete

@steipete steipete commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • process verified provider callbacks only after durable voice-call state exists; generation-safe replay ownership preserves legitimate carrier retries while rejecting duplicates and stale call generations
  • close the carrier token/replay boundary for Twilio and sibling providers, including concurrent callbacks and late call registration
  • preserve answered-call timeout behavior; the independent structured reviewer raised one concern about restore-time maximum-duration timers, but direct source inspection disproves it because extensions/voice-call/src/manager/timers.ts returns immediately once answeredAt exists and manager.ts restores through that same owner

Verification

  • 199 focused signed-webhook, provider, manager lifecycle and SQLite-backed tests passed without external network access
  • production delta +72 lines across the approved owner boundary; sibling callback and carrier replay regressions covered
  • one independent formal autoreview completed; its sole proposed timer finding was explicitly rejected based on direct architectural-owner source proof

Actual signed carrier webhook and durable SQLite replay proof

At exact published head ded0cb5, executed the production Twilio HMAC-SHA1 and Telnyx Ed25519 verifiers, actual ephemeral localhost HTTP webhook server, actual call-event lifecycle owner, and a real isolated SQLite state database with an injected real SQLite open failure. Credentials were synthetic/generated, all non-localhost network was forbidden, and temporary state was removed.

{"provider":"twilio","signature":"real HMAC-SHA1","invalidSignature":401,"firstDurable":{"status":200,"commits":1},"duplicate":{"status":200,"commits":1,"sideEffectsSkipped":true,"tokenFreeXml":true},"persistenceFailure":{"status":500,"statePublished":false},"identicalRetry":{"status":200,"committed":true,"laterDuplicateSuppressed":true},"lateGeneration":{"unknownConsumed":false,"registeredRetry":200,"duplicateSuppressed":true}}
{"provider":"telnyx","signature":"real Ed25519","invalidSignature":401,"firstDurable":{"status":200,"commits":1},"duplicate":{"status":200,"commits":1,"sideEffectsSkipped":true},"persistenceFailure":{"status":500,"statePublished":false},"identicalRetry":{"status":200,"committed":true,"laterDuplicateSuppressed":true},"lateGeneration":{"unknownConsumed":false,"registeredRetry":200,"duplicateSuppressed":true}}
{"provider":"twilio","concurrentOwner":200,"concurrentDuplicate":200,"duplicateWaitedForOwner":true,"oneTimePayloadIssued":1,"ownerReceivedToken":true,"duplicateLeakedToken":false,"subsequentReplayLeakedToken":false,"handlerInvocations":1}

These are actual cryptographic signatures, production HTTP handling, real durable SQLite failures/commits, exact signed-byte redelivery and concurrent one-time token ownership; no carrier API, real credential, outbound call or external network was used.

@openclaw-barnacle openclaw-barnacle Bot added channel: voice-call Channel integration: voice-call size: L maintainer Maintainer-authored PR labels Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 1:25 PM ET / 17:25 UTC.

ClawSweeper review

What this changes

The branch makes signed voice-call webhook replay handling retryable after failed durable processing while suppressing duplicate and stale carrier callbacks across Twilio, Telnyx, Plivo, and the mock provider.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for normal protected-label maintainer review and merge. The patch closes the verified-webhook replay reservation only after the voice-call lifecycle owner has persisted durable state, and the updated body supplies sufficient after-fix HTTP, cryptographic-verification, concurrency, and SQLite-failure proof; no actionable patch defect was found.

Priority: P1
Reviewed head: ded0cb5d5fb4948fe1ca7bffdfafd469af452f14

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong real behavior evidence, focused lifecycle regressions, and a coherent owner-boundary repair support an above-average merge-readiness rating.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The updated PR body provides inspectable after-fix live output for production signature verification, localhost HTTP handling, SQLite commit/open-failure behavior, retry, and concurrent one-time-response handling at the exact head.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The updated PR body provides inspectable after-fix live output for production signature verification, localhost HTTP handling, SQLite commit/open-failure behavior, retry, and concurrent one-time-response handling at the exact head.
Evidence reviewed 7 items Current-main defect boundary: Current main processes parsed events after a verified replay reservation but has no way to release that reservation when durable event processing fails, so a later identical carrier delivery can be treated as a replay before the state owner committed it.
Canonical reservation repair: The PR introduces a generation-safe release closure that deletes only the reservation it created, preventing an older failed delivery from clearing a newer same-key reservation.
Durability-before-publication owner boundary: The PR persists newly created and rejected inbound call records before publishing active-call, provider-ID, rejection, or replay state; ordinary event mutations are also persisted before dedupe keys, timers, and waiter effects are published.
Findings None None.
Security None None.

How this fits together

Voice-call providers deliver signed carrier callbacks to the bundled voice-call plugin. The plugin verifies the callback, controls replay ownership, updates durable call state through the call manager, and returns provider-specific webhook responses without repeating side effects.

flowchart LR
  Carrier[Signed carrier callback] --> Verify[Provider signature verification]
  Verify --> Reserve[Replay reservation]
  Reserve --> Webhook[Voice webhook response owner]
  Webhook --> Manager[Call lifecycle manager]
  Manager --> SQLite[Durable SQLite call state]
  Manager --> Effects[Timers and provider side effects]
  Webhook --> Reply[Provider webhook response]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports a clean merge but the branch is behind current main by 111 commits; required checks and the focused webhook/SQLite proof should be evaluated on the eventual merge result because this changes a signed replay-security boundary.
  • Complete next step (P2) - The protected maintainer label keeps this otherwise-correct, proof-sufficient PR in normal human merge review; there is no narrow repair for ClawSweeper to dispatch.
Agent review details

Security

None.

PR surface

Source +72, Tests +377. Total +449 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 9 297 225 +72
Tests 3 385 8 +377
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 682 233 +449

Review metrics

Metric Value Why it matters
Production versus regression LOC production +72, tests +377 The production increase is justified by one owner-boundary capability: generation-safe replay release coordinated with durable call-state publication; the larger test delta covers retry, persistence failure, concurrency, and provider-response behavior.

Stored data model

Persistent data-model change detected: persistent cache schema: extensions/voice-call/src/webhook-replay.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Validate the current merge result (recommended)
    Keep the replay-reservation design and require the existing focused signed-webhook and SQLite lifecycle coverage to pass against the clean merge result before landing.
  2. Accept the reviewed boundary change
    Maintainers may merge after reviewing the current clean merge result, accepting the bounded residual risk inherent in changing authenticated replay ownership.

Technical review

Best possible solution:

Land the canonical owner-boundary repair once the clean merge result retains the signed-callback, durable-state, retry, and concurrent-response regressions demonstrated by this branch.

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

Yes, source-reproducible: current main reserves verified callback replay before event processing, while the PR’s focused localhost tests exercise the failure and redelivery path through the production webhook owner. This review did not rerun the tests in the read-only checkout.

Is this the best way to solve the issue?

Yes. The repair keeps replay state, webhook response caching, and durable call-state publication with their existing voice-call owners instead of adding a fallback path or a parallel delivery flow.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8406cfeac162.

Labels

Label justifications:

  • P1: A broken verified carrier callback path can suppress legitimate voice-call lifecycle delivery or repeat side effects for active users.
  • merge-risk: 🚨 security-boundary: The patch changes authenticated webhook replay ownership and one-time response handling across carrier verifiers, so merge-result validation must preserve duplicate rejection without blocking legitimate retries.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The updated PR body provides inspectable after-fix live output for production signature verification, localhost HTTP handling, SQLite commit/open-failure behavior, retry, and concurrent one-time-response handling at the exact head.
  • proof: sufficient: Contributor real behavior proof is sufficient. The updated PR body provides inspectable after-fix live output for production signature verification, localhost HTTP handling, SQLite commit/open-failure behavior, retry, and concurrent one-time-response handling at the exact head.

Evidence

What I checked:

  • Current-main defect boundary: Current main processes parsed events after a verified replay reservation but has no way to release that reservation when durable event processing fails, so a later identical carrier delivery can be treated as a replay before the state owner committed it. (extensions/voice-call/src/webhook.ts:787, 8406cfeac162)
  • Canonical reservation repair: The PR introduces a generation-safe release closure that deletes only the reservation it created, preventing an older failed delivery from clearing a newer same-key reservation. (extensions/voice-call/src/webhook-replay.ts:41, ded0cb5d5fb4)
  • Durability-before-publication owner boundary: The PR persists newly created and rejected inbound call records before publishing active-call, provider-ID, rejection, or replay state; ordinary event mutations are also persisted before dedupe keys, timers, and waiter effects are published. (extensions/voice-call/src/manager/events.ts:121, ded0cb5d5fb4)
  • Webhook response and retry integration: The webhook owner releases a reservation only for replayable lifecycle outcomes and releases it on response-building failure; concurrent duplicates wait for the cached response while Twilio duplicates receive token-free XML. (extensions/voice-call/src/webhook.ts:787, ded0cb5d5fb4)
  • Regression coverage and real behavior proof: The branch adds localhost signed-Twilio retry, concurrent one-time-response, and failed-Plivo callback tests. Its PR body also reports after-fix production HMAC-SHA1 and Ed25519 verification, real ephemeral HTTP handling, isolated SQLite commits/open failures, and concurrent delivery outcomes at the exact head. (extensions/voice-call/src/webhook.test.ts:1009, ded0cb5d5fb4)
  • Feature provenance and likely routing: Blame attributes the current-main webhook verification and inbound-rejection lifecycle boundary to Peter Steinberger; area history also includes recent shutdown/lifecycle work by Vincent Koc. (extensions/voice-call/src/webhook.ts:731, 06957a69d867)

Likely related people:

  • steipete: Current-main blame identifies Peter Steinberger on the webhook verification and inbound-rejection boundary, and he has the largest sampled voice-call history contribution as well as the proposed replay-lifecycle repair. (role: feature owner and recent area contributor; confidence: high; commits: 06957a69d867, c3b479b8e2cc, ded0cb5d5fb4; files: extensions/voice-call/src/webhook.ts, extensions/voice-call/src/manager/events.ts, extensions/voice-call/src/webhook-replay.ts)
  • Vincent Koc: Recent main history credits Vincent Koc with voice-call shutdown-barrier and socket-drain lifecycle fixes, adjacent to the call manager and webhook server lifecycle affected here. (role: recent adjacent lifecycle contributor; confidence: medium; commits: 695d18458f8e, 6758c6113540; files: extensions/voice-call/src/manager.ts, extensions/voice-call/src/webhook.ts)

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 (1 earlier review cycle)
  • reviewed 2026-08-03T16:19:58.353Z sha ded0cb5 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 3, 2026
@steipete
steipete merged commit 03bec9d into main Aug 3, 2026
123 of 136 checks passed
@steipete
steipete deleted the codex/qa0803-voice-webhook-replay-lifecycle branch August 3, 2026 17:35
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main: (25 commits)
  test(qa): cover plugin authoring contracts (#118821)
  fix(parallels): keep provider keys out of POSIX job logs (#118840)
  improve: reduce redundant Code Mode test work (#118815)
  fix(models): report primary OpenRouter limits in scans (#110855)
  test: speed up setup inference fixtures (#118811)
  fix(auto-reply): enforce canonical reset authorization (#118580)
  docs(gateway): fix invalid heartbeat visibility examples (#118827)
  fix(plugins): unify HTTP route conflict handling (#118203)
  test(agents): use prepared auth fixtures (#118816)
  fix(lmstudio): resolve JIT embedding variants
  fix(lmstudio): preserve embedding preload and model identity
  fix(ai): reject binary Codex websocket frames (#111138)
  fix(deps): bump brace-expansion override to 5.0.9 for HIGH advisory 1130705 (#118804)
  feat(cli): add session archive and delete commands (#118791)
  fix(openai): commit eligible final realtime transcription audio safely (#118782)
  fix(reef): restrict management commands to owners [AI] (#118578)
  fix(google): honor Cloud SDK credential location and Vertex billing project (#118745)
  fix(bedrock): preserve private embedding endpoints and AWS routing policy (#118744)
  fix(voice): make signed callback replay reservations durable and retryable (#118754)
  fix(openrouter): isolate custom proxy credentials and transport security (#118773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
steipete added a commit that referenced this pull request Oct 15, 2026
Share Google SSE startup, OpenAI voice configuration preparation and MiniMax
request credentials. Reuse the SDK FIFO permit pool for Session Share and
return Logbook's committed standup receipt instead of rereading its write.
Remove repeated ONNX validation after the existing schema boundary and unused
response/header copies. Preserve public surfaces, auth, resource bounds,
snapshot limits, user-data durability and shutdown settlement. Phase E stays
untouched. Simplify ordinary Memory Core sync-error bookkeeping and remove
late-probe cache fencing and synthetic multi-process LanceDB startup retries.
Remove redundant Bonjour sentinel/cleanup/listener defenses while retaining
network-error handling and stop settlement.
Net production reduction: 217 lines;
test reduction: 204 lines.

Best-effort tradeoffs accepted:
- Active Memory's synthetic maximum-Date clock no longer bypasses caching;
  d649548 introduced the forced-clock fixture, not a human-use report.
- Voice Call's synthetic maximum-Date clock uses numeric expiry and always
  admits the cache entry before native Promise rejection cleanup;
  55d4456 introduced the forced-clock fixture, not a human-use report.
- Future mutation of an internal webhook response is not isolated by copies;
  #118754 records synthetic HTTP proof, and no current consumer mutates it.
- A publication racing compiled-cache reconciliation is picked up on the next
  lifecycle refresh; #110167 pins a synthetic lookup interleaving, not an incident.
- A later parallel standup may overwrite the stored day, while each caller gets
  its own committed receipt; #99930/#144982 add the self-reread without an incident.
- Deliberate mutation of Fal's internal image array during credential lookup may
  reach provider validation; migration 0f54ca2 already had a guarded caller.
- Future mutation of Comfy's internal GET headers is not isolated by extra copies;
  #167205 retained these copies, but the current consumers are read-only.
- An embedding probe finishing during adapter replacement can cache old
  availability for the existing 30-second TTL or until invalidation; #144252
  and related #135599/#141280 describe architecture/synthetic lifecycle proof,
  not a human incident. Provider authority and shutdown drainage stay intact.
- A competing LanceDB initializer exposing a table before its first readable
  version may fail startup and need the next invocation/restart. #105896's
  retry proof coordinates six processes; #105680 describes source inference,
  and its review explicitly notes that no actual failure log was supplied.
  Atomic existOk creation, schema/agent checks and user-data durability stay.
- Internal handled-sync failure calls no longer re-check a tracked-active flag;
  #133239 introduced the bookkeeping, but every production caller is already
  inside tracked sync. A future untracked internal caller records its advisory
  failure directly. Deferred work and real overlapping failure identity stay.
- Nonfinite ONNX logits still fail at the TypeBox IPC schema boundary; #153476
  redundantly scanned the same validated vector a second time. No malformed
  network/worker input is newly admitted.
- Bonjour's fixed-path existsSync no longer catches impossible filesystem
  exceptions; direct 989cfd1 cites no incident and Node already returns false.
  A throwing monkey-patch now fails startup visibly.
- Bonjour cleanup no longer repeats stopPromise's once-only bookkeeping;
  ddc2036 added the flag for smoke stabilization without a user incident.
  Failed startup cannot expose a stop handle; SDK unsubscribe is idempotent.
- Bonjour's fixed EventEmitter listeners no longer swallow attachment errors;
  direct 7389fc0 cites no incident, and pinned Ciao inherits ordinary on().
  A future dependency-contract violation follows existing startup cleanup.

Proof: targeted production/test types, syntax lint, formatting, zero runtime
and Madge cycles, SDK source boundaries, lint-suppressions and focused plugin
owner/sibling suites. Fresh independent review's sole ONNX finding is disproved
by actual parseWorkerReply rejecting NaN and both infinities, as the installed
TypeBox validator calls Number.isFinite. No accepted finding remains.

One kept Memory Core generation-lease case hits its unchanged five-second
embedding-start deadline on both candidate and unchanged task base 9e3e16c.
It bypasses changed outcome/probe bookkeeping. It is not claimed passing or
fixed. Typed-lint declaration preparation and full Active Memory suite startup
also exceeded unchanged deadlines. Broad build/check-changed and PR CI unrun.
Below-500 branch-only packet for bundling; Phase E remains untouched.
steipete added a commit that referenced this pull request Oct 15, 2026
* refactor(plugins): consolidate provider and feature paths

Share Google SSE startup, OpenAI voice configuration preparation and MiniMax
request credentials. Reuse the SDK FIFO permit pool for Session Share and
return Logbook's committed standup receipt instead of rereading its write.
Remove repeated ONNX validation after the existing schema boundary and unused
response/header copies. Preserve public surfaces, auth, resource bounds,
snapshot limits, user-data durability and shutdown settlement. Phase E stays
untouched. Simplify ordinary Memory Core sync-error bookkeeping and remove
late-probe cache fencing and synthetic multi-process LanceDB startup retries.
Remove redundant Bonjour sentinel/cleanup/listener defenses while retaining
network-error handling and stop settlement.
Net production reduction: 217 lines;
test reduction: 204 lines.

Best-effort tradeoffs accepted:
- Active Memory's synthetic maximum-Date clock no longer bypasses caching;
  d649548 introduced the forced-clock fixture, not a human-use report.
- Voice Call's synthetic maximum-Date clock uses numeric expiry and always
  admits the cache entry before native Promise rejection cleanup;
  55d4456 introduced the forced-clock fixture, not a human-use report.
- Future mutation of an internal webhook response is not isolated by copies;
  #118754 records synthetic HTTP proof, and no current consumer mutates it.
- A publication racing compiled-cache reconciliation is picked up on the next
  lifecycle refresh; #110167 pins a synthetic lookup interleaving, not an incident.
- A later parallel standup may overwrite the stored day, while each caller gets
  its own committed receipt; #99930/#144982 add the self-reread without an incident.
- Deliberate mutation of Fal's internal image array during credential lookup may
  reach provider validation; migration 0f54ca2 already had a guarded caller.
- Future mutation of Comfy's internal GET headers is not isolated by extra copies;
  #167205 retained these copies, but the current consumers are read-only.
- An embedding probe finishing during adapter replacement can cache old
  availability for the existing 30-second TTL or until invalidation; #144252
  and related #135599/#141280 describe architecture/synthetic lifecycle proof,
  not a human incident. Provider authority and shutdown drainage stay intact.
- A competing LanceDB initializer exposing a table before its first readable
  version may fail startup and need the next invocation/restart. #105896's
  retry proof coordinates six processes; #105680 describes source inference,
  and its review explicitly notes that no actual failure log was supplied.
  Atomic existOk creation, schema/agent checks and user-data durability stay.
- Internal handled-sync failure calls no longer re-check a tracked-active flag;
  #133239 introduced the bookkeeping, but every production caller is already
  inside tracked sync. A future untracked internal caller records its advisory
  failure directly. Deferred work and real overlapping failure identity stay.
- Nonfinite ONNX logits still fail at the TypeBox IPC schema boundary; #153476
  redundantly scanned the same validated vector a second time. No malformed
  network/worker input is newly admitted.
- Bonjour's fixed-path existsSync no longer catches impossible filesystem
  exceptions; direct 989cfd1 cites no incident and Node already returns false.
  A throwing monkey-patch now fails startup visibly.
- Bonjour cleanup no longer repeats stopPromise's once-only bookkeeping;
  ddc2036 added the flag for smoke stabilization without a user incident.
  Failed startup cannot expose a stop handle; SDK unsubscribe is idempotent.
- Bonjour's fixed EventEmitter listeners no longer swallow attachment errors;
  direct 7389fc0 cites no incident, and pinned Ciao inherits ordinary on().
  A future dependency-contract violation follows existing startup cleanup.

Proof: targeted production/test types, syntax lint, formatting, zero runtime
and Madge cycles, SDK source boundaries, lint-suppressions and focused plugin
owner/sibling suites. Fresh independent review's sole ONNX finding is disproved
by actual parseWorkerReply rejecting NaN and both infinities, as the installed
TypeBox validator calls Number.isFinite. No accepted finding remains.

One kept Memory Core generation-lease case hits its unchanged five-second
embedding-start deadline on both candidate and unchanged task base 9e3e16c.
It bypasses changed outcome/probe bookkeeping. It is not claimed passing or
fixed. Typed-lint declaration preparation and full Active Memory suite startup
also exceeded unchanged deadlines. Broad build/check-changed and PR CI unrun.
Below-500 branch-only packet for bundling; Phase E remains untouched.

* refactor(plugins): consolidate remaining feature and provider owners

Replace ACPX trust scanning with the existing TOML parser, consolidate Logbook operation dispatch, reuse SDK FIFO playback admission, and prepare wiki claims once. Remove repeated internal validation and redundant copies while retaining external validation, live authority, resource bounds, durability and Phase E. Shrink only the assertion allowances eliminated by these removals. The complete branch removes 750 net production lines. Accepted timing and internal-mutation tradeoffs, provenance, review decisions and proof are recorded in the PR body and requested local ledger.

* test(plugins): align checks with simplified owners
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…aw#173064)

* refactor(plugins): consolidate provider and feature paths

Share Google SSE startup, OpenAI voice configuration preparation and MiniMax
request credentials. Reuse the SDK FIFO permit pool for Session Share and
return Logbook's committed standup receipt instead of rereading its write.
Remove repeated ONNX validation after the existing schema boundary and unused
response/header copies. Preserve public surfaces, auth, resource bounds,
snapshot limits, user-data durability and shutdown settlement. Phase E stays
untouched. Simplify ordinary Memory Core sync-error bookkeeping and remove
late-probe cache fencing and synthetic multi-process LanceDB startup retries.
Remove redundant Bonjour sentinel/cleanup/listener defenses while retaining
network-error handling and stop settlement.
Net production reduction: 217 lines;
test reduction: 204 lines.

Best-effort tradeoffs accepted:
- Active Memory's synthetic maximum-Date clock no longer bypasses caching;
  1802f6b introduced the forced-clock fixture, not a human-use report.
- Voice Call's synthetic maximum-Date clock uses numeric expiry and always
  admits the cache entry before native Promise rejection cleanup;
  c7b888b introduced the forced-clock fixture, not a human-use report.
- Future mutation of an internal webhook response is not isolated by copies;
  openclaw#118754 records synthetic HTTP proof, and no current consumer mutates it.
- A publication racing compiled-cache reconciliation is picked up on the next
  lifecycle refresh; openclaw#110167 pins a synthetic lookup interleaving, not an incident.
- A later parallel standup may overwrite the stored day, while each caller gets
  its own committed receipt; openclaw#99930/openclaw#144982 add the self-reread without an incident.
- Deliberate mutation of Fal's internal image array during credential lookup may
  reach provider validation; migration d365cd8 already had a guarded caller.
- Future mutation of Comfy's internal GET headers is not isolated by extra copies;
  openclaw#167205 retained these copies, but the current consumers are read-only.
- An embedding probe finishing during adapter replacement can cache old
  availability for the existing 30-second TTL or until invalidation; openclaw#144252
  and related openclaw#135599/openclaw#141280 describe architecture/synthetic lifecycle proof,
  not a human incident. Provider authority and shutdown drainage stay intact.
- A competing LanceDB initializer exposing a table before its first readable
  version may fail startup and need the next invocation/restart. openclaw#105896's
  retry proof coordinates six processes; openclaw#105680 describes source inference,
  and its review explicitly notes that no actual failure log was supplied.
  Atomic existOk creation, schema/agent checks and user-data durability stay.
- Internal handled-sync failure calls no longer re-check a tracked-active flag;
  openclaw#133239 introduced the bookkeeping, but every production caller is already
  inside tracked sync. A future untracked internal caller records its advisory
  failure directly. Deferred work and real overlapping failure identity stay.
- Nonfinite ONNX logits still fail at the TypeBox IPC schema boundary; openclaw#153476
  redundantly scanned the same validated vector a second time. No malformed
  network/worker input is newly admitted.
- Bonjour's fixed-path existsSync no longer catches impossible filesystem
  exceptions; direct 1fa8665 cites no incident and Node already returns false.
  A throwing monkey-patch now fails startup visibly.
- Bonjour cleanup no longer repeats stopPromise's once-only bookkeeping;
  2ef6daa added the flag for smoke stabilization without a user incident.
  Failed startup cannot expose a stop handle; SDK unsubscribe is idempotent.
- Bonjour's fixed EventEmitter listeners no longer swallow attachment errors;
  direct 836f011 cites no incident, and pinned Ciao inherits ordinary on().
  A future dependency-contract violation follows existing startup cleanup.

Proof: targeted production/test types, syntax lint, formatting, zero runtime
and Madge cycles, SDK source boundaries, lint-suppressions and focused plugin
owner/sibling suites. Fresh independent review's sole ONNX finding is disproved
by actual parseWorkerReply rejecting NaN and both infinities, as the installed
TypeBox validator calls Number.isFinite. No accepted finding remains.

One kept Memory Core generation-lease case hits its unchanged five-second
embedding-start deadline on both candidate and unchanged task base d6898f3.
It bypasses changed outcome/probe bookkeeping. It is not claimed passing or
fixed. Typed-lint declaration preparation and full Active Memory suite startup
also exceeded unchanged deadlines. Broad build/check-changed and PR CI unrun.
Below-500 branch-only packet for bundling; Phase E remains untouched.

* refactor(plugins): consolidate remaining feature and provider owners

Replace ACPX trust scanning with the existing TOML parser, consolidate Logbook operation dispatch, reuse SDK FIFO playback admission, and prepare wiki claims once. Remove repeated internal validation and redundant copies while retaining external validation, live authority, resource bounds, durability and Phase E. Shrink only the assertion allowances eliminated by these removals. The complete branch removes 750 net production lines. Accepted timing and internal-mutation tradeoffs, provenance, review decisions and proof are recorded in the PR body and requested local ledger.

* test(plugins): align checks with simplified owners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant