---
id: change/bcapps/10386
type: change
title: "#10386 [Agent Archiving] Prevent archived custom agents from being modified"
summary: Archived custom agents can now be viewed for auditing but are protected from modification across all authoring surfaces, blocking direct changes and closing persistence gaps in the agent card and instruction history.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - pageextension agent card
  - pageextension agent list
  - codeunit custom agent setup
  - page custom agent setup
  - page cust. agent instructions log
  - page agent instruction editor
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:51.429Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4543fdc956c32b7c7c2b579dfb6b0192a3f099d0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10386
    title: "microsoft/BCApps#10386: [Agent Archiving] Prevent archived custom agents from being modified"
    date: "2026-08-21"
    commit: 4543fdc956c32b7c7c2b579dfb6b0192a3f099d0
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/pageextension/4353
    - object/pageextension/4354
    - object/codeunit/4350
    - object/page/4350
    - object/page/4352
    - object/page/4363
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10386
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10386
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-21T19:00:57Z"
author: krupybalu
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 7
  additions: 90
  deletions: 4
  al: 6
apps:
  - AgentDesignExperience
objects_touched:
  - key: pageextension/4353
    page: pageextension/4353
    type: pageextension
    id: 4353
    name: Agent Card
    app: AgentDesignExperience
    status: modified
  - key: pageextension/4354
    page: pageextension/4354
    type: pageextension
    id: 4354
    name: Agent List
    app: AgentDesignExperience
    status: modified
  - key: codeunit/4350
    page: codeunit/4350
    type: codeunit
    id: 4350
    name: Custom Agent Setup
    app: AgentDesignExperience
    status: modified
  - key: page/4350
    page: page/4350
    type: page
    id: 4350
    name: Custom Agent Setup
    app: AgentDesignExperience
    status: modified
  - key: page/4352
    page: page/4352
    type: page
    id: 4352
    name: Cust. Agent Instructions Log
    app: AgentDesignExperience
    status: modified
  - key: page/4363
    page: page/4363
    type: page
    id: 4363
    name: Agent Instruction Editor
    app: AgentDesignExperience
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 620767
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10386 [Agent Archiving] Prevent archived custom agents from being modified

> Archived custom agents can now be viewed for auditing but are protected from modification across all authoring surfaces, blocking direct changes and closing persistence gaps in the agent card and instruction history.

[Pull request](https://github.com/microsoft/BCApps/pull/10386) · merged into `main` (BC30) on 2026-08-21 by krupybalu · 7 files (+90 -4), 6 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Archived agents are read-only on the configure agent page, with Update disabled
- The test agent page shows an error for archived agents instead of opening, because the same information is available elsewhere
- Closes two persistence gaps: the instruction drill-down from the agent card now opens read-only, and renaming a version in instruction history is guarded
- Test agent and Customize profile actions are disabled, and Set as current instructions is disabled in instruction history
- Every guard depends on the archived substate and treats the agent as not archived if the lookup fails, so working agents stay unaffected
- Behaviour changes for users or extensions.

## AL objects touched

- [Page extension 4353 "Agent Card"](../../objects/pageextension/4353.md), AgentDesignExperience: modified
- [Page extension 4354 "Agent List"](../../objects/pageextension/4354.md), AgentDesignExperience: modified
- [Codeunit 4350 "Custom Agent Setup"](../../objects/codeunit/4350.md), AgentDesignExperience: modified
- [Page 4350 "Custom Agent Setup"](../../objects/page/4350.md), AgentDesignExperience: modified
- [Page 4352 "Cust. Agent Instructions Log"](../../objects/page/4352.md), AgentDesignExperience: modified
- [Page 4363 "Agent Instruction Editor"](../../objects/page/4363.md), AgentDesignExperience: modified

## Context

- Work items: AB#620767
- Labels: AL: Apps (W1), Team: Integrations
- Systems: copilot

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
