# Joule Studio architecture: skills, agents and where they run

> Understand what Joule Studio builds, where each asset runs and how it reaches production Joule, and set the build standard teams follow before they start.

- Course: Orchestrate, Unit 23 · Joule and the AI platform: the architect's view
- Page: https://erpfde.com/topics/joule-studio-architecture/
- Updated: 2026-11-28
- Reading time: Foundational 8 min, Deep 35 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

**Joule Studio** is where a company builds its own additions to Joule. Teams build two main kinds of thing:

- A **skill** does one fixed job from clear inputs, such as "list my blocked orders". It gives the same answer every time.
- An **agent** works toward a goal. It decides which tools to call, in what order, based on what it finds. It can use skills.

As of November 2026 there are two generations. **Joule Studio Classic**, inside SAP Build, is the one most customers have today. The **new Joule Studio** deploys to an SAP-managed runtime and adds agent extensions and generated MCP servers. SAP's pages disagree on how far the new one's general availability has gone, so check your own tenant.

The architect's job is not to build the first agent. It is to set the **standard** before ten teams build fifty: which kind of asset fits which job, which environments a build passes through, who may put it in production, and who watches it once it runs.

### Why it matters to the business

- **One switch exposes a whole environment.** In Joule Studio Classic, each environment has a switch that sends its projects to production Joule. SAP's tutorial says turning it on makes *all* projects in that environment available in production ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-9-release-deploy)). A workshop demo left in the wrong environment reaches every user.
- **Cost follows the asset type.** SAP's Q3 2026 highlights say the skill builder is a base AI feature, while the agent builder is free until December 2026 and then becomes a premium AI feature ([SAP News, 26 October 2026](https://news.sap.com/2026/10/ai-release-highlights-q3-2026/)). An agent built for a job a skill could do costs more for no gain.
- **Changes need control.** A skill that creates a credit review request changes SAP data. SAP's golden path calls for confirmation steps on create, update and delete ([SAP Architecture Center](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/joule-skills)). Without a standard, each team decides alone.
- **Auditors ask who released it.** If any developer can deploy to production, nobody can say which tested version users are running.

At the fictional Calder Pumpworks, customer service wants an order exceptions agent, accounts payable an invoice triage agent, and the credit team a skill to file credit reviews. Without a standard, a build sprint left a test environment wired to production and a demo skill in front of every user.

### How SAP does it

