Files
hermes-agent/tests/hermes_cli
Teknium 9d86ac62b4 test: shrink the goal-DB timing tests to sub-second wall time
Review follow-up on the salvaged #88965 work:

- test_goal_command_slow_db_init_still_persists: drop the 4s slow-init
  loop-gap harness (wall-clock gap assertions on shared CI runners are
  their own flake class; loop-freeze bounds are already covered in
  test_goals_db_bootstrap_off_loop.py). The persistence contract keeps
  its discriminating power by shrinking the monkeypatched init window
  (0.2s) under a 0.8s slow init — the window-only path still fails it.
- test_slow_construction_does_not_block_the_loop: monkeypatch both
  bootstrap windows down (0.3s/0.05s) and shrink the blocking init from
  6s to 1.5s; the two-window contract is what's under test, not the
  production constants. Adds an elapsed ordering assertion so the
  kick-vs-in-flight window distinction stays pinned.

Combined wall time for the pair: ~10.5s -> ~1.4s.
2026-08-18 16:08:29 -07:00
..