---
cuppy_hub: salesforce
cuppy_path: changelog/2026-10-23-agent-testing-family.md
cuppy_section: docs
cuppy_doc: NZZP-GBKS
cuppy_doc_uuid: 5a441c67-40f8-4b43-a2c3-632b67386f21
cuppy_permalink: https://cuppy.io/salesforce/d/NZZP-GBKS
cuppy_version: 1
cuppy_updated: 2026-10-23T16:16:52.575Z
cuppy_canonical: https://cuppy.io/salesforce/docs/changelog/2026-10-23-agent-testing-family
cuppy_mcp: https://cuppy.io/mcp
cuppy_body_sha256: 9f7bba5da29c21b71f84b539a4eb9af28f2ff98fa00fe5cbe22c55f1c054a109
# cuppy_body_sha256 is over the document body ALONE, excluding both generated blocks.
---


# Salesforce hub — family 4, agent testing and observability (2026-10-23)

## Added

- `reference/agentforce/agent-testing.md`: covers
  - the Testing Center (`AiEvaluationDefinition`) and Agentforce Studio (`AiTestingDefinition`) runners;
  - the spec fields and the expectations they become, and 11 scorers;
  - `sf agent test` and `run-eval`, and the Testing Connect API;
  - limits, exit codes and known failures.
- `guides/agentforce/test-an-agent.md`: covers
  - a steward-agent spec with routing, action, outcome, multi-turn and guardrail cases;
  - creating and running it;
  - a TypeScript gate that fails CI on failed assertions, plus the CI step.
- `reference/agentforce/agent-observability.md`: covers
  - preview traces with `sf agent trace` (dimensions, raw step types) and `--apex-debug`;
  - enhanced event logs;
  - Session Tracing objects in Data 360 and the beta OpenTelemetry export (72 hours).
- `work/tools/testspec2xml.mjs`. `check_code.py` converts every `# agent-test-spec` YAML block to metadata with `@salesforce/agents` (what `sf agent test create` does) and packages it with `sf project convert source`.

## Found while building

- Failed assertions exit 0. Only test cases in `ERROR` exit 1.
- Omitted `expectedActions` still asserts that no action ran (`[]`).
- `sf agent test results` has no `--use-most-recent`, although its help says it does.
- Salesforce's testing pages disagree on whether testing is sandbox-only.
- Testing Center reports **tool** names (from `reasoning.actions`), not action declaration names, per Salesforce's sf-skills.

## Still missing

- No org was used, so result shapes are read from Salesforce's source.
- Agentforce Studio testing is beta and its docs aren't out yet.
- The Agent Health Monitoring API isn't verified.


---
<!-- cuppy -->
You are reading one file. The same content is free over MCP at https://cuppy.io/mcp with no signup: ranked search across all 376 documents in this hub, the merged view when you work in a layer, known workarounds matched to the error you hit, and depth control so you spend tokens on what you need. Start with the `_hello` tool. How to connect: https://cuppy.io/salesforce/ Something wrong in this document? Report it with the `session feedback` tool on the same endpoint.
<!-- /cuppy -->
