Skip to main content

Docs / Getting Started

AI agent testing starts with one real business journey.

Connect your AI system, define what success means, run the journey against a controlled environment, and inspect the evidence behind the verdict.

concept firstevidence drivenengineer readable

ASSURANCE / 01

Connect an agent, define a real journey, evaluate it, preserve the evidence, then release.

Planner agent
Evaluator agent
Evidence agent
SHYENAassurance core
Agent
connected
Journey
connected
Evaluation
connected
Evidence
connected
Release
connected
five stages → evidence → decision

THESIS

A trustworthy assurance run starts with a real business journey and ends with an evidence-backed release decision.

How to read this guide

Start with the visual assembly above. Each piece maps to a concept in this guide; the sections below provide the engineering detail, rules, examples and evidence needed to implement it correctly.

Shyena helps teams move from an AI agent and a real business journey to an evidence-backed release decision.

This guide follows the five-stage assurance path:

Agent → Journey → Evaluation → Evidence → Release

The objective is not to build a large test suite first. Establish one trustworthy journey, prove the evidence chain, then scale.

1. Agent

Identify the AI system you are assuring and establish its execution boundary: model or instructions, orchestration, retrieval, memory, tools, guardrails, APIs, and target environment.

Before creating a journey, validate:

[ ] Correct agent selected
[ ] Correct environment selected
[ ] Authentication succeeds
[ ] Test identity has intended permissions
[ ] Required tools and APIs are reachable
[ ] Conversation execution is observable
[ ] Required trace / orchestration evidence is available
[ ] Test data is isolated from production

If the environment is invalid, fix it before changing the assurance specification.

See Environments & Configuration for reproducibility and Integrations for connection patterns.

2. Journey

Define what the agent must accomplish rather than attempting to predict every sentence it will generate.

A strong journey contains:

Business goal
    ↓
Persona + context
    ↓
Playbook / allowed interaction
    ↓
Invariants and success criteria
    ↓
Required evidence

Example:

Goal: Help an authenticated customer update the delivery address for an eligible order.

Persona: Existing customer with a valid order and permission to modify delivery details.

Invariant: The address must not change before authorization succeeds.

Outcome: The address is updated and the customer receives clear confirmation.

Evidence: Conversation outcome, authorization decision, tool/API activity, and resulting order state.

This is an assurance contract: business intent, permitted behavior, expected outcome, and evidence are explicit.

Continue with Writing Test Specs.

3. Evaluation

Run the journey against the real target and evaluate both outcome and execution.

A useful evaluation separates:

LayerQuestion
DeterministicDid required facts, states, assertions, and invariants hold?
SemanticDid the agent satisfy qualitative behavior and communication criteria?
TrajectoryDid routing, tool use, state transitions, and execution path behave correctly?
SecurityDid the agent respect authorization, safety, and control boundaries?
VerdictIs the evidence sufficient to accept this version?

A high semantic score must not compensate for a critical security or execution-integrity failure.

See Evaluation Model for the complete model.

4. Evidence

The final response is one evidence item, not the complete result.

Capture the observable execution:

Journey
  ↓
Conversation turns
  ↓
Agent decisions
  ↓
Retrieval / memory
  ↓
Tool and API events
  ↓
Guardrails / policy checks
  ↓
State changes
  ↓
Evaluation results
  ↓
Evidence bundle

A convincing response can still hide a failed execution. For example, an agent may claim that an order was updated when the underlying state was unchanged, or it may produce a correct answer after an unauthorized tool call.

When a run fails, investigate through the evidence chain:

Verdict
  ↓
Failed criterion
  ↓
Conversation turn
  ↓
Tool / API / orchestration event
  ↓
System state
  ↓
Root cause

This is what makes an assurance run actionable for engineering, QA, security, and release teams.

5. Release

Convert the evidence into an explicit release decision.

A release workflow should look like:

Change
  ↓
Critical journeys
  ↓
Deterministic checks
  ↓
Semantic evaluation
  ↓
Trajectory evaluation
  ↓
Security checks
  ↓
Evidence bundle
  ↓
Release gates
  ↓
Release / Block

Define hard gates before execution. Critical authorization, security, business-invariant, and integrity failures should remain blocking conditions rather than being averaged away by other scores.

Re-run the same journey after a change

Do not replace a failed journey merely because the first run failed. Preserve the journey and compare versions.

Agent v1 → Run → Failure
                 ↓
            Engineering change
                 ↓
Agent v2 → Run → Evidence comparison

Compare the business outcome, deterministic assertions, semantic result, trajectory, security findings, and affected evidence.

The core regression question is:

Did this version improve the intended behavior without breaking behavior that was already trusted?

Scale the assurance suite

Expand by business risk, not test count.

SuitePurposeUse
SmokeValidate critical execution surfaceRelevant builds
JourneyProtect business-critical workflowsRelease validation
BehaviorEvaluate quality, policy, and interactionRegression / scheduled runs
TrajectoryValidate tools, state, routing, orchestration, and side effectsHigh-risk changes
SecurityExercise adversarial and authorization boundariesSecurity / release validation

Keep a small, stable release-gate suite and a larger diagnostic suite.

CI/CD operating model

Once the journey is proven, make assurance part of delivery:

Pull request / change
        ↓
Fast deterministic checks
        ↓
Critical AI journeys
        ↓
Semantic + trajectory evaluation
        ↓
Security checks
        ↓
Evidence
        ↓
Release decision
        ↓
Deploy / Block

Use the same assurance contract across local, CI, staging, and pre-release execution where the environment and risk model allow it.

Continue with Reporting & Release Evidence.

First-run checklist

[ ] Agent identified
[ ] Target environment validated
[ ] Test identity configured
[ ] Test data isolated
[ ] Business journey selected
[ ] Goal defined
[ ] Persona defined
[ ] Playbook defined
[ ] Invariants defined
[ ] Evidence requirements defined
[ ] Evaluation layers selected
[ ] First run executed
[ ] Evidence inspected
[ ] Verdict understood
[ ] Same journey re-run after a change
[ ] Results compared
[ ] Release-gate candidates identified
Primary sources are listed inside each page.