test: drive invader resume from browser boundary

This commit is contained in:
2026-08-12 16:20:44 +00:00
parent 39cf6f4ede
commit 5b829dbb3e
2 changed files with 28 additions and 7 deletions
+15
View File
@@ -855,6 +855,21 @@ function comparisonUnificationInvaderResumeTrace(array $request, array $environm
'messages' => $invaderMessages,
];
$stopAfterButton = $request['stopAfterButton'] ?? false;
if (!is_bool($stopAfterButton)) {
throw new \InvalidArgumentException('stopAfterButton must be a boolean');
}
if ($stopAfterButton) {
return [
'schemaVersion' => 1,
'engine' => 'ref',
'action' => 'UnificationInvaderResume',
'phase' => 'button',
'before' => $before,
'buttonSnapshot' => $buttonSnapshot,
];
}
// Simulate an autoreset poll that recorded the original unification pause.
// A successful event start must replace this stale operational wall anchor.
$pausedAnchor = '2000-01-01 00:00:00.000000';