Skip to content

Changelog

Unreleased

Added

  • Teams message reactions. read_teams_messages gives each message's reaction_count and its newest 20 reactions (reaction_type, display_name, user_id, created_at; the name only for a custom reaction, wrapped as external content). The Teams poll notices when someone reacts to one of the agent's own messages and pushes one [teams reaction] notification per message, from the read it already makes. It considers every reaction on the ten newest messages, and announces additions only, never the agent's own reactions, nothing older than an hour, and nothing that was already there when a chat's reaction state is first built. The notification is always inside the external-content envelope, a sponsor's reaction included. The reaction ledger is kept apart from the message cursor's seen-set and is stored with it, so a restart doesn't repeat a notification. It only grows, so with several instances on one chat an instance working from an older read can't cause a second notification; an instance that can't push doesn't claim, and a claim whose push fails is released for a retry. ENTRABOT_REACTION_NOTIFICATIONS=false turns the notifications off, and turning them back on doesn't announce the backlog. Two new tools, add_teams_reaction and remove_teams_reaction, react to a message or take the agent's own reaction back, with exactly one Unicode emoji or one of like, heart, laugh, surprised, sad, angry. They refuse any other text, including several emoji, country flags, keycap digits, arrows and letter-like symbols; they refuse a delegated session, where the reaction would be the signed-in human's; and they write their audit event before calling Graph. The body prompt says when to react: sparingly, on anyone's message, and never in place of a reply the agent owes. The read and the reaction call were run for real on macOS in a 1:1 chat on 2026-11-17, on the first version of this change; the poll's notification, the ledger, custom reactions and removing a reaction are unit-tested with mocked HTTP only.

0.3.1 — 2026-11-16

Two fixes to 0.3.0: scripts/revoke_consent.py changes only the grant on one resource, and the scripts in scripts/ find setup's private Azure CLI. The docs add a page on calling other APIs as the agent and a video tour linked from the README. Process containment of the MCP server is not in this release; it is planned for 0.4.0. What this release was checked against is in docs/project/verification.md.

