Fuzzion

Agent-based ticket resolution with approval gates

How we would let an agent resolve support tickets end to end — including refunds — without giving it unbounded authority.

Technical demonstration. Reference architecture written by Fuzzion. Not a client engagement; contains no outcome metrics.

Challenge

A support team wants an agent to resolve routine tickets, which requires reading orders and sometimes issuing refunds. The risk is not that the agent is unhelpful, but that it acts wrongly with real money and nobody can reconstruct why.

Constraints

  • Refunds above a threshold require a human decision.
  • Every action must be attributable and auditable later.
  • Retries after a crash must never repeat a side effect.
  • Read and write access are separate credentials.

Architecture

Span types
SpanTypeDetail
ticket.receivedI/O: I/O

Support ticket enters the workflow with customer and order IDs.

classify_intentModel call: Model call

Model classifies intent; low-confidence results route to a human queue.

fetch_orderTool call: Tool call

Read-only tool with a scoped credential returns order state.

search_policy_kbTool call: Tool call

Retrieves the refund policy that applies to this order.

draft_resolutionModel call: Model call

Model proposes an action and a reply, as structured output.

policy_checkPolicy check: Policy check

Deterministic code validates the proposed action against limits.

approval.requestedHuman approval: Human approval

Refund above threshold: a reviewer sees the trace and approves or edits.

issue_refundTool call: Tool call

Write tool called with an idempotency key; a retry cannot refund twice.

reply.sentI/O: I/O

Customer reply sent; full trace stored for audit.

  • I/O
  • Model call
  • Tool call
  • Policy check
  • Human approval
Illustrative execution trace of one run. Bar positions show ordering and nesting, not measured timings.

Engineering approach

  1. 01

    Workflow first, agent inside it

    The overall flow is a durable workflow with explicit states. The model makes bounded decisions inside it: classify, draft, propose — never "do whatever is needed".

  2. 02

    Typed tools with scoped credentials

    Each tool has a schema, validates its input and runs with the minimum credential. The refund tool cannot read; the order tool cannot write.

  3. 03

    Policy in code, not in the prompt

    Limits are enforced by deterministic checks after the model proposes an action. The prompt explains policy; code enforces it.

  4. 04

    Approval with full context

    Reviewers see the ticket, the retrieved policy, the proposed action and the trace, so approval is a judgement, not a rubber stamp.

Technologies

  • Temporal
  • LangGraph
  • Anthropic Claude
  • PostgreSQL
  • OpenTelemetry

Operational considerations

  • Traces retained and searchable by ticket, customer and tool.
  • Evaluation suite of historical tickets run before each prompt or model change.
  • Kill switch that routes all tickets to humans without a deploy.

What we would measure

Success criteria we would agree before work starts. These are not results.

  • Share of tickets resolved without escalation
  • Reviewer override rate on proposed actions
  • Policy-check rejection rate by reason
  • Duplicate side effects (target: zero)