Development Gateway · AI Sandboxes

Test AI with real users and real use cases before you scale it.

How we help institutions find out what an AI tool actually delivers, what it costs, and where people come in, before they commit.

See how it works

The problem

Institutions are asked to adopt AI before they know what works for them.

Pressure without evidence

The push to adopt is strong, but institutions have different needs. Evidence for AI tool use for specific tasks and specific users is thin.

Cost and fit unknown

Model pricing, the extra cost of working in other languages, and real working conditions are rarely tested up front.

Hard to undo

Once a process runs on an AI model or provider, this creates dependencies which can impact future choices.

AI is often sold as a silver bullet. It isn't. But tested and scaled carefully, it can be a pivotal asset.

Our approach

Seven steps from idea to decision.

A sandbox is a controlled test. Real users try one specific AI use case. We measure what happens. Then we decide.

Steps marked Tech drill-down also open onto the technology behind them: how the next release of our sandbox platform does it.

Step 1 of 7 · Choose the use case

Start narrow: one task, one audience.

We begin with an inventory of potential use cases. Then, leveraging research literature and our AI readiness assessment, we select a few, each tied to a specific group of users and a specific task.

A narrow use case is testable. A broad promise is not.

In practice

Our AI readiness assessment looks at an institution's strategy, skills and culture, and at its data, infrastructure and governance, so the shortlist fits what it can actually support.

Step 2 of 7 · Ground it in context

Evidence before code.

For each use case we review the research literature. It tells us how far a language model can responsibly be taken for this task, what can go wrong, and how to configure it.

We then turn that review into concrete implementation rules, a step we call calibration, and test where the use case could fail before any real user sees it. Those tests run on realistic synthetic data, built to resemble the institution's own records, so the tool is proven on data like theirs without exposing anyone's personal information.

In practice

If the research shows a tool works best as a guide, it is configured to guide: to suggest and explain, not to do the work for the user.

Step 3 of 7 · Right-size the model

Tech drill-down

Code where we can, a model where we must.

We break each use case into small steps, known as a workflow. Anything that is math or rules runs in ordinary code: it is cheaper and fully predictable. A language model handles only what needs language: reading, reasoning, writing feedback.

Each model step gets the smallest model that does the job well. An orchestration layer connects the steps, so we can swap models, change instructions, and log every run without rebuilding the app.

In practice

You don't need AI for everything. A summary report built from results a person has already approved can run entirely in code, with no language model at all.

Planned for the next release

The tech behind step 3

One runner, six kinds of step.

In the next release of our sandbox platform, every use case runs as a procedure: an ordered list of small, typed steps. A procedure runner executes them one at a time. Only one kind of step calls a language model. The others run as ordinary code or wait for a person.

  1. transformTidy the inputsReshape a form, file or document into fields.
  2. codeScore with rulesAnything that is math or rules: cheap and predictable.
  3. llmAnalyze and give feedbackThe one step that needs language.
  4. validateCheck the outputIs it complete and in the expected shape?
  5. gateA person reviewsThe run waits until someone approves.
  6. assembleFormat the resultBuild the report from approved parts.
An example procedure. Each step's output is saved before the next step starts, so a run can resume after a failure and every step can be inspected later.

Where each step runs

Picking the smallest model that works

A model step doesn't name a model in code. It asks a model registry, which lists each model's capabilities, its price, and where it processes data (data residency). The study team picks the smallest model that passes the use case's evaluation set. To try alternatives, they add variants and compare them side by side, without rebuilding the use case.

{
  "id": "feedback",
  "kind": "llm",
  "model": "registry:small-multilingual",
  "variants": ["registry:medium-multilingual"],
  "limits": {
    "maxOutputTokens": 800,
    "timeoutSeconds": 30
  },
  "output": { "schema": "feedback.v1" }
}
One model step in a procedure. Simplified illustration, not the final format.

Built in

  • Every model call goes through one egress client, with a timeout, a token cap and a budget, and only to hosts the workspace allows.
  • Sensitive data is detected in Arabic and English and replaced with pseudonyms before any call to a model provider.
  • Code steps cannot reach the network, use more than their memory allowance, or import unapproved libraries.
  • Progress streams to the browser over server-sent events (SSE) and picks up where it left off after a dropped connection.
  • Procedures built in the current sandbox, on the Dify platform, import into the new one as drafts.

Step 4 of 7 · Keep people in the loop

Tech drill-down

Human in the loop.

Nothing flows straight from the AI to a decision. Between steps, a person reviews the result, edits it if needed, and locks it before it is used.

When a tool scores or sorts work, a person first approves the criteria it will use. If the results look wrong, they change the criteria, not the individual result, until the result reflects the human-driven process.

In practice

A three-step workflow, such as setting criteria, applying them and reporting, gets a review-and-lock checkpoint between each step.

Planned for the next release

The tech behind step 4

Gates, locks and a tamper-evident record.

In the next release, human review is built into the procedure, not left to habit. A gate step stops the run until a person has looked at the result. Around the runs, permissions decide who can review, approve and publish, and every action is written to an audit log that cannot be changed without it showing.

  1. llmApply the criteriaThe model scores the work against criteria a person approved first.
  2. gateA person reviewsThey accept the result or edit it. If it looks wrong, they change the criteria and rerun.
  3. savedLockedThe approved result is stored and can no longer change.
  4. next stepReportUses only what the person approved.
One checkpoint. A three-step workflow, such as setting criteria, applying them and reporting, has one of these between each step.

