Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.03 KB

File metadata and controls

30 lines (25 loc) · 1.03 KB

Result Log: 2026-03-10 15:28:00 CST

Goal

  • Turn the new health_snapshot_timing evidence into a concrete DevServer.health fix.

Evidence

  • Live trace from the restarted shell showed:
    • health_snapshot_enter immediately
    • health_snapshot_timing with:
      • dirty_ms = 138162.33
      • hash_ms = 0.289
      • lock_wait_ms = 0.001
  • That isolated the remaining delay to the shell dirty-state probe.

Change

  • Replaced the unbounded shell dirty check with a bounded helper:
    • old path: git status --porcelain --untracked-files=all
    • new path: git diff --quiet and git diff --cached --quiet
    • both guarded by a timeout
  • Added explicit shell_source_dirty_check reporting so live health responses can distinguish:
    • ok
    • timeout
    • git exit-code failures

Verification

  • Targeted tests: passed
  • Full suite: 173 passed

Next Step

  • Restart the hot shell and re-run live DevServer(mode="health") to verify that the timeout is gone or at least degrades into a fast, diagnosable timeout-status response.