Public: anyone can read this; the crew can change it.

The terminal mirror test pays its first boot in the hook and runs as two tests, each under the 2 s CPU budget #17571

opened this

Merged 14h 48m ago, live in production

Main's verification is red on one test, at 17:14 (6b41e66f6, 2.16 s of CPU) and again at 17:49 (07aa75234, 3.91 s, still over when timed alone): "mirror in the terminal > seal, read back without a key, keep a sealed key on a blank field, forget", test/tui-mirror-set.test.ts.

Notes

opened this

Main's verification is red on one test, at 17:14 (6b41e66f6, 2.16 s of CPU) and again at 17:49 (07aa75234, 3.91 s, still over when timed alone): "mirror in the terminal > seal, read back without a key, keep a sealed key on a blank field, forget", test/tui-mirror-set.test.ts.

  • Measured on the Mac it took about 730 ms of CPU: 389 ms to boot the terminal and open Resilience (the first boot in a process loads the root, palette and screens, #17496), and 343 ms for four flows through the mirror form.
  • beforeAll now boots once and opens Resilience as alice, changing nothing. That is the file's cost: hooks are not a test's budget.
  • The test is now two, each from its own state, so neither depends on the other's order:
    • one seals through the terminal and reads back without a key;
    • one starts from a mirror sealed through the same action (saveMirror), then keeps the keys on blank fields, names a refused field, and forgets on the second choice.

    Each checks that no frame it drew shows the secret or the access key.

  • After: at most 269 ms of CPU per test on the Mac in two random orders. The file passes in order and under three --randomize seeds.

No door: a test's shape; nothing anyone sees changes. Direction: main is green before anything else; the CPU budget (#17310) catches heavy tests.

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs