# Where should an agent live? Joule Studio, BTP, a hyperscaler or another vendor's platform

> Decide where each SAP agent runs by checking the route, identity and status gates first, then cost, data gravity, channel, support and workflow fit.

- Course: Orchestrate, Unit 15 · SAP AI next to other platforms
- Page: https://erpfde.com/topics/where-should-an-agent-live/
- Updated: 2026-11-25
- Reading time: Foundational 9 min, Deep 34 min

Independent learning resource. Not affiliated with, sponsored by or endorsed by SAP SE. SAP and other SAP products mentioned are trademarks of SAP SE in Germany and other countries.

## Foundational layer

### The 60-second version

Every agent that works with SAP needs a home: the place where its code runs, where its instructions live and whose bill it lands on. As of November 2026 there are four sensible homes:

1. **Joule Studio**, SAP's own agent builder, running on a runtime SAP manages.
2. **Your own agent on SAP BTP**, built with code in your BTP account.
3. **A hyperscaler's agent platform**, such as AWS, Microsoft or Google.
4. **Another vendor's platform**, such as the agents inside your CRM or service desk.

A fifth option, a bot that clicks through SAP screens like a person, still turns up in proposals. It fails the first check below.

The decision has two parts. First, three **gates** that rule a home out whatever it costs: does it reach SAP by a path SAP endorses, does SAP see each person's own user, and is every piece it needs generally available today? Then, among the homes left, five **criteria**: cost, where the data sits, where the users work, who supports it, and how complex the work is.

The short rule: **put the agent next to most of its data and its users, unless a gate says no.** For most agents that mainly read SAP, that means Joule Studio or BTP. An agent whose data and users live elsewhere can live elsewhere, provided it calls SAP the endorsed way, as the person.

### Why it matters to the business

Calder Pumpworks, the course's fictional pump maker, has three agents in its plans. Each would be cheap to prototype anywhere. The placement decision is what it costs to run, to support and to defend in an audit for the next three years.

- **The invoice triage agent** helps accounts payable clerks clear blocked supplier invoices. Almost everything it reads is in SAP, and the clerks work in SAP.
- **The order exceptions agent** explains blocked sales orders. The customer service clerks who ask live in the CRM, but the orders, credit and deliveries are in SAP.
- **The supply watch agent** goes through MRP exceptions each morning and drafts purchase order date changes for buyers. It runs many steps with conditions and retries.

Three things go wrong when the home is chosen by habit ("we're an Azure shop") instead of by the agent:

- **Contract risk.** SAP's API policy, published in April 2026, bars AI systems that plan sequences of SAP API calls, except through SAP-endorsed architectures, and bars getting around SAP's controls through proxies or gateways ([SAP API Policy](https://help.sap.com/doc/sap-api-policy/latest/en-US/API_Policy_latest.pdf)). A home that reaches SAP another way is a renewal conversation waiting to happen.
- **Audit risk.** An agent that calls SAP as one shared technical user gives every person that user's access, and SAP's log can't say who asked.
- **Cost and support risk.** Each home has its own meter and its own support desk. An agent split across three vendors has three bills and three places to look when it fails at 7 a.m. on closing day.

The value of deciding well is boring and real: the agent runs where it is cheapest to keep right, and the decision is written down so the next agent doesn't restart the argument.

### How SAP does it

As read on 25 November 2026, SAP's own pages describe two homes inside SAP and doors for the rest:

- **Joule Studio.** Low-code or pro-code agents deployed to an SAP-managed runtime ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/98efa0)). SAP meters customer-built agents in AI Units per agent step; at present they generally fall in the Basic band of 0.005 AI Units a step ([SAP Learning](https://learning.sap.com/courses/introducing-joule/understanding-the-commercial-model)). For select customers, running custom agents on that runtime is free through December 2026 ([SAP News, 27 October 2026](https://news.sap.com/2026/10/sap-teched-ai-developers-build-what-matters-autonomous-execution/)). The [pricing topic](https://erpfde.com/topics/pricing-custom-agents-after-the-free-runtime/) covers the meter in detail.
- **Custom agents on SAP BTP.** Your own code in a customer-managed BTP subaccount, built with the SAP Cloud SDK for AI and connected to Joule over agent-to-agent (A2A) calls ([SAP Architecture Center](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/build-ai-agents)). SAP's guide suggests low-code when speed and SAP tooling come first, and code for complex, multi-step or conditional work.
- **Doors for other platforms.** Inbound A2A through SAP's Agent Gateway reached general availability in October 2026 ([SAP Architecture Center news](https://architecture.learning.sap.com/news/2026/10/27/a2a-agent-gateway-interoperability)); the MCP Gateway in SAP Integration Suite exposes released APIs as tools (see [the MCP gateway topic](https://erpfde.com/topics/integration-suite-mcp-gateway-hands-on/)).
- **Governance across all homes.** SAP names SAP AI Agent Hub and SAP Cloud Identity Services as the layer that spans them ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/98efa0)).

SAP's own policy overview answers the platform question: customers can use any third-party AI platform, provided it connects through an endorsed architecture. The endorsed list includes low-code agents with Joule Studio, pro-code agents on SAP BTP, and A2A through the Agent Gateway ([SAP overview deck](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260530_sap_api_policy_overview.pdf)).

### The decision on one page

Apply the gates in order. A home that fails one is out.

| Gate | The question | A typical failure |
| --- | --- | --- |
| G1 Route | Does the home reach SAP through released APIs on an SAP-endorsed path? | A bot driving Fiori screens; a custom RFC module; ODP-RFC extraction |
| G2 Identity | When the agent acts for a person, does SAP see that person's own user? | One API key for everyone, as in a quick pilot |
| G3 Status | Is every piece the agent needs generally available today, not "planned"? | A design that relies on outbound A2A from Joule, which SAP lists as future direction |

Then score the homes that are left:

| Criterion | Favors Joule Studio | Favors custom on BTP | Favors a hyperscaler | Favors another vendor's platform |
| --- | --- | --- | --- | --- |
| Cost | Few steps per run | A steady fixed load | Many short runs on usage pricing | The vendor licence is already paid |
| Data gravity | Mostly SAP data | Mostly SAP data | Mostly non-SAP data | Mostly that vendor's data |
| Channel | Users in SAP | Users in SAP | Users in that hyperscaler's tools | Users in that application |
| Support | SAP runs the runtime | Your team runs it | Your team runs it | The vendor runs it |
| Workflow fit | Simple, standard steps | Complex, coded logic | Complex, coded logic | Simple steps in that app |

Applied to Calder with the course's numbers: the invoice triage agent lands in Joule Studio by a clear margin. The order exceptions agent also lands in Joule Studio, called from the CRM over A2A, so the clerks never leave the CRM. The supply watch agent lands on BTP, but only just ahead of Joule Studio; that close call is itself the finding, and the deep layer shows what would tip it.

> **Note** **For functional consultants.** Where the agent lives decides where you test and who you call. A Joule Studio agent is tested and transported with SAP's tools; a BTP agent has its own release cycle owned by your developers; an agent in the CRM is configured by that team. For each agent, add to the test plan which home it runs in, which SAP user it acts as, and which SAP role approves its drafts.