Who can do what

  • PermissionsauthzOne authorisation service checks every request. Permissions take the form resource.action, for example usecase.publish, grouped into twelve starting roles, with field-level rules for sensitive data.
  • Two-person ruleauthzPublishing a use case needs a second person to approve it. The server enforces this, and each workspace can configure it.
  • VersionsdesignerA use case is one versioned document. Reviewers see a field-by-field comparison, and a running study keeps the version it started with.
  • AI-drafted contentdesignerWhen the design assistant drafts part of a use case, that part stays labelled until a person reviews it. Its edits appear as tracked changes.
  • Institutions kept apartworkspaceEach institution is a separate tenant with its own workspaces. The database enforces the separation on every row.
  • Sign-inidentitySecure session cookies, protection against cross-site request forgery, multi-factor sign-in, and optional single sign-on.

A record that shows tampering

  1. #1041 reviewer · gate.approve · run 2184prev 3f9a…c21hash 7b2e…0d4
  2. #1042 designer · usecase.submit · version 4prev 7b2e…0d4hash c5a1…9f8
  3. #1043 approver · usecase.publish · version 4prev c5a1…9f8hash e03d…41b
Illustrative. The log is append-only, and each entry stores the hash of the entry before it. Changing or removing any past entry breaks the chain from that point on. Access reviews can be exported from it.

Built in

  • Deny by default: a request with no matching permission is refused.
  • Every lifecycle change, approval and publish is written to the audit log.
  • A new version of a use case never changes a study round that is already running.
  • Personal data is filtered out of the platform's own logs.

Step 5 of 7 · Test with real users

Real users, real conditions.

A use case that works in a demo can fail on a Monday morning. We put it in front of real users, in their real rooms, on their real devices.

Users are grouped into cohorts so we can compare versions fairly, and short surveys before, during, and after each test are built into the platform.

In practice

If people don't have the devices a tool assumes, the tool changes, not the people. A desktop tool may need to work on a phone, with voice or camera input.

Step 6 of 7 · Measure what matters

Tech drill-down

Measure what shapes the problem.

Every run is logged: inputs, outputs, errors, the model used, and the cost. We track how often people accepted the AI's output as is and how often they changed it. That is the human-in-the-loop, measured.

We also track what is easy to miss, like the extra cost of working in a language other than English. And we compare the tool with the systems already in place: does it do the job better, and can it exchange data with them?

In practice

Language matters: the same task can use noticeably more tokens, and cost more, in languages other than English.

Illustrative
Planned for the next release

The tech behind step 6

Every run leaves a record.

In the next release, measurement is not a separate project. The runner records every step of every run, the surveys live in the same platform, and the two are joined. A study can then show what the tool did, what it cost, and what people thought of it.

Run 2184 · variant B · Arabic
StepTokens in / outCost (USD)TimeOutcome
Tidy the inputstransform––40 ms–
Score with rulescode––120 ms–
Analyze and give feedbackllm · small multilingual3,410 / 6200.00416.2 s–
Check the outputvalidate––15 mspassed
A person reviewsgate––2 min 40 sedited
Format the resultassemble––90 ms–
Illustrative trace of one run. Inputs, outputs, errors, the model, tokens, cost and time are logged for each step, and the gate records whether the person accepted the output as is or edited it. Run for run, the trace shows the extra tokens a language other than English can need.

Comparing models fairly

  1. same inputsVariants A and BTwo versions of a step, for example two models, run on the same inputs.
  2. blindingShuffled and unlabelledParticipants see the outputs in random order and never learn which model wrote which.
  3. ratingsPeople rate each outputRatings are stored per output, next to the run.
  4. judgeChecked against an evaluation setFixed inputs with expected results. Where a model judges, it comes from a different vendor, and its verdict is recorded.

From runs to evidence

Built in

  • Tokens, cost and time are recorded for every model call.
  • One combined export joins each survey response to the runs it is about.
  • Participants are never told which model is behind a variant.
  • For the team running the platform, OpenTelemetry traces and metrics feed dashboards that show errors and slow steps as they happen.

Step 7 of 7 · Decide

Every test ends in a decision.

Adopt: it works for this task and these users, at a cost the institution can sustain. Delay: it is promising but needs more evidence or a redesign. Avoid: it doesn't work, or the risk outweighs the benefit.

Avoid is not a failure. It saves an institution from scaling the wrong thing. Decisions are made with partners, based on the evidence.

In practice

A use case can change mid-test: one that proves too broad or too risky can be narrowed to a smaller, safer job.

What you get

A sandbox ends with evidence, not a demo.

Each sandbox leaves a clear record of what an AI use case delivered, what it cost, and where people needed to stay in the loop, so the decision rests on evidence.

  • 1 task, tested with one group of users
  • 7 steps from idea to decision
  • 3 possible outcomes: adopt, delay or avoid
  1. Select: choose the use case and review the research
  2. Build: configure and calibrate the tool
  3. Test: run it with real users and measure
  4. Decide: adopt, delay or avoid, with partners

What makes a sandbox work.

It's product management, not only technology

Users, devices, rooms and schedules decide whether a use case works.

The non-AI parts matter as much

Translation review, clear help text, and removing features users find burdensome all shaped adoption.

Restraint is a skill

When a feature takes hours instead of weeks, knowing what not to build matters more than ever.

Evidence first, so AI serves the people who use it.

The people who use it

Tools that help them take the next step, in their language, on the devices they actually use.

Staff

Support with time-consuming work, while the final call stays with them.

Institution leaders

Evidence and real costs to adopt, delay or avoid, before budget is committed.

Test with real users before you scale.

Weighing an AI tool for your institution or program? We can help you design and run a sandbox, and share what we've learned.

Read more from Development Gateway