Microsoft conformance
Experimental Microsoft Graph conformance cases for tests and hand-run practice-tenant checks.
Microsoft Outlook, OneDrive, SharePoint and Teams actions are documented in the
connectors package guide and the
integrations reference. This page lists the experimental
conformance cases only. onedrive.resolve_sharing_link, the Teams channel post and reply sends,
teams.list_chats with lastMessagePreview, the modifiedSince filter, and the host-only
downloadTeamsMeetingTranscript have no case yet.
Conformance cases
Experimental. For tests and hand-run checks against a Microsoft 365 practice tenant.
@yolk-sdk/connectors/microsoft/conformance exports conformance cases for
@yolk-sdk/conformance/runner. Outlook, OneDrive, SharePoint site, and Teams cases run the real
connector actions. The
connector has no calendar actions yet: the calendar cases send raw Graph v1.0 requests through the
same connector ports and pin expected Graph behaviour (unverified until a live run) for hosts and
the emulator. The claims are as currently understood; none is observed live yet.
| Case id | Safety | Seeds | Claim (as currently understood) |
|---|---|---|---|
microsoft.calendar.list-range-returns-events | read | calendarRangeStart, calendarRangeEnd, calendarEventId | A calendar view over a populated range returns its events (an empty success is the failure mode); every event overlaps the range as UTC instants |
microsoft.calendar.timestamp-precision | read | range seeds, calendarEventId, calendarEventStart | Event times come back as seven-digit fractional dateTime values (2026-09-23T12:00:00.0000000) naming the same instant as the ISO seed; compare instants |
microsoft.calendar.create-returns-event-id | write-reversible | none | Creating an event returns an id that works for GET, PATCH, and DELETE; GET after DELETE is a 404 |
microsoft.calendar.cancel-semantics | write-reversible | none | After cancel, GET is a 404 and DELETE a no-op or 404; no attendees, so nothing is sent. Unverified: Graph documents cancel for organizer meetings; if it refuses an attendee-less event, the case becomes manual-only (it would send invitations) |
microsoft.outlook.attachments-listing | read | attachmentMessageId | Listing returns attachment ids (inline included) that retrieve the same file attachments |
microsoft.outlook.attachment-content-id | read | attachmentMessageId | The listing carries no contentId; retrieving the inline file attachment returns it |
microsoft.outlook.paging-next-link | read | pagingFolderId | A folder larger than the page size (2) returns a nextLink the connector accepts and that leads to new messages |
microsoft.outlook.immutable-id-survives-move | write-reversible | none | With the immutable-id preference the connector sends, a draft moved to Deleted Items keeps its id |
microsoft.outlook.concurrent-writes-same-message | write-reversible | none | Two concurrent draft updates: at least one wins; a loser fails with 409 or 404, never a 5xx |
microsoft.onedrive.create-folder-roundtrip | write-reversible | driveParentItemId | A created folder is listed under its parent, deletes cleanly, and GET is then a 404 |
microsoft.onedrive.copy-accepted-monitor | write-reversible | driveId, driveParentItemId, copySourceItemId | A copy answers 202 with one monitor Location the connector accepts, completes, and the copy appears in the destination |
microsoft.sharepoint.search-finds-site | read | siteSearchQuery, siteId | A keyword site search lists the seeded site; every site id has the three comma-separated parts sharepoint.list_site_drives sends literally |
microsoft.sharepoint.site-drives-libraries | read | siteId | The site's drives each have an id, at least one is a documentLibrary, and a null description decodes |
microsoft.teams.chats-list-members | read | none | Listed chats carry their members ($expand=members); teams.get_chat with the first listed id returns that chat with members |
microsoft.teams.chat-messages-paging | read | chatId | A chat larger than the page size (2) answers a first page of 1 or 2 messages (Graph may answer fewer than $top) and a nextLink the connector accepts (Graph may name the chat id unencoded) that leads to new messages; a listed message reads back by id |
microsoft.teams.team-channels | read | teamId, channelId | The joined teams list the seeded team, and the team and its listed channel read back by id as listed |
microsoft.teams.channel-message-replies | read | teamId, channelId, channelMessageId | Channel listings hold top-level posts only; the seeded post names its team and channel; its replies name it in replyToId |
microsoft.teams.meeting-transcripts | read | meetingJoinWebUrl | The join link finds a meeting carrying that link, and its transcripts name that meeting id |
microsoft.teams.send-chat-message | write-irreversible | sendChatId, runId | A plain-text message naming the run id posts as the escaped HTML the connector sent (unverified: Graph may normalize it) and reads back by its id; the message stays in the chat |
MicrosoftConformanceConfig holds the seeds; mailbox, calendarId, and driveId are optional
(/me, the default calendar, and /me/drive otherwise). runId is the send case's
invocation-unique run id (run- then lower-case letters, digits, and hyphens): replay uses the
fixtures' run-synthetic, and the repository runner generates a fresh one per invocation. Cases
never hard-code account data, and a missing seed fails the case with a precondition: mismatch
before any request. Credentials bind through microsoftConformanceIntegration (microsoft.oauth,
credential ref microsoft.conformance); for a delegated token, set the credential's accountId to
the mailbox seed so Outlook actions keep ordinary scopes.
Every write-reversible case creates its own event, recipient-free draft, or folder (named with the
yolk-conformance marker) and registers its id for cleanup before any claim runs; the create and
the registration are not interruptible (nor is a move that may change a draft's id, with its
registration), and neither the runner nor the bridges set a request timeout, so a hanging create
delays an interruption until it answers. Cleanup is automatic when the id is recoverable: the case
removes the item again (also after a failed assertion or an interruption), keeps it registered
until a 404 proves the removal where Graph allows that check, and also removes a draft under the new
id if a move changed it. A failed removal fails the case with MicrosoftConformanceRestoreFailed;
remove the item by hand if it still exists. Some creates need manual recovery because no id is
recoverable: a create that succeeds without an id fails with MicrosoftConformanceRestoreFailed,
and an ambiguous create (a transport or decoding failure, no status, HTTP 408, or HTTP 5xx) fails with
MicrosoftConformanceActionFailed (createOutcome: 'unknown', keeping its code and status). Both
messages carry the advice; look for yolk-conformance items and remove them by hand. A failed
removal, an id-less create, or an ambiguous create raised while the case is being interrupted is
also handed, with its full message, to ConformanceCleanupReporter from
@yolk-sdk/connectors/conformance (default: Effect.logWarning), since the interruption may
replace it (an ambiguous create's report starts with the case id, since several cases share one
create action); a definitive create rejection created nothing and is not reported. The repository
runner (pnpm conformance:microsoft) turns a first Ctrl-C into an interruption and prints these
reports on stderr as WARN lines. Like the shared runners, it prints every line of a live run (the
report, WARN lines, the run's own failure, staging output) with the live access token redacted,
since Graph can echo it into a field a case reports. Removed folders stay in the OneDrive recycle bin, and permanently
deleted drafts may be kept by retention policies. No case sends mail or invitations.
microsoft.teams.send-chat-message is write-irreversible: it posts one real message to the seeded
send chat (sendChatId, a dedicated practice chat kept apart from the paging chatId, so the
paging chat stays unchanged) that the connector cannot remove, so a live target runs it only when
its exact id is in allowIrreversible (the repository runner's --allow-irreversible microsoft.teams.send-chat-message; --allow-writes reversible never starts it). Its text names the
run id (yolk-conformance <runId>: ...), which the runner prints before any case. The send is not
interruptible; an ambiguous send (a transport or decoding failure, no status, HTTP 408, or HTTP 5xx)
fails with MicrosoftConformanceActionFailed (sendOutcome: 'unknown') naming the run id to look
for in the chat, also through ConformanceCleanupReporter when the case is being interrupted; a
definitive 4xx rejection other than HTTP 408 posted nothing. The send never follows a redirect
(redirect: 'manual', credentials: 'omit'), so a 3xx is a definitive rejection too and the
message is never posted twice. The Teams and SharePoint site cases need the delegated scopes of
their actions (Sites.Read.All, Chat.Read, Team.ReadBasic.All, Channel.ReadBasic.All,
ChannelMessage.Read.All, OnlineMeetings.Read, OnlineMeetingTranscript.Read.All, and
ChatMessage.Send for the send); their fixtures are shaped from the Microsoft Graph v1.0 docs
examples, and each fixture's note names its pages.
The shipped fixtures are synthetic (evidence: 'unverified'). See
Conformance APIs for the bridges.
For offline tests, the experimental
Microsoft Graph emulator
(@yolk-sdk/emulators/microsoft) is a stateful stand-in that passes these cases through real
connector actions and raw calendar requests over the connector ports.