Liking cljdoc? Tell your friends :D

Assay: tmux compact interrupt, 2026-11-21

Harness: hive-assay run/run-experiment! (MockTransport over a real compact job), full-factorial over :params/arm, 30 paired replicates (same seed -> same pane timeline in every arm). Pane: test/hive_tmux/claude/goal_pane.clj, a fake Claude Code /goal pane in one endless turn (100 s ss wait, thinking gaps, sleep, ship land writes of 1-10 min; p=0.25 one turn boundary in 3 h). Key reactions measured on Claude Code 2.1.330 (queued /compact, C-x C-s backgrounds the tool and sends now; Esc stops the turn). Oracle: compacted AND goal restored AND no write cut. Time = fake clock from job start to /compact sent. Defaults: interrupt_after_ms 300000, poll 5 s, idle timeout 30 min. Reproduce: dev/assay_compact_interrupt.clj.

write sharearmpassrateWilson 95%writes cutttc median / p90 / max (s)
0.15old-job (interrupt=false)0/300.00[0.00, 0.11]0n/a (all :timeout :wait-idle)
0.15interrupt=auto, force-send30/301.00[0.89, 1.00]0300 / 670 / 860
0.15interrupt=auto, escape30/301.00[0.89, 1.00]0306 / 676 / 866
0.50old-job0/300.00[0.00, 0.11]0n/a
0.50interrupt=auto, force-send27/300.90[0.74, 0.97]0570 / 1125 / 1605
0.50interrupt=auto, escape27/300.90[0.74, 0.97]0576 / 1131 / 1611

The 3 failures at write share 0.5 are :timeout panes where writes covered every read of the 30 min window: the gate held, as designed. Force-send and escape tie on the fake pane. They differ in reality only in what happens to the running tool (backgrounded vs killed), which the fake pane cannot price. That argues for force-send as the default.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close