- **Joule Studio Classic.** The design-time environment inside SAP Build, provisioned through formations once Joule and SAP Build Process Automation are set up. Skills call APIs through destinations; agents plan and reason, use SAP AI Core models, and can call skills. Both deploy next to Joule's central instance ([SAP Architecture Center, 21 October 2026](https://architecture.learning.sap.com/docs/ref-arch/ff07b1)).
- **Environments.** A builder works in a private environment, then releases a version and deploys it to a shared environment. SAP's tutorial recommends a shared test environment and a shared production environment per line of business, with the production switch on only for the latter ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-2-private-environment)).
- **Governance.** SAP Build can require approval before anyone creates or transports a project, and environments grant rights such as Monitor, Deploy and Administrate to named users or groups ([SAP Learning](https://learning.sap.com/courses/low-code-no-code/exploring-sap-build-governance)).
- **The new Joule Studio.** Agents, agent extensions and MCP servers are built in a browser or from a command line and deployed to the SAP-managed runtime, where SAP "handles scaling, monitoring, and operations" and registers them with Joule ([SAP Architecture Center, 25 October 2026](https://architecture.learning.sap.com/docs/ref-arch/d2ba1e)).
- **Status.** SAP's 26 October highlights say general availability is "underway in a phased approach". An SAP News Center article of 2 November quotes SAP's CTO calling it generally available ([SAP Africa News Center](https://news.sap.com/africa/2026/11/sap-beefs-up-business-ai-platform-and-joule-to-drive-agentic-ai-adoption/)). Ask SAP in writing what your tenant has.

### Calder's build standard on one page

These are the decisions to write down before teams build. Each row is a rule the deep layer checks.

| Decision | Calder's standard | Why |
| --- | --- | --- |
| Skill or agent? | A skill for one fixed job; an agent only when the steps depend on what it finds | Skills are predictable and a base feature |
| Data changes | Every create, update or delete asks the user to confirm | SAP's golden path |
| Skills inside an agent | Callable only through the agent | SAP's tutorial advice; one way in to test |
| Environments | Private, then *O2C Test*, then *O2C Production*; only production sends to Joule | The switch exposes everything in it |
| What reaches production | Only versions that passed test, each with a named owner | Users get what was tested |
| Connections | Test environments reach test systems only | A test must never post in production |
| Approvals | Creating and transporting projects is Governed | A second person sees it first |
| Deploy rights in production | Release managers only | One accountable person |
| New Joule Studio assets | Pilot until SAP confirms the tenant's access in writing | Status differs across SAP's pages |
| Agents in production | A monitoring owner and an evaluation set | Someone watches, and quality is measured |

> **Note** **For functional consultants.** Test cases now run in the shared test environment, not in a builder's private one, and they must include asking Joule in plain words to check it picks the right skill. Every skill that changes data needs a test where the user says no at the confirmation. Role design gains environment rights: who may deploy, who may only monitor.

### Questions to ask

- Which Joule Studio do we have, Classic or the new one, and is our tenant confirmed for the new one in writing?
- How many environments send to production Joule, and what is in each of them today?
- Who can deploy to the production environment? Show us the list.
- Are the governance rules for creating and transporting projects set to Governed?
- Which assets change SAP data, and does each one confirm with the user first?
- For each agent in production: who watches it, and what evaluation set proves it still works?
- What will our agents cost after December 2026, when the agent builder becomes a premium feature?

### Common misconceptions

- **"An agent is always the better choice."** For one fixed job a skill is cheaper, faster to test and gives the same answer every time.
- **"Deploying a project puts only that project in production."** The switch works per environment: every project deployed there goes to production Joule.
- **"A test environment can use production data to be realistic."** Then a test that creates a request creates it in production. Use test systems.
- **"The new Joule Studio replaces Classic, so we wait."** Classic is what most tenants run today, and SAP documents both. Standardize on what you have.
- **"SAP runs the managed runtime, so we don't need monitoring."** SAP runs the platform. Whether your agent still gives the right answer is yours to measure.

### Key terms

- **Joule Studio:** SAP's environment for building skills and agents that appear in Joule.
- **Joule Studio Classic:** the generation inside SAP Build, using its lobby, projects and environments.
- **Skill:** a deterministic Joule extension that does one job from structured inputs.
- **Agent:** an AI-driven Joule extension that plans steps and calls tools, APIs and skills toward a goal.
- **Agent extension:** an asset of the new Joule Studio that adds instructions to an SAP-delivered agent without changing it.
- **Environment:** a place in SAP Build where released project versions are deployed; private, shared or public.
- **Release:** a numbered, frozen version of a project (the first is 1.0.0) that can then be deployed.
- **Managed runtime:** the SAP-operated place where the new Joule Studio's solutions run.
- **Build standard:** the written rules every team follows when building for Joule.

### Check yourself

1. A team wants Joule to list a customer's blocked orders. What should the standard say they build?
   - A. A skill, since it is one fixed job from clear inputs
   - B. An agent, since agents can always do more than skills
   - C. An agent extension on top of SAP's order agent
   - D. Both, so users can choose the one they prefer

   Answer: A. A skill does one fixed job and gives the same result every time. SAP's Q3 2026 highlights make the skill builder a base feature, while the agent builder becomes premium after December 2026.

2. Why must only the production environment send to production Joule?
   - A. Because a test environment can hold only one project
   - B. The switch exposes every project in that environment to users
   - C. Because SAP charges per environment that has the switch on
   - D. Because Joule can read only one environment's destinations

   Answer: B. SAP's tutorial says turning the switch on makes all projects in the environment available in production. A test environment with it on puts untested work in front of every user.

3. A skill files a credit review request in SAP. What must the build standard require?
   - A. That only agents, never skills, are allowed to file it
   - B. That it runs once a night as a batch instead of on request
   - C. That it uses a technical user so the request always succeeds
   - D. A confirmation step before it creates the request

   Answer: D. It creates data, and SAP's golden path calls for confirmation steps on create, update and delete. The user sees what will happen and can say no.

4. The partner says the new Joule Studio is generally available, so production can start next week. What do you do?
   - A. Accept it, since one SAP article already says GA
   - B. Refuse it, since the new Joule Studio is only a beta
   - C. Ask SAP in writing whether our tenant has access
   - D. Wait until SAP retires Joule Studio Classic completely

   Answer: C. SAP's 26 October highlights call GA phased, while a 2 November article quotes GA. Only a written confirmation for your tenant settles it.

5. Which question best tests whether production is under control?
   - A. Which language model each of our agents is using today
   - B. Who can deploy to production, and what is deployed there now
   - C. How many skills each team has built in its private environment
   - D. Whether builders prefer the browser or the command line tool

   Answer: B. Deploy rights and the contents of the production environment decide what users get and who is accountable. The other questions matter less for control.

6. SAP operates the managed runtime. What remains Calder's job for an agent in production?
   - A. Nothing, since SAP handles scaling, monitoring and operations
   - B. Only paying for the AI Units that the agent consumes
   - C. Patching the runtime when SAP releases a new version
   - D. Naming who watches it and measuring it on an evaluation set

   Answer: D. SAP runs the platform, but whether the agent still gives the right answer is the customer's to measure. The standard names a monitoring owner and an evaluation set.

## Deep layer

### Mental model

Think of every Joule Studio asset as moving through **four planes**:

1. **Build**: design time, where a builder edits a project (Classic) or a solution (new Joule Studio).
2. **Release**: a frozen, numbered version.
3. **Run**: the place where the asset executes and Joule's catalog that offers it to users.
4. **Watch**: who sees what it did, and who decides it still works.

The architect standardizes the joints between the planes: which asset type a job gets, which path a version takes from build to run, who may push it across each step, and who owns the watch. Builders then work freely inside those rules.

[Joule and Joule Studio](https://erpfde.com/topics/joule-and-joule-studio/) taught a builder how to make a skill or an agent. [Intent-based development with Joule Studio](https://erpfde.com/topics/intent-based-development-with-joule-studio/) and the [Joule Studio agent project](https://erpfde.com/topics/project-joule-studio-agent-end-to-end/) covered the new Joule Studio's method end to end. This topic doesn't repeat them; it covers what sits around them.

### How it works

#### Two generations, one Joule

```mermaid
flowchart LR
  subgraph C[Joule Studio Classic, in SAP Build]
    P[Private env] --> T[Shared env: O2C Test]
    T --> PR[Shared env: O2C Production]
  end
  subgraph N[New Joule Studio]
    B[Browser builder or jl CLI] --> MR[SAP-managed runtime]
  end
  PR -- switch on --> J[Production Joule catalog]
  MR -- registered --> J
  J --> U[User asks in Joule]
  PR --> D[Destinations] --> S[S/4HANA]
  MR --> S
```

- **Classic.** SAP's reference page calls Joule Studio Classic the design-time environment. It needs Joule and SAP Build Process Automation on the `build-default` plan with Identity Authentication, and it is provisioned through formations in the BTP cockpit. Skills and agents deploy alongside Joule's central instance; models come from SAP AI Core, and back-end calls go through the Connectivity and Destination services ([SAP Architecture Center, 21 October 2026](https://architecture.learning.sap.com/docs/ref-arch/ff07b1)).
- **New Joule Studio.** The low-code flow is a browser builder with no local setup; the pro-code flow is the `jl` command-line tool with a coding agent connected over MCP, deploying with `jl solution deploy`. Assets are agents, agent extensions and MCP servers generated from an OData or REST API. Deployed solutions run on the SAP-managed runtime and are "automatically registered with Joule" ([SAP Architecture Center, 25 October 2026](https://architecture.learning.sap.com/docs/ref-arch/d2ba1e)).

Both generations end in the same catalog. [How Joule works](https://erpfde.com/topics/how-joule-works/) traces what happens after a user's request reaches it.

#### Skills and agents, mechanically

| | Skill | Agent |
| --- | --- | --- |
| What it is | One operation from structured inputs; deterministic | AI-driven; plans steps toward a goal |
| How it calls SAP | Actions that wrap APIs, through destinations | Tools: skills, APIs, MCP servers, document grounding |
| Logic | Conditions and formulas you define | Instructions and a model's reasoning |
| Where the model works | Joule's router picks the skill; the golden path also offers generated response text | SAP AI Core (Classic) or the managed runtime (new) |
| Test | The same input gives the same output | An evaluation set over many inputs |
| Licensing (Q3 2026 highlights) | Base AI feature | Free until December 2026, then premium |

Sources for the rows: SAP's tutorial describes skills as task-specific and deterministic and agents as AI-driven, and advises setting skills used by an agent so they can be called only through it ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-0-overview/)). The golden path describes a skill as a Joule Scenario project with actions, a Condition Editor and a Formula Editor, and suggests scenario dependencies for simple orchestration but custom agents for complex reasoning and state ([SAP Architecture Center](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/joule-skills)). Licensing is from [SAP's Q3 2026 highlights](https://news.sap.com/2026/10/ai-release-highlights-q3-2026/).

**Agent extensions** are a third choice in the new Joule Studio: they add instructions to an SAP-delivered agent without modifying it, so the base agent keeps receiving SAP's updates ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/d2ba1e)). [Agent extensions for SAP base agents](https://erpfde.com/topics/agent-extensions-for-sap-base-agents/) covers them.

#### From build to production in Classic

```mermaid
sequenceDiagram
  participant Dev as Builder
  participant Priv as Private env
  participant Rel as Release 1.0.0
  participant Test as O2C Test (switch off)
  participant Prod as O2C Production (switch on)
  participant J as Production Joule
  Dev->>Priv: build and try
  Dev->>Rel: Release
  Rel->>Test: Deploy, destinations to S4Q
  Test-->>Dev: tests pass
  Rel->>Prod: Deploy by release manager, destinations to S4P
  Prod->>J: all projects in this env exposed
```

The steps, from SAP's tutorials:

1. **Private environment.** In the SAP Build lobby, **Control Tower**, **Environments**, then **Activate Private Environment** ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-2-private-environment)).
2. **Release.** In the project, **Release** creates version **1.0.0** with an optional release note.
3. **Deploy.** **Show project version**, **Deploy**, then pick the environment in **Choose an Environment** and map environment variables to destinations.
4. **Test.** In **Control Tower > Environments**, open the shared environment's **Joule** tab and **Launch** a Joule scoped to it.
5. **Production.** Each environment has a switch that sends its projects to production Joule; SAP's tutorial describes a test environment with it off and a production one with it on ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-9-release-deploy)).

The golden path describes the same idea as a standalone environment for testing, "not connected to production Joule", and a shared environment that deploys to unified Joule ([SAP Architecture Center](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/joule-skills)).

**What an architect notices.** The unit of exposure is the *environment*, not the project. So the environment layout is the release design. Two consequences: whatever is deployed in production is the inventory to check, and deploy rights on that environment are the most sensitive right in the setup.

#### Governance and rights

SAP Build has two tenant-level governance rules, **Create a Project** and **Transport a Project**, each Governed (approval first) or Ungoverned. Shared environments are created by administrators and shared with users or groups, with the authorizations **Monitor**, **View Logs**, **Deploy**, **Execute**, **Administrate** and **Supervise** ([SAP Learning](https://learning.sap.com/courses/low-code-no-code/exploring-sap-build-governance)). The golden path lists an SAP Build Developer License for building and a Joule entitlement for production deployment.

#### Monitoring

What SAP states, as of November 2026:

- The managed runtime: SAP "handles scaling, monitoring, and operations" ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/d2ba1e)).
- The Q3 2026 highlights: centralized management gives "visibility into skills, agent execution, and data privacy enforcement".
- The TechEd release of 27 October 2026 announces "new observability and administrative controls" for agent behavior, model usage and spend, without a status ([SAP News](https://news.sap.com/2026/10/sap-teched-ai-developers-build-what-matters-autonomous-execution/)).

None of these answers whether an agent still routes Calder's blocked orders to the right owner. That needs an evaluation set and an owner, as in [evaluating agents](https://erpfde.com/topics/evaluating-agents/) and [BTP observability](https://erpfde.com/topics/btp-observability/).

### Build it yourself

**Before you start:** finish [Set up your computer for this course](https://erpfde.com/topics/set-up-your-computer/) and [Set up for Unit 23](https://erpfde.com/topics/set-up-for-unit-23/). This lab needs no SAP account, no key and no network. Joule Studio has no free tenant you can deploy to production from (the SAP Build trial in the setup topic excludes production deployment), so you review Calder's build standard as data. If you started the optional SAP Build trial from the setup topic, open its lobby and compare what you see with the environment path described above; the trial runs on a shared tenant and excludes production deployment.

You will write Calder's Joule Studio **build register** twice (a draft from a build sprint and a reviewed version), check each against ten rules, list what production Joule would offer, and write the register as markdown for a design document.

```mermaid
flowchart LR
  I[--init] --> DR[studio_register_draft.json]
  I --> RV[studio_register_reviewed.json]
  DR --> R[--review<br/>rules S01-S10]
  RV --> R
  DR --> E[--expose]
  RV --> E
  RV --> S[--standard]
  S --> MD[studio_standard.md]
```

The script is a **course stand-in**. It reads a register and applies rules; it calls no SAP service. Rules S02, S03 and S04 come from SAP's pages cited above; the rest are course rules built on them.

> **Note** **New words.** A **register** is a list of every asset with its owner and where it is deployed. **JSON** is a text format for structured data. A **version** such as `1.2.0` names one frozen release. An **exit code** is the number a program returns: 0 means fine, 2 here means the review found a FAIL.

#### What you need

- The course folder `orchestrate-course` with its `.venv`.
- No account, no key, no cost. Only Python's built-in modules, so `requirements.txt` doesn't change.
- Time: about 30 minutes.

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

1. Open VS Code, then **File > Open Folder** and choose `orchestrate-course`.
2. Open a terminal with **Terminal > New Terminal**.
3. Turn on the virtual environment:
   - **Windows (PowerShell):**

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

   - **macOS / Linux:**

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

4. Make the `unit23` folder if it doesn't exist yet:
   - **Windows (PowerShell):**

     ```powershell
     New-Item -ItemType Directory -Force unit23
     ```

   - **macOS / Linux:**

     ```bash
     mkdir -p unit23
     ```

You should see `(.venv)` at the start of the prompt.

#### Step 2: Create the script

1. In VS Code, create the file `unit23/studio_standard.py`.
2. Paste the code below and save.

```python
"""Review a Joule Studio build register against a build standard, and show what production Joule exposes.

Usage (run from the orchestrate-course folder):
  python unit23/studio_standard.py --init                     write the draft and reviewed registers
  python unit23/studio_standard.py --register FILE --review   check the register against rules S01-S10
  python unit23/studio_standard.py --register FILE --expose   list what production Joule would offer
  python unit23/studio_standard.py --register FILE --standard write unit23/studio_standard.md

Options:
  --force   let --init overwrite existing register files

Built-in modules only, no account, no network, no randomness. This is a course stand-in:
it reads a register written as data and applies the rules; it calls no SAP service.
Calder Pumpworks is fictional; environment names, assets, users, versions and rules
S01-S10 are course labels, not SAP values.
"""
import argparse
import copy
import json
import sys
from pathlib import Path

HERE = Path(__file__).resolve().parent
WRITES = {"create", "update", "delete"}
PRODUCTION_SYSTEMS = {"S4P"}

REVIEWED = {
    "as_of": "2026-11-28",
    "joule_instance": "joule-prod",
    "tenant": {
        "classic_edition": True,
        "new_studio_confirmed": False,
        "governance": {"Create a Project": "Governed", "Transport a Project": "Governed"},
    },
    "release_managers": ["00100292"],
    "environments": {
        "Private 00100288": {"kind": "private", "stage": "development", "to_production_joule": False,
                             "destinations": {"S4_ODATA": "S4Q"},
                             "deploy": ["00100288"]},
        "O2C Test": {"kind": "shared", "stage": "test", "to_production_joule": False,
                     "destinations": {"S4_ODATA": "S4Q"},
                     "deploy": ["00100288", "00100292"]},
        "O2C Production": {"kind": "shared", "stage": "production", "to_production_joule": True,
                           "destinations": {"S4_ODATA": "S4P"},
                           "deploy": ["00100292"]},
    },
    "assets": [
        {"id": "calder_blocked_orders", "type": "skill", "edition": "classic", "job": "fixed",
         "owner": "00100296", "operations": ["read"], "used_by": "calder_order_exceptions",
         "callable_directly": False, "confirmation": False,
         "tested": ["1.2.0"], "deployed": {"O2C Test": "1.2.0", "O2C Production": "1.2.0"}},
        {"id": "calder_credit_review_request", "type": "skill", "edition": "classic", "job": "fixed",
         "owner": "00100304", "operations": ["create"], "used_by": "calder_order_exceptions",
         "callable_directly": False, "confirmation": True,
         "tested": ["1.0.0", "1.1.0"], "deployed": {"O2C Test": "1.1.0", "O2C Production": "1.0.0"}},
        {"id": "calder_order_exceptions", "type": "agent", "edition": "classic", "job": "judgement",
         "agent_user": "AGT_ORDER_EXC", "owner": "00100296", "operations": ["read"],
         "monitoring_owner": "00100288", "eval_set": "uat-set-v1", "confirmation": False,
         "tested": ["1.3.1"], "deployed": {"O2C Test": "1.3.1", "O2C Production": "1.3.1"}},
        {"id": "calder_invoice_triage", "type": "agent", "edition": "classic", "job": "judgement",
         "agent_user": "AGT_INV_TRIAGE", "owner": "00100244", "operations": ["read"],
         "monitoring_owner": "00100288", "eval_set": "trajectory-T1-T6", "confirmation": False,
         "tested": ["0.9.0"], "deployed": {"O2C Test": "0.9.0"}},
        {"id": "calder-ap-tolerance", "type": "agent-extension", "edition": "new", "job": "judgement",
         "owner": "00100244", "operations": ["read"], "confirmation": False,
         "monitoring_owner": "00100288", "eval_set": "ext-T1-T6",
         "tested": [], "deployed": {"managed pilot": "0.1.0"}},
        {"id": "calder-sales-order-mcp", "type": "mcp-server", "edition": "new", "job": "fixed",
         "owner": "00100288", "operations": ["read"], "confirmation": False,
         "tested": [], "deployed": {"managed pilot": "0.1.0"}},
    ],
}


def make_draft():
    """The first draft from a build sprint, with the mistakes a review should catch."""
    d = copy.deepcopy(REVIEWED)
    d["tenant"]["governance"]["Transport a Project"] = "Ungoverned"
    d["environments"]["O2C Test"]["to_production_joule"] = True
    d["environments"]["O2C Test"]["destinations"]["S4_ODATA"] = "S4P"
    d["environments"]["O2C Production"]["deploy"] = ["00100288", "00100292"]
    a = {x["id"]: x for x in d["assets"]}
    a["calder_credit_review_request"]["confirmation"] = False
    a["calder_credit_review_request"]["callable_directly"] = True
    a["calder_blocked_orders"]["callable_directly"] = True
    a["calder_invoice_triage"]["eval_set"] = None
    a["calder_invoice_triage"]["deployed"]["O2C Production"] = "0.9.1"
    a["calder-ap-tolerance"]["deployed"] = {"managed production": "0.1.0"}
    d["assets"].append(
        {"id": "calder_open_order_value", "type": "agent", "edition": "classic", "job": "fixed",
         "agent_user": None, "owner": "00100266", "operations": ["read"], "confirmation": False,
         "monitoring_owner": "00100288", "eval_set": "oov-5",
         "tested": ["1.0.0"], "deployed": {"O2C Test": "1.0.0"}})
    d["assets"].append(
        {"id": "gtt_track_shipment", "type": "skill", "edition": "classic", "job": "fixed",
         "owner": None, "operations": ["read"], "confirmation": False, "callable_directly": True,
         "tested": [], "deployed": {"O2C Production": "1.0.0"}})
    return d


def env_is_production(name, envs):
    if name.startswith("managed "):
        return name == "managed production"
    return envs[name]["to_production_joule"]


def review(reg):
    """Return a list of (status, rule, subject, message)."""
    out = []
    envs = reg["environments"]
    tenant = reg["tenant"]
    managers = set(reg["release_managers"])

    def add(status, rule, subject, msg):
        out.append((status, rule, subject, msg))

    for a in reg["assets"]:
        aid, kind = a["id"], a["type"]
        # S01 the asset type fits the job
        if kind == "skill" and a["job"] != "fixed":
            add("WARN", "S01", aid, "a skill does one fixed job; this needs judgement, so build an agent")
        elif kind == "agent" and a["job"] == "fixed":
            add("WARN", "S01", aid, "one fixed job built as an agent; a skill is cheaper and predictable")
        else:
            add("OK", "S01", aid, f"{kind} for a {a['job']} job")
        # S02 confirmation for create, update, delete
        if WRITES & set(a["operations"]):
            if a["confirmation"]:
                add("OK", "S02", aid, "changes data and asks for confirmation")
            else:
                add("FAIL", "S02", aid, "changes data without a confirmation step")
        # S03 a skill used by an agent is called only through the agent
        if kind == "skill" and a.get("used_by"):
            if a.get("callable_directly"):
                add("WARN", "S03", aid, f"used by {a['used_by']} but also callable directly")
            else:
                add("OK", "S03", aid, f"called only through {a['used_by']}")
        # S05 production versions were tested; owner present
        for env, ver in a["deployed"].items():
            if env_is_production(env, envs):
                if not a.get("owner"):
                    add("FAIL", "S05", aid, f"in {env} with no owner")
                if ver not in a["tested"]:
                    add("FAIL", "S05", aid, f"version {ver} in {env} was never tested")
                else:
                    add("OK", "S05", aid, f"{ver} in {env}, tested, owner {a['owner']}")
        # S09 new Joule Studio assets reach production only when confirmed
        if a["edition"] == "new":
            prod = [e for e in a["deployed"] if env_is_production(e, envs)]
            if prod and not tenant["new_studio_confirmed"]:
                add("FAIL", "S09", aid, "in production on the new Joule Studio, tenant access not confirmed")
            elif not tenant["new_studio_confirmed"]:
                add("WARN", "S09", aid, "pilot only: ask SAP to confirm the tenant's access in writing")
            else:
                add("OK", "S09", aid, "tenant access confirmed")
        # S10 agents: monitoring owner and evaluation set before production
        if kind in ("agent", "agent-extension"):
            missing = [k for k in ("monitoring_owner", "eval_set") if not a.get(k)]
            in_prod = any(env_is_production(e, envs) for e in a["deployed"])
            if missing and in_prod:
                add("FAIL", "S10", aid, "in production without " + " and ".join(missing))
            elif missing:
                add("WARN", "S10", aid, "add " + " and ".join(missing) + " before production")
            else:
                add("OK", "S10", aid, f"monitored by {a['monitoring_owner']}, evaluated on {a['eval_set']}")

    # S04 exactly one environment sends to production Joule
    for name, e in envs.items():
        wanted = e["stage"] == "production" and e["kind"] == "shared"
        if e["to_production_joule"] and not wanted:
            add("FAIL", "S04", name, f"a {e['stage']} environment sends to production Joule")
        elif wanted and not e["to_production_joule"]:
            add("FAIL", "S04", name, "the production environment doesn't send to production Joule")
        elif wanted:
            add("OK", "S04", name, "the only environment meant to send to production Joule")
        else:
            add("OK", "S04", name, "doesn't send to production Joule")

    for name, e in envs.items():
        # S06 destinations: production environment to production systems, others never
        for dest, system in e["destinations"].items():
            if e["stage"] == "production" and system not in PRODUCTION_SYSTEMS:
                add("FAIL", "S06", name, f"{dest} points to {system}, not production")
            elif e["stage"] != "production" and system in PRODUCTION_SYSTEMS:
                add("FAIL", "S06", name, f"{dest} points to production system {system}")
            else:
                add("OK", "S06", name, f"{dest} -> {system}")
        # S08 deploy rights in production only for release managers
        if e["stage"] == "production":
            extra = sorted(set(e["deploy"]) - managers)
            if extra:
                add("FAIL", "S08", name, "Deploy granted to " + ", ".join(extra) + " (not a release manager)")
            else:
                add("OK", "S08", name, "Deploy only for release managers")

    # S07 governance rules
    for rule, value in tenant["governance"].items():
        if value == "Governed":
            add("OK", "S07", rule, "Governed")
        else:
            add("FAIL", "S07", rule, f"{value}: no approval before it happens")
    return out


def exposed(reg):
    """What production Joule offers: every asset in an environment that sends to it."""
    envs = reg["environments"]
    rows = []
    for a in reg["assets"]:
        for env, ver in a["deployed"].items():
            if env_is_production(env, envs):
                rows.append((a["id"], a["type"], ver, env))
    return sorted(rows)


def load(path):
    p = Path(path)
    if not p.exists():
        sys.exit(f"No register at {p}. Run --init first.")
    return json.loads(p.read_text(encoding="utf-8"))


def cmd_init(force):
    files = {"studio_register_draft.json": make_draft(), "studio_register_reviewed.json": REVIEWED}
    for name, data in files.items():
        p = HERE / name
        if p.exists() and not force:
            print(f"KEEP  {p.name} (exists; use --force to overwrite)")
            continue
        p.write_text(json.dumps(data, indent=2) + "\n", encoding="utf-8")
        print(f"WROTE {p.name}")


def cmd_review(reg):
    results = review(reg)
    order = {"FAIL": 0, "WARN": 1, "OK": 2}
    for status, rule, subject, msg in sorted(results, key=lambda r: (r[1], order[r[0]], r[2])):
        print(f"{status:<5} {rule}  {subject}: {msg}")
    counts = {s: sum(1 for r in results if r[0] == s) for s in ("OK", "WARN", "FAIL")}
    print(f"\n{counts['OK']} OK, {counts['WARN']} WARN, {counts['FAIL']} FAIL")
    return 2 if counts["FAIL"] else 0


def cmd_expose(reg):
    rows = exposed(reg)
    print(f"Production Joule ({reg['joule_instance']}) would offer {len(rows)} assets:")
    for aid, kind, ver, env in rows:
        print(f"  {aid:<30} {kind:<16} {ver:<7} from {env}")
    return 0


def cmd_standard(reg):
    lines = [f"# Joule Studio build register, Calder Pumpworks (as of {reg['as_of']})", "",
             "Course stand-in output; Calder Pumpworks is fictional.", "",
             "## Environments", "",
             "| Environment | Kind | Stage | Sends to production Joule | Destinations | Deploy |",
             "| --- | --- | --- | --- | --- | --- |"]
    for n, e in reg["environments"].items():
        dest = ", ".join(f"{k} -> {v}" for k, v in e["destinations"].items())
        lines.append(f"| {n} | {e['kind']} | {e['stage']} | {'yes' if e['to_production_joule'] else 'no'} | {dest} | {', '.join(e['deploy'])} |")
    lines += ["", "## Assets", "",
              "| Asset | Type | Edition | Owner | Tested | Deployed |",
              "| --- | --- | --- | --- | --- | --- |"]
    for a in reg["assets"]:
        dep = ", ".join(f"{k} {v}" for k, v in a["deployed"].items())
        lines.append(f"| {a['id']} | {a['type']} | {a['edition']} | {a.get('owner') or '(none)'} | "
                     f"{', '.join(a['tested']) or '-'} | {dep} |")
    results = review(reg)
    fails = [r for r in results if r[0] != "OK"]
    lines += ["", "## Open findings", ""]
    lines += [f"- {s} {rule} {subj}: {msg}" for s, rule, subj, msg in fails] or ["- none"]
    out = HERE / "studio_standard.md"
    out.write_text("\n".join(lines) + "\n", encoding="utf-8")
    print(f"WROTE {out.name} ({len(reg['assets'])} assets, {len(fails)} open findings)")
    return 0


def main():
    ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    ap.add_argument("--init", action="store_true")
    ap.add_argument("--force", action="store_true")
    ap.add_argument("--register")
    ap.add_argument("--review", action="store_true")
    ap.add_argument("--expose", action="store_true")
    ap.add_argument("--standard", action="store_true")
    args = ap.parse_args()
    if args.init:
        cmd_init(args.force)
        return 0
    if not args.register or not (args.review or args.expose or args.standard):
        ap.print_help()
        return 1
    reg = load(args.register)
    if args.review:
        return cmd_review(reg)
    if args.expose:
        return cmd_expose(reg)
    return cmd_standard(reg)


if __name__ == "__main__":
    sys.exit(main())
```

#### Step 3: Write the two registers

Run:

```bash
python unit23/studio_standard.py --init
```

```text
WROTE studio_register_draft.json
WROTE studio_register_reviewed.json
```

Running it again keeps your files (`KEEP ...`); add `--force` to start over.

#### Step 4: Review the draft

Run:

```bash
python unit23/studio_standard.py --register unit23/studio_register_draft.json --review
```

The lines that aren't OK:

```text
WARN  S01  calder_open_order_value: one fixed job built as an agent; a skill is cheaper and predictable
FAIL  S02  calder_credit_review_request: changes data without a confirmation step
WARN  S03  calder_blocked_orders: used by calder_order_exceptions but also callable directly
WARN  S03  calder_credit_review_request: used by calder_order_exceptions but also callable directly
FAIL  S04  O2C Test: a test environment sends to production Joule
FAIL  S05  calder-ap-tolerance: version 0.1.0 in managed production was never tested
FAIL  S05  calder_invoice_triage: version 0.9.1 in O2C Production was never tested
FAIL  S05  gtt_track_shipment: in O2C Production with no owner
FAIL  S05  gtt_track_shipment: version 1.0.0 in O2C Production was never tested
FAIL  S06  O2C Test: S4_ODATA points to production system S4P
FAIL  S07  Transport a Project: Ungoverned: no approval before it happens
FAIL  S08  O2C Production: Deploy granted to 00100288 (not a release manager)
FAIL  S09  calder-ap-tolerance: in production on the new Joule Studio, tenant access not confirmed
WARN  S09  calder-sales-order-mcp: pilot only: ask SAP to confirm the tenant's access in writing
FAIL  S10  calder_invoice_triage: in production without eval_set

23 OK, 4 WARN, 11 FAIL
```

The exit code is 2 because of the FAILs. Read the findings as a design review would:

- **S04 and S06**: *O2C Test* has the production switch on and its `S4_ODATA` destination points at `S4P`. A tester's request would reach production users *and* production data.
- **S05**: a CodeJam demo skill, `gtt_track_shipment`, sits in *O2C Production* with no owner, and the invoice triage agent runs a version (0.9.1) that never passed test.
- **S02 and S03**: the credit review skill creates data with no confirmation, and both skills can be called directly as well as through the agent.
- **S07 and S08**: transports need no approval, and a developer can deploy to production.
- **S09**: the agent extension runs in production on the new Joule Studio, which SAP hasn't confirmed for Calder.
- **S01**: `calder_open_order_value` sums one customer's open orders. That is one fixed job, built as an agent.

#### Step 5: See what users would get

Run:

```bash
python unit23/studio_standard.py --register unit23/studio_register_draft.json --expose
```

```text
Production Joule (joule-prod) would offer 11 assets:
  calder-ap-tolerance            agent-extension  0.1.0   from managed production
  calder_blocked_orders          skill            1.2.0   from O2C Production
  calder_blocked_orders          skill            1.2.0   from O2C Test
  calder_credit_review_request   skill            1.0.0   from O2C Production
  calder_credit_review_request   skill            1.1.0   from O2C Test
  calder_invoice_triage          agent            0.9.0   from O2C Test
  calder_invoice_triage          agent            0.9.1   from O2C Production
  calder_open_order_value        agent            1.0.0   from O2C Test
  calder_order_exceptions        agent            1.3.1   from O2C Production
  calder_order_exceptions        agent            1.3.1   from O2C Test
  gtt_track_shipment             skill            1.0.0   from O2C Production
```

Eleven entries, several of them the same asset twice from test and production. Users would meet duplicate skills that Joule must choose between. Now the reviewed register:

```bash
python unit23/studio_standard.py --register unit23/studio_register_reviewed.json --expose
```

```text
Production Joule (joule-prod) would offer 3 assets:
  calder_blocked_orders          skill            1.2.0   from O2C Production
  calder_credit_review_request   skill            1.0.0   from O2C Production
  calder_order_exceptions        agent            1.3.1   from O2C Production
```

#### Step 6: Review the reviewed register and write it out

Run:

```bash
python unit23/studio_standard.py --register unit23/studio_register_reviewed.json --review
python unit23/studio_standard.py --register unit23/studio_register_reviewed.json --standard
```

The last lines:

```text
OK    S10  calder_invoice_triage: monitored by 00100288, evaluated on trajectory-T1-T6
OK    S10  calder_order_exceptions: monitored by 00100288, evaluated on uat-set-v1

24 OK, 2 WARN, 0 FAIL
WROTE studio_standard.md (6 assets, 2 open findings)
```

The two warnings are deliberate: the agent extension and the MCP server stay pilots until SAP confirms the tenant. Open `unit23/studio_standard.md` to see the environment and asset tables, ready to paste into a design document.

> **Note** These results come from a made-up register for the fictional Calder Pumpworks. They show the method, not what any real SAP tenant contains.

#### How the code works

| Part | What it does |
| --- | --- |
| `REVIEWED` | Calder's reviewed register: tenant settings, three environments, six assets |
| `make_draft()` | Copies it and adds the sprint's mistakes |
| `env_is_production()` | Decides whether an environment (or managed runtime stage) reaches production Joule |
| `review()` | Applies rules S01 to S10 and returns OK, WARN or FAIL lines |
| `exposed()` | Lists every asset in an environment that sends to production Joule |
| `cmd_standard()` | Writes the register and open findings to markdown |
| `main()` | Reads the options and returns exit code 2 on any FAIL |

#### If something goes wrong

| What you see | What it means | What to do |
| --- | --- | --- |
| `python: command not found` or `'python' is not recognized` | Python isn't on your path | Use `python3` (macOS/Linux) or `py` (Windows), or redo the setup topic |
| `No register at unit23/...` | You haven't run `--init` or are in another folder | Run from `orchestrate-course` and run `--init` first |
| `json.decoder.JSONDecodeError` | A hand edit broke the JSON | Check commas and quotes near the line named, or `--init --force` |
| `KeyError: 'stage'` | An environment you added lacks a field | Give every environment `kind`, `stage`, `to_production_joule`, `destinations`, `deploy` |
| The help text prints | No action option given | Add `--review`, `--expose` or `--standard` |
| A proxy or network error | Not from this script, which uses no network | Check that you ran this file and not another |

### The SAP way

What to set up in a real tenant, as SAP documents it in November 2026:

- **Prerequisites.** An enterprise account with SAP Build entitlement, an SAP Build Developer License, a Joule entitlement for production, and role assignments for Joule Studio ([golden path](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/joule-skills)). For Classic, Joule and SAP Build Process Automation with Identity Authentication, then provisioning by formation ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/ff07b1)).
- **Environments.** One private environment per builder, and per line of business a shared test environment and a shared production environment; the production switch only on the latter ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-2-private-environment)).
- **Destinations per environment.** Deployment maps environment variables to destinations, so the test environment's variables point at test systems ([SAP Developers](https://developers.sap.com/tutorials/joule-studio-codejam-9-release-deploy)). How the destinations themselves are built is in [BTP connectivity](https://erpfde.com/topics/btp-connectivity/).
- **Governance and rights.** Set **Create a Project** and **Transport a Project** to Governed, and grant Deploy and Administrate on the production environment to release managers only ([SAP Learning](https://learning.sap.com/courses/low-code-no-code/exploring-sap-build-governance)).
- **New Joule Studio.** Deploy with the builder or `jl solution deploy` to the managed runtime ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/d2ba1e)). Confirm access and terms for your tenant first: SAP calls GA phased (26 October) and the free runtime a promotion for select customers through December 2026 (27 October).
- **Cost.** After December 2026, agents are metered; see [pricing custom agents after the free runtime](https://erpfde.com/topics/pricing-custom-agents-after-the-free-runtime/).

**Needs a tenant (sketch only):** creating shared environments and setting governance rules needs SAP Build administrator rights in a customer tenant. The trial in [Set up for Unit 23](https://erpfde.com/topics/set-up-for-unit-23/) runs on a shared tenant and excludes production deployment.

### Build vs. SAP

| Need | Joule Studio Classic | New Joule Studio | Pro-code agent on BTP |
| --- | --- | --- | --- |
| One fixed job in Joule | Skill (best fit) | Skills are on SAP's product page; check your tenant | Overkill |
| A reasoning agent with skills | Agent on SAP AI Core | Agent on the managed runtime | Possible; you run it |
| Adjust an SAP-delivered agent | Not described on SAP's Classic page | Agent extension | Not applicable |
| Release path you control | Environments and switch | Managed runtime deploy | Your own CI/CD and transports |
| Who operates it | SAP runs Joule; you own environments | SAP runs the runtime | You run everything |
| When to choose | Most needs today | When the tenant is confirmed | Logic owned by a pro-code team; see [where should an agent live](https://erpfde.com/topics/where-should-an-agent-live/) |

### Architecture view

**Where it sits.** At Calder, `joule-prod` runs in subaccount `calder-ai-prod`. Joule Studio Classic sits in SAP Build with three environments: a private one per builder, *O2C Test* (destinations to `S4Q`, switch off) and *O2C Production* (destinations to `S4P`, switch on). Pilots of the new Joule Studio run on the managed runtime outside production. The diagram in **How it works** shows the paths.

**Non-functional requirements.**

| Requirement | Typical target | What breaks if missed |
| --- | --- | --- |
| Exposure control | One environment sends to production Joule | Untested work reaches every user |
| Traceability | Every production asset has a tested version and an owner | Nobody can say what users run |
| Data safety | Test environments reach test systems only | Tests create real requests |
| Change control | Governed create and transport; release managers deploy | One person changes production alone |
| Quality | Each agent has an evaluation set, rerun per release | Silent drift in answers |
| Cost | Skills for fixed jobs; agents metered after December 2026 | Premium spend on simple jobs |

**Integration and identity.** Skills and Classic agents reach S/4HANA through destinations set per environment; the user's identity travels by principal propagation as in [Joule authorizations and security](https://erpfde.com/topics/joule-authorizations-and-security/). A Joule agent called by another platform goes through the Agent Gateway, covered in [Joule beside other assistants](https://erpfde.com/topics/joule-and-other-assistants/).

**The decision to record** (short ADR form from [the design-doc topic](https://erpfde.com/topics/writing-a-solution-design-doc/)):

- **Context:** four teams will build for Joule in Q1 2027. Classic is in Calder's tenant; access to the new Joule Studio isn't confirmed.
- **Options:** A, one shared environment for everything with the switch on; B, a test and a production environment per line of business, Classic only; C, B plus new Joule Studio pilots outside production.
- **Decision:** C, with rules S01 to S10 as the build standard and the register reviewed before each production deploy.
- **Consequences:** an extra environment to maintain per line of business; agent extensions wait for SAP's confirmation; production deploys need a release manager.

**What a design review will ask.**

1. How many environments send to production Joule, and what is deployed in each right now?
2. Who holds Deploy and Administrate on the production environment?
3. Which assets change SAP data, and where is the confirmation tested?
4. Which agents run in production without an evaluation set?
5. What is our written basis for using the new Joule Studio, and what happens to cost after December 2026?

### Production concerns

- **Security and SAP authorizations.** A skill or agent runs with the user's SAP authorizations through the destination; Joule Studio rights don't replace SAP roles. Review environment rights in the same cycle as SAP roles ([BTP security model](https://erpfde.com/topics/btp-security-model/)).
- **Evaluation.** Rerun each agent's evaluation set on every release in the test environment, and ask Joule in plain words to confirm it picks the right asset. [UAT and sign-off](https://erpfde.com/topics/uat-and-sign-off-for-ai-in-sap-programs/) gives the gate.
- **Cost.** Skills for fixed jobs; meter agents before the free period ends.
- **Operations.** Keep the register in Git next to the design document and diff it before each deploy. Remove demo and workshop projects from shared environments.
- **Clean core.** Skills and agents call released APIs through destinations; they never need a modification in S/4HANA.

### Where AI fits

Joule Studio is itself an AI tool: the new one's intent-based method has a coding agent write and test the solution. That raises the stakes of the standard rather than lowering them, because more assets get built faster. AI can also draft the register from a tenant's project list; a person still decides what reaches production. The governance side of agents across the company is covered in [AI Agent Hub and agent governance](https://erpfde.com/topics/ai-agent-hub-and-governance/), and running the fleet in a later Unit 23 topic.

### Pitfalls

- Turning on the production switch on a test environment "just to show users".
- Leaving CodeJam or workshop projects in a shared environment.
- Mapping test environment variables to production destinations for "realistic" tests.
- Building agents for fixed jobs, then paying premium rates for them.
- Letting a skill used by an agent also be called directly, so it is tested two ways.
- Planning production on the new Joule Studio from a press article.

### Exercise

Add Calder's next asset and a new rule, and prove both in the register. The output goes into your architecture pack for the Unit 32 capstone.

1. Copy the reviewed register so the original stays clean:
   - **Windows (PowerShell):** `Copy-Item unit23/studio_register_reviewed.json unit23/studio_register_ex.json`
   - **macOS / Linux:** `cp unit23/studio_register_reviewed.json unit23/studio_register_ex.json`
2. In `studio_register_ex.json`, add an asset to `assets`: `"id": "calder_delivery_block_reason"`, `"type": "skill"`, `"edition": "classic"`, `"job": "fixed"`, `"owner": "00100296"`, `"operations": ["read"]`, `"used_by": "calder_order_exceptions"`, `"callable_directly": false`, `"confirmation": false`, `"tested": ["1.0.0"]`, `"deployed": {"O2C Test": "1.0.0", "O2C Production": "1.0.0"}`.
3. Run `--review` and `--expose` on it. The review should still show 0 FAIL, and production Joule should offer 4 assets.
4. In `studio_standard.py`, add rule **S11** inside the asset loop in `review()`, just before the `# S10` comment: every skill or agent deployed to production needs at least 3 `routing_tests` (plain requests Joule must route to it).

   ```python
           # S11 routing tests before production
           if kind in ("skill", "agent") and any(env_is_production(e, envs) for e in a["deployed"]):
               n = len(a.get("routing_tests", []))
               if n < 3:
                   add("FAIL", "S11", aid, f"{n} routing tests; Joule needs at least 3 to prove it picks this asset")
               else:
                   add("OK", "S11", aid, f"{n} routing tests")
   ```

5. Run `--review` on `studio_register_ex.json`. You should see four S11 FAILs, one for each production asset, ending in `27 OK, 2 WARN, 4 FAIL`.
6. Add `"routing_tests": [...]` with three requests to each of the four, for example `["Which of my orders are blocked?", "Show blocked sales orders for Hallam", "List orders on credit hold"]` for `calder_blocked_orders`.
7. Run `--review` again, then `--standard`, both with `--register unit23/studio_register_ex.json`.

**Done when** the review of `studio_register_ex.json` ends with `31 OK, 2 WARN, 0 FAIL`, `--expose` lists 4 assets, and `unit23/studio_standard.md` shows `calder_delivery_block_reason` in O2C Production.

### Check yourself

1. In Joule Studio Classic, what decides which projects production Joule offers?
   - A. The release note written when each project version is released
   - B. Whether the environment they are deployed in has the switch on
   - C. The owner's personal approval recorded in each project
   - D. Whether the project was built in the browser or the CLI

   Answer: B. SAP's tutorial says the environment's switch makes all projects in it available in production. The unit of exposure is the environment, so its contents are the inventory to review.

2. The draft register has O2C Test with the switch on and its destination pointing at S4P. What is the combined risk?
   - A. Testers lose access to the private environment they built in
   - B. Joule stops offering the projects in O2C Production entirely
   - C. Untested work reaches users and its tests write production data
   - D. SAP Build blocks every deploy until the destination is renamed

   Answer: C. S04 catches the exposure to production users and S06 the production destination. Together a tester's request can create real records in front of real users.

3. Why does rule S03 want skills used by an agent to be callable only through it?
   - A. Because SAP charges twice for a skill that has two callers
   - B. So there is one way in, and it is tested the way users use it
   - C. Because Joule cannot route a request to a skill directly
   - D. So the agent can change the skill's code at run time

   Answer: B. SAP's tutorial advises it, and it keeps one tested path to each skill. A skill reachable both ways must be tested both ways, and users may skip the agent's checks.

4. Rule S05 fails because calder_invoice_triage runs 0.9.1 in production but only 0.9.0 was tested. What do you do?
   - A. Add 0.9.1 to the tested list, since the change was small
   - B. Turn off the switch on O2C Production until the next quarter
   - C. Move the agent to the new Joule Studio's managed runtime
   - D. Deploy 0.9.1 to O2C Test, rerun its evaluation set, then promote

   Answer: D. Production should only hold versions that passed test. Marking it tested without running the tests defeats the rule; the release path is test first, then production by a release manager.

5. Which job should be a skill rather than an agent?
   - A. Summing one customer's open order value from SAP
   - B. Explaining why an order is blocked and proposing an owner
   - C. Triaging a blocked invoice by checking three documents
   - D. Deciding which of several tools to call based on results

   Answer: A. Summing open order value is one fixed job from clear inputs, which SAP's tutorial describes as a skill. The others need steps that depend on what is found, which is an agent's job.

6. An agent extension is deployed to the managed runtime's production stage, but SAP hasn't confirmed Calder's access. What does the review report?
   - A. OK, because SAP operates and monitors the managed runtime
   - B. FAIL on S09, since production waits for written confirmation
   - C. WARN on S01, because extensions are the wrong asset type
   - D. Nothing, because extensions don't appear in Joule's catalog

   Answer: B. SAP's pages differ on the new Joule Studio's GA, so the course rule keeps its assets in pilot until SAP confirms the tenant. In production that is a FAIL; as a pilot it is a WARN.

7. Who should hold Deploy on the O2C Production environment, and why?
   - A. Every developer, so fixes reach users without waiting
   - B. Nobody, since SAP deploys production projects automatically
   - C. Release managers only, so one accountable person promotes
   - D. The business owners, since they approve each asset's design

   Answer: C. SAP Build grants Deploy per environment to users or groups. Limiting it on production to release managers gives one accountable step and pairs with Governed transports.

8. SAP says it handles monitoring of the managed runtime. What does Calder still need before an agent goes live?
   - A. A separate model deployment in SAP AI Core for every agent
   - B. A copy of the runtime's logs in each builder's environment
   - C. A named monitoring owner and an evaluation set for the agent
   - D. Administrate rights for the agent's business owner in production

   Answer: C. SAP runs the platform; whether the agent still answers correctly is Calder's to measure. Rule S10 requires an owner and an evaluation set, rerun on each release.

## Sources

- [Joule Studio (SAP Architecture Center reference architecture, updated 25 October 2026)](https://architecture.learning.sap.com/docs/ref-arch/d2ba1e): read 2026-11-28; new Joule Studio deploys to the SAP-managed runtime and registers solutions with Joule automatically; assets agents, agent extensions (layer instructions on an SAP base agent without modifying it), MCP servers generated from OData or REST APIs, apps; low-code browser builder and pro-code `jl` CLI with a coding agent, `jl solution deploy`; SAP handles scaling, monitoring and operations of the managed runtime
- [Extend Joule with Joule Studio Classic in SAP Build (SAP Architecture Center, updated 21 October 2026)](https://architecture.learning.sap.com/docs/ref-arch/ff07b1): read 2026-11-28; Joule Studio Classic as design-time environment; needs Joule and SAP Build Process Automation (build-default plan) with Identity Authentication; provisioned through formations; skills automate rule-based tasks using APIs, agents plan and reason and can use skills; SAP AI Core supplies models; Connectivity and Destination services; deployed alongside the Joule central instance
- [Joule Skills with Joule Studio on SAP Business AI Platform (SAP Architecture Center golden path, updated 26 October 2026)](https://architecture.learning.sap.com/docs/golden-path/ai-golden-path/build-and-deliver/joule-skills): read 2026-11-28; SAP Build entitlement, SAP Build Developer License, Joule entitlement for production, role assignments; Joule Scenario project from the SAP Build lobby with actions, conditions and formulas; standalone environment for testing, not connected to production Joule; shared environment deploys to unified Joule; confirmation steps for create, update and delete; scenario dependencies for simple orchestration, agents for complex reasoning
- [Overview, Joule Studio CodeJam (SAP Developers tutorial)](https://developers.sap.com/tutorials/joule-studio-codejam-0-overview/): read 2026-11-28; skills are task-specific and deterministic, one operation from structured inputs; agents are AI-driven and call tools, APIs and other systems; set skills used by an agent so they can only be called through the agent; Joule runs on SAP BTP Cloud Foundry
- [Create Environments for Testing, Joule Studio CodeJam (SAP Developers tutorial)](https://developers.sap.com/tutorials/joule-studio-codejam-2-private-environment): read 2026-11-28; private, shared and production environments; production agents and skills run in the central Joule instance; recommended one private environment and two shared environments per line of business (test and production); a toggle in each environment exposes its deployed artifacts to production Joule; Activate Private Environment in Control Tower
- [Release and Deploy to Shared Environment, Joule Studio CodeJam (SAP Developers tutorial)](https://developers.sap.com/tutorials/joule-studio-codejam-9-release-deploy): read 2026-11-28; Release creates version 1.0.0 with an optional note; Show project version, Deploy, Choose an Environment; environment variables mapped to destinations; Control Tower, Environments, Joule tab, Launch; the switch makes all projects in the environment available in production
- [Exploring SAP Build Governance (SAP Learning lesson)](https://learning.sap.com/courses/low-code-no-code/exploring-sap-build-governance): read 2026-11-28; governance rules Create a Project and Transport a Project, each Governed (needs approval) or Ungoverned; shared environments created by administrators and shared with users or groups with authorizations Monitor, View Logs, Deploy, Execute, Administrate, Supervise
- [AI Release Highlights Q3 2026 (SAP News, 26 October 2026)](https://news.sap.com/2026/10/ai-release-highlights-q3-2026/): read 2026-11-28; general availability for Joule Studio underway in a phased approach; agent builder free until December 2026, then a premium AI feature; skill builder a base AI feature; centralized management gives visibility into skills, agent execution and data privacy enforcement
- [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/): read 2026-11-28; time-bound promotion for select customers keeps deploying and running custom agents on the SAP-managed Joule Studio runtime free through December 2026; new observability and administrative controls for agent behavior, model usage and spend; n8n workflows for the early adopter program
- [SAP Beefs up Business AI Platform and Joule to Drive Agentic AI Adoption (SAP Africa News Center, 2 November 2026)](https://news.sap.com/africa/2026/11/sap-beefs-up-business-ai-platform-and-joule-to-drive-agentic-ai-adoption/): read 2026-11-28; quotes SAP's CTO saying the SAP Business AI Platform, with Joule Studio and Joule Work, is now generally available; conflicts with the phased wording of 26 October
