Problems solved

Technical challenges this implementation handles out of the box.
  • Park sensitive operations until a person approves or denies them
  • Resume the same durable turn after an approval arrives
  • Apply always, once-per-session, and input-sensitive approval policies
  • Ask structured clarification questions before preparing an action
  • Reject operations that cross the authenticated tenant boundary
  • Regression-test approval lifecycles through the real session protocol

Use cases

Products and workflows this pattern is designed to support.
  • Refund and billing operations
  • Production deployment approvals
  • Account and entitlement changes
  • Multi-tenant administrative agents
  • Long-lived workflows awaiting human decisions

Setup

Requirements, wiring steps, and what this pattern adds to your project.

Requirements

Complexity
Intermediate
Setup time
~10 minutes
Node
24+
Memory
256MB

Getting started

Pick how you want to pull this pattern in — then wire env vars and routes the same way.

  1. 1

    Install into an empty project directory

    Shadcn Icon

    Copy the tokenized install command from the preview toolbar and run it in an empty directory so the Eve package and agent tree stay together.

  2. 2

    Install dependencies and run the verification suite

    With Node.js 24+, run `pnpm install`, `pnpm verify:discovery`, `pnpm typecheck`, `pnpm build`, and `pnpm eval`.

  3. 3

    Run the Eve development server

    Run `pnpm dev` after every verification gate passes.

Files added

20 files
  • package.json
  • tsconfig.json
  • README.md
  • .gitignore
  • .node-version
  • agent/agent.ts
  • agent/instructions.md
  • agent/channels/eve.ts
  • agent/lib/tenant.ts
  • agent/tools/refund_charge.ts
  • agent/tools/deploy_release.ts
  • agent/tools/update_account.ts
  • evals/evals.config.ts
  • evals/helpers.ts
  • evals/always-approval.eval.ts
  • evals/once-approval.eval.ts
  • evals/conditional-refund.eval.ts
  • evals/clarification.eval.ts
  • evals/denial.eval.ts
  • evals/cross-tenant.eval.ts

Dependencies

3 total

npm packages

3
AISDKeveZod