Skip to content

feat(teams): acknowledge routed sends with activity IDs - #1494

Draft
NeoHsu wants to merge 8 commits into
openabdev:mainfrom
NeoHsu:stack/teams-03-real-send-ack
Draft

feat(teams): acknowledge routed sends with activity IDs#1494
NeoHsu wants to merge 8 commits into
openabdev:mainfrom
NeoHsu:stack/teams-03-real-send-ack

Conversation

@NeoHsu

@NeoHsu NeoHsu commented Aug 20, 2026

Copy link
Copy Markdown

Important

Stacked draft: logical base stack/teams-02-ingress-route-dedupe is PR #1493. GitHub requires an upstream PR base to exist in openabdev/openab, so this draft temporarily targets main and may show preceding stack layers. Do not merge it until #1493 is merged and this branch is rebased onto current main; then review only its single incremental commit.

What problem does this solve?

Replace optimistic send success with correlated Connector outcomes and real activity identifiers.

Discord Discussion URL: https://discord.com/channels/1491295327620169908/1491365158868619404/1531339032527765655
Microsoft Teams roadmap discussion.

Review Contract

Goal

Replace optimistic send success with correlated Connector outcomes and real activity identifiers.

Non-goals

This PR does not guarantee visual quote rendering, add edit/delete operations, retry ambiguous POSTs, or persist activity ownership.

Accepted Residual Risks

A lost acknowledgement is Unknown even if Teams accepted the activity, and the client may render an explicit reply without visible quote UI.

Acceptance Criteria

Delivered sends include a non-empty real activity ID; malformed success responses become Unknown; rejected and timeout outcomes are explicit; no ambiguous send is retried; explicit quote targets cannot escape the authenticated route.

Follow-ups

Use real IDs for owned mutations, processing indicators, progressive responses, and later reconciliation.

At a Glance

Authenticated Teams activity / operator target
                    │
                    ▼
            [this PR’s bounded layer]
                    │
                    ▼
          explicit outcome or fail-closed stop

Prior Art & Industry Research

OpenClaw: its Microsoft Teams extension separates access checks, Bot Framework route context, and outbound operations. For this slice the relevant comparison is outbound activity correlation and platform message identifiers.

Hermes Agent: its Teams platform adapter keeps Teams-specific transport and message shaping behind a platform adapter. It does not provide OpenAB’s negotiated Core/Gateway outcome contract, so this PR keeps the useful adapter boundary but adds explicit fail-closed semantics.

Proposed Solution

  • Return real outbound activity IDs for routed Teams sends.
  • Correlate write responses in Standalone and Unified modes.
  • Use the reply endpoint only for explicit, route-scoped quotes.

Why this approach?

Correlated real IDs are the minimum trustworthy foundation for later ownership, mutation, and cleanup behavior.

Alternatives Considered

Keep optimistic success (rejected: later mutation cannot prove ownership) or retry lost ACKs (rejected: duplicate sends).

Validation

cargo check -p openab-gateway --features teams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant