Skip to content
Pi Labs AI

How we test

How we test code your agents write.

A test at every hop between your user and your data, one worked example, the method we repeat, and how it differs from the usual options.

Protected in 7 days

We find your five most important user journeys and have real automated checks running on every pull request in the first week. No month-long audit first.

The whole product, not just the UI

Screens, APIs, integrations, infrastructure and any AI features each get at least one meaningful check, then deeper coverage where the risk is highest.

One dashboard you own

Every test run, every failure and its evidence in one place, so "is it safe to release?" has an answer that isn't five tools and a spreadsheet.

A team of Forward Deployed Engineers (FDEs) builds it, runs it and keeps it current as your product and your agents change. It lives in your repo and your CI, for a fixed monthly price: from $5,000 a month.

Will it work for a team like yours?

A test at every hop between your user and your data.

Failures tend to happen between steps, not inside one. So each step gets its own test, its own logs and its own alert.

Sound familiar?

  • We ship faster now, and production breaks more.
  • Data goes in at the app and comes out wrong in search. Nobody knows which step lost it.
  • The dead letter queue has been filling for a week and nobody was paged.
  • Unit tests are green. It still broke between services.
  • Nobody reads every agent pull request anymore.

What that looks like on a real pipeline

The app writes a record. It passes through a watcher, a worker, a queue and a subscriber before it shows up in search. Any of those steps can fail quietly, so each one gets its own test.

  1. App UI to Firestore

    A browser test submits the form, then reads the document back and checks its shape.

  2. Database watcher

    Checks that it fires once per change: not twice, not zero times.

  3. Worker

    Checks that it picks only the events it should, and logs why it skipped the rest.

  4. Message queue topic

    Checks that each event lands on the right topic with the right payload.

  5. Subscriber

    Checks that it reads, transforms and retries safely.

  6. Elasticsearch

    Checks that the document is searchable and matches the source record.

Side lane

Throttle queue

Checks that bursts are slowed down, not dropped.

Side lane

Dead letter queue

Alerts when anything lands here, with the failing message attached.

Each hop gets its own logs, monitor and alert, so a failure names the step instead of showing up three steps later as "search is wrong". We report what we find, and at times fix it ourselves.

Example pipeline on GCP. Client details removed.

Built for CTOs, VPs of Engineering, founders and engineering leads whose teams ship with coding agents, on a stack with more than one hop between the user and the data. If a single app and one database is all you have, we'll say so on the call.

A worked example

One agent change, caught before merge.

A common failure shape, step by step. It's an example scenario, not a client story.

  1. 1

    What the AI agent changed

    Pull request: Tidy up the accounts response

    GET /v1/accounts- plan_id: string;+ plan: { id: string };

    The agent renamed one field to match the new schema. The diff looks clean, and the unit tests it wrote itself still pass.

  2. 2

    What the harness caught

    Check failed
    contract: GET /v1/accountsexpected field plan_id (string)got undefinedstill reading it: mobile app 4.2, billing webhook

    A contract check built from how your product behaves, not from the agent's diff, found two things still reading the old field.

  3. 3

    What happened before merge

    • Blocked. The pull request could not merge.
    • Sent back. The failure went to the agent as a comment it could act on.
    • Fixed. It kept plan_id and added plan.id beside it. Re-run: green.
    • Merged. Your engineers never had to read the diff. Customers saw nothing.

SHIELD, our method

Your coding agents accelerate development. SHIELD builds the reliability layer that keeps up.

It's how we start and how we keep going: six steps we repeat as your product and your agents change. When a new feature, API, agent or piece of infrastructure appears, we run the right steps again. We don't promise 100% coverage. We promise risk-based, steadily improving checks, with clear ownership and visibility.

  1. S

    Survey

    Understand the product, architecture, journeys and existing tests.

  2. H

    Harden

    Repair unreliable tests and cut low-value testing noise.

  3. I

    Instrument

    Establish useful signals across code, APIs, infrastructure and AI.

  4. E

    Exercise

    Build independent tests for the journeys and failure modes that matter most.

  5. L

    Link

    Connect test runs, CI/CD, monitoring and reports in one place.

  6. D

    Defend

    Enforce release gates, keep coverage current and respond to regressions.

SSurveyHHardenIInstrumentEExerciseLLinkDDefendSHIELDrepeats as you grow
Every critical part of the product should have a meaningful safety check. Every critical user journey should be independently verified. Every release should have clear evidence of what passed, what failed, and what is still at risk.

How we're different

The usual answers each leave a gap.

Here's what teams try first, where it falls short, and what we do instead.

Instead of

Agents testing their own work

The gap

An agent that writes the change also writes its tests, so the tests tend to confirm the change, mistakes included.

What we do

We write the checks from how your product should behave and what it promises other services, not from the agent's diff. A wrong change can't write its own passing test.

Instead of

CI plus a few scanners and frameworks

The gap

Each tool watches one layer and nobody owns the seams between them. You get green builds that still ship a broken signup flow or fall over under load.

What we do

One team builds and owns every layer as a single gate: code and API contracts, real-browser UI flows, security, load, and chaos tests on your infrastructure. One pass or fail per pull request.

Instead of

QA vendors and extra hires

The gap

A lot of outsourced QA is people clicking or UI scripts on a human schedule, built for weekly releases, not for agents opening ten pull requests a day.

What we do

Automated checks run on every pull request in your CI. Failures are written so the agent can read them and fix its own change. The tests live in your repo, so you own them.

No gate catches everything. What we commit to is that every bug that slips through becomes a permanent check, so the same mistake doesn't ship twice.

Find out what your agents are getting past you.

Take 15 minutes. We'll review how your code gets to production and tell you plainly if independent testing would help.

Book a 15-minute Reliability Assessment
Book a call