Skip to content

test(qa): use canonical exact marker in Telegram recovery - #133098

Merged
steipete merged 1 commit into
mainfrom
codex/frv-b111-telegram-recovery
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/frv-b111-telegram-recovery

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Telegram empty-response-after-write recovery fixture used answer exactly, which the deterministic mock provider does not recognize as an exact reply or marker directive. A fresh run happened to pass because the mock's fallback marker matched the scenario. If history contained an earlier recognized directive, the settled-write continuation could instead return that previous scenario's marker.

Use the existing exact marker: grammar in the scenario and its HTTP-level provider test. Parameterize the existing recovery case to cover both fresh input and an earlier reply directive in history. Keep the write/continuation, scheduled-run, and heartbeat assertions; no runtime code, parser behavior, timeout, or retry changes.

Verification

  • Before: the real mock HTTP recovery test passed fresh input but failed with preceding scenario history, returning PREVIOUS-SCENARIO-OK.
  • After: both cases pass, and all 279 mock provider server tests pass.
  • Full changed-file gate passed, including all typecheck lanes, lint, guards, three Knip scans, and runtime cycle checks. Format and whitespace checks pass.
  • Independent managed Codex review passed through P2 with no findings.

Runtime production delta is zero. Changes are one scenario line and existing test coverage (+71/-57 including formatter indentation).

The frozen full release run reported a packaged Telegram recovery failure. Its retained artifacts do not include the provider request bodies, so this PR does not claim that exact hosted causality is proven. A fresh focused Package Acceptance run will test the frozen b111 product with this reviewed harness; its result will be recorded here. Source Telegram validation already passed at b111. The full release verdict remains blocked until all repairs receive a new frozen run.

Hosted packaged proof

Package Acceptance33294704059 passed with product SHA b111319fcd8ec27ae7e2436ca51dd7637287c62a, harness SHA ac1279fb04c7c547e91e642337a3244646f76e5e, and the original trusted b111 workflow. The Telegram Test Server userbot delivered TELEGRAM-EMPTY-WRITE-RECOVERED-OK with three provider requests, exactly one write, exactly one continuation, and no skipped scenarios. Suite wall time was16.427seconds. This is focused real transport proof, not a replacement for the full release verdict.

Retained immutable proof artifact9727186452 has digest e18e78c881ff6bb4b0576f0de8934d9e642f9761179539e78d511b199345fc8e. Package and same-source plugin registry artifacts are9727143672 and9727143924; downloaded package bytes and registry-manifest hash match the recorded candidate metadata.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@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 Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 1:30 AM ET / 05:30 UTC.

ClawSweeper review

What this changes

The PR changes the Telegram empty-response recovery fixture to use the mock provider’s supported exact-marker grammar and tests both fresh and prior-directive histories.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking findings. This maintainer-owned PR narrowly corrects QA fixture wording and adds the missing history case; it should remain open for normal exact-head checks.

Priority: P3
Reviewed head: ac1279fb04c7c547e91e642337a3244646f76e5e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, internally consistent QA regression repair with no source-level correctness or security concern found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR does not alter production Telegram behavior; the ordinary external-contributor proof gate does not apply. The PR body supplies before/after mock HTTP test evidence, while this read-only review independently verified the owner contract and added history assertion.
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 does not alter production Telegram behavior; the ordinary external-contributor proof gate does not apply. The PR body supplies before/after mock HTTP test evidence, while this read-only review independently verified the owner contract and added history assertion.
Evidence reviewed 5 items Canonical marker contract: The mock provider recognizes reply ... exactly and exact marker:, but not the fixture’s former answer with exactly wording; the revised prompt matches the supported marker grammar.
Recovery owner remains unchanged: The production mock recovery branch emits the last exact-marker or exact-reply directive after the settled-tool continuation; the PR leaves this owner and directive implementation unchanged.
History-sensitive HTTP coverage: The table-driven test supplies a preceding exact marker, then asserts the recovery continuation returns the current Telegram marker rather than historical directive text.
Findings None None.
Security None None.

How this fits together

The QA Lab sends a Telegram-style inbound scenario through the empty-response recovery path to the deterministic mock OpenAI provider. The provider selects a final marker after a settled tool call, and the scenario verifies the resulting outbound Telegram reply.

flowchart LR
  A[Telegram-style inbound scenario] --> B[Recovery prompt]
  B --> C[Mock OpenAI provider]
  C --> D[Exact-marker selection]
  D --> E[Settled-tool continuation]
  E --> F[Outbound Telegram reply]
  F --> G[Scenario assertions]
Loading

Before merge

  • Complete next step (P2) - No repair task is needed; the remaining action is normal exact-head CI completion for this focused maintainer PR.
Agent review details

Security

None.

PR surface

Tests +14, Other 0. Total +14 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 70 56 +14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 2 71 57 +14

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests/test support +71/-57 (net +14) The added lines parameterize an existing HTTP-level regression case and align one QA scenario; no runtime provider or Telegram behavior changes.

Technical review

Best possible solution:

Keep the exact-marker directive as the canonical fixture contract and land the focused coverage once the pending checks validate this head.

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

Yes—source establishes a deterministic HTTP-level reproduction: the former prompt is not accepted by either directive extractor, so a preceding recognized marker can become the recovery result.

Is this the best way to solve the issue?

Yes. Reusing the mock provider’s established exact-marker grammar and extending the existing table-driven owner-boundary test is the narrowest maintainable repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5a1e1316e0a1.

Labels

Label changes:

  • add P3: This is a low-risk correction to internal QA fixture coverage, not a production behavior change.
  • 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 does not alter production Telegram behavior; the ordinary external-contributor proof gate does not apply. The PR body supplies before/after mock HTTP test evidence, while this read-only review independently verified the owner contract and added history assertion.

Label justifications:

  • P3: This is a low-risk correction to internal QA fixture coverage, not a production behavior change.
  • 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 does not alter production Telegram behavior; the ordinary external-contributor proof gate does not apply. The PR body supplies before/after mock HTTP test evidence, while this read-only review independently verified the owner contract and added history assertion.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • chelsealong: 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 b5ae14d into main Aug 30, 2026
248 checks passed
@steipete
steipete deleted the codex/frv-b111-telegram-recovery branch August 30, 2026 05:37
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
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: S 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