Your move
Cut the test time and prove the cut
Boot the game once for many scenarios, and run tests that need no picture without a renderer. Prove a headless test still fails when the code is broken before you trust it.
Use the ledger to pick one measured cost. Batch scenarios that can share a launch, then try headless checks separately and prove they still detect the defect.
The situation
Start where the choice gets difficult.
You ask your agent to shorten the checkpoint proof in your Unreal game. It returns a faster run with a clean summary. When you compare the reports, the new run covers the prompt opening and the Confirm choice. The Cancel check is absent. The capture folder still holds a clip, but its timestamp belongs to the earlier attempt. The ledger is shorter, and the Cancel result is missing.
You also have a clue from the earlier timing. You launched the game separately for each checkpoint scenario and waited through the same startup each time. The agent has been rewriting an assertion that finished quickly. If you batch the scenarios, you can investigate the time you actually saw in the ledger. You will have to set each scenario back to its own starting state so that a Cancel in one case does not affect a Confirm in the next. Write down the scenario list, required take, and timing endpoint before the trial.
What changes the decision
Read the evidence before you add more work.
Hold the outcomes and observation points fixed. If launches take substantial time, try a shared launch. If your attention moves to making a quick assertion cheaper before you establish where the time goes, engineers call this premature optimization. Let the largest explainable cost choose your experiment.
Epic's Unreal Engine 5.9 documentation describes the automation command and -nullrhi. In -ExecCmds="Automation RunTest <TestName>;Quit", replace <TestName> with named tests joined by + to run several, or with Group:<Name> for a group defined in DefaultEngine.ini. The -nullrhi argument runs UE headless using the null rendering hardware interface. Leave visual captures in a rendered run. Mark tests that need a real renderer with NonNullRHI. Use the automation report's device fields rHI and renderMode alongside the launch record to identify the run you measured.
For a check that needs no picture, use a copy of the code with the defect restored as a control. Confirm that the same named check reaches the action and fails for the same reason in the rendered and headless runs. Then confirm a pass with the fixed code in both modes. Investigate skips, setup errors, and mismatched failures before relying on the headless check. Record the selected assertion name alongside each verdict.
Do this now
Three moves, in order.
- Freeze the scenario list, build, expected results, required captures, and clock boundaries.
- Test batching on scenarios that can reset their own state. Keep visual captures in a rendered run and test the no-picture candidates in both modes with broken and fixed code.
- Compare the evidence and elapsed time with the baseline. Record the cause of any difference you cannot explain.
Working session
Build it from the evidence in front of you.
- Batch the independent scenarios
Start each scenario from its accepted state and match the report to the complete scenario list. Time the shared launch before changing rendering mode.
- Choose which work needs a picture
Keep captures and screenshot comparisons rendered. Examine what each remaining scenario needs to reach its outcome. Even a check that returns a boolean can depend on something rendered.
- Make the control fail on purpose
Use the retained broken build with the same checks, or restore the defect in an isolated copy. Require the same check to reach the action and fail for the ticket's reason in each mode. Save all four receipts.
- Compare the complete run
Time on the same machine, including any rendered take. An elapsed difference within ordinary run-to-run variation is inconclusive. If a proof needs several processes such as clients and a server, Epic's Gauntlet runs them as a session from a cooked build you supply. Account for the whole session in your ledger.
Inspect the finished shape
Two ways to run the same proof
Baseline: [separate launches, rendered, scenario list and required takes]
Trial: [shared launch, candidate scenarios in each mode, rendered takes]
Clock boundary: [same start and evidence-ready end]
Compare: [baseline total] versus [trial total, including rendered work]
CONTROL FOR THE NO-PICTURE LIST
Broken behavior · Rendered: [intended assertion fails]
Broken behavior · Headless: [same assertion fails for the same reason]
Fixed behavior · Rendered: [same checks pass]
Fixed behavior · Headless: [same checks pass]
DECISION
[Adopt the change or record why the evidence or timing does not support it.]
Build the artifact
A batched test list and a before/after time ledger
Copy these fields into a note, document, or sheet you already use.
Give AI the bounded job
Prompt from your artifact—not from vibes.
Propose one trial for the largest cost in this ledger. Preserve all checks and captures. Mark the rendered scenarios. Require each candidate to fail on broken code and pass on fixed code in both modes. Compare complete runs only. Do not infer a speed gain from the flag.
Before you use it
The work leaves your hands only when:
- The baseline and trial deliver the same required assertions and visual takes.
- The broken-code control fails in both modes for the same reason. Fixed results exercise the same actions and pass.
- The ledger shows a shorter complete run or explains why the trial did not establish a time cut.
Failure patterns
Watch for the move that looks useful but is not.
The faster run drops a check
- The tell
- The summary reports success, but a scenario name is missing or skipped.
- The fix
- Compare executed names and verdicts against the frozen list. Repeat the run with the missing scenario in place.
The candidate needs a picture after all
- The tell
- The rendered result reaches the behavior, while the headless attempt stops earlier.
- The fix
- Keep that check rendered and record the divergence before moving any neighboring check.
The stopwatch stops early
- The tell
- The trial ends with the assertions, while the baseline includes saving the rendered take.
- The fix
- Use the same evidence-ready boundary for both totals and include all work required by the proof row.
Use the boundary
When this rule does not fit.
When scenarios require independent starting environments and you cannot reset them reliably between checks, keep their launches separate until the results show that a shared launch preserves the starting conditions. When a check requires a renderer, keep the rendered route and look in the ledger for other costs to measure. If your timings vary too much to establish a difference, keep that finding with the trial so the next developer can repeat it.
