Orchestrate

Report an issue

Something wrong, out of date or unclear? Tell us. Corrections are prioritized over new topics. You don't need to sign in.

0 / 2000

Don't include personal or confidential company details. Reports are reviewed with AI assistance.

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.

Updated Nov 28, 2026
Foundational layer · 8 min read

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

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

All course terms, A to Z, in the glossary

  • 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

Pick one answer for each question. The explanation appears after you choose.

1A team wants Joule to list a customer's blocked orders. What should the standard say they build?

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.

2Why must only the production environment send to production Joule?

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.

3A skill files a credit review request in SAP. What must the build standard require?

Answer: B. 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.

4The partner says the new Joule Studio is generally available, so production can start next week. What do you do?

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

5Which question best tests whether production is under control?

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

6SAP operates the managed runtime. What remains Calder's job for an agent in production?

Answer: A. 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 · 35 min read

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 taught a builder how to make a skill or an agent. Intent-based development with Joule Studio and the Joule Studio agent project 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

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

Both generations end in the same catalog. 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). 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). Licensing is from SAP's Q3 2026 highlights.

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). Agent extensions for SAP base agents covers them.

From build to production in Classic

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

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

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

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 and BTP observability.

Build it yourself

Before you start: finish Set up your computer for this course and 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.

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.

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

      .venv\Scripts\Activate.ps1
    • macOS / Linux:

      source .venv/bin/activate
  4. Make the unit23 folder if it doesn't exist yet:

    • Windows (PowerShell):

      New-Item -ItemType Directory -Force unit23
    • macOS / Linux:

      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.
"""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:

python unit23/studio_standard.py --init
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:

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

The lines that aren't OK:

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:

python unit23/studio_standard.py --register unit23/studio_register_draft.json --expose
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:

python unit23/studio_standard.py --register unit23/studio_register_reviewed.json --expose
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:

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:

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.

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). For Classic, Joule and SAP Build Process Automation with Identity Authentication, then provisioning by formation (SAP Architecture Center).
  • 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).
  • Destinations per environment. Deployment maps environment variables to destinations, so the test environment's variables point at test systems (SAP Developers). How the destinations themselves are built is in 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).
  • New Joule Studio. Deploy with the builder or jl solution deploy to the managed runtime (SAP Architecture Center). 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.

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

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. A Joule agent called by another platform goes through the Agent Gateway, covered in Joule beside other assistants.

The decision to record (short ADR form from the design-doc topic):

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

            # 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

Pick one answer for each question. The explanation appears after you choose.

1In Joule Studio Classic, what decides which projects production Joule offers?

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.

2The draft register has O2C Test with the switch on and its destination pointing at S4P. What is the combined risk?

Answer: A. 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.

3Why does rule S03 want skills used by an agent to be callable only through it?

Answer: C. 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.

4Rule S05 fails because calder_invoice_triage runs 0.9.1 in production but only 0.9.0 was tested. What do you do?

Answer: B. 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.

5Which job should be a skill rather than an agent?

Answer: B. 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.

6An agent extension is deployed to the managed runtime's production stage, but SAP hasn't confirmed Calder's access. What does the review report?

Answer: D. 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.

7Who should hold Deploy on the O2C Production environment, and why?

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.

8SAP says it handles monitoring of the managed runtime. What does Calder still need before an agent goes live?

Answer: A. 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.
NextSAP's agent catalogue: reading it as an architectAssess an SAP-delivered agent before it enters a plan, on provenance, prerequisites, data, authorizations, extensions and price, with a scoring sheet.

Sources

Sign in to track your progress

We'll email you a one-time sign-in link. No password needed.

or

Tell us a little about you

Optional, every field. It helps us pitch answers to your questions at the right level and decide which topics to write next. It is never shown publicly, and you can change or clear it anytime from the account menu.

SAP areas you work in