Teriyaki

Chronicle 5. Hidden tests, a separate validator and a cost log

Teriyaki6 min read

Validating AI code means checking software written by an AI with something that AI does not control. It is where an AI software factory parts ways with a code generator. In this fifth episode of the chronicle we tell how, in Teriyaki, we separated the builder from the judge, why the release is decided by whoever has permission to publish, and why every run ends up in a log that cannot be edited.

The starting rule: the builder does not judge

In the episode about the conversation we told how the business version of Teriyaki was born, on 24 September 2026. The next day brought the piece that gives it its meaning: the separate validator and the release.

The decision, written into the technical plan, fits in three lines. Whoever designs, whoever builds and whoever evaluates are kept separate. The software produced does not write its own verdict. Release is a separate act from confirming the work.

It sounds obvious. But when the same AI writes the code and the tests, the tests confirm its own assumptions. We covered this in general terms in How to test an app written by AI. Here we describe what we built.

Test examples in two groups

When the specifications are ready, the factory proposes the test examples in two groups.

  • For the builder: they go to the AI that writes the code, so it knows what a good result looks like.
  • Acceptance, hidden: they never reach the builder. Only the separate validator uses them.

The person who asked for the tool sees all of them and confirms all of them. At least one visible example is required. If the proposal marks no hidden cases and there are at least three automated cases, the platform holds back one in three as hidden on its own, and says so. On top of that, the builder refuses a task that contains a hidden case: it is one more defense, in case something slips through upstream.

A validator the builder does not control

When the build finishes, the separate validation starts on its own. Here is what it does, in order.

  1. It identifies the software. It computes its fingerprint: from that moment on, exactly that version is validated and released, not a similar one.
  2. It checks that nobody cheated. If an existing piece of software is being improved, the protected tests of the starting version must be identical, except for confirmed changes. No hidden case may be found in the delivered software.
  3. It runs all the cases. Visible and hidden. The code under test receives only the inputs, never the expected answers. The validator gives the verdict: a verdict written by the software itself does not count.
  4. It records the outcome. Passed, failed, to be checked by hand, by group.

A new build supersedes all the previous ones: their validations are invalidated and pending release requests are canceled. You cannot release an old validated version in place of a new one.

To trust the validator, we put it to the test with defects planted on purpose. Each one had to block the release, and it did:

  • a failing hidden case, even when the builder claims to have passed everything;
  • a threshold lowered inside a protected test;
  • a threshold lowered in the code, which only a hidden case reveals;
  • an outcome faked by the software itself;
  • a version different from the one identified;
  • a hidden case that ended up in the delivered software.

The release: decided by whoever has permission

Passing validation makes a version releasable. It does not publish it. There are two approvals, and they remain two separate, recorded acts.

Approval What is approved Who
Confirmation specifications and test examples the person who asked for the tool
Release a specific version, with its validation whoever has permission to publish

At approval, the platform checks everything again: validation, acceptance conditions and the draft's fingerprint. A draft changed after the request cannot be published. Why there is a person at the gate is explained in Human in the loop: why an AI action must start with a yes.

We also closed a shortcut: software with hand-imported code can no longer be published with one click, by anyone, administrators included. It must go through the same validation and the same release request. Finally, the approval log only accepts additions: edits and deletions are rejected.

The cost log: every run and its cost

The last piece is the cost log, which arrived in the same days. Every measurable use, that is, a call to a model, an image, an external service, a run, becomes an event that cannot be edited, with its cost.

  • Separate phases. Software Factory replies, the build and the validation each have their own line item, alongside the tool runs.
  • Corrections only going forward. An error is corrected with a new entry, never by changing the old one.
  • A cap for every build. Every build attempt has a spending cap, and what was spent stays on record.
  • A log that does not stop the work. If the log has a problem, the event is not lost: it is recovered later, without blocking whoever is working.

To think about costs in general, start from How much does AI cost a business? Credits, limits and alerts.

What changes for people who use Teriyaki

For the Builder, who describes the process and builds the software: you confirm what "correct" means before any code exists, and you get an outcome that shows how many cases passed, hidden ones included. For the IT Admin, who owns the company's rules: you know every published piece of software passed verification and was published by someone with permission, under rules the company sets, and you see the cost of every run. For people who use the apps: you use only software published by someone with permission. You can see who all this is for on the home page.

Three questions to ask tomorrow about AI code validation

  1. Who writes the tests for AI-generated code? If it is the same AI, nobody has really checked.
  2. Is there at least one group of tests the builder does not see?
  3. Who decides the release, and is it recorded somewhere?

Frequently asked questions

What are hidden tests in AI code validation?

They are test examples confirmed by a person but never shown to the AI that writes the code. Only a separate validator runs them. If the code was tailored to the visible tests, the hidden ones catch it.

Is passing validation enough to publish software?

No. Validation makes a version releasable, but release remains a separate act: only people with permission publish, under rules the company sets. A draft changed after the release request cannot be published.

What is Teriyaki's cost log?

It is the usage log: every call to a model or a service, and every run, becomes an event that cannot be edited, with its cost. Errors are corrected with new entries, never by changing old ones, and every build has a spending cap.

Let's start with one process.
In 30 minutes we'll know if it fits.

Book a demo