Capsule Corp
Case studies Ticket routing · Recorded runs

Route the inbox. Bring uncertainty to the operator.

Give a capsule the support inbox. It asks the configured decision service to route each ticket and drafts a customer acknowledgment.

Recorded with an earlier build of Capsule Corp. The model calls were live. Every system the agents touched (payments, calendars, mail, the price database, the competitor’s store, the pull request) was a stand-in over sample data: no payment, email or pull request was real. The completion checks, per-product limits and improvement rounds shown here have since been taken out of the product; what a capsule does today is on the home page.

The outcome

Six routes automatic; one escalated

Jev routed six tickets automatically. One uncertain ticket went to the operator; all seven acknowledgments were approved and sent.

All seven emails required approval in this demonstration. The completion check establishes routing, not the correctness of every email.

See the recorded results →

Room to work. Explicit boundaries.

The authority configured for this demonstration.

Runs on its own
Request routing through Jev and draft acknowledgments using the account records.
Reserved for the operator
The team choice when Jev is under 70% confident, and every outgoing acknowledgment.
Outside its authority
The agent choosing or overriding the destination team itself.
Completion check, in that build
Every ticket is routed exactly once.

The agent definitions below specify these boundaries. Recorded runs and scripted tests show how they were exercised.

Inspect the capsule →

When the job changes.

When Jev was only 50% confident about a refund ticket, the operator selected billing and the run continued.

Follow the evidence.

Approval composition is modeled in Lean: combining authority does not remove an approval requirement.

The proofs cover the formal permission model. The implementation is checked against it through tests and review. Recorded runs demonstrate particular outcomes.

Recorded results.

The model calls were live, to Claude; every tool was a stand-in over sample data. Setups differ; historical configurations are labeled below.

Claude Opus with Jev · 1 run

Seven tickets, three accounts.

Jev routed six on its own and was 50% sure of one, the refund for a broken export, so you picked: billing. Four went to billing, two to support, one to sales. Each of the seven acknowledgments waited for you and was allowed.

4 scripted tests — inspect the scenarios

Scripted

The model's moves written out in advance, including ones no model made live. Each checked what the capsule let through, held for you, or refused. They ran against that build; the product no longer ships these agents.

Normal run
All seven routed by your pick, and every acknowledgment allowed. The ticket with no account on file is routed too.
Typo
A pick that names no real team files nothing. The route asks again, and the second pick stands.
Wrong promise
An acknowledgment promising a refund to a past-due account waits for you and is denied. Nothing is sent.
Missing ticket
A ticket that isn’t in the inbox is never filed, whatever the pick.

The authority, in code.

This file defined the capsule, as that build read it. Its model got the purpose and the tools it grants; its kernel enforced the boundaries at every step. Several of the kinds it names are no longer provided.

Inspect the full agent definition and annotations
agents/01-ticket-routing/agent.capsule17 lines
(agent ticket-routing
  (purpose "triage the support inbox in tickets/: route every ticket, then send each ticket's customer one short acknowledgment, to the address the ticket is from, that says which team has it and is true to their account in accounts/ (do not promise a refund to an account that is past due); a ticket whose account is not on file is still routed and acknowledged")
  (capability tickets :files "tickets")
  (capability accounts :files "accounts")
1  (capability queue :route "routed.jsonl" :from tickets
    :question "Which team should handle this support ticket?"
    :options ((billing "invoices, charges, refunds, payment details")
              (support "the product misbehaving: errors, outages, signing in")
              (sales "buying more: plans, seats, pricing, upgrades")))
  (capability mail :spool "mail")
  (grant capability tickets/list :kind tool)
  (grant capability tickets/read :kind tool)
  (grant capability accounts/list :kind tool)
  (grant capability accounts/read :kind tool)
2  (grant capability queue/route :kind decide)
  ; Every acknowledgment waits for you.
3  (grant capability mail/send :kind tool :ask)
4  (done (each tickets queue item)))
  1. 1Where a ticket goes is a decision the agent doesn’t make. It names the ticket; Jev picks one of these three teams, or you do when Jev is under 70% sure.
  2. 2The agent can ask for a ticket to be routed. It can never choose or overrule the team.
  3. 3Every acknowledgment waits for you before it’s sent.
  4. 4Done: every ticket routed exactly once, however many arrive.

Inspect the recorded runs.

Start with a highlighted event, jump to any step, or explore the full timeline. Each step shows what the agent did and what came back.

Jev isn’t sure, so you pick.

Jev isn’t sure, so you pick.

Jev routes six tickets on its own. On the refund for a broken export it’s only 50% sure, so the run asks you. Then each acknowledgment waits for your OK.

Claude Opus, 56 steps
Checks the published content against its recorded fingerprints.
Explore the full timeline · 56 steps
StartAI modelLooks upChangesYou
Went through Waited for your OK Denied Abandoned Asked the AI model
Asks you to pick a team Waited for your OK · allowed
What the agent did

Jev wasn’t sure: ask you which team should handle this ticket

What came back

Nothing yet: the capsule stopped this and waited for a person. Their answer is a later step.

Start with one recurring job.

Bring a workflow that needs judgment, has explicit limits, and produces a result your team can accept. We’ll work with you to define its authority and build the connections it needs.

Discuss an integration