Repository navigation
test(qa): verify fallback receipts and visible acknowledgments - #138598
Conversation
Match terminal delivery to its exact child/run direct-fallback receipt, including after restart, instead of inferring the owner from text alone. Count live acknowledgments without counting deleted preview history twice. Keep history-wide silence and metadata checks, original deadlines, and the canonical parent acknowledgment from #137342 unchanged. Both four-case mock-channel flows, empty/restart behavior, 718 owner and catalog cases, formatting and an independent review pass on the exact source composition. No production or SQLite change.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 4:53 PM ET / 20:53 UTC. ClawSweeper reviewWhat this changesAdds QA assertions that terminal fallback delivery has one child/run-bound transcript mirror and that parent acknowledgments count only non-deleted channel rows. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. This maintainer-authored, test-only PR adds targeted owner-boundary QA checks that current main does not contain; the checks align with the task, transcript, and mock-provider contracts, with no blocking correctness or security finding. Priority: P3 Review scores
Verification
How this fits togetherQA scenarios drive an ephemeral Gateway with the mock provider and QA channel, then observe task records, transcript history, and outbound channel events. These checks guard subagent completion delivery and restart recovery without changing production behavior. flowchart LR
A[QA scenario input] --> B[Ephemeral Gateway]
B --> C[Subagent lifecycle]
C --> D[QA channel delivery]
C --> E[Transcript delivery mirror]
D --> F[Visible acknowledgment checks]
E --> F
F --> G[QA verdict output]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +37. Total +37 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the focused QA assertions and land after exact-head CI is green, keeping delivery ownership and visible acknowledgments verified through existing public task and transcript facts. Do we have a high-confidence way to reproduce the issue? No independent live run was performed in this read-only review; the supplied mock-Gateway evidence and source contracts make the prior deleted-preview counting defect reproducible in the owning QA flow. Is this the best way to solve the issue? Yes. The scenarios now observe the public requester task, transcript mirror, and non-deleted channel rows, which is more maintainable than inferring delivery ownership from matching text alone. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f14b1027271c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…ts (openclaw#138598) Match terminal delivery to its exact child/run direct-fallback receipt, including after restart, instead of inferring the owner from text alone. Count live acknowledgments without counting deleted preview history twice. Keep history-wide silence and metadata checks, original deadlines, and the canonical parent acknowledgment from openclaw#137342 unchanged. Both four-case mock-channel flows, empty/restart behavior, 718 owner and catalog cases, formatting and an independent review pass on the exact source composition. No production or SQLite change.
What this fixes
The empty-completion QA scenario counted a deleted preview and its durable final as two acknowledgments. The QA channel correctly records both historical rows, but only one remains visible. This scenario now counts live rows while preserving the history-wide silence and metadata checks.
The direct-fallback scenario also verifies the actual delivery owner: its public chat history must contain exactly one matching child/run
:text-directmirror with the expected terminal text, including after restart. Matching channel text alone could have come from the completion model instead.This builds on #137342’s already-landed parent acknowledgment fix by Ayaan Zaidi. That canonical mock behavior stays byte-identical; it is not reimplemented here. Only two YAML files change (+41/−4); no production, configuration, schema, storage, dependency or timeout changes.
Verification
On pinned main b116434, the original unmodified four-case scenario first passed with the canonical acknowledgment. With this patch, both the Telegram-profile and QA-channel four-case flows pass, each with three exact direct-fallback receipts. The empty-completion/restart flow has one live acknowledgment, no terminal send and no post-restart completion request. The original empty scenario failure was independently reproduced; its observed state contained one deleted preview and one live final.
These are real ephemeral Gateway flows with mocked provider and channel transports. The Telegram profile uses Crabline, not credentialed Telegram Test Server traffic. 718/718 owner/catalog tests pass, with zero failures/skips. Formatting, scoped diff checks and fresh independent P0–P3 review pass. All source/dependency originals remain unchanged after testing, and all owned processes ended.
The generic YAML classifier selects a 25-stage all-lanes fallback. This bounded test-only change instead ran the owning real mock-Gateway flows, six complete owner/catalog test files, formatting and independent review. Those focused results are not represented as the full fallback or hosted CI; exact-head CI remains required for landing. Initial setup failures and historical proof are retained rather than relabeled as passes.
Release-note context
QA-only repair. Preserve terminal delivery owner evidence and count the visible acknowledgment rather than deleted preview history. No user-facing runtime change or release-time changelog edit.
Final review disposition
The latest ClawSweeper review has no code/security findings. Exact-head CI 33917943092 is now successful. The data-model flag is a false positive on QA YAML: only two test scenarios change; they read the existing public task/transcript receipt and count non-deleted acknowledgment rows. No production schema, storage, serialized runtime state, migration, config or dependency changes are introduced. The retained proof includes both four-case mock-channel flows, empty/restart coverage and 718 owner/catalog tests. Proceed through the normal prepare/merge gates.