Skip to content

test(qa): scope Teams timeout fault to messages - #141985

Merged
RomneyDa merged 1 commit into
mainfrom
test/maturity-msteams-timeout-fixture
Sep 8, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
test/maturity-msteams-timeout-fixture

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

  • limit the Teams accepted-504 QA fault to actual message activities
  • let progress/typing activities that happen to echo the marker pass normally
  • cover both activity types in the loopback Connector regression

Why

The maturity scenario's marker is present in the message-tool arguments. Teams progress mode can surface those arguments through a native typing activity before the actual message tool dispatch. The loopback fault injector matched any activity text, so it injected 504 into the Microsoft SDK stream, whose independent retry loop produced repeated outbound events and prevented final settlement. The scenario is intended to prove OpenClaw does not replay an ambiguous non-idempotent message POST, not to fault an informative typing update.

Validation

  • node scripts/run-vitest.mjs extensions/msteams/src/qa/bot-framework-server.test.ts — 4 passed
  • oxfmt --check — passed
  • local autoreview P0-P2 — clean (0.98)

Maturity failure: msteams-ambiguous-gateway-timeout

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams size: XS maintainer Maintainer-authored PR labels Sep 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 3:48 AM ET / 07:48 UTC.

ClawSweeper review

What this changes

Limit the Teams QA server’s simulated timeout to marked message activities and verify that marked typing updates succeed.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped QA fix: current main still faults marked typing activities. No blocking patch defects were found; the previous review also recorded no findings.

Priority: P2
Reviewed head: 0ab8d312a6c8e42f9d17fd627227a40ee264e401

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful regression assertions and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored fixture repair. The reported HTTP test covers typing success and message timeout, but does not establish a full maturity-scenario rerun.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored fixture repair. The reported HTTP test covers typing success and message timeout, but does not establish a full maturity-scenario rerun.
Evidence reviewed 7 items Introduced change preserves acceptance ordering: The verified merge-base-to-head diff adds only a message-type condition to fault selection and extends the existing HTTP test. Recording still happens before either response.
Current main still needs the guard: Fetched main selects the timeout solely from activity text, so a typing activity containing the marker receives 504.
Latest release comparison: The same text-only fault predicate is present in v2026.9.2; the requested guard is not already provided by that release.
Findings None None.
Security None None.

How this fits together

The Teams QA server substitutes a local Connector endpoint during automated channel testing. It records outbound activities and injects selected failures so scenarios can check delivery and retry behavior.

flowchart LR
  A[Teams QA scenario] --> B[Teams plugin]
  B --> C[Local Connector server]
  C --> D[Record accepted activity]
  D --> E{Marked message?}
  E -->|Yes| F[Return timeout]
  E -->|No| G[Return success]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +1, Tests +13. Total +14 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 15 2 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 16 2 +14

Review metrics

None.

Technical review

Best possible solution:

Keep fault selection in the Connector fixture, preserving accepted-message timeouts while allowing informational typing activities to succeed.

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

Yes, from source: posting a typing activity containing the timeout marker to the current-main fixture produces 504. The added HTTP assertion directly covers this trigger; no runtime reproduction was executed during review.

Is this the best way to solve the issue?

Yes. Narrowing the existing fault predicate repairs the fixture at its owner while retaining the message timeout and acceptance semantics.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8ac88a1a335a.

Labels

Label justifications:

  • P2: This repairs a concrete Teams QA fault-injection error with limited scope.
  • 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: The external-contributor proof gate does not apply to this MEMBER-authored fixture repair. The reported HTTP test covers typing success and message timeout, but does not establish a full maturity-scenario rerun.

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)
  • Vincent Koc: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-08T07:37:18.014Z sha 0ab8d31 :: needs maintainer review before merge. :: none

@RomneyDa

RomneyDa commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit ed42c6f into main Sep 8, 2026
98 checks passed
@RomneyDa
RomneyDa deleted the test/maturity-msteams-timeout-fixture branch September 8, 2026 08:01
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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