Added

  • A five-minute video tour, linked from the top of the README with a poster image (docs/assets/video-poster.jpg): a day of working with an agent in Teams, Outlook and Word, then the Agent Blueprint, Agent Identity and Agent User underneath it. Docs only (#166).
  • A docs page, "Calling Other APIs as the Agent": the agent's sign-in gets a token for any API that accepts Entra access tokens, with only the third hop's scope changed; an administrator allows it for one agent with grant_consent.py --resource-app-id and takes it back with revoke_consent.py --resource-app-id. Run for real on Windows 11 against a stand-in API (not part of this repository): refused with AADSTS65001 before the grant, 200 after it. Docs only; not run on macOS or Linux (#164).

Fixed

  • scripts/revoke_consent.py changes only the grant on one resource. The Agent Identity holds one delegated permission grant per resource (Microsoft Graph, Azure Storage, and any other API it was given), and the script took the first grant Microsoft Graph listed, whichever resource it was on: --all could delete the Storage grant when the Graph one was meant. It now picks the grant on Microsoft Graph, or on the resource the new --resource-app-id names, the same default as grant_consent.py, and changes nothing when that resource has no grant. Unit-tested, and run for real on Windows 11: with grants on four resources, --all --resource-app-id deleted only the one named and left the agent's Microsoft Graph, Azure Storage and Agent 365 grants in place. Not run on macOS or Linux (#164).
  • On a computer whose only Azure CLI is the private copy setup installs (~/.entrabot/tools/azure-cli, on Windows %LOCALAPPDATA%\entrabot\tools\azure-cli, never on PATH), the scripts in scripts/ no longer stop with FileNotFoundError naming az. Found live on Ubuntu 24.04 with 0.3.0: setup registered the agent and exited 0, then the "Agent 365 registry" line of --diagnose showed the end of a Python traceback with "Run ./scripts/setup.sh --diagnose again later", and register_agent_instance.py --check run by hand stopped the same way. Every script that reads with the setup (Provisioner) app's token asked az ad app show whether that app exists before using its certificate; it no longer does, so the registry check, status, sponsors, consent, licences and teardown's deletes need no Azure CLI and no Azure CLI sign-in, and a deleted setup app is said plainly (AADSTS700016). The scripts that do need the Azure CLI (setup's own app, create_entra_agent_ids.py, the cloud storage scripts, cleanup-orphans.sh, entrabot init) find the private copy the way setup does, and with no Azure CLI at all say "Entrabot could not find the Azure CLI on this computer: …" and what to run. A token request Entra refuses is now a sentence, not azure-identity's exception. The registry line says a check that stopped in one line, with the command that shows the whole error, and says "again later" only when Microsoft Graph was out of reach or busy. Run for real on Ubuntu 24.04, on the machine where it was found: --diagnose reports the registry as registered and register_agent_instance.py --check answers "present", with no az on PATH. Not run on Windows or macOS (#165).

0.3.0 — 2026-11-15

Agent 365 integration: the agent's entry in the Agent 365 registry, set up with its telemetry by one setup question. Process containment of the MCP server is not in this release; it is planned for 0.4.0. What this release was checked against is in docs/project/verification.md.

Added

  • Registration in the Agent 365 registry as part of setup. Saying yes to Agent 365 integration now also registers the agent (Agent Registry API, Graph beta), so Microsoft lists it in the Microsoft 365 admin center under Agents > All agents > Registry. Setup adds the Microsoft Graph application permission AgentRegistration.ReadWrite.All to the setup (Provisioner) app with admin consent, through the signed-in administrator's Azure CLI, the way it gives the app its other permissions, and only on a yes. The registration's ID is kept in .entrabot-state.json (AGENT_REGISTRATION_ID), so a later run updates it; a computer that joined an agent that already existed does not register it a second time. A failure never stops setup or undoes telemetry. Run for real on Linux (Ubuntu 24.04): setup registered the agent, and about a minute later the Microsoft 365 admin center listed it. That first run found that admin consent can answer success without granting a permission added moments before, so setup ticked the permission and the registration then failed for want of it. Setup now ticks it only once the grant shows on the setup app, consents again while it does not (up to six times, about three minutes at most), and says so if it never shows. Run for real on Linux: the grant showed after the third consent, about 50 seconds in, and the agent was registered in the same run. register_agent_instance.py --delete --apply and teardown with --delete-agent deleted the registration for real on Linux; the admin center stopped listing the agent a few minutes later. A setup app taken over on an administrator's earlier approval (a second or later computer in a tenant) is given this one permission on its own, with an app role assignment, instead of nothing: before, such a computer needed a second setup run to be registered. Run for real on Windows, on a computer new to the tenant's setup app: the first run granted the permission on its own about 10 seconds in, ran no admin consent, created the agent and registered it, and exited 0. Run for real on Windows 11 too: registration, -Diagnose, the admin center listing, telemetry and teardown's delete. Not run on macOS, nor with a second computer joining a registered agent, nor on Windows as a standard user.
  • --diagnose reports the registry on its own line, "Agent 365 registry", after "Agent 365 telemetry": registered (with the ID Microsoft Graph confirms), not registered, or why it can't be checked.
  • scripts/register_agent_instance.py --check, --delete, --registration-id (record a registration made from another computer of the same agent), --display-name and --print-result. It reads its owners (the sponsors) and the display name (ENTRABOT_AGENT_DISPLAY_NAME) from .env, and leaves alone a recorded registration that names another agent. The request body is built in one place, entrabot.a365.registry.

Changed

  • Setup asks one question, "Switch on Agent 365 integration?", instead of "Switch on Agent 365 telemetry?". Yes switches on telemetry exactly as before and then registers the agent. The review screen and the last screen say "Agent 365 integration", the last screen with each half's result. The new flag is --configure-a365 (-ConfigureA365 on Windows); --configure-a365-observability and -ConfigureA365Observability from 0.2.0 still work and now mean the same. An answers key of telemetry still works; the new key is a365.
  • Teardown with --delete-agent (-DeleteAgent) also deletes the agent's Agent 365 registration when this computer recorded one, best-effort: one it cannot delete is a to-do with where to delete it. A disconnect alone leaves it alone.

Fixed

  • Setup could say that Word, Excel and OneDrive files could not be switched on when it had switched them on. On a new Windows 11 PC, ensure_a365_work_iq_permissions.py wrote the Blueprint's inheritable permission for the Work IQ Word server and read it back, but the read in its final check did not show it yet, and writing it again was refused with 400 Request_BadRequest ("An inheritable permission for resource app ID '…' already exists."): the script took only a 409 to mean that, so it exited 1. That answer, or a 409, now counts as written once a read shows the entry, with the waits the other read-backs use (2 to 20 seconds, about a minute in all). An entry with fewer scopes is widened as before, one that never shows up is still an error (now with Graph's answer), and any other refusal still fails at once, so setup still puts ToolingManifest.json back (#153).
  • A script run on its own on Windows with its output redirected or piped (to a file, a pipe, a scheduled task's log) no longer fails on a character the console's code page cannot show. Live on Windows 11, ensure_a365_work_iq_permissions.py 2>&1 | ... did its work and then stopped with UnicodeEncodeError printing "✅", and exited 1. Every script in scripts/ that can be run on its own now starts with make_output_safe() from scripts/script_output.py (standard library only, so no script needs anything it did not before), which prints such a character as ? instead. Output on a UTF-8 terminal, and through the setup wizard (which runs the scripts with PYTHONIOENCODING=utf-8), is unchanged.

0.2.0 — 2026-11-15

Everything since v0.1. Process containment of the MCP server is not in this release; it is planned for 0.4.0. What this release was checked against is in docs/project/verification.md; how it is cut is in RELEASING.md.

Added

  • Agent 365 telemetry through Microsoft's OpenTelemetry Distro (microsoft-opentelemetry): PR #122's harness spans, and now spans from the MCP server too (an inbound Teams message or email starts an invoke_agent run, each tool call is an execute_tool span; content suppressed). Opt-in in the setup wizard (--configure-a365-observability, -ConfigureA365Observability): setup grants the delegated Agent365.Observability.OtelWrite permission, checks the agent's token, then switches export on. --diagnose reports it and Microsoft's E7/Agent 365 licence condition. Run for real against a licensed tenant, on a build that also had the sandbox (see the verification record): Agent 365 accepted every span, with content suppressed.
  • The Copilot SDK harness (entrabot command, src/entrabot/harness/), from PR #122 by Jacob Lyons and Rick Rybinski, merged with every original commit.
  • scripts/register_agent_instance.py: opt-in registration in the Agent 365 registry (Agent Registry API, Graph beta), dry run by default. Not run against a tenant.
  • Outbound recipient policy (entrabot.security.recipients), enforced in the server for send_email, create_chat, add_teams_member, share_file and the daily summary; ENTRABOT_OUTBOUND_ALLOW and ENTRABOT_HOME_DOMAINS.
  • Releases: tags vX.Y.Z with a GitHub Release, the latest one being the production version; main is development, and trial versions are pre-releases (vX.Y.Z-rc.N). RELEASING.md has the steps.
  • The agent reports its version: whoami (version), and an "Entrabot version" check first in --diagnose and the status report (version in --json), which warns, without failing, when the folder is not on a release tag.
  • An "Agent sponsor" check in --diagnose: it warns when .env names a sponsor who is not among the Agent Identity's sponsors in the directory (which is what the server trusts), and when the agent cannot read a sponsor's user record.
  • ENTRABOT_TOKEN_MAX_AGE_SECONDS (default 600): the server re-acquires its token this often, bounding how long a disabled agent keeps acting.
  • Rename-safe agent matching through canonical ENTRABOT_AGENT_UPN with object-ID fallback.
  • Boundary-owned XPIA envelopes for model-facing Teams, email, Files, and Work IQ content.
  • read_email, read_interactions, and bootstrap_body_state, bringing the MCP surface to 37 tools.
  • list_workbook_worksheets and read_workbook_range for bounded, read-only Excel access through Microsoft Graph, bringing the MCP surface to 39 tools.
  • Work IQ Excel adapter with read_excel_workbook, create_excel_workbook, add_excel_comment, and reply_to_excel_comment, bringing the MCP surface to 43 tools. Work IQ setup now adds mcp_ExcelServer and requests McpServers.Excel.All.
  • Windows status tooling and expanded Windows setup/teardown guidance.
  • Windows setup wizard. scripts\setup-windows.cmd is now the single entry point and can be double-clicked. It runs on the Windows PowerShell 5.1 that ships with Windows and needs no administrator rights, PowerShell 7, winget, or pre-installed Python or Azure CLI: it finds Python or downloads a private copy, checked against a pinned SHA-512 checksum and the Python Software Foundation's signature, builds .venv, and starts python -m entrabot.winsetup, which signs in (browser, or device code in a remote session), creates or joins the agent, sets sponsors, offers local or cloud memory, shows a review screen before changing anything in the tenant (saying so when it installed the Azure CLI before that), and tests the result. -Yes plus parameters runs it unattended; -Diagnose checks an existing setup and changes nothing. Exit codes are 0, 1, 2 (usage), 3 (set up, something to check), 130 (cancelled).
  • start-entrabot.cmd starts the agent in Claude Code on Windows, bringing the supported operator commands to 46.
  • scripts\prereqs-windows.ps1 -WithGit and -WithClaudeCode install Git for Windows and Claude Code for the current user without administrator rights or winget, verifying the Git download's signature before running it.
  • entrabot.platform.wincert, the Windows certificate and key lifecycle: create with a non-exportable key (TPM first), find, test-sign, and delete together with the key.
  • blueprint_certs.remove_key_credential removes one machine's certificate from a Blueprint, keeps the others, and confirms by read-back. register_windows_blueprint_cert.py --sha1 registers a certificate straight from the certificate store.
  • The Windows setup wizard's licence walkthrough. After the end-to-end test, when the agent has no licence that includes Teams (or no Microsoft 365 Copilot licence while Word, Excel and OneDrive files are switched on), it shows what the organization has, gives the agent a free licence on a yes, or says who can add or free one and where in the Microsoft 365 admin center, then checks again when the person says that is done. Unattended runs only read what the organization has and say what to do on the last screen.
  • create_entra_agent_ids.py --licence-report (read-only) and --assign-licence <sku-id> handle the Agent User's licence on their own, with the Provisioner's token and the full run's own assignment steps, and print ENTRABOT_RESULT= lines.
  • The Windows setup wizard's last screen and start-entrabot.cmd say what Claude Code asks the first time it opens the folder, and the last screen lists things to try, matched to the agent's licences and to whether Word, Excel and OneDrive files are on.
  • The setup wizard on macOS and Linux. ./scripts/setup.sh is now a small bootstrap that needs only Python 3.12 or later: it builds .venv (with the provisioning extra, reinstalled only when pyproject.toml changes, recorded in .venv/.entrabot-setup-stamp) and starts the same wizard Windows runs, with the same numbered steps, a suggested answer for every question, a review screen before anything changes, and a last screen that says what is set up, what needs attention and why, how to start the agent, what Claude Code asks the first time, and things to try. It needs no az login, Git or Azure CLI first: the wizard signs in itself (the browser on a Mac unless over SSH, and on Linux when there is a display; otherwise a sign-in code, or --device-code), and offers to install a private Azure CLI (azure-cli>=2.92.0,<3, with pip) under ~/.entrabot/tools/azure-cli, with no sudo or Homebrew. Messages name this system's commands and flags. New flags: --yes/-y, --sponsor=, --tenant=, --device-code, --hosts=, --location=, --subscription=, --verbose, --log-file=, --rotate-cert. The licence walkthrough and Word, Excel and OneDrive files work as on Windows. Run end to end against a real tenant on Ubuntu 24.04; on macOS only a repair run and the health check.
  • entrabot.platform.keycert, the macOS and Linux certificate and key lifecycle, with the same functions as wincert: one Keychain or keyring item per certificate (service entrabot-blueprint-cert, named by the certificate's SHA-1 thumbprint, holding the private key and the certificate together, plus an index item), so two agents on one account no longer overwrite each other's key. A key is used only once it has signed for its certificate, deleting a certificate deletes its key, and a key store that cannot be read is an error with what to do, never a fallback to a file. .env names the certificate in ENTRABOT_BLUEPRINT_CERT_SHA1 (and ENTRABOT_BLUEPRINT_KSP) on macOS and Linux too, and the agent signs with the key stored with it, failing closed when the key store cannot be read. Setup checks the key store first ("Checking this computer") and stops before anything is created when there is no usable one.
  • Certificate rotation on macOS and Linux: ./scripts/setup.sh --rotate-cert, with the same steps and exit codes as deploy-windows.ps1.
  • ./scripts/teardown.sh disconnects this computer by default, with the wizard's teardown (the same as teardown-windows.ps1): --delete-agent, --purge-data, --keep-setup-credential, --yes, --verbose, --log-file=.
  • start-entrabot.sh starts the agent in Claude Code on macOS and Linux, bringing the supported operator commands to 47. Setup's last screen names it and, at a terminal, offers "Start your agent now, in this terminal?".
  • On macOS and Linux, ./scripts/setup.sh --diagnose checks that the certificate .env names is present, in date, and that its key signs; ./status.sh (show_agent_status.py's "Local certificate" check) and the agent itself check that it is present with its key and in date. All three warn within 30 days of expiry.

Changed

  • The Agent User's storage token is kept until shortly before it expires, instead of a full three-hop sign-in for every blob operation (#130).
  • The test suite uses its own data folder, so it no longer writes into the developer's ~/.entrabot/data, which setup's memory migration can upload (#139).
  • The storage guide and the install pages say that one agent on two computers with local memory answers every message on both, and that cloud memory or one computer at a time avoids it.
  • The install commands clone the latest release (git clone --branch v0.2.0 ...) instead of main, and the ZIP download is the release's. "Upgrading to a new release" in Migrations and upgrades has the steps for an existing install (git fetch --tags, git checkout vX.Y.Z, setup again).
  • The daily summary goes to every directory sponsor of the Agent Identity whose user record gives an address, instead of .env's ENTRABOT_HUMAN_USER_MAILS; .env is used only when the directory gives no address. The recipient policy still applies, and the result says which source was used (recipient_source).
  • With telemetry on, Entrabot switches off the OpenTelemetry Distro's own calls to Azure Monitor (its usage statistics to Application Insights and its settings lookup at settings.sdk.monitor.azure.com) by setting MICROSOFT_OTEL_SDKSTATS_DISABLED, APPLICATIONINSIGHTS_STATSBEAT_DISABLED_ALL and APPLICATIONINSIGHTS_CONTROLPLANE_DISABLED to true unless they are already set. Entrabot never switches on the distro's Azure Monitor export.
  • Breaking: share_file and add_teams_member no longer reach an address outside the agent's tenant unless it is a sponsor, a member of the requesting chat, or in ENTRABOT_OUTBOUND_ALLOW; send_email and create_chat likewise, and the daily summary is not sent to such an address.
  • send_teams_message, send_card, post_thinking_placeholder and create_chat write their audit event before acting and refuse when it cannot be written. Every audit event is fsynced and carries origin (system, or model for audit_log).
  • The runtime's .env loading is layered for the harness (~/.entrabot/global.env, ENTRABOT_ENV_FILE, the clone's .env, ~/.entrabot/.env, ./.entrabot/.env); with a clone .env and no global.env it behaves as before.
  • Windows setup signs in to Microsoft through the browser instead of the Windows account sign-in window (the Web Account Manager), which on a PC its organization does not manage asked at every sign-in whether to remember the account and manage the device. Every az the Windows tooling and the provisioning scripts start gets AZURE_CORE_ENABLE_BROKER_ON_WINDOWS=false unless you set it yourself. A sign-in made the old way is not found, so setup asks you to sign in once more.
  • Windows setup no longer offers an earlier sign-in that Microsoft no longer accepts (the organization ended the session, or it was made through the Windows account sign-in window): it checks with a real request to the directory, since the Azure CLI goes on listing such an account, removes that sign-in from the Azure CLI (az logout), and asks you to sign in again. Removing it first matters: the CLI keeps a day-long Microsoft Graph token in its cache and a new sign-in does not replace it, so setup failed at "Connecting setup to your tenant" straight after a successful sign-in. If the directory still refuses a sign-in made that minute, setup clears the CLI's cache (az account clear), asks once more, and otherwise stops before changing anything. A session that ends while setup is running is reported as that, not as missing administrator rights.
  • Breaking: scripts\prereqs-windows.ps1 is no longer a required step and installs nothing by default. It installs extras only on request (-WithGit, -WithClaudeCode, -WithWorkIq, -WithBuildTools). Visual Studio Build Tools are needed only when a package has to be compiled. Windows setup no longer needs the .NET SDK, the a365 CLI or PowerShell 7, Word, Excel and OneDrive files included.
  • Breaking: the status report (show_agent_status.py, and so status.sh and status-windows.ps1) shows certificate thumbprints by their last four characters (…B3C4) in text and in --json, unless --full-thumbprints is given (-FullThumbprints for status-windows.ps1, --full-thumbprints for python -m entrabot.winsetup status). The JSON field names are unchanged, but these values are now the shorter form by default: provisioner.cert_thumbprint, blueprint.cert_thumbprint, state.PROVISIONER_CERT_THUMBPRINT, state.BLUEPRINT_CERT_THUMBPRINT, key_credentials[].computedThumbprint and key_credentials[].customKeyIdentifier. The Certificate check's warning names the local certificate the same way, instead of by its first 16 characters.
  • Breaking: scripts\teardown-windows.ps1 now disconnects this PC by default: it removes this PC's certificate from the Blueprint and deletes it locally with its key, selected by thumbprint rather than by subject, and retires this PC's setup (Provisioner) certificate, removing it from the Provisioner app and deleting it locally with its key, unless another Entrabot agent on the PC still needs it or -KeepSetupCredential is given. It no longer deletes %LOCALAPPDATA%\entrabot unless -PurgeData is given, and -DeleteAgent deletes the agent itself.
  • scripts\deploy-windows.ps1 rotation keeps the current certificate in use until the new one has signed the agent in, and reports 0 rotated, 1 failed, or 3 rotated with cleanup pending. scripts\setup-windows.ps1, deploy-windows.ps1, teardown-windows.ps1 and status-windows.ps1 all run on Windows PowerShell 5.1; status-windows.ps1 no longer installs anything.
  • On Windows, the TPM is chosen by creating a key and signing with it instead of asking Get-Tpm, the key is non-exportable in the software key store as well, and the certificate carries no TLS usages. The Provisioner key is stored the same way; an existing Provisioner PEM file under %LOCALAPPDATA%\entrabot is replaced and deleted the next time setup runs.
  • The Windows setup wizard adds each chosen sponsor on the agent's directory object, which is the list the agent obeys at runtime, and never removes one. When joining or continuing an agent with no sponsor named, it adds nobody and lists the current sponsors.
  • add_agent_sponsor.py and remove_agent_sponsor.py accept an Entra object ID as well as an address.
  • Status output colours its PASS/WARN/FAIL labels only on a terminal that can draw colour, and honours NO_COLOR. status-windows.ps1 in a folder that is not connected to an agent says so in one line (a small JSON object with -Json) and exits 1.
  • Claude Code hooks run through one cross-platform launcher (scripts/hooks/run-hook.sh), pinned to bash, with a 20-second timeout. The two gates now block when the hook cannot run. Claude Code on Windows needs Git for Windows for these hooks.
  • A second Entrabot server on one Windows PC now exits, as on macOS and Linux; before, the single-instance lock did nothing on Windows.
  • .gitattributes pins .cmd, .bat and .ps1 files to CRLF and .sh files to LF.
  • Blueprint, BlueprintPrincipal, and Agent Identity creation now use the dedicated Microsoft Graph v1.0 subtype endpoints; Agent User creation remains on beta.
  • The public docs site was reorganized into nine task-oriented sections; plans, specs, and investigations were moved to non-published engineering-history/; source-audited MCP and script references were added; and legacy URLs redirect to current pages.
  • GitHub Pages builds run in strict mode.
  • Breaking: Work IQ Word and ODSP tools no longer return raw. read_word_document now returns comments as a wrapped string, plus drive_id, document_id, and sensitivity_label; create_word_document adds drive_id and item_id.
  • Breaking: get_a365_file_metadata_by_url now returns name inside the XPIA envelope. Work IQ ODSP tools raise a typed error when Work IQ reports isError, instead of returning empty fields.
  • add_word_comment returns a warning when Work IQ reports success without a comment ID.
  • ENTRABOT_FILES_MAX_TEXT_BYTES falls back to the default, with a logged warning, for a zero, negative, or unparseable value. A negative value used to disable the cap.
  • ENTRABOT_FILES_DENIED_SITES is now checked against the site Graph reports for the item in list_workbook_worksheets, read_workbook_range, read_excel_workbook, add_excel_comment, and reply_to_excel_comment, and these refuse the request if the site can't be confirmed. Those checks only run when a denylist is set. The denylist is not enforced by the Work IQ Word and ODSP tools, and read_file and add_file_comment still check the site_id the caller supplies.
  • scripts/spike_a365_work_iq.py now validates both Word and Excel, including their scope and audience.
  • With cloud memory, the watched-chat list and email cursor now live in the storage container instead of local files, so instances on one container share them and a machine moved to another container can't carry over stale values. Upgrading a cloud deployment: on first boot the email cursor starts at "now", so mail received before that first boot isn't pushed but stays readable through read_email; after that, a restart reuses the cursor and mail received during downtime is pushed as normal. The watched list comes from the cloud copy plus auto-discovery, and old local watched_chats and email_cursor.txt files are ignored and can be removed by hand. Upgrade every instance on a container together. See "Upgrading to shared poll state" in Migrations and upgrades.
  • Chat auto-discovery reads every page of /me/chats, up to 20 pages. A chat first seen through discovery or the shared list surfaces its newest message only if it is under 24 hours old.
  • Setup's cloud-memory migration no longer copies local poll state: the watched-chat list, both email cursor files, the legacy chat_id key, and the per-chat cursors under chat_cursors/. A machine's copies may be stale or belong to another agent, and a copied cursor would skip the 24-hour first-sight check.
  • Breaking: scripts\prereqs-windows.ps1 -WithWorkIq is optional, and Windows setup does not use it. It installs Microsoft's Agent 365 CLI for using it yourself, for the current user only, with no administrator rights and no winget for .NET or the CLI; it is no longer installed as a global dotnet tool. An a365 that already runs, or a .NET SDK 8 or later already on the PC, is used as it is; otherwise the .NET 10 SDK is installed with Microsoft's dotnet-install.ps1 (run only when its signature is valid and from Microsoft Corporation) into %LOCALAPPDATA%\entrabot\tools\dotnet, and a365 with dotnet tool install --tool-path %LOCALAPPDATA%\entrabot\tools\a365 --allow-roll-forward. Neither is put on PATH; to run that a365, set DOTNET_ROOT to the .NET folder first. PowerShell 7, which one a365 step needs, still comes from winget, and only when it is missing.
  • What a Microsoft 365 product gives the agent is read from its service plans (Teams, mailbox, files, Microsoft 365 Copilot), in setup's check before it creates the agent, on every system: a "(no Teams)" suite and meeting-room and shared-device licences no longer count as including Teams. The part-number list is the fallback when Graph lists no service plans. Products are shown by the names the admin center uses, or a readable form of the part number for ones Microsoft's reference does not list, never the raw part number.
  • Windows setup switches on Word, Excel and OneDrive files (Work IQ) by itself, without Microsoft's Agent 365 CLI: no .NET SDK, no PowerShell 7 and no Windows sign-in window, so it works over SSH and unattended (-ConfigureA365WorkIq). The wizard explains them, and the Microsoft 365 Copilot licence the agent then needs, before asking. After the end-to-end test, instead of at the step that creates the agent, setup writes the three Work IQ servers into ToolingManifest.json from the package's catalog (entrabot.a365.catalog), keeping entries it does not own; gives the agent's Blueprint the permissions they need with ensure_a365_work_iq_permissions.py; and checks, as the agent, that its token for each audience carries the scopes, trying for about two minutes because Microsoft can take a little while to honour new permissions. A failure there never stops setup: the rest of setup is done, ToolingManifest.json is put back the way it was, and the last screen says why in plain words, with the log's path (exit 3). When Microsoft has not started honouring the permissions in that time, the last screen says so and how to check later (exit 3). -Diagnose runs the same check of the agent's tokens. Windows setup no longer writes a365.config.json, which only the Agent 365 CLI reads.
  • ensure_a365_work_iq_permissions.py also sets the Blueprint's inheritable permissions for the Work IQ resources, which the agent's token needs: with the permission grants alone, its token request fails with AADSTS65001. A new entry is least privilege (only the scopes Word, Excel and OneDrive files need, and no app roles). Entries are written one at a time and each is read back before the next, with a final check that writes again any entry that was lost, because Microsoft Graph can accept two quick writes and keep only one. An entry that already covers the scopes, such as the one the Agent 365 CLI writes, is left alone, and none is ever narrowed. Its resources and scopes now come from the package's catalog, the same source as the manifest setup writes. Setup runs it on every system.
  • The package's Work IQ catalog gives the Word server the scope and audience the service uses (Tools.ListInvoke.All on the Work IQ Word app), and the Excel and OneDrive/SharePoint servers the Agent 365 Tools app as their audience.
  • A365ManifestNotFoundError says in plain words that Word, Excel and OneDrive files are not switched on, and how to switch them on on each platform.
  • Breaking: ./scripts/teardown.sh with no options, or with only --yes, now disconnects this computer only. Before, ./scripts/teardown.sh --yes deleted the agent's whole chain from the tenant. Add --delete-agent to delete the agent. The older tenant-wide teardown (the whole chain, the Provisioner app recorded for this machine, and local state) runs only with --tenant-wide or one of its own flags (--agent-user-upn=, --dry-run, --preserve-provisioner, --preserve-local-state), and the two sets of options cannot be mixed (exit 2). It also deletes this agent's own key store item now.
  • Breaking: ./scripts/setup.sh exit codes are the wizard's: 0 done, 1 failed, 2 usage or a missing answer under --yes, 3 set up with something to check, 130 cancelled. A failed copy of memory to the cloud is now 1 (it was 2). An unknown option is an error (exit 2); it used to print the help and exit 0. A storage option without --use-cloud-memory is an error too.
  • ./scripts/setup.sh with no options now asks which agent to set up (or, on a computer already set up, offers to continue or repair, set up a different agent, or only run a health check); it used to need --new or --use-blueprint. At a terminal, a command with options still asks the remaining questions and shows the review screen; --yes asks nothing. Without a terminal it never asks. Every option it took still works.
  • ./scripts/setup.sh --teams-user=EMAIL is now another spelling of --sponsor=EMAIL, and the person is also added as a sponsor of the agent on its directory object, the list the agent obeys; before, it only wrote .env. --switch-user asks for a new sign-in and no longer changes the sponsor by itself.
  • ./scripts/setup.sh --with-a365-work-iq is now the same as --configure-a365-work-iq and prints a note; --a365-agent-name= is accepted and ignored. Setup switches Word, Excel and OneDrive files on by itself on macOS and Linux, as on Windows: no Agent 365 CLI, no .NET SDK, no PowerShell 7 and no a365.config.json.
  • ./scripts/setup.sh replaces only its own lines in .env; lines added by hand are kept. It installs the provisioning extra into .venv, not dev.
  • A macOS or Linux computer set up before the wizard (its key alone in the account's single entrabot / blueprint-private-key item, no SHA-1 in .env) keeps working unchanged. The next ./scripts/setup.sh keeps that key and, when its certificate is on the agent's Blueprint, stores the two as the agent's own item, creating and registering nothing new. The older item is left in place, and teardown deletes it only when it holds the same key. Rotation and the default teardown ask for one such setup run first.
  • Setup on macOS and Linux handles a refused sign-in as Windows does: an earlier Azure CLI sign-in is offered only after a real directory request accepts it, one that is refused is removed (az logout --username) before signing in again, and a session that ends while setup is running is reported in plain words.
  • register_windows_blueprint_cert.py is used on every system by the setup wizard and rotation (it keeps its name). Off Windows, --sha1 reads the certificate from the Keychain or keyring, and --remove-all-existing-certs replaces every certificate on the Blueprint. verify_blueprint_cert.py is used by setup on every system; find_local_blueprint_cert.py and register_blueprint_cert.py are no longer run by setup.
  • scripts/prereqs-macos.sh installs only the Xcode Command Line Tools, Python 3.12+, Git and the Azure CLI by default; --with-a365-cli adds the .NET SDK, the Agent 365 CLI and PowerShell 7. --core-only, --skip-a365 and --skip-pwsh are still accepted. It is optional: setup needs only Python.

Fixed

  • After a restart, the email poll no longer pushes again a message received in the same second as its cursor (#6).
  • Cloud-memory setup reuses the tenant's storage account when it is in another resource group, such as one made under the project's earlier name, instead of failing on the account name (#131).
  • Setup's review said "continue with" the Agent User that .env or the state file last named, even when --agent-user-upn named another or the agent step was about to choose the Blueprint's own. It now shows the Agent User this run is for.
  • whoami, --diagnose and the status report showed the version as "unknown" on every install: they asked for the wrong distribution name. Found before release, on Linux.
  • The Word and Excel tools raised a raw network exception when a request to Work IQ failed before an answer (connect, proxy, timeout), instead of their documented {"error", "error_type"} reply. Found running create_word_document on Linux.
  • Joining an agent by its Blueprint App ID (--use-blueprint, -UseBlueprint on Windows) with no Agent User named looked only for an Agent User called entrabot-agent@<domain>. When the agent had another name, setup created a second Agent Identity and Agent User under the Blueprint and connected the computer to that new, unlicensed agent. Setup now uses the Blueprint's Agent User: the one recorded on the computer, or else its only one. When it has several, setup stops and lists them; name one with --agent-user-upn (-AgentUserUpn). Found joining a Linux-created agent from Windows.
  • On Windows, after winget installed the Azure CLI, setup said "winget did not install the Azure CLI (exit 0)" and installed a private copy as well, which takes several minutes. It looked up ProgramFiles in an environment whose names Windows had spelled in capitals.
  • read_file didn't follow Graph's redirect to a file's download URL, so a .txt, .md or .html file read back empty and PDF and Word files failed. Found in a real end-to-end run.
  • With console telemetry on (ENTRABOT_A365_CONSOLE_ENABLED), spans were printed to standard output, the MCP protocol channel. They now go to standard error.
  • Setup's consent step extended the first delegated grant it found on the Agent Identity, which could be another resource's (Azure Storage for cloud memory, a customer's own API), instead of the Microsoft Graph grant. Graph was then left without the agent's scopes, so its token lacked User.ReadBasic.All and the others and the sponsor lookup got 403. Run setup again on an install set up before this fix (--diagnose's "Agent sponsor" check shows it).
  • ./scripts/setup.sh and ./scripts/teardown.sh take an option's value after a space as well as after = (--log-file /tmp/setup.log). On a real macOS run the space form was refused as an unknown option, although the help lists the option. An option left without its value is a usage error (exit 2).
  • Setup, the health check, rotation, teardown and status stop before anything when the code they run is one copy of the project and --project-root names another copy (exit 2). The runtime reads .env from the folder its code is in, so the two silently disagreed: a health check of a folder that was set up said "Agent User credentials not configured". The message names both folders and how to run it from the right one. A .venv whose editable install was re-pointed at a git worktree is caught the same way.
  • Teardown keeps this computer's setup (Provisioner) certificate when the same agent has another certificate in this account's key store, as it does when it is set up in a second folder on the computer (every platform). On a real Linux run, disconnecting one of two folders retired the setup certificate, and the other folder's ./status.sh stopped with "Provisioner certificate private key is missing locally" until setup was run there again. The report says why it was kept and how to remove it by hand.
  • scripts/deprovision_blob_storage.py could not delete a container: it passed --yes to az storage container delete, which does not take it, and used a data-plane command that needs a blob data role. It now deletes the container the way provision_blob_storage.py creates it (az storage container-rm).
  • Setup's first step names the computer's system as its owner would (Ubuntu 24.04.5 LTS, macOS 15.6) instead of the kernel's build string, and the sign-in step shows the tenant's name when the Azure CLI gives none (after a sign-in with a code and a tenant) instead of its ID.
  • setup.sh failed on a machine that had never run it (ModuleNotFoundError: No module named 'entrabot' at "Bootstrapping Entra provisioner app"): with no .venv yet it started the provisioning scripts with the system Python, before the project was installed anywhere, and its pip install into the system Python was refused on distributions that manage it (PEP 668) while the step still reported success. Setup now creates .venv and installs the project and its provisioning dependencies there first, runs every provisioning script with it, installs nothing into the system Python, and stops with pip's own message if an install fails.
  • On macOS and Linux, the first setup on a machine could stop with a traceback at "Creating Entra Agent Identities" (AADSTS700027), because the next script asked Microsoft Entra for a token seconds after the Provisioner certificate was registered. The provisioning scripts now wait for Entra to accept a new certificate, as the Windows path already did.
  • Granting the Work IQ permissions failed on a new agent (patch Agent 365 Excel tools OAuth grant failed (404)), so Word, Excel and OneDrive files were never switched on: the three Agent 365 tools permissions share one grant, and each was added with its own write to a grant created moments before. ensure_a365_work_iq_permissions.py now writes each resource's permissions in one request and tries again when Microsoft Graph cannot yet update a new grant. Affects macOS and Linux setup too.
  • A failed Work IQ step stopped Windows setup at the step that creates the agent (exit 1), before this PC's certificate, settings and assistant registration, and running setup again hit the same step.
  • The Teams licence list counted two products that do not include Teams (M365_E5_SUITE_COMPONENTS, Microsoft 365 E5 Extra Features, and Teams Premium, an add-on to Teams) and missed common ones, among them Microsoft 365 Business Premium's real part number (SPB), Business Basic, Teams Essentials (Teams_Ess) and the current Teams Enterprise.
  • setup-windows.ps1 -NewChain, -UseBlueprint and -UpnSuffix were passed to a helper that ignores command-line arguments, so they had no effect: in a tenant that already had an Entrabot agent, setup could attach to that agent instead of creating a new one. The wizard now passes them the way the helper reads them.
  • On Windows a standard user always got a software key, because Get-Tpm returns blank values without elevation. Keys are now created in the TPM when it accepts them, with no elevation.
  • The Windows Provisioner private key is no longer written to disk as a PEM file.
  • Windows certificate rotation was rebuilt. The previous flow removed the old certificate in the same write that added the new one, leaving no working certificate while Microsoft Entra took up the new one, and its smoke test signed with the old certificate rather than the new one.
  • Deleting a Windows certificate now deletes its private key as well, instead of leaving it in the key store.
  • .env on Windows is restricted by replacing its access list with a single entry, and setup reports the file as private only after reading the permissions back. icacls /inheritance:r left explicit entries for other accounts in place.
  • The Claude Code hooks called python3, which a standard Windows Python install does not provide, so the gates could not run on Windows.
  • The daily summary could never be archived, and so never sent, on Windows with local memory: storage wrote text in the system code page and translated line endings. Storage now writes UTF-8 with LF on every platform.
  • A byte-order mark at the start of .env no longer hides its first key.
  • The persona-sati token command can be a .ps1, .py or .cmd file, or a command with arguments, on Windows.
  • Windows health checks no longer fail for the wrong reason: the certificate check looks in the Windows certificate store, and remediation text names scripts\setup-windows.cmd.
  • The Windows provisioning helper no longer routes Graph URLs containing parentheses through az.cmd.
  • The Windows setup wizard finds a sponsor whose address is not their sign-in name, such as a personal Microsoft account that administers the tenant (its directory sign-in name is the #EXT# form and its mail field is empty). When more than one person matches it lists them instead of picking one.
  • Two instances on one container can no longer push the same email: each poll claims its window of mail with a compare-and-swap before pushing.
  • A failed Graph read during a chat's bootstrap no longer leaves it with no watermark, which could push up to 10 old messages on the next cycle.
  • bootstrap_body_state reports the real watched-chat count on a cloud backend, and null rather than 0 if the list can't be read (#64).
  • scripts/catch_up.py reads the configured backend instead of a hardcoded home-directory path.
  • Channel pushes now mark outside content as data. A Teams push lost the XPIA envelope to the push sanitizer and an email push never had one, so wrap_for_channel writes a bracket form a push can carry. A verified sponsor's Teams message stays outside the envelope, and all email is wrapped. Sender names and subjects on an email push also lose their angle brackets, as a Teams push already did.
  • Attaching a machine with setup.sh --use-blueprint no longer removes other machines' Blueprint certificates: it adds to the list, and --remove-all-existing-certs is the only way to replace it. That flag removes certificates only and does not delete the Blueprint. deploy-windows.ps1 rotation also keeps other machines' certificates (#124).
  • setup-windows.ps1 now registers the Blueprint certificate it generates; before, a fresh Windows machine held a certificate Entra had never seen and failed at Hop 1. Re-running setup registers an existing local certificate the Blueprint lacks, other machines' certificates are kept, and the .env thumbprint lines are replaced instead of appended.
  • setup-windows.ps1 now writes the Blueprint, agent and Agent User IDs and a default sponsor to .env. The runtime reads identity only from the environment and .env, so a machine set up with it before had no identity to sign in with.
  • Re-running setup-windows.ps1 no longer moves a machine from cloud memory to local memory. Without -UseCloudMemory it added ENTRABOT_KEEP_MEMORY_LOCAL=true, which outranks the blob settings; the memory lines are now replaced instead of appended, and a machine already on cloud memory stays there. A blob provisioner that prints no endpoint now falls back as intended instead of stopping setup.
  • A failed Graph read can no longer look like an empty certificate list. verify_blueprint_cert.py and find_local_blueprint_cert.py exit 3 for "could not check", list_blueprint_certs.py exits non-zero and prints no count, and setup stops instead of regenerating.
  • register_blueprint_cert.py keeps a new Blueprint private key under a temporary keystore entry until its certificate is confirmed on the Blueprint, so a failed upload no longer strands the machine.
  • Setup no longer trusts the thumbprint cached in the state file. It reuses this machine's certificate only when the one .env names is in the key store, in date and able to sign, and verify_blueprint_cert.py finds it on the Blueprint. A registration that could not be confirmed keeps the certificate and records it, so the next run checks again instead of creating another. --remove-all-existing-certs deletes this machine's earlier certificate only once the replacement is confirmed.
  • An expired Blueprint certificate is no longer reused: setup creates and registers a new one (the expired entry stays on the list), and find_local_blueprint_cert.py and register_blueprint_cert.py's pending-key recovery treat it as no match. Two register_blueprint_cert.py runs by the same OS user can no longer overlap and clobber the shared pending key, and the state file is written atomically so a full disk can't leave it truncated.
  • Re-running setup.sh for the same Agent User no longer changes the sponsor or moves an agent on cloud memory to an empty local store. Setup reads the existing .env first and keeps the sponsor (ENTRABOT_HUMAN_*) unless --sponsor (or --teams-user) is given, and keeps the blob settings unless --keep-memory-local or --use-cloud-memory is given; a plain repair run gives neither. A failed blob provisioning now shows the provisioner's output and keeps the cloud settings, or asks whether to continue on local memory, instead of ending setup silently. A run for a different Agent User carries nothing over.
  • Self-authored Teams messages remain filtered after an Agent User display-name change.
  • Forged <external_content> text can no longer bypass the authoritative XPIA boundary.
  • A UTC-midnight-dependent test no longer fails intermittently on Windows CI.
  • Work IQ Word and ODSP tool output now passes model-facing content only through the XPIA boundary, and Word comments are no longer dropped from the parsed result.
  • teardown-windows.ps1 no longer takes a certificate off the Blueprint just because .env names it. A certificate that is not in this PC's certificate store may be another PC's (a copied or shared .env), so it is left on the Blueprint: with -Yes it is left and reported, and interactively you are asked, default No. A certificate left behind by an interrupted rotation (ENTRABOT_BLUEPRINT_CERT_RETIRING_SHA1) is cleaned up too. A private key that could not be deleted is reported as such, never as deleted, and teardown exits 1.
  • deploy-windows.ps1 refuses to rotate unattended without -Yes (exit 2), and removes the old certificate from the Blueprint only from a read of the list that shows the new one. If Microsoft Entra has not listed the new certificate yet, the old one is left and rotation exits 3; running it again finishes the cleanup.
  • The Windows setup wizard shows an older setup key it could not switch off in Microsoft Entra on screen in every mode, at the provisioning step and on the finish screen, with the last four characters of its thumbprint, its expiry date and the admin-center path, and finishes with something to check (exit 3). Before, the warning was only in the setup log unless -Verbose was given, and it did not change the exit code.
  • teardown-windows.ps1 removes the certificates that must come off the Blueprint (this PC's, and one an interrupted rotation left) in one write, through the new blueprint_certs.remove_key_credentials. Two removals in a row were two whole-list writes, and the second one's read could still list the first certificate and put it back.
  • The Windows setup wizard finds a sponsor whose sign-in name contains an apostrophe (o'brien@contoso.com): a search for the sign-in name now runs right after the direct lookup, which may not accept the apostrophe.
  • create_entra_agent_ids.py no longer reads a failed Agent Identity or Agent User lookup as "there is none". An HTTP error, a failed request, an answer it cannot read, or a partial list now stops the run before that object is created, instead of creating a second Agent Identity for the machine or an Agent User that then collided on its name. Each stop prints one ENTRABOT_RESULT= line naming its outcome just before its message.
  • The Windows setup wizard says why the agent step stopped (the Blueprint App ID does not exist in this tenant, Microsoft Entra could not be read, several applications have the agent's name, or the chosen name belongs to a different agent) instead of "The agent could not be created.". At the step that connects it to the tenant it says when the value in ENTRABOT_PROVISIONER_APP_ID_VERIFIED was not accepted, or when Microsoft Entra could not be read, instead of "Setup could not get the access it needs in your tenant.". The ENTRABOT_RESULT= lines it reads are kept off the screen; the setup log has them.
  • teardown.sh --dry-run with --agent-user-upn now does what its help said: it runs deprovision_entra_agent_identity.py --dry-run, which looks each chain up in Entra (read-only) and prints it, and exits 1 if that fails. Before, it exited before the lookup. In targeted mode the summary no longer lists the chain local state names, which a targeted teardown leaves alone. A UPN with an apostrophe no longer stops teardown.sh (it was trimmed with xargs).
  • teardown.sh shows why a delete failed. The Agent User, Agent Identity and Blueprint deletes threw their errors away; now az's message, or Graph's error and status, is shown, an Agent User az says does not exist is reported as already deleted, and each Graph delete gives up after 60 seconds. Why no Provisioner token could be had is shown too.
  • setup.sh no longer takes Python 3.9 for 3.12 or later: each candidate interpreter now checks its own version, where 3.9 >= 3.12 compared as decimal numbers was true.
  • The Windows setup wizard no longer hands the agent step an Agent User sign-in name that .env holds for another Blueprint after a switch to another agent was interrupted, whether setup is run again with -UseBlueprint or with no flags. It says so in setup.sh's words ("Not reusing the Agent User named in .env"); before, the agent step stopped with "belongs to a different Blueprint". A name given with -AgentUserUpn or -UpnSuffix still wins.
  • The health checks report an older setup key that is still waiting to be switched off, as an "Older setup keys" warning that does not change the exit code: scripts\setup-windows.cmd -Diagnose, which then ends "No check failed, but an older setup key still has to be switched off in Microsoft Entra (see above).", and show_agent_status.py on every platform (status-windows.ps1, status.sh). In a folder that holds only setup's note about such a key, status-windows.ps1 says the folder is not connected to an agent and which key is waiting, and exits 1.

Removed

  • Bot Gateway mode and its M365 Agents SDK dependency (ADR-006).
  • The unused Claude pull-request review workflow.
  • The Agent 365 CLI path from scripts/setup.sh: it no longer installs or runs a365 (a365 setup requirements, a365 develop add-mcp-servers, a365 setup permissions mcp), needs the .NET SDK or PowerShell 7, or writes a365.config.json.
  • The default .NET SDK, Agent 365 CLI and PowerShell 7 installs from scripts/prereqs-macos.sh (now only with --with-a365-cli).

Security

  • share_file and add_teams_member act only in the chat where a sponsor most recently messaged the agent, within a short time, so a chat ID and requester the model supplies are no longer enough. A sponsor's message in that chat during the server's session is required (#10).
  • A Work IQ JSON-RPC error's text is truncated and wrapped as external content before it reaches the model (#132).
  • status.sh and scripts/setup_delegated.sh no longer execute .env as shell code.
  • Continuous access evaluation is deliberately not requested: Microsoft documents it for users and single-tenant workload identities, not Agent Users, and it would lengthen token lifetime. See docs/architecture/security-boundaries.md.
  • Windows setup checks the Claude Code version. The two hook gates block a tool call when they fail to start only on Claude Code 2.1.295 or later; on an older version setup warns, prints the update command, and finishes with something to check (exit 3).
  • The Claude Code hooks read their input as UTF-8 on every platform, and the two gates block on any unexpected error, including input they cannot decode, instead of exiting 1. On Windows a non-ASCII character in the input crashed the hooks, and a non-ASCII profile path let local memory writes through.
  • On Windows the persona-sati token command must be an absolute path or a program on PATH. A relative path, or a program found only in the current folder, is refused, and a .ps1 script runs under the in-box Windows PowerShell, never a pwsh or powershell found by name.
  • When Windows setup moves off an older install's Provisioner key file, it now also removes that file's certificate from the Provisioner app, so a copy of the file stops working. If the removal fails, setup still finishes, says which certificate to remove (last four characters of its thumbprint, and its expiry) and where, and tries again on the next run.
  • Setup no longer takes over an existing app registration just because it is named 'EntraBot Agent ID Provisioner' (macOS, Linux and Windows). That app is granted tenant-wide Microsoft Graph permissions with admin consent, and app names are not unique. A machine with no Provisioner app recorded takes an existing one over only when an administrator has already approved it for every permission setup needs, or when nobody else can use it (you are its only owner or it has none, every credential on it is this machine's, and it asks for no other permissions). Otherwise setup stops before changing anything in Microsoft Entra, lists the apps it found and why it did not use them, and exits 1: delete or rename the app you don't recognise, or set ENTRABOT_PROVISIONER_APP_ID_VERIFIED to the application ID of the one you have checked, for that run. Microsoft Graph is identified by its well-known application ID, never by its display name. Earlier versions took over the first app whose name began with it; in a tenant set up with one, check that app's owners and credentials once (see "Setup will not take over an existing Provisioner app registration" in Setup and authentication troubleshooting).
  • teardown-windows.ps1 tries to remove an older setup key that setup could not take off the Provisioner app (PROVISIONER_CERT_REVOKE_PENDING) before it deletes the state file that records it. If that fails it lists the certificate and where to remove it by hand, and exits 1; when it keeps the setup certificate (-KeepSetupCredential) it leaves .entrabot-state.json holding only that note, so that setup's next run tries again.
  • create_entra_agent_ids.py reuses an existing Agent User found by its sign-in name only when its parent Agent Identity belongs to the Blueprint the run is for. Before, it took the Agent User and its Agent Identity whatever Blueprint they belonged to, granted consents, an app role and a licence on them, and recorded them beside the run's Blueprint; setup.sh --use-blueprint reached this on a machine switching agents, because the script read the previous agent's ENTRABOT_AGENT_USER_UPN from .env. An Agent User of another Blueprint now stops the run before anything is created, granted or recorded, and the message says how to join that Blueprint or choose another name; one whose Blueprint can't be read stops as "could not check".
  • Setup no longer hands the agent step an ENTRABOT_AGENT_USER_UPN that .env holds for another Blueprint when the machine switches agents. After that step it checks that the Blueprint it came back with is the one asked for, and otherwise stops before the certificate step.
  • scripts/setup.sh passes every option value to the wizard as an argument and never puts one into program text; the wizard checks that a Blueprint App ID, a short name, an address and a tenant are well formed before it uses them. Before, the --use-blueprint value went into Python source unchecked.
  • The tenant-wide teardown.sh no longer runs .env as shell code. It sourced the file, so a value holding $(...), backticks or ; ran as a command; it now reads the four IDs it needs as data, the way entrabot.config reads .env, and stops (exit 1) if .env is there but can't be read. It deletes an Agent User only by its object ID (az ad user delete --id also takes a sign-in name).
  • The tenant-wide teardown.sh no longer puts the Provisioner access token on a command line. It was written into the text of a python -c program, where any local user could read it from the process list; each Graph delete now gets it in the environment of that one command, and it is not exported to anything else. Object IDs, keys and paths reach Python as arguments, never as program text.
  • The tenant-wide teardown.sh (now --tenant-wide or one of its own flags) deletes only the Provisioner app recorded for this machine in .entrabot-state.json, by its application ID. It used to delete the first app registration whose name began with 'EntraBot Provisioner' and the first whose name began with 'EntraBot Agent ID Provisioner', which could be somebody else's. With no application ID recorded it deletes no app and prints how to delete this machine's by hand.

v0.1 — 2026-05-21

First public release. Reference implementation for Microsoft Entra Agent ID and Microsoft Agent 365 (GA 2026-05-01). MIT licensed. Research repo, not production-ready — see Known Limitations below.

Added

Identity & auth - Three-hop certificate chain: Blueprint → Agent Identity → Agent User. Private key in OS keystore (Keychain / Windows TPM via CNG / Linux Secret Service). No client secret in flight, no .env secrets on disk. - Three auth modes: agent_user (full three-hop), delegated (MSAL interactive), bot (Bot Framework + M365 Agents SDK). - Progressive identity state machine (UNAUTHENTICATED → DELEGATED → PROVISIONING → AGENT_USER). - Cross-tenant federated B2B chat — guest UPN auto-decoded, home tenant resolved via OIDC discovery. - Sponsor gate enforcement on every mutating tool (share_file, add_teams_member); requester must be an authorized sponsor of the chat.

Agent capabilities (34 MCP tools) - Teams: send, read, create chat, list/add members, watch replies, placeholder + resolve, delete own message, image view. - Outlook: send_email with thread-preserving replies, daily summary at 5pm PDT. - Files: resolve_file_url, list_recent_files, read_file, add_file_comment. - Agent 365 Work IQ Word: create/read documents, add/reply to comments. - Promises (durable across restart): add, list, resolve. - Identity: whoami, audit_log, on-demand daily summary.

Channel push & polling fallback - notifications/claude/channel push extension — Claude Code gets inbound Teams DMs and emails as next-turn system reminders. The Teams conversation IS the conversation with the agent. - send_teams_message auto-blocks on non-Claude-Code hosts (Copilot CLI, Codex, Cursor) for the sponsor's reply. Deterministic, host-detected, no parameter the model can disable.

Body prompt architecture - Non-overridable body prompt at prompts/agent_system.md with @include expansion of prompts/anatomy/*.md. Security, channel discipline, identity/tools rules load below the persona line. - Body-first instruction boundaries and channel discipline designed to reduce instruction-injection and operator-impersonation risk.

Mind / persona (optional) - Persona-sati MCP integration. Body composes body + persona at boot when PERSONA_SATI_MCP_URL is set. Clean fallback to body-only mode when persona-sati is unreachable.

Storage - ADR-005 Phases 1, 2, 5, 6a: opt-in cloud-hosted memory via Azure Blob. Per-Agent-User container, RBAC scoped to the agent's object ID. Local filesystem fallback.

Agent 365 Work IQ provider - Reusable entrabot.a365 provider boundary for Work IQ MCP servers (Word, Mail, Copilot, Dataverse). Manifest loading, audience-specific token acquisition, MCP-client calls. Teams intentionally remains Graph-native.

Discipline - 1,237 tests, ruff clean, 80% coverage threshold enforced. - 66 hard-won learnings (now archived at engineering-history/research/hard-won-learnings.md). - Full docs site at https://microsoft.github.io/entrabot/ with API reference, script reference, ADRs, platform learnings, and runbooks (the original structure; later reorganized — see Unreleased → Changed).

Known limitations

  • Windows port is acceptance-tested on one ARM64 VM only. (At that release; see Unreleased for the current Windows verification scope.) Verified end-to-end (cert provisioning, three-hop CNG signing, MCP registration, Teams DM round-trip) but not exercised on broad hardware, intel x64, or in long-running sessions.
  • Bot Gateway needs live Azure Bot Service registration. The local server + Dev Tunnel path works; the productized "bot has its own Teams app identity" path needs an Azure Bot resource and Teams app manifest signed in a tenant.
  • Persona-sati 12h MCP bearer refresh is open (draft PR persona-sati#47 paused at Agent Blueprint OAuth client constraints). Affects only sessions that connect to persona-sati after the 12h boundary; restart the MCP host to recover.
  • Agent Identity provisioning omits Application.Read.All, which wait_for_sponsor_dm needs to call the sponsors API. Manual grant required as a workaround until scripts/create_entra_agent_ids.py is updated.
  • add_file_comment on .docx files returns 404 on Graph beta /comments — Microsoft does not expose Word document comments there. Use the Work IQ Word path instead (add_word_comment / reply_to_word_comment).
  • CLI commitment-language detection is not enforced. Server-side detection fires on outbound Teams text; commitments made to the operator in the host terminal silently drift. Mitigation is body-prompt strengthening, not mechanical enforcement.

APIs may change in 0.x releases. Pin to a commit SHA or a release tag for stability.

Provenance

History was rewritten with git filter-repo before this release to remove pre-sanitization PII commits (real Microsoft employee names, emails, production tenant GUIDs, internal codenames). The repo went from private to public at this release. Commits before f2a3c18 no longer exist.