### Questions to ask

1. Where does most of this agent's data live, and where do its users spend their day?
2. Which path does it take into SAP, and does SAP list that path as endorsed for AI agents? Show me where.
3. When the agent acts for a person, which SAP user does SAP see? Show me the log line.
4. Is every piece we depend on generally available today, or planned? What is our fallback if it slips?
5. Which meter does it run on, who owns that bill, and what does a month cost at double today's volume?
6. Who is called when it fails at 7 a.m., and who retests it when SAP, the platform or the model changes?
7. Is it registered in our agent inventory with an owner, and is the decision written down?

### Common misconceptions

- **"We're an Azure (or AWS, or Google) shop, so every agent lives there."** A company standard is a good default for non-SAP agents. An agent that mostly reads SAP carries SAP data across a cloud boundary on every call.
- **"Joule Studio is always cheapest."** It is often cheap per run, but complex agents need many steps, and cost grows with steps. Count them.
- **"If the vendor ships an SAP connector, the path is endorsed."** SAP's policy names architectures, not products. A connector proves a technical link; ask whether that path counts as endorsed for agents.
- **"The decision is permanent."** Statuses, prices and volumes change. Write the decision with the conditions that would reopen it.
- **"A screen bot avoids the API question."** Driving screens is not a published API, so it fails the first gate for an agent that plans SAP actions.

### Key terms

- **Agent home:** the platform where an agent's code and instructions run and whose bill it lands on.
- **Joule Studio:** SAP's tool for building agents, low-code or pro-code, run on an SAP-managed runtime.
- **Agent step:** one action an agent takes during a run; SAP meters customer-built Joule Studio agents in AI Units per step.
- **Data gravity:** the pull to run software close to the data it reads most, to save moves, latency and copies.
- **Endorsed path:** an architecture SAP names for AI agent access, such as A2A through the Agent Gateway or the MCP Gateway in SAP Integration Suite.
- **Agent Gateway:** SAP's entry point for other platforms' agents calling SAP agents over A2A, with the user's token.
- **Placement gate:** a yes-or-no check that rules a home out before any scoring.

### Check yourself

1. Calder's AP clerks work in SAP and the invoice agent reads almost only SAP data. Which home does the topic's rule point to first?
   - A. The company's hyperscaler, because it is the standard for all new agents
   - B. An SAP home such as Joule Studio, next to the data and the users
   - C. The CRM vendor's platform, because it already has an agent licence
   - D. A screen bot, because it needs no change to SAP at all

   Answer: B. The rule is to put the agent next to most of its data and its users unless a gate says no. Here both sit in SAP, so an SAP home comes first; a company cloud standard doesn't change where the data is.

2. Why are the gates checked before cost or any other criterion?
   - A. Because gates are cheaper to check than costs, so they save time
   - B. Because SAP charges a fee for each home that fails a gate
   - C. Because a home that fails one is unusable, however cheap it is
   - D. Because the criteria only apply to homes outside SAP

   Answer: C. A home that reaches SAP outside an endorsed path, hides the person behind a technical user, or depends on something not yet available can't be defended, so scoring it wastes time. Cost only ranks homes that are allowed.

3. A proposal reaches SAP through a bot that clicks through Fiori screens. What does the topic say about it?
   - A. It passes, because it changes nothing in SAP's code
   - B. It passes only for read-only agents that never draft changes
   - C. It needs a cheaper licence but otherwise fits well
   - D. It fails the route gate, since screens aren't a published API

   Answer: D. SAP's policy bars AI systems that plan SAP actions except through endorsed architectures, and screens are not a published API. Changing no SAP code doesn't make the path endorsed.

4. Calder's customer service clerks work in the CRM, but the order data is in SAP. What placement did the course's numbers favor?
   - A. A Joule Studio agent that the CRM calls over A2A
   - B. An agent in the CRM that copies SAP orders every night
   - C. A hyperscaler agent using one shared API key into SAP
   - D. A BTP agent that the clerks open in a separate browser tab

   Answer: A. The agent stays next to the SAP data and the clerks stay in the CRM, which calls it over inbound A2A, generally available since October 2026. The shared key fails the identity gate.

5. A vendor sells a certified SAP connector for its agent platform. What should you still ask?
   - A. Whether the connector supports every SAP transaction code
   - B. Whether the vendor is larger than SAP by revenue
   - C. Whether that path counts as SAP-endorsed for AI agents
   - D. Whether the connector was released before April 2026

   Answer: C. SAP's policy names architectures, not products. A connector proves a technical link; whether an agent may plan calls through it depends on the path being endorsed.

6. Which question best tests the cost side of a placement decision?
   - A. Which home has the most modern user interface for clerks?
   - B. What does a month cost on this meter at double today's volume?
   - C. How many AI models does each platform list on its website?
   - D. Which vendor gave the best discount during the pilot phase?

   Answer: B. Each home bills on its own meter, and agent costs grow with runs and steps. Asking for the cost at double volume shows how the decision holds as use grows.

7. The supply watch agent landed on BTP only just ahead of Joule Studio. What does the topic treat that close call as?
   - A. A sign that the scoring method is wrong and should be dropped
   - B. A reason to run the agent in both homes at the same time
   - C. A finding: record what would tip it and re-check when that changes
   - D. Proof that the agent should move to a hyperscaler instead

   Answer: C. A close call means small changes in price, steps or skills could flip the answer. Writing down what would reopen the decision is part of the decision.

## Deep layer

### Mental model

**An agent's home is a choice of who carries which risk.** Joule Studio means SAP carries the runtime and you carry the per-step meter. BTP means you carry the runtime and gain full control of the code. A hyperscaler or another vendor's platform means that vendor carries its runtime, and you carry every hop back into SAP: the route, the identity and a second bill.

So treat placement as two different questions, in this order:

1. **Is this home allowed for this agent?** Three gates: route, identity, status. They are yes or no, and they don't trade off against money.
2. **Of the allowed homes, which is cheapest to keep right?** Five criteria with weights you set once for the company: cost, data gravity, channel, support and workflow fit.

Keep a third idea in view: **where the agent lives and where it is used can differ.** A CRM can host the conversation while the agent lives in SAP and is called over A2A. Most good placements for SAP-heavy agents look like that.

### How it works

#### The four homes and how each reaches SAP

```mermaid
flowchart LR
  subgraph SAPside[SAP side]
    JS[Joule Studio<br/>SAP-managed runtime]
    BTP[Custom agent<br/>on your BTP subaccount]
    AGW[Agent Gateway<br/>inbound A2A]
    MCPG[MCP Gateway<br/>Integration Suite]
    S4[(S/4HANA CP10<br/>released APIs)]
  end
  HS[Hyperscaler agent<br/>AWS, Microsoft, Google] -->|A2A, user token| AGW
  HS -->|MCP tools, user token| MCPG
  TP[Other vendor's agent<br/>CRM, service desk] -->|A2A or MCP| AGW
  AGW --> JS
  JS --> S4
  BTP -->|A2A to Joule| JS
  BTP --> S4
  MCPG --> S4
  BOT[Screen bot] -.->|screens: fails G1| S4
```

As read on 25 November 2026:

