# Phase 2: Reproduce -- Live Preview (Full Reference)
Use `sf agent preview` to simulate conversations in an isolated session (no production data affected).
---
## Build Test Scenarios from Phase 1 Findings
Before opening a preview session, define one test scenario per confirmed issue:
| Issue type (Phase 1) | Test message to send | Expected behavior | Failure indicator |
|---|---|---|---|
| Dead subagent -- never entered | Utterance that *should* route to that subagent | `subagent` in response = `<dead_subagent>` | Subagent stays `entry` |
| Action not called | Ask directly for the action's task | Action fires in the response | Conversational reply with no action invoked |
| Handoff subagent -- no post-collection routing | Enter the handoff subagent, then send a follow-up | Session continues in specialized subagent | Falls back to `entry` after 1 turn |
| LOW adherence | Exact utterance from the flagged `TRUST_GUARDRAILS_STEP` | Response follows subagent instruction | Generic/off-instruction answer |
| Knowledge miss | Question requiring a specific knowledge article | Agent cites correct information | Hallucinated or generic answer |
| Subagent misroute | Utterance that belongs to subagent A | `subagent` = A in response | `subagent` = B or `entry` |
---
## Run a Preview Session
Use `--authoring-bundle` to compile from the local `.agent` file and generate local trace files:
| Flag | Compiles from | Local traces? | Use when |
> **Note:** `--authoring-bundle` must appear on all three subcommands (`start`, `send`, `end`), and `start` also requires an action mode — `--simulate-actions` or `--use-live-actions`. That mode flag is valid on `start` only. Run all three from the Salesforce project directory.
Only `[CONFIRMED]` and `[INTERMITTENT]` issues proceed to Phase 3.
For `[NOT REPRODUCED]` issues: re-examine the Phase 1 STDM evidence. The session data may be stale (issue was already fixed), the utterance may not match the original user input closely enough, or the issue may be environment-dependent. Report these to the user as "not reproducible" and move on -- do not attempt fixes for issues that cannot be confirmed.