Skip to content

Add persistent Teams Graph conversations and readable reports - #5

Draft
JeffPengCoder wants to merge 3 commits into
fix/teams-pr71-onboardingfrom
fix/teams-graph-channel-20261117
Draft

JeffPengCoder wants to merge 3 commits into
fix/teams-pr71-onboardingfrom
fix/teams-graph-channel-20261117

Conversation

@JeffPengCoder

@JeffPengCoder JeffPengCoder commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Description

A one-shot delegated Graph probe can send a Teams message, but it does not deliver the user's later replies to MOSAIC. This change adds an optional, persistent, single-recipient View-only worker: it binds a verified DM, polls new messages, uses the existing MOSAIC headless conversation, and sends the complete answer back to the same chat. Durable state avoids replaying old messages, resubmitting an uncertain Agent request, or duplicating an uncertain send.

Markdown sent as Graph plain text was displayed literally in Teams. The worker now emits escaped HTML headings, paragraphs, code and complete label/value table rows, and splits long rendered output without truncation. An explicit repair tool can reformat an unchanged, previously recorded service-account message in place without invoking the Agent.

This is a stacked fork PR based on fix/teams-pr71-onboarding, the source branch of NVIDIA#76. It reuses that PR's Graph probe and adds a no-message bind mode. The native Bot path in NVIDIA#71 and the separate n8n work are unchanged. The upstream counterpart is NVIDIA PR #116, explicitly stacked on NVIDIA#76 and NVIDIA#71. This fork PR retains the 14-file incremental comparison against NVIDIA#76.

Validation and operational scope:

  • 24 Node tests, 9 existing Python runner tests, 3 new manifest tests, and 2 SPDX checks passed. Generated manifests passed Kubernetes server-side dry-run. Helm lint/template passed using cached chart archives matching the locked names/versions; online IRAOP dependency refresh returned NGC 401.
  • A real isolated telemetry alert reached MOSAIC through Alertmanager, produced 11 successful tool results including Research, and delivered its report in Teams after 63.359 seconds. An ordinary human follow-up automatically reused the session, produced 4 successful tool results including Research, and returned a second report after 100.999 seconds. No operator relayed the message or authored the answers.
  • Both already-delivered reports were repaired with Graph PATCH and verified through GET. HTML acceptance/readback is confirmed; a new automatic HTML reply has not been separately exercised after that formatting deployment.
  • This remains an experimental single-user textual DM transport. Real hardware diagnosis, multiple users, attachments, long-duration authentication recovery and infrastructure write actions are not covered by the live test. Password grant requires tenant approval and does not bypass MFA/Conditional Access.

The complete public timing/tool-result tables and diagnosis-quality caveats are in VALIDATION.md; deployment steps are in README.md. Internal identities, private endpoints, credentials and raw infrastructure payloads are excluded from this fork change.

Checklist

  • I am familiar with the Contributing Guidelines.
  • Every commit is signed off under the Developer Certificate of Origin.
  • New or existing validation covers these changes.
  • Documentation is up to date with these changes.

Signed-off-by: Jeff Peng <jepeng@nvidia.com>
@JeffPengCoder
JeffPengCoder force-pushed the fix/teams-pr71-onboarding branch from daebcac to b90b757 Compare November 19, 2026 06:14
@JeffPengCoder
JeffPengCoder force-pushed the fix/teams-graph-channel-20261117 branch from 600ae7e to 3b802c2 Compare November 19, 2026 06:14
…trols

Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>

This branch has not been deployed

No deployments
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