- **Joule Studio** agents deploy to an SAP-managed runtime on SAP AI Core ([SAP Architecture Center golden path](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/build-ai-agents)). SAP's policy overview lists low-code agents with Joule Studio among its endorsed reference architectures ([SAP overview deck](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260530_sap_api_policy_overview.pdf)).
- **Custom agents on BTP** use the SAP Cloud SDK for AI as the main SDK, with a framework such as LangGraph or Google ADK, on Cloud Foundry or Kyma, and reach models through the generative AI hub. They connect to Joule over A2A as "bring your own agent", with a 60-second window for a synchronous answer ([golden path](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/build-ai-agents)). Pro-code agents on SAP BTP are also on SAP's endorsed list.
- **Hyperscaler agents** reach SAP from outside. SAP's pages show them as A2A clients of the Agent Gateway ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/98efa0)); the Gemini Enterprise pattern, for example, has a proxy agent exchange the user's token at SAP Cloud Identity Services and relay A2A calls, so SAP enforces the real user's authorizations ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/c9a3f8)). Hyperscalers also ship their own SAP tooling: AWS made its AWS for SAP MCP Server generally available on Bedrock AgentCore on 1 May 2026, built on SAP OData for S/4HANA and ECC ([AWS](https://aws.amazon.com/about-aws/whats-new/2026/05/aws-sap-mcp-amazon-bedrock/)). The [Google topic](https://erpfde.com/topics/google-vertex-and-agentspace-with-sap/) maps Google's routes into SAP, including why a screen route comes last.
- **Another vendor's agents** reach SAP the same two ways: A2A to an SAP agent, or MCP tools through the gateway. The [Agentforce, ServiceNow and Workday topic](https://erpfde.com/topics/agentforce-servicenow-and-workday-with-sap/) works through who approves what.

> **Warning** SAP's own pages disagree on one status this month. The Architecture Center's news of 27 October 2026 announces general availability of inbound A2A through the Agent Gateway, while the golden path and the Gemini Enterprise page, updated around the same days, still carry a "not yet GA" disclaimer. The lab treats inbound A2A as GA, following the dated announcement. Confirm it for your region and edition before you depend on it.

#### Why identity is a gate, not a score

Inbound A2A needs a user token to invoke an agent, and the agent runs within that user's permissions ([SAP Architecture Center news](https://architecture.learning.sap.com/news/2026/10/27/a2a-agent-gateway-interoperability)). That is the design SAP expects. An agent that reaches SAP with one API key or a shared technical user breaks it for everyone: each person gets the technical user's access, and the log can't name who asked. No amount of saved cost buys that back, so it is a gate. The [Microsoft topic](https://erpfde.com/topics/microsoft-copilot-studio-and-azure-with-sap/) shows the difference in a lab: the same question, through a key and through a user token, gets two different answers.

#### Why the route is a gate

