Repository navigation
feat(buzz): support flat automatic replies and typing - #130511
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 2:39 PM ET / 18:39 UTC. ClawSweeper reviewWhat this changesAdds an opt-in Buzz setting for top-level automatic replies and typing while preserving default threading and explicit sends, plus fixes pending transcript tool-call tracking around persistence callbacks. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer handling: current main still lacks the feature, and the protected maintainer item adds a public configuration contract. No introduced P0–P2 correctness defect was established by source review. Priority: P3 Review scores
Verification
How this fits togetherBuzz converts incoming room events into OpenClaw turns, then sends automatic replies and typing through the relay. Separately, the session guard records assistant tool calls and tool results so stored transcripts retain valid call/result pairing. flowchart TD
A[Incoming Buzz room event] --> B[Inbound turn context]
B --> C[Automatic reply placement policy]
C --> D[Threaded or top-level reply]
C --> E[Typing indicator]
F[Assistant tool call or result] --> G[Session transcript guard]
G --> H[Pending call tracking]
H --> I[Persisted transcript history]
Decision needed
Why: The implementation is plugin-owned and preserves defaults, but repository policy requires explicit approval for a new configuration option and this protected member-authored PR cannot be auto-closed. Before merge
Agent review detailsSecurityNone. PR surfaceSource +30, Tests +379, Docs +11, Generated 0, Other 0. Total +420 across 19 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after a channel/config owner confirms the all/off contract and exact-head validation is green; retain all as the default and keep explicit sends unaffected. Do we have a high-confidence way to reproduce the issue? Yes for the transcript-ordering sub-fix: the prior current-main order invoked callbacks before pending call state was tracked, and the added regression test exercises re-entry and failed append. The Buzz portion is a new capability rather than a defect reproduction. Is this the best way to solve the issue? Unclear pending owner confirmation: the plugin-owned use of the existing reply-transport seam is the narrowest implementation, but the new durable configuration contract needs an explicit channel/config decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d549b12d186a. 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 (7 earlier review cycles)
|
67b8c7b to
315f52a
Compare
315f52a to
d5be45c
Compare
d5be45c to
ef0529a
Compare
ef0529a to
c7473fb
Compare
Keep automatic reply and typing placement in the Buzz plugin, preserving default threading and explicit targets. Reconcile with canonical schema, transcript-cache, live-argument, and correlation-ID owners on main; retire pending results only after persistence and before callbacks.
c7473fb to
4980cfe
Compare
|
@clawsweeper re-review The maintainer has explicitly approved the durable This head is an integration rewrite against current main, not an unchanged landing: it adopts #131564's single-source schemas and #129816/#131214/#131326's canonical storage, original live arguments, and preserved correlation IDs. Duplicate persistence receipt plumbing and obsolete ID-redaction expectations are removed. The remaining pending-call repair is proven with three current-main callback/failed-append regressions and 313 passing focused tests; independent isolated review is clean. The PR body distinguishes this proof from the candidate build, fresh real-relay Gateway proof, and hosted CI still underway. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Exact-head integration proof is complete for 4980cfe. Final metadata head 1b2286f differs from that tested commit only by deleting its root CHANGELOG line. All runtime, tests, and build inputs are identical. Final-head CI33199062274 completed successfully; no older result is relabeled as a final-head run. The rewritten PR keeps automatic reply policy plugin-owned and pending tool-call state commit-owned. Current-main regression: three callback-order failures; candidate passes all six ordering cases. Total focused tests: 348 across 13 files, plus five Doctor contract checks. Full changed-file checks and both normal/private-QA builds pass. Exact CI 33195665043 is green. The actual compiled Gateway used the official Buzz relay image pinned to upstream revision 4f554b6385065b698db819498a6f359b17a45459, with independently signed fixture clients and controlled model output: {
"head": "4980cfe76abe3084955b550b87c19aa790c4a36e",
"defaultAndFlatReplyTypingAndExplicitCli": "pass",
"immediateMessageToolCases": "4/4 pass",
"publicGatewayCollectCases": "3/3 pass",
"nativeBuzzCollectAdmissionTested": false,
"falseSyntheticToolFailures": 0,
"gatewayPidsConfirmedAbsent": 9,
"listenersConfirmedClosed": 18,
"frozenRuntimeSha256": "13a45c491729552e6ca9b5c9d4427e7a6c126f866e621336b1f5e81f2d9c473c",
"runtimeUnchanged": true
}The live probes checked signed room/thread placement, exact provider call/result correlation, actual public transcript finals, and physical delivery counts. Same-target final duplicates were suppressed; different thread-versus-room destinations retained both deliveries. The custom payload-redaction case preserved the stored correlation IDs. The scripts run the real Gateway, not a substituted Buzz transport; the model is a fixture, not a live-model claim. Local commands: The 17:44 UTC ClawSweeper integration requests are addressed. Native prepare rejected the root changelog entry, so its exact text now lives in the PR Release note section for release generation; that review finding is fixed and no release-only override is used. No SQLite schema or persisted message shape changes were added. Earlier-head timeout failures are retained and not relabeled; no timeout was widened. Hosted Buzz, real-model reasoning, native Buzz collect admission, and live heartbeat scheduling remain outside this proof. Independent isolated Codex runtime review and the metadata-only follow-up review are clean. The latest18:39 ClawSweeper rank-up requests are addressed: Peter explicitly approved the durable all/off contract, and exact final-head CI is green. Its automated stored-data flag does not represent a SQLite schema or persisted message-shape change. Proceeding through native prepare/merge. |
|
Merged via squash.
|
* feat(buzz): support flat replies with committed tool-state tracking Keep automatic reply and typing placement in the Buzz plugin, preserving default threading and explicit targets. Reconcile with canonical schema, transcript-cache, live-argument, and correlation-ID owners on main; retire pending results only after persistence and before callbacks. * docs(buzz): keep release notes in the PR
Related: #129599
Final head: 1b2286f. The only change from live-tested runtime head4980 is deletion of the root changelog entry, whose content is retained below for release generation. Final-head CI33199062274 completed successfully; runtime proof is not relabeled as a different commit.
What Problem This Solves
Buzz operators cannot currently choose room-level automatic replies: the plugin always attaches reply/thread tags, including to typing indicators. This adds the explicitly approved
channels.buzz.replyToMode: "all" | "off"contract while retaining"all"as the default.The associated transcript repair fixes a separate failure exposed during delivery verification: a persistence callback can append a real result before its assistant call is tracked, causing a false synthetic failure; a result whose append fails can also be removed from pending state too early.
Why This Change Was Made
Reply placement stays in the Buzz plugin and uses the existing shared reply-transport contract. Flat mode changes automatic delivery and typing only. Inbound thread/session context and explicit tool/CLI thread targets are preserved.
The refreshed patch adopts current main's single-source channel schemas, canonical SQLite cache, original live tool arguments, and stable correlation IDs (#131564, #129816, #131214, #131326). It removes the earlier revision's duplicate persistence-result plumbing and obsolete expectations that tool IDs should be redacted. Pending tool state now follows the committed transcript before callbacks run; synthetic repair retains the already-stored pairing key while still applying payload hooks.
User Impact
Set
channels.buzz.replyToMode: "off"for flat automatic replies and typing. Omit it or use"all"to retain existing threaded behavior. Explicit message-tool and CLI thread sends remain explicit. No database migration, new dependency, native Buzz media, DM, or reaction capability is included.Production LOC: +51/-21 (net +30); tests: +519/-140. The production growth implements the approved placement option and the commit-before-callback state boundary; generated metadata and docs are counted separately.
Evidence
chat.sendpassed. These are not native Buzz collect-admission tests. Each verifies actual provider requests, public history, signed physical delivery, expected duplicate suppression, and an eight-second quiet window.13a45c491729552e6ca9b5c9d4427e7a6c126f866e621336b1f5e81f2d9c473c). Model output was controlled; Gateway/relay execution was real.Latest ClawSweeper review (2026-08-28 18:39 UTC, final1b228) found no introduced P0–P2 correctness defect. Its rank-up requests are satisfied: Peter explicitly approved the durable all/off configuration contract on 2026-08-28, and exact-head CI is green. The automated stored-data warning does not correspond to a schema or persisted message-shape change: the guard repair changes commit/callback ordering, and generated metadata exposes the approved config option. Native prepare requires the root changelog to remain release-owned, so the user-facing entry is retained below for release generation instead.
Release note
channels.buzz.replyToMode: "off"for flat automatic replies and typing while retaining threaded defaults and explicit thread sends; keep pending transcript tool calls consistent across persistence failures and reentrant callbacks.Proof limits: hosted Buzz differences, real-model reasoning, native Buzz collect admission, and live heartbeat scheduling are not claimed. Earlier c747 timeout attempts remain failed evidence with an unproven cause. This head passed without widening timeouts. The first fresh harness attempt stopped before Gateway startup because a normal build omits private QA; rebuilding with the documented
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm buildresolved that harness prerequisite.