<!-- orbyt:chrome:begin -->
---
title: "A Model's Finding Still Needs a Test."
description: "I use documented failures at Orbyt Labs to show how I check a proposed test repair. A completion gate discarded a finished run. A calendar test depended on the date it ran. Their replacements expose specific defects, while a proposed grader comparison defines how I would check for mistakes two judges share."
author: "Justin Bartak"
published: 2026-11-25
modified: 2026-11-25
canonical: https://www.orbytlabs.ai/blog/better-models-better-test-harness
---
<!-- orbyt:chrome:end -->

# A Model's Finding Still Needs a Test.

I can ask an outside model to challenge my tests. I still owe the reproduction. A plausible finding becomes useful when I can show the failing case and the revised check that catches it.

**A model's finding earns a place in my suite only after the revised check proves it can distinguish the defect from a valid case.**

In [Codex Accuses. Claude Convicts.](https://www.orbytlabs.ai/blog/two-ai-audit-loop-codex-claude), I described an outside review of my agent machinery. That account does not compare model capability. The test evidence here comes from separately recorded incidents.

I still owe the test.

## What did my completion check actually miss?

My Collective consists of recurring agent seats at Orbyt Labs. They produce committed reports, proposals and repairs. I retain authority over every gate a merge to main must pass, every dollar, every customer-facing change and any widening of agent authority.

The Collective operates only here. It is not for sale and has never run elsewhere. Its [operating account](https://www.orbytlabs.ai/orbyt-collective/how-it-works) explains how the workflow checks a run before committing its work.

On August 5, the legal seat finished successfully. It used 44 of 80 turns. The result was 1,497 bytes. The completion phrase, `GC_REVIEW:`, began at byte offset 137.

My runner read only the last 600 bytes. The sentinel sat outside that window. It was 1,360 bytes from the end. A complete eight-minute run was discarded. Nothing was committed. [Incident 40](https://www.orbytlabs.ai/failure-corpus.json) records the failure.

The first repair changed the prompts for all eight seats. They said the sentinel must come last. A new test locked the 600-byte cutoff in place, citing those instructions as its justification.

I had missed that my test preserved the cutoff instead of checking whether completed work survived it. The copied assumption was specific: an agent would always put its completion phrase where the gate expected it.

## What does the wider window establish?

The recorded repair uses `tail -n 25 | tail -c 8000`. It keeps the last 25 lines, then limits that tail to 8000 bytes. The byte ceiling also bounds a result written as one enormous line.

The regression test, `__tests__/scripts/org-sentinel-terminal.test.ts`, extracts and executes the pipeline from the workflow. It tests a reconstruction of the lost run. The [incident record](https://www.orbytlabs.ai/failure-corpus.json) identifies the workflow that contains the repair.

| Recorded fixture | Recorded result after repair |
| --- | --- |
| Reconstructed finished legal run | Accepted |
| Sentinel mention earlier in the report | Rejected |
| Truncated result in the fixture | Rejected |
| Completed result with prose after the sentinel | Accepted |

The valid completed runs are the checks against rejecting everything. The truncated fixture tests the separate requirement to reject incomplete output. Neither kind of example can replace the other.

Those results cover the recorded fixtures. A sentinel quoted inside the final window could still match. A run could also print the sentinel and then truncate. Changing from bytes to lines does not settle either case.

I would add these fixtures. I have not run them.

| Proposed fixture | Required decision |
| --- | --- |
| Suppose I copy the reconstructed legal run's complete sentinel line unchanged into a quoted passage in the final 25 lines, without completing the work. | Reject the run |
| Suppose I emit that complete sentinel line, then truncate the result during the closing summary. | Reject the run |

I would need evidence beyond a matching phrase to justify those rejections. The wider window recovered the documented finished run. Its recorded tests do not establish that a sentinel proves completion.

## Which dates did my calendar test cover?

My subscription pause test exposed a different gap. [Incident 66](https://www.orbytlabs.ai/failure-corpus.json) records a failure at 22:40 Central on August 30, already August 31 in UTC. It failed again after the unrelated changes were stashed.

The pause helper used `setUTCMonth`. That moved the date forward. August 31 plus three months became December 1 instead of November 30. The repair clamps the day to the last valid day of the target month.

Orbyt Labs has zero paying customers. Jobs, Intelligence and Orbyt One are early access waitlists. This case describes a failing test on a billing endpoint. It establishes no customer loss.

My original expectation checked only the result's UTC month against the starting month plus three, wrapped around the year. It did not specify the full intended date. The real clock selected the case.

That assertion caught the overflow when UTC reached August 31. The suite exercised that boundary when the real calendar supplied it. I needed month ends in the fixtures every time the suite ran.

The replacement combines an 87 to 93 day duration bound with hand-written expected dates and an injected clock. The range is coarse. Both November 30 and December 1 fall inside it for that August 31 start.

Explicit expected dates detect this overflow. They encode the calendar rule: preserve the original day when the target month has it; otherwise use its last day. They do not call the helper to calculate the answer.

The recorded mutation restores the overflowing calculation. Exactly three month-end rows fail, while two ordinary-day rows stay green. The public record names `__tests__/api/intelligence-pause.test.ts` as the countermeasure. That is the evidence I can carry forward.

## How do I test a revised check?

My adoption rule is specific: the revised check must reject the reproduced defect and accept every independently reviewed valid case in its test set. I read unexpected rejections before trusting the count.

One guard's first draft reported 23 violations. All were false positives. It paired a log call with an unrelated earlier branch. [Incident 16](https://www.orbytlabs.ai/failure-corpus.json) records the mistake; my [audit account](https://www.orbytlabs.ai/blog/ai-code-audit-harness) also describes that false alarm.

I also need to see what happens with the repair removed. [Incident 63](https://www.orbytlabs.ai/failure-corpus.json) records a publishing guard that ran at one in the morning against a gate that opened at eight.

Deleting the fix left the suite green. The relevant article was not due yet. The repair injected a clock past the dates in the data and asserted that removing the gate would actually release articles.

A passing result covers the cases I ran.

I keep the regression test and link it to the requirement it checks. That makes the expectation available for review when the requirement changes, instead of leaving a cutoff or a date calculation to defend itself.

## Who qualifies the new judge?

Suppose I replace a model that grades agent output. I would first write the acceptance rule and label the reference cases. I have not run this comparison.

I would label every reference case from its requirement and evidence before either grader sees it. The set would include acceptable work and known defects, including ambiguous cases I must settle before scoring.

I would hold the worker outputs fixed while comparing the graders. If I also considered a new worker, I would keep the comparisons separate so a changed judgment could not masquerade as changed work.

| Work being judged | Existing grader | Candidate grader |
| --- | --- | --- |
| Existing worker's fixed outputs | Compare with independent labels | Compare with the same labels |
| Candidate worker's fixed outputs | Compare with independent labels | Compare with the same labels |

I would inspect agreements as well as disagreements, because both judges can endorse the same mistake. I would record each grader's missed defects and false alarms against the labels, and repeat judgments with answer order reversed.

Before running the comparison, I would require fewer missed defects, no newly rejected valid case and unchanged decisions when answer order changes. Unresolved labels would block adoption. Equal results would give me no demonstrated gain on that set.

Those are proposed criteria. The calendar failure is why I would build the case set deliberately. The labels need their own review. A mistaken label can make two agreeing judges look correct.

## What will I keep?

When I next ask a model to review a consequential path, I would ask it to challenge the expected values and fixtures as well as the implementation. Each proposed gap would need its own reproduction.

A better score would not grant an agent more authority. [Decision D-0024](https://www.orbytlabs.ai/decision-ledger.json) separates activating work from widening authority. I keep that decision separate from whether a revised check catches a known mistake.

[Self-Healing Is a Euphemism.](https://www.orbytlabs.ai/blog/self-healing-is-a-euphemism) distinguishes restoring a standard from changing it. My tests need the same distinction. A repair can satisfy the existing requirement; revising the requirement needs a separate decision.

Related reading:

- [84 Ways to Tell Me I'm Wrong.](https://www.orbytlabs.ai/blog/ai-code-audit-harness) how recorded failures become checks, including a check of the audit itself
- [Codex Accuses. Claude Convicts.](https://www.orbytlabs.ai/blog/two-ai-audit-loop-codex-claude) how an outside accusation enters the reproduction process
- [Verification Is the New Literacy](https://www.orbytlabs.ai/blog/verification-is-the-new-literacy) questions for defining requirements and identifying gaps
- [Self-Healing Is a Euphemism.](https://www.orbytlabs.ai/blog/self-healing-is-a-euphemism) the difference between restoring a standard and changing it
- [You Ship What You Tolerate.](https://www.orbytlabs.ai/blog/you-ship-what-you-tolerate) how acceptance decisions establish the working standard
- [Better Model, Better Organization?](https://www.orbytlabs.ai/blog/better-model-better-organization) why an observed improvement remains a judgment until tested with the surrounding system unchanged

<!-- orbyt:chrome:begin -->
This is the markdown version of https://www.orbytlabs.ai/blog/better-models-better-test-harness. The page there is the canonical copy.
<!-- orbyt:chrome:end -->
