---
id: change/bcapps/14848
type: change
title: "#14848 Payables Agent V2: make Item References read-only for the agent"
summary: The Payables Agent V2 profile now shows Item References as read-only, preventing the agent from opening an editable copy that it cannot close and causing task loops.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - profile payables agent profile
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-12-05T01:02:43.170Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f906f921b8119ceb7167b8a7ebb802b90f8b7833
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14848
    title: "microsoft/BCApps#14848: Payables Agent V2: make Item References read-only for the agent"
    date: "2026-12-04"
    commit: f906f921b8119ceb7167b8a7ebb802b90f8b7833
    t: null
    quote: The agent only reads Item References to look up a vendor item reference, so it never needs to edit the list.
links:
  learn: []
  objects:
    - object/profile/payables-agent-profile
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-profile-object
      title: Profile object
      label: possibly related
      why: Documents profile objects for customizing user experiences and controlling UI visibility.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-development-toolkit-permissions-profiles
      title: Set up agent permissions and profiles (preview)
      label: possibly related
      why: Documents setting up agent permissions and profile customization to control page access and actions.
      by: model
number: 14848
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14848
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-04T09:52:51Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 17
  deletions: 0
  al: 2
apps:
  - PayablesAgent
objects_touched:
  - key: profile/payables agent profile
    page: profile/payables-agent-profile
    type: profile
    id: null
    name: Payables Agent Profile
    app: PayablesAgent
    status: modified
objects_unjoined:
  - path: src/Apps/W1/PayablesAgent/app/Flows/Execution/AgentWorkspace/PAItemReferences.PageCust.al
    status: added
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659514
systems:
  - copilot
quote: The agent only reads Item References to look up a vendor item reference, so it never needs to edit the list.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14848 Payables Agent V2: make Item References read-only for the agent

> The Payables Agent V2 profile now shows Item References as read-only, preventing the agent from opening an editable copy that it cannot close and causing task loops.

[Pull request](https://github.com/microsoft/BCApps/pull/14848) · merged into `main` (BC30) on 2026-12-04 by ventselartur · 2 files (+17 -0), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added page customization PA Item References that disables modify, insert, and delete operations
- Applied customization only to Payables Agent Profile, leaving user views and V1 agent unaffected
- Agent evaluation tests showed 42 of 42 task stalls on Item References eliminated with this change
- Task pass rate improved from 14% to 53% in full eval run with this and related fixes combined
- Agent only needs to read Item References to look up vendor item references, never to edit
- Behaviour changes for users or extensions.

## AL objects touched

- [Profile "Payables Agent Profile"](../../objects/profile/payables-agent-profile.md), PayablesAgent: modified
- `src/Apps/W1/PayablesAgent/app/Flows/Execution/AgentWorkspace/PAItemReferences.PageCust.al`: added, not in the BC30 snapshot yet

## Context

- Work items: AB#659514
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: "The agent only reads Item References to look up a vendor item reference, so it never needs to edit the list."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Profile object](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-profile-object) — possibly related: Documents profile objects for customizing user experiences and controlling UI visibility. (model-linked)
- [Set up agent permissions and profiles (preview)](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-development-toolkit-permissions-profiles) — possibly related: Documents setting up agent permissions and profile customization to control page access and actions. (model-linked)

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).
