[29.x] [Agent Archiving] Payables and Expense agent implementation for IAgentArchiving - #11195
Merged
Thaddeus Loke (thloke) merged 1 commit intoSep 10, 2026
Conversation
…tArchiving (#11040) ## What & why Honours the new `IAgentArchiving` interface, and opts Payables Agent and Expense Agent out of archiving. The Archive action is disabled on the Agent List and Agent Card for agent types that do not support archiving, and `Agent.Archive` blocks it programmatically so the guard cannot be bypassed. The check runs off the record the pages already hold, so it costs no extra read and cannot fail on an unsaved record. Payables and Expense opt out via their own `PA Agent Archiving` / `EA Agent Archiving` codeunits, mirroring how each app already registers `IAgentTaskExecution`, so they can be removed cleanly once each agent supports archiving. Both are single-instance: the setup record enforcing that is left behind by archiving, which would block creating a replacement. Behaviour is unchanged for every agent type that does not opt out. ## Linked work [AB#647379](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/647379) ## Related PRs Cross-repo change - merge in this order: 1. **BC-Platform** - the interface: https://microsoft.ghe.com/bic/BC-Platform/pull/46005 2. **BCApps** - System App honours it, Payables and Expense opt out (this PR): #10460 > Note: this PR will not build until 1 is merged and a platform version carrying `IAgentArchiving` flows through. --------- Co-authored-by: Balázs Krupinszki <bkrupinszki@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Copilot-Session: 9724257d-43d1-468b-9f97-1fb863d2fdd1
Thaddeus Loke (thloke)
temporarily deployed
to
triage
September 8, 2026 07:18 — with
GitHub Actions
Inactive
Thaddeus Loke (thloke)
enabled auto-merge (squash)
September 9, 2026 01:31
ventselartur
approved these changes
Sep 9, 2026
Prangshuman Das (t-prda)
approved these changes
Sep 9, 2026
Thomas Pedersen (thpeder)
approved these changes
Sep 10, 2026
Thaddeus Loke (thloke)
merged commit Sep 10, 2026
a19566c
into
releases/29.x
332 of 333 checks passed
Thaddeus Loke (thloke)
deleted the
backport/11040-agent-archiving-releases-29
branch
September 10, 2026 05:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Backport of #11040 to
releases/29.x.Honours the
IAgentArchivinginterface and opts Payables Agent and Expense Agent out of archiving. The Archive action is disabled for unsupported agent types, andAgent.Archiveenforces the same guard programmatically.Payables and Expense register dedicated archiving implementations that report archiving as unsupported. Existing behavior is unchanged for agent types that do not opt out.
Linked work
AB#647379
Backport
Cherry-picked the merged change from #11040:
c6d92043e9eb44b17427aa9cc91ae91a322b1f29The change applied cleanly with no conflicts or hand edits. Its stable patch ID matches the source PR exactly.
How I validated this
The original regression tests from #11040 are included unchanged.
git diff --checkpasses, and the backport has the same stable patch ID as the merged source change.Risk & compatibility
The corresponding platform support for
IAgentArchivingmust be present in the 29.x platform artifact. No schema changes are included.