Files
box/fleet/tasks/done/177-loophealth-test-speedup.md.muse--runtime--coordinator
T

14 lines
1.2 KiB
Plaintext

# 177-loophealth-test-speedup: Loophealth test speedup
Goal: trim loop_health remediate test cost
Steps:
1. Read 168 result notes in done/168-slowest-resweep.md.* for the loop_health remediate x2 target (~0.6s each). 2. On a feature branch: reduce spawns/sleeps (inproc pattern where proven) keeping all assertions identical (never weaken tests); run the file until green. Done criteria: result notes list before/after seconds + pass count, or exact blocking failure.
Done criteria: result notes appended below; file moved to done/.
Result notes (append below before moving to done/):
Completed 2026-10-09T01:56:41Z via box tasks done:
8 passed, 3.57s->3.16s stable. Converted 3 box-ctl spawns (loop-health/status/remediate-dry-run) to proven inproc pattern; assertions identical. Remainder is genuine prod work, verified by cProfile: 6x CDP probes (~0.1s ea), reconstruct_loops 76k json.loads x2 calls (diagnose limit=20 + remediate limit=200), and one LOAD-BEARING 0.35s sleep (approvals.py:806 banner-mount wait after live-browser click; patching it would weaken live observation). RECOMMEND follow-up prod task (144-style): share reconstruct_loops between diagnose_breaks and remediate_breaks. Touched tests/test_loop_health_remediation.py only, uncommitted.