The API policy's section 2.2.2 bars API use by AI systems that "plan, select, or execute sequences of API calls" except through SAP-endorsed architectures. Section 1.2 bars non-published APIs, and section 3 bars getting around SAP's controls through intermediary services, custom code, proxies or gateways ([SAP API Policy](https://help.sap.com/doc/sap-api-policy/latest/en-US/API_Policy_latest.pdf)). The policy names no products. So a hyperscaler's own SAP tool is not automatically endorsed or barred: ask SAP whether your specific path counts. The [API policy page](https://erpfde.com/topics/sap-api-policy-and-third-party-agents/) covers the contract questions; SAP's overview says there are "no automatic blocks or penalty models", which makes it a renewal risk rather than an outage risk.

#### Each home bills on its own meter

| Home | Meter, as read on 25 November 2026 | What drives it |
| --- | --- | --- |
| Joule Studio | AI Units per agent step; Basic 0.005, Standard 0.01, Advanced 0.025 ([SAP Learning](https://learning.sap.com/courses/introducing-joule/understanding-the-commercial-model)) | Runs times steps |
| Custom on BTP | Your SAP BTP services for runtime and SAP AI Core | Fixed services plus model use |
| Hyperscaler (AgentCore) | 0.1276 USD per vCPU-hour, 0.0169 USD per GB-hour, 0.005 USD per 1,000 gateway calls ([AWS](https://aws.amazon.com/bedrock/agentcore/pricing/)) | Seconds of runtime and calls |
| Another vendor | That vendor's agent licence | Users, conversations or credits |

Model tokens sit on top of every row and cost roughly the same wherever the agent runs, so the lab leaves them out. The SAP-side gateway that outside homes need is a cost too, and the lab adds a course share for it.

### Build it yourself: a placement check for three Calder agents

You will run a small script that checks Calder's three agents against five homes. It applies the three gates, scores the homes that pass, prints one table per agent and writes a decision record for each. Nothing connects to any service; every number is either a list price read for this topic or a labeled course value.

**Before you start:** complete [Set up your computer for this course](https://erpfde.com/topics/set-up-your-computer/) and [Set up for Unit 15](https://erpfde.com/topics/set-up-for-unit-15/). This lab uses only Python's built-in modules, so there's nothing new to install.

```mermaid
flowchart LR
  A[Agent profile] --> G1{G1 route<br/>endorsed?}
  G1 -- no --> X[out]
  G1 -- yes --> G2{G2 person's<br/>own SAP user?}
  G2 -- no --> X
  G2 -- yes --> G3{G3 everything<br/>it needs GA?}
  G3 -- no --> X
  G3 -- yes --> S[score: cost, data,<br/>channel, support, workflow]
  S --> D[decision record]
```

> **Note** New words in this walkthrough:
> - **Agent profile:** a short description of one agent: who uses it, where they work, how much of its data is in SAP, how many runs and steps a month.
> - **Weight:** how much one criterion counts in the total; the five weights add up to 1.
> - **Decision record (ADR):** a short note with context, options, decision and consequences, as in [the design-doc topic](https://erpfde.com/topics/writing-a-solution-design-doc/).
> - **Course value:** a number made up for the course so the method can run; replace it with your own.

#### What you need

- Your course folder from the Unit 15 setup, with `.venv`.
- About 20 minutes.
- Cost: free. No SAP, AWS, Microsoft, Google or CRM account.

#### Step 1: Open your course folder and turn on the virtual environment

1. Open VS Code, choose **File > Open Folder**, and open `orchestrate-course`.
2. Open a terminal: **Terminal > New Terminal**.
3. If the prompt doesn't start with `(.venv)`, turn it on:

   - **Windows (PowerShell):**

     ```powershell
     .venv\Scripts\Activate.ps1
     ```

   - **macOS / Linux:**

     ```bash
     source .venv/bin/activate
     ```

#### Step 2: Save the script

1. In VS Code, right-click the `unit15` folder, choose **New File**, name it `agent_placement.py`, paste the code below and save.

```python
"""Unit 15: where should an agent live? A placement check for Calder's agents.

Each agent is checked against five possible homes:

    joule-studio   SAP-managed Joule Studio runtime (low-code or pro-code)
    btp-custom     your own agent on a customer-managed SAP BTP subaccount
    hyperscaler    an agent platform at a hyperscaler (AWS AgentCore as the example)
    third-party    the agent platform inside another business application (the CRM)
    screen-bot     a bot that drives SAP screens like a person (shown to be refused)

Three gates come first. A home that fails one is out, whatever it costs:

    G1 route     the home reaches SAP through an SAP-endorsed path on released APIs
    G2 identity  an agent that acts for a person carries that person's own SAP user
    G3 status    every path the agent needs is generally available today

Homes that pass are scored 1 to 5 on five criteria (cost, data gravity, channel,
support, workflow fit) with the weights below. The highest total wins; on a tie
the SAP-managed home wins.

All agents, homes, costs, weights and scores are course values. Real meters and
statuses are named in comments with where they come from. Model tokens are left
out: they cost about the same in every home.

Built-in modules only. No randomness: every run prints the same result.
"""
import argparse
import json
from pathlib import Path

TODAY = "2026-11-25"
OUT = Path(__file__).parent / "placement"

WEIGHTS = {"cost": 0.20, "data": 0.25, "channel": 0.20, "support": 0.20, "workflow": 0.15}

# Course price for one SAP AI Unit. SAP sells AI Units by contract and the pages
# read for this topic show no unit price, so this number is made up. Replace it
# with the price in your own order form.
COURSE_USD_PER_AI_UNIT = 8.00

# Calder's agents. Runs, steps and data shares are course values.
AGENTS = [
    {
        "id": "AGT_INV_TRIAGE", "job": "triage blocked supplier invoices",
        "users": "AP accountants", "works_in": "sap", "acts_for_user": True,
        "sap_data_share": 0.95, "workflow": "simple", "needs": [],
        "runs_per_month": 300, "steps_per_run": 6, "seconds_per_run": 20,
    },
    {
        "id": "AGT_ORDER_EXC", "job": "explain and route blocked sales orders",
        "users": "customer service clerks", "works_in": "crm", "acts_for_user": True,
        "sap_data_share": 0.80, "workflow": "simple", "needs": ["inbound-a2a"],
        "runs_per_month": 600, "steps_per_run": 5, "seconds_per_run": 15,
    },
    {
        "id": "AGT_SUPPLY_WATCH", "job": "watch MRP exceptions and draft PO date changes",
        "users": "planners and buyers", "works_in": "sap", "acts_for_user": True,
        "sap_data_share": 0.90, "workflow": "complex", "needs": [],
        "runs_per_month": 440, "steps_per_run": 14, "seconds_per_run": 90,
    },
]

# The homes. "route", "identity" and "status" feed the gates; the rest feeds
# the scores. Statuses are as SAP and the vendors stated them on the dates in
# the topic's sources.
HOMES = {
    "joule-studio": {
        "side": "sap", "route": "endorsed",   # SAP reference architecture: low-code agents with Joule Studio
        "identity": "named-user", "managed_by": "sap", "pro_code": False,
        "channels": ["sap"],
        "status": {"inbound-a2a": "GA"},      # inbound A2A through the Agent Gateway, GA October 2026
        "meter": "AI Units per agent step",
    },
    "btp-custom": {
        "side": "sap", "route": "endorsed",   # SAP reference architecture: pro-code agents on SAP BTP
        "identity": "named-user", "managed_by": "customer", "pro_code": True,
        "channels": ["sap"],
        "status": {"inbound-a2a": "GA"},
        "meter": "SAP BTP services under your BTP contract",
        "course_fixed_usd": 250.00,           # course value: runtime and services for one agent
    },
    "hyperscaler": {
        "side": "outside", "route": "endorsed",   # A2A to the Agent Gateway or tools through the MCP Gateway
        "identity": "technical-user",              # Calder's first lab design: one API key (see Exercise)
        "managed_by": "customer", "pro_code": True,
        "channels": ["teams"],
        "status": {"inbound-a2a": "GA"},
        "meter": "vCPU-hours, GB-hours and gateway calls (AgentCore)",
        # AgentCore list prices as read on 2026-11-25 (region not stated on the page)
        "usd_per_vcpu_hour": 0.1276, "usd_per_gb_hour": 0.0169, "usd_per_1000_gateway_calls": 0.005,
        "vcpu": 1, "gb": 2,
        "course_fixed_usd": 150.00,           # course value: SAP-side gateway share and monitoring
    },
    "third-party": {
        "side": "outside", "route": "endorsed",   # tools through the MCP Gateway
        "identity": "named-user", "managed_by": "vendor", "pro_code": False,
        "channels": ["crm"],
        "status": {"inbound-a2a": "GA"},
        "meter": "the vendor's own agent licence",
        "course_usd_per_run": 0.40,           # course value; no vendor price was read for this topic
        "course_fixed_usd": 150.00,           # course value: SAP-side gateway share
    },
    "screen-bot": {
        "side": "outside", "route": "screens",    # drives Fiori screens: not a published API
        "identity": "technical-user", "managed_by": "customer", "pro_code": True,
        "channels": ["sap"], "status": {}, "meter": "bot licence",
        "course_fixed_usd": 100.00,
    },
}


def monthly_cost(agent, home_id):
    """Course monthly cost of one agent in one home, without model tokens."""
    h, runs = HOMES[home_id], agent["runs_per_month"]
    if home_id == "joule-studio":
        # SAP Learning: customer-built agents are mostly Basic, 0.005 AI Units per step.
        units = runs * agent["steps_per_run"] * 0.005
        return round(units * COURSE_USD_PER_AI_UNIT, 2), f"{units:.2f} AI Units"
    if home_id == "hyperscaler":
        hours = runs * agent["seconds_per_run"] / 3600
        compute = hours * (h["vcpu"] * h["usd_per_vcpu_hour"] + h["gb"] * h["usd_per_gb_hour"])
        calls = runs * agent["steps_per_run"] / 1000 * h["usd_per_1000_gateway_calls"]
        return round(compute + calls + h["course_fixed_usd"], 2), f"{hours:.1f} runtime hours"
    if home_id == "third-party":
        return round(runs * h["course_usd_per_run"] + h["course_fixed_usd"], 2), f"{runs} runs"
    return round(h["course_fixed_usd"], 2), "fixed"


def gates(agent, home_id):
    h = HOMES[home_id]
    if h["route"] != "endorsed":
        return "G1", "reaches SAP through screens, not a published API on an endorsed path"
    if agent["acts_for_user"] and h["identity"] != "named-user":
        return "G2", "SAP would see one technical user instead of each person"
    for need in agent["needs"]:
        if h["status"].get(need) != "GA":
            return "G3", f"{need} is not generally available in this home"
    return None, ""


def scores(agent, home_id, cheapest):
    h = HOMES[home_id]
    cost, _ = monthly_cost(agent, home_id)
    s = {"cost": round(1 + 4 * cheapest / cost, 1) if cost else 5.0}
    share = agent["sap_data_share"]
    s["data"] = round(1 + 4 * (share if h["side"] == "sap" else 1 - share), 1)
    if agent["works_in"] in h["channels"]:
        s["channel"] = 5.0
    elif "inbound-a2a" in agent["needs"] and h["status"].get("inbound-a2a") == "GA":
        s["channel"] = 4.0    # users stay in their app; it calls this agent over A2A
    else:
        s["channel"] = 2.0    # users must switch to another app
    s["support"] = {"sap": 5.0, "vendor": 4.0, "customer": 3.0}[h["managed_by"]]
    if agent["workflow"] == "complex":
        s["workflow"] = 5.0 if h["pro_code"] else 2.0
    else:
        s["workflow"] = 5.0 if not h["pro_code"] else 4.0
    s["total"] = round(sum(WEIGHTS[k] * s[k] for k in WEIGHTS), 2)
    return s


def place(agent):
    rows, passed = [], []
    for home_id in HOMES:
        gate, why = gates(agent, home_id)
        cost, meter = monthly_cost(agent, home_id)
        row = {"home": home_id, "cost_usd": cost, "meter": meter, "gate": gate, "why": why}
        rows.append(row)
        if not gate:
            passed.append(row)
    cheapest = min(r["cost_usd"] for r in passed)
    for r in passed:
        r["scores"] = scores(agent, r["home"], cheapest)
    order = sorted(passed, key=lambda r: (-r["scores"]["total"], HOMES[r["home"]]["managed_by"] != "sap"))
    return rows, order


def print_agent(agent, rows, order):
    print(f"\n{agent['id']}: {agent['job']} ({agent['users']}, work in {agent['works_in'].upper()})")
    print(f"  {'home':13} {'USD/month':>10}  {'gate':4}  {'cost':>4} {'data':>4} {'chan':>4} {'supp':>4} {'flow':>4}  {'total':>5}")
    for r in rows:
        if r["gate"]:
            print(f"  {r['home']:13} {r['cost_usd']:>10.2f}  {r['gate']:4}  out: {r['why']}")
        else:
            s = r["scores"]
            print(f"  {r['home']:13} {r['cost_usd']:>10.2f}  pass  {s['cost']:>4} {s['data']:>4} {s['channel']:>4}"
                  f" {s['support']:>4} {s['workflow']:>4}  {s['total']:>5}")
    win, second = order[0], order[1]
    gap = round(win["scores"]["total"] - second["scores"]["total"], 2)
    print(f"  -> lives in {win['home']} ({win['meter']}); runner-up {second['home']}, {gap} behind")


def adr(agent, rows, order):
    win, second = order[0], order[1]
    out = [f"## ADR {agent['id']}: where the agent lives ({TODAY})", "",
           f"**Context.** {agent['id']} will {agent['job']} for {agent['users']}, who work in "
           f"{agent['works_in'].upper()}. About {int(agent['sap_data_share'] * 100)}% of what it reads is SAP data; "
           f"its workflow is {agent['workflow']}.", "",
           "**Options.** " + "; ".join(
               f"{r['home']} ({'out at ' + r['gate'] if r['gate'] else str(r['scores']['total'])})" for r in rows) + ".", "",
           f"**Decision.** The agent lives in {win['home']}, billed in {HOMES[win['home']]['meter']}. "
           f"Runner-up: {second['home']}.", "",
           "**Consequences.** Re-check this decision when a gate changes status, when monthly runs "
           "double, or when the users move to another application.", ""]
    return "\n".join(out)


def main():
    ap = argparse.ArgumentParser(description="Where should each Calder agent live? (course values)")
    ap.add_argument("--agent", help="check one agent only, such as AGT_ORDER_EXC")
    ap.add_argument("--json", action="store_true", help="also write the full result as JSON")
    args = ap.parse_args()

    OUT.mkdir(exist_ok=True)
    agents = [a for a in AGENTS if not args.agent or a["id"] == args.agent]
    if not agents:
        raise SystemExit(f"No agent {args.agent}. Known: {', '.join(a['id'] for a in AGENTS)}")
    print(f"Agent placement check, {TODAY} (course values; model tokens left out)")
    decisions, everything = [], {}
    for agent in agents:
        rows, order = place(agent)
        print_agent(agent, rows, order)
        decisions.append(adr(agent, rows, order))
        everything[agent["id"]] = rows
    (OUT / "placement_decisions.md").write_text("# Agent placement decisions\n\n" + "\n".join(decisions), encoding="utf-8")
    print(f"\nWrote {OUT / 'placement_decisions.md'}")
    if args.json:
        (OUT / "placement.json").write_text(json.dumps(everything, indent=2), encoding="utf-8")
        print(f"Wrote {OUT / 'placement.json'}")


if __name__ == "__main__":
    main()
```

#### Step 3: Run the check

1. Run the script for all three agents:

   ```bash
   python unit15/agent_placement.py
   ```

2. You should see this (the last line shows your own folder):

```text
Agent placement check, 2026-11-25 (course values; model tokens left out)

AGT_INV_TRIAGE: triage blocked supplier invoices (AP accountants, work in SAP)
  home           USD/month  gate  cost data chan supp flow  total
  joule-studio       72.00  pass   5.0  4.8  5.0  5.0  5.0   4.95
  btp-custom        250.00  pass   2.2  4.8  5.0  3.0  4.0   3.84
  hyperscaler       150.28  G2    out: SAP would see one technical user instead of each person
  third-party       270.00  pass   2.1  1.2  2.0  4.0  5.0   2.67
  screen-bot        100.00  G1    out: reaches SAP through screens, not a published API on an endorsed path
  -> lives in joule-studio (9.00 AI Units); runner-up btp-custom, 1.11 behind

AGT_ORDER_EXC: explain and route blocked sales orders (customer service clerks, work in CRM)
  home           USD/month  gate  cost data chan supp flow  total
  joule-studio      120.00  pass   5.0  4.2  4.0  5.0  5.0    4.6
  btp-custom        250.00  pass   2.9  4.2  4.0  3.0  4.0   3.63
  hyperscaler       150.42  G2    out: SAP would see one technical user instead of each person
  third-party       390.00  pass   2.2  1.8  5.0  4.0  5.0   3.44
  screen-bot        100.00  G1    out: reaches SAP through screens, not a published API on an endorsed path
  -> lives in joule-studio (15.00 AI Units); runner-up btp-custom, 0.97 behind

AGT_SUPPLY_WATCH: watch MRP exceptions and draft PO date changes (planners and buyers, work in SAP)
  home           USD/month  gate  cost data chan supp flow  total
  joule-studio      246.40  pass   5.0  4.6  5.0  5.0  2.0   4.45
  btp-custom        250.00  pass   4.9  4.6  5.0  3.0  5.0   4.48
  hyperscaler       151.81  G2    out: SAP would see one technical user instead of each person
  third-party       326.00  pass   4.0  1.4  2.0  4.0  2.0   2.65
  screen-bot        100.00  G1    out: reaches SAP through screens, not a published API on an endorsed path
  -> lives in btp-custom (fixed); runner-up joule-studio, 0.03 behind

Wrote /Users/you/orchestrate-course/unit15/placement/placement_decisions.md
```

3. Read each table from left to right. `G1` and `G2` rows are out before any score; the `total` column ranks the rest.

> **Note** These results come from synthetic course values (runs, steps, fixed costs, the AI Unit price and the weights). They show the method, not a result from a real SAP system or a real price comparison. Only the AI Unit rate per step and the AgentCore list prices are real, as read on 25 November 2026.

What the output says:

- **Two homes are out for every agent.** The screen bot fails G1. The hyperscaler home fails G2 because Calder's first design used one API key, as in the Microsoft topic's key mode. The hyperscaler is not ruled out as a home; that design is. The exercise fixes it.
- **AGT_INV_TRIAGE** goes to Joule Studio with a clear lead (4.95 against 3.84): SAP data, SAP users, simple steps, low step count.
- **AGT_ORDER_EXC** also goes to Joule Studio. Its channel score is 4, not 5: the clerks stay in the CRM, which calls the agent over inbound A2A. The CRM-hosted option scores 5 on channel but loses on data gravity and cost.
- **AGT_SUPPLY_WATCH** goes to BTP by 0.03. Joule Studio is cheaper per month only just (246.40 against 250.00 USD) and wins on support, but scores 2 on workflow fit for a complex, many-step job.

#### Step 4: Look at one agent and the decision record

1. Run the check for one agent and keep the full result as JSON:

   ```bash
   python unit15/agent_placement.py --agent AGT_SUPPLY_WATCH --json
   ```

2. Open `unit15/placement/placement_decisions.md`. Each agent has a short record:

```text
### ADR AGT_SUPPLY_WATCH: where the agent lives (2026-11-25)

**Context.** AGT_SUPPLY_WATCH will watch MRP exceptions and draft PO date changes for planners and buyers, who work in SAP. About 90% of what it reads is SAP data; its workflow is complex.

**Options.** joule-studio (4.45); btp-custom (4.48); hyperscaler (out at G2); third-party (2.65); screen-bot (out at G1).

**Decision.** The agent lives in btp-custom, billed in SAP BTP services under your BTP contract. Runner-up: joule-studio.

**Consequences.** Re-check this decision when a gate changes status, when monthly runs double, or when the users move to another application.
```

3. Try one what-if. Change `COURSE_USD_PER_AI_UNIT` from `8.00` to `6.00`, save and run the one-agent command again. Joule Studio's monthly cost for the supply watch agent drops to 184.80 USD and it overtakes BTP. Set the value back to `8.00` before you go on.

That flip is the point of a close call: the decision depends on a price you must take from your own contract, so the record should say so.

#### Step 5: Save your work in Git

```bash
git add unit15/agent_placement.py unit15/placement/placement_decisions.md
git commit -m "Unit 15: agent placement check for three Calder agents"
```

#### How the code works

| Part | What it does |
| --- | --- |
| `WEIGHTS` | How much each criterion counts; set once for the company |
| `COURSE_USD_PER_AI_UNIT` | A made-up price for one AI Unit; replace it with your contract's |
| `AGENTS` | The three agent profiles: users, where they work, SAP data share, workflow, needs, runs, steps, seconds |
| `HOMES` | The five homes: route, identity, who manages them, channels, statuses and meters |
| `monthly_cost` | Turns each home's meter into a monthly course cost, without model tokens |
| `gates` | G1 route, G2 identity, G3 status, in that order; the first failure rules the home out |
| `scores` | Scores 1 to 5 per criterion; cost is relative to the cheapest home that passed |
| `place` | Runs gates and scores for one agent and ranks the homes; on a tie the SAP-managed home wins |
| `adr` | Writes the context, options, decision and consequences for one agent |

#### If something goes wrong

| What you see | What it means | What to do |
| --- | --- | --- |
| `python` is not recognized / command not found | Python isn't on your path, or `.venv` is off | Turn on `.venv` (Step 1); see [Set up your computer](https://erpfde.com/topics/set-up-your-computer/) |
| `can't open file ... agent_placement.py` | The file is in another folder or has another name | Save it as `unit15/agent_placement.py` and run from the course folder |
| `No agent AGT_...` | A typo in `--agent` | Copy the ID from the list the message prints |
| `IndentationError` or `SyntaxError` | A paste changed the code | Paste the listing again and save |
| `ZeroDivisionError` after your own edit | A home costs 0.00 a month | Give it a cost above zero, even a small course value |
| Different totals from the listing | A number in `AGENTS`, `HOMES` or `WEIGHTS` differs | Compare with the listing; the script has no randomness |
| A proxy or network message | Not this lab: it makes no network calls | Check you ran this file |

### The SAP way

What SAP offers for each home, as read on 25 November 2026:

- **Joule Studio.** Agent builder with low-code and pro-code paths, SAP-managed runtime, metered in AI Units per step ([SAP Learning](https://learning.sap.com/courses/introducing-joule/understanding-the-commercial-model)). Free runtime through December 2026 for select customers, and free design-time tooling under fair-use limits ([SAP News](https://news.sap.com/2026/10/sap-teched-ai-developers-build-what-matters-autonomous-execution/)). See [Joule agents and agent orchestration](https://erpfde.com/topics/joule-agents-and-agent-orchestration/) and [intent-based development](https://erpfde.com/topics/intent-based-development-with-joule-studio/).
- **Pro-code on SAP BTP.** SAP Cloud SDK for AI, any of several agent frameworks, Cloud Foundry or Kyma, models through the [generative AI hub](https://erpfde.com/topics/sap-generative-ai-hub-and-orchestration/), registration with Joule over A2A ([golden path](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/build-ai-agents)). [Choosing an agent SDK](https://erpfde.com/topics/choosing-an-agent-sdk/) compares frameworks.
- **Doors for outside homes.** Inbound A2A through the Agent Gateway, GA in October 2026, with an access list per agent; outbound A2A and outbound MCP are listed as future direction with no date ([SAP Architecture Center news](https://architecture.learning.sap.com/news/2026/10/27/a2a-agent-gateway-interoperability)). The MCP Gateway in Integration Suite for tools.
- **Governance.** SAP AI Agent Hub and SAP Cloud Identity Services across homes ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/98efa0)); SAP's October release adds an SAP Enterprise AI Gateway for usage tracking and auditing ([SAP News](https://news.sap.com/2026/10/sap-teched-ai-developers-build-what-matters-autonomous-execution/)).
- **Licensing.** AI Units for Joule Studio agents; BTP services for custom agents; Integration Suite for the gateways outside homes use. None of the SAP pages read gives a price per AI Unit or a price for runtime after the free period.

### Build vs. SAP

| Situation | Lean towards | Why |
| --- | --- | --- |
| Mostly SAP data, users in SAP, simple steps | Joule Studio | SAP runs the runtime; the agent sits next to the data |
| Mostly SAP data, complex coded logic, a team that writes Python | Custom agent on BTP | Full control of the code, still on SAP's side and on SAP's endorsed list |
| Users in another app, data in SAP | An SAP-side agent called over A2A | Users stay where they are; SAP data and identity stay with SAP |
| Mostly non-SAP data, users in a hyperscaler's tools, a few SAP reads | The hyperscaler, with user tokens through SAP's gateways | Data gravity and channel point outside; SAP is one tool among several |
| An agent that needs outbound A2A from Joule to another vendor's agent | Wait, or reverse the direction | SAP lists outbound A2A as future direction |
| A demo on made-up data | Anywhere | No real data, no real identity, no gates that bite |

### Architecture view

**Where it sits.** Calder's `CP10` runs on S/4HANA Cloud Private Edition; SAP BTP hosts Integration Suite with the MCP Gateway; the Agent Gateway and Joule sit on SAP's side; the CRM runs in its vendor's cloud. The diagram in **How it works** shows the four homes and their doors. The agents are new consumers beside the interfaces `I01`-`I12` from the [integration platform](https://erpfde.com/topics/integration-platform-and-clean-core/) design, not replacements for them.

**Non-functional requirements.**

| Requirement | Typical target | What breaks if it's missed |
| --- | --- | --- |
| Identity | Every SAP call as the person, through SAP Cloud Identity Services | Shared access, an audit trail that can't name who asked |
| Route | Released APIs on an endorsed path only | Policy breach at renewal; brittle custom code in SAP |
| Latency | A chat answer within a few seconds; a synchronous A2A answer within 60 seconds | Users go back to SAP; Joule drops the call |
| Data residency | Data stays in the regions the company has agreed | A privacy finding for every cross-cloud call |
| Cost | Each agent's meter tracked monthly, with an alert at double the forecast | A per-step bill nobody owns |
| Operability | One named team on call per agent | Three vendors pointing at each other during an incident |

**Integration and identity.** The user signs in once through the company's identity provider, trusted by SAP Cloud Identity Services. An outside agent exchanges that user's token for one the Agent Gateway or MCP Gateway accepts, and SAP runs the call within that user's roles. An SAP-side agent gets the user from Joule. Every draft the agent prepares waits in SAP for the owning role, as in [agent permissions and SAP authorizations](https://erpfde.com/topics/agent-permissions-and-sap-authorizations/).

**The decision to record.**

- *Context:* Calder plans three agents. Customer service works in the CRM; AP and planning work in SAP. Calder has a small Python team and a Private Edition system.
- *Options:* A, all three in Joule Studio. B, all three on the company's hyperscaler. C, each placed by the gates and criteria.
- *Decision:* C. Invoice triage and order exceptions in Joule Studio, the second called from the CRM over A2A; supply watch on BTP.
- *Consequences:* two homes to run instead of one; AI Units budgeted for two agents; the supply watch decision reopens if the AI Unit price, the step count or the team's skills change; the hyperscaler stays available for non-SAP agents once user tokens replace the pilot key.

**What a design review will ask.**

1. For each agent, which path does it take into SAP, and where does SAP list that path as endorsed?
2. Show the SAP log line for a test call. Does it name the person?
3. Which statuses does the design depend on, and what is the fallback if one slips?
4. What does each agent cost per month at double the forecast volume, and on whose budget?
5. Who is on call for each agent, and who retests after an SAP or model change?

### Production concerns

- **Authorizations.** Whatever the home, SAP roles decide reads and drafts wait for the owning role. An agent's own permissions should never exceed the person's.
- **Evaluation.** Test the placed agent in its home with users from at least two roles; a test from a developer's account proves nothing about identity.
- **Cost.** Count steps, not only runs: a Joule Studio agent that loops costs more per run. Set budget alerts on each home's meter, and add the gateway share outside homes need.
- **Operations.** Register every agent and its home in SAP AI Agent Hub or your inventory, with an owner and a review date.
- **Clean core.** No home justifies custom code in S/4HANA to serve an agent. Released APIs through a gateway, or an SAP agent over A2A; see [the integration platform and clean core](https://erpfde.com/topics/integration-platform-and-clean-core/).
- **Exit.** Keep prompts, tools and tests in your own repository so an agent can move homes when a gate or price changes.

### Pitfalls

- **Placing by company standard.** "Everything on our cloud" ignores data gravity and the route into SAP.
- **Scoring before gating.** A cheap home that fails identity looks like a bargain in a spreadsheet.
- **Trusting one status page.** SAP's pages disagree on the Agent Gateway's status this month; read the dated announcement and confirm for your edition.
- **Ignoring the steps.** A complex agent can take many steps per run, and per-step meters grow with them.
- **Treating a close call as settled.** A 0.03 lead is a coin toss on today's assumptions. Write down what would flip it.
- **Forgetting the second bill.** An outside home still needs SAP's gateway, identity and support work.

### Exercise

Fix the hyperscaler's identity, add a fourth Calder agent, and see a placement land outside SAP.

1. Open `unit15/agent_placement.py`.
2. In `HOMES`, change the hyperscaler's `"identity": "technical-user"` to `"identity": "named-user"`. This stands for user tokens exchanged at SAP Cloud Identity Services, the pattern from the Microsoft topic's user mode.
3. Add a fourth agent to `AGENTS`, after `AGT_SUPPLY_WATCH`: `"id": "AGT_SERVICE_KB"`, `"job": "answer technicians from manuals and repair history"`, `"users": "field technicians"`, `"works_in": "teams"`, `"acts_for_user": True`, `"sap_data_share": 0.30`, `"workflow": "complex"`, `"needs": []`, `"runs_per_month": 900`, `"steps_per_run": 8`, `"seconds_per_run": 40` (course values: manuals sit in the company's document store, repair history in SAP).
4. Run `python unit15/agent_placement.py`.
5. In `unit15/README.md`, write two sentences: why `AGT_SERVICE_KB` lands outside SAP, and why the supply watch agent's totals moved although you didn't touch its profile. Reuse your notes from the Microsoft and Agentforce topics on whose identity SAP sees.

**Done when** the run shows no `G2` rows, `AGT_SERVICE_KB` ends with `-> lives in hyperscaler (10.0 runtime hours); runner-up btp-custom, 1.32 behind`, and your README explains both points. Keep the record: the capstone's architecture pack reuses it.

### Check yourself

1. In the lab, why is the hyperscaler home out for every agent before any score?
   - A. Its monthly cost is the highest of the five homes in every case
   - B. The pilot used one API key, so it fails the identity gate
   - C. SAP's policy bars every hyperscaler from calling SAP's APIs
   - D. Hyperscalers can't reach S/4HANA Cloud Private Edition at all

   Answer: B. G2 asks whether SAP sees each person's own user. The pilot design used one key, so SAP would see a technical user. SAP's pages show hyperscalers as A2A clients, so the home itself isn't barred; the exercise fixes the design.

2. How does the script score cost, and what follows from it?
   - A. Each home gets a fixed cost score set by hand in the weights table
   - B. Cost is only used to break ties between homes with equal totals
   - C. Relative to the cheapest home that passed, so opening a gate moves it
   - D. In AI Units for every home, converted from the vendors' meters

   Answer: C. The cost score is 1 + 4 × cheapest / cost among the homes that passed. When the exercise lets the hyperscaler pass, it becomes the cheapest, so other homes' cost scores fall even though their own costs didn't change.

3. The supply watch agent picks BTP by 0.03 over Joule Studio. Lowering the course AI Unit price to 6.00 flips it. What should the decision record do?
   - A. Pick Joule Studio now, since the lower price is more likely
   - B. Drop the cost criterion, since prices are uncertain anyway
   - C. Run the agent in both homes until one proves cheaper
   - D. Name the AI Unit price from the contract as a reason to reopen it

   Answer: D. A close call depends on inputs you must take from your own contract. Recording which input would flip the decision keeps it honest and tells the next reviewer when to look again.

4. A team plans a Joule Studio agent that will call a CRM vendor's agent over A2A to update a case. What is the problem as of November 2026?
   - A. Joule Studio agents can't call any tools at all
   - B. Outbound A2A is listed as future direction: it fails G3
   - C. The CRM vendor would need an SAP licence to receive the call
   - D. A2A only carries text, so a case update can't be expressed

   Answer: B. SAP's October 2026 news makes inbound A2A generally available and lists outbound A2A and outbound MCP as future direction with no date. Depending on it fails G3; reverse the direction or wait.

5. Why does the topic treat a route through a hyperscaler's own SAP MCP server as a question to ask SAP rather than a clear yes?
   - A. Because hyperscaler MCP servers can only read ECC, not S/4HANA
   - B. Because SAP's policy lists every non-SAP product as unpermitted
   - C. Because the policy names endorsed architectures, not products
   - D. Because MCP servers outside SAP always need custom ABAP code

   Answer: C. Section 2.2.2 allows agent-planned API calls only through SAP-endorsed architectures, without naming products. Whether a specific vendor's server counts is for SAP to confirm, which is why the route is a gate you verify.

6. Calder's clerks stay in the CRM while the order exceptions agent lives in Joule Studio. What does the script's channel score of 4 reflect?
   - A. The clerks must open SAP to see the agent's answers
   - B. The CRM vendor's platform hosts the agent's code
   - C. Joule Studio can't be reached from outside SAP at all
   - D. The CRM calls the SAP-side agent over inbound A2A

   Answer: D. Channel scores 5 when the home is where the users work, and 4 when their app can call the agent over GA inbound A2A. That is the topic's point that where an agent lives and where it is used can differ.

7. Which production habit keeps a placement decision reversible?
   - A. Building each agent's prompts and tools only in the home's own editor
   - B. Locking each agent into a three-year contract for the best price
   - C. Keeping prompts, tools and tests in your own repository
   - D. Letting each vendor's support desk own the agent's tests

   Answer: C. Statuses, prices and volumes change, and a gate may open or close. Agents whose prompts, tools and tests live in your repository can move homes without being rebuilt from memory.

## Sources

- [Understanding the Commercial Model (SAP Learning, Introducing Joule)](https://learning.sap.com/courses/introducing-joule/understanding-the-commercial-model): Opened 2026-11-25. No page date. Hybrid model of per-user packages and AI Units, bought annually from a central pool; Joule Base needs no AI Units, Joule Premium does, including agent actions; agent usage measured in steps; consumption rates Basic 0.005, Standard 0.01, Advanced 0.025 AI Units per step; customer-built agents generally Basic at present
- [SAP Empowers AI Developers to Build What Matters and Turn Intent into Autonomous Execution (SAP News, 27 October 2026)](https://news.sap.com/2026/10/sap-teched-ai-developers-build-what-matters-autonomous-execution/): Opened 2026-11-25. For select customers, deploying and running custom agents on the SAP-managed Joule Studio runtime free through December 2026; design-time tooling free under fair-use limits; third-party agents invoke Joule Agents through a governed agent gateway; visibility into agent behavior, model usage and spend; new SAP Enterprise AI Gateway for usage tracking and auditing
- [Build AI Agents on SAP BTP (SAP Architecture Center, AI golden path, updated 2026-10-26)](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/build-ai-agents): Opened 2026-11-25. Low-code Joule Studio agents on a managed runtime on SAP AI Core; pro-code with SAP Cloud SDK for AI and frameworks such as LangGraph or Google ADK, runtime Cloud Foundry or Kyma, models through the generative AI hub; low-code when speed and SAP tooling come first, pro-code for complex, multi-step or conditional workflows; pro-code connects to Joule over A2A (bring your own agent) with a 60-second synchronous window; says the Agent Gateway is not yet generally available
- [Agentic AI & AI Agents on SAP Business AI Platform (SAP Architecture Center, updated 2026-10-26)](https://architecture.learning.sap.com/docs/ref-arch/98efa0): Opened 2026-11-25. Two build paths: Joule Studio on the SAP-managed runtime, and custom agents on a customer-managed BTP subaccount with SAP Cloud SDK for AI, connected to Joule over A2A; SAP AI Agent Hub (by SAP LeanIX) and SAP Cloud Identity Services as the governance layer; hyperscaler platforms appear as external A2A clients
- [A2A agent gateway interoperability (SAP Architecture Center news, 27 October 2026)](https://architecture.learning.sap.com/news/2026/10/27/a2a-agent-gateway-interoperability): Opened 2026-11-25. October 2026 general availability of inbound A2A interoperability through the Agent Gateway; discovery, A2A and governed access with a customer-controlled access list per agent; invoking an agent needs a user token and runs within the user's permissions; outbound A2A and outbound MCP listed as future direction without a date
- [Gemini Enterprise Integration with Joule Agents (SAP Architecture Center, updated 2026-10-27)](https://architecture.learning.sap.com/docs/ref-arch/c9a3f8): Opened 2026-11-25. A proxy agent on Google's agent runtime exchanges the user's token at SAP Cloud Identity Services and relays A2A calls to the Agent Gateway; authorizations enforced per real user; disclaimer says the Agent Gateway is not yet GA
- [SAP API Policy v.4.2026a (SAP Help Portal, PDF)](https://help.sap.com/doc/sap-api-policy/latest/en-US/API_Policy_latest.pdf): Opened 2026-11-25. 1.2 non-published APIs must not be accessed unless the documentation permits or SAP authorizes; 2.2.2 bars API use by (semi-) autonomous or generative AI systems that plan, select or execute sequences of API calls except through SAP-endorsed architectures; 3 bars circumventing API controls through intermediary services, custom code, proxies or gateways
- [SAP API Policy overview (SAP slide deck for SAP user groups, 2026)](https://assets.dm.ux.sap.com/sap-user-groups/pdfs/260530_sap_api_policy_overview.pdf): Opened 2026-11-25. Policy published 27 April 2026; endorsed reference architectures include low-code AI agents with Joule Studio and pro-code AI agents on SAP BTP, and AI agent integration through A2A (Agent Gateway); FAQ: customers can use any third-party AI platform connected through an endorsed architecture; no automatic blocks or penalty models; customer-namespace code permitted but not to circumvent controls
- [General availability of AWS for SAP MCP Server in Amazon Bedrock AgentCore (AWS What's New, 1 May 2026)](https://aws.amazon.com/about-aws/whats-new/2026/05/aws-sap-mcp-amazon-bedrock/): Opened 2026-11-25. MCP server built on SAP OData, runs on AgentCore Runtime, covers S/4HANA and ECC, container image at no cost; AWS documentation adds that writes are off unless the operator enables them and that outbound calls go through SAP BTP Integration Suite API Management with OAuth 2.0
- [Amazon Bedrock AgentCore pricing (AWS, page updated 2026-11-17)](https://aws.amazon.com/bedrock/agentcore/pricing/): Opened 2026-11-25. Runtime 0.1276 USD per vCPU-hour and 0.0169 USD per GB-hour, billed per second; Gateway 0.005 USD per 1,000 invocations; region not stated on the page; observability billed through CloudWatch
