Skip to content

test(qa): verify fallback receipts and visible acknowledgments - #138598

Merged
steipete merged 1 commit into
mainfrom
codex/watch-qa-terminal-receipts
Sep 4, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/watch-qa-terminal-receipts

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

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-direct mirror 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.

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.
@steipete steipete self-assigned this Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 4:53 PM ET / 20:53 UTC.

ClawSweeper review

What this changes

Adds 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
Reviewed head: c4754fd645b1e7fe805d0dfcc9ade9f9aa96ef92

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused QA-only patch that follows the existing public task and transcript contracts; final CI remains the normal landing gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR is exempt from the external contributor proof gate; its body records focused ephemeral-Gateway mock transport evidence as supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR is exempt from the external contributor proof gate; its body records focused ephemeral-Gateway mock transport evidence as supplemental validation.
Evidence reviewed 6 items Introduced test scope: The verified introduced diff changes only the two QA scenario files, adding receipt and live-acknowledgment assertions; no production source, configuration, storage, or dependency file is introduced.
Delivery-owner contract: Direct completion delivery derives the :text-direct idempotency key and persists a delivery mirror in the requester session after sending the channel result.
Public history identity contract: Transcript projection carries a stored message idempotency key into __openclaw metadata, matching the PR's receipt lookup.
Findings None None.
Security None None.

How this fits together

QA 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]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI was still in progress at review time, so landing remains contingent on its normal completion.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Other +37. Total +37 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 41 4 +37
Total 2 41 4 +37

Review metrics

Metric Value Why it matters
Production versus QA LOC production +0/-0; QA scenarios +41/-4 The change strengthens two scenario assertions without expanding runtime behavior or public configuration.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/agents/subagent-completion-direct-fallback.yaml, unknown-data-model-change: qa/scenarios/agents/subagent-completion-direct-fallback.yaml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is low-risk QA coverage refinement with no introduced production behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR is exempt from the external contributor proof gate; its body records focused ephemeral-Gateway mock transport evidence as supplemental validation.

Label justifications:

  • P3: This is low-risk QA coverage refinement with no introduced production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR is exempt from the external contributor proof gate; its body records focused ephemeral-Gateway mock transport evidence as supplemental validation.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Louisfy: Raw commit 13dd7d2 adds qa/scenarios/agents/subagent-empty-completion-non-delivery.yaml:100 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 13dd7d2e2dc1; files: qa/scenarios/agents/subagent-empty-completion-non-delivery.yaml)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete
steipete merged commit 4d6a68b into main Sep 4, 2026
166 checks passed
@steipete
steipete deleted the codex/watch-qa-terminal-receipts branch September 4, 2026 21:18
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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