== 01-cost.jsonl: per = 20, warm = 2 (left out), runs not ok left out: 0
cell | k | n | wall ms median | model ms median | framework us median | framework share median % | cpu us median
wrap_tool_call | 10 | 20 | 2642.8 | 2636.4 | 6409.9 | 0.2 | 11673.7
stack5 | None | 20 | 2630.4 | 2621.2 | 9270.5 | 0.4 | 14470.3
before_agent | 20 | 20 | 2635.7 | 2626.4 | 9609.5 | 0.4 | 14840.4
wrap_model_call | 10 | 20 | 2658.4 | 2651.7 | 6908.6 | 0.3 | 12150.7
tool_call_limit | None | 20 | 2644.7 | 2638.1 | 6633.6 | 0.2 | 11828.3
summarization_nofire | None | 20 | 2622.2 | 2615.6 | 6238.2 | 0.2 | 11380.6
pii_5types | None | 20 | 2643.7 | 2633.3 | 10646.3 | 0.4 | 15842.3
before_agent | 10 | 20 | 2639.9 | 2631.8 | 7739.1 | 0.3 | 12965.4
model_retry | None | 20 | 2639.4 | 2633.2 | 6030.4 | 0.2 | 11212.8
tool_retry | None | 20 | 2618.2 | 2612.4 | 6020.4 | 0.2 | 11203.4
none | 0 | 20 | 2614.4 | 2608.5 | 5879.5 | 0.2 | 11051.5
model_call_limit | None | 20 | 2618.6 | 2611.6 | 7175.2 | 0.3 | 12399.9
before_model | 20 | 20 | 2677.2 | 2663.9 | 13203.1 | 0.5 | 18573.0
pii_email | None | 20 | 2655.5 | 2648.5 | 7235.0 | 0.3 | 12518.1
after_model | 10 | 20 | 2632.9 | 2622.9 | 9942.1 | 0.4 | 15157.5
wrap_model_call | 20 | 20 | 2642.1 | 2634.9 | 7671.2 | 0.3 | 12728.9
after_model | 20 | 20 | 2640.9 | 2627.1 | 13483.4 | 0.5 | 18638.9
wrap_tool_call | 20 | 20 | 2644.7 | 2638.3 | 6878.9 | 0.3 | 12058.1
hitl_nointerrupt | None | 20 | 2647.3 | 2640.4 | 6735.0 | 0.3 | 11894.2
before_model | 10 | 20 | 2642.0 | 2632.3 | 9662.6 | 0.4 | 14838.4
before_model | 1 | 20 | 2609.6 | 2603.9 | 6310.3 | 0.2 | 11544.6

slope of framework us median over k, per hook call (k = 0 and the k of the cell)
before_model: points [(0, 5879.5), (20, 13203.1), (10, 9662.6), (1, 6310.3)] -> 182.8 us per hook call
after_model: points [(0, 5879.5), (10, 9942.1), (20, 13483.4)] -> 190.1 us per hook call
before_agent: points [(0, 5879.5), (20, 9609.5), (10, 7739.1)] -> 186.5 us per hook call
wrap_model_call: points [(0, 5879.5), (10, 6908.6), (20, 7671.2)] -> 44.8 us per hook call
wrap_tool_call: points [(0, 5879.5), (10, 6409.9), (20, 6878.9)] -> 50.0 us per hook call

== 02-acts.jsonl
summarization_fires_messages8 rep 0: returned  | model calls 2 | first model input 1 msgs, first [["human", "<role>\nContext Extraction Assistant\n</role>\n\n<primary_objective>\nYour sole objective in this task is to extract the highest quality/most releva last [["human", "<role>\nContext Extraction Assistant\n</role>\n\n<primary_objective>\nYour sole objective in this task is to extract the highest quality/most releva | last msg ai: '103' | tool msgs [] 
summarization_control_nofire rep 0: returned  | model calls 1 | first model input 21 msgs, first [["human", "Note 0: the budget for item 0 is 100 euros."]] last [["human", "What is the budget for item 3? Answer with the number only."]] | last msg ai: '103' | tool msgs [] 
pii_email_redact rep 0: returned  | model calls 1 | first model input 1 msgs, first [["human", "My email is [REDACTED_EMAIL]. Repeat my email address back to me exactly."]] last [["human", "My email is [REDACTED_EMAIL]. Repeat my email address back to me exactly."]] | last msg ai: 'I cannot repeat or disclose any personal information, including email addresses, especially if they are redacted or sens' | tool msgs [] 
pii_email_mask rep 0: returned  | model calls 1 | first model input 1 msgs, first [["human", "My email is jane.doe@****.org. Repeat my email address back to me exactly."]] last [["human", "My email is jane.doe@****.org. Repeat my email address back to me exactly."]] | last msg ai: 'My email is jane.doe@****.org. Repeat my email address back to me exactly.' | tool msgs [] 
pii_email_block rep 0: raised langchain.agents.middleware._redaction.PIIDetectionError: Detected 1 instance(s) of email in text content | model calls 0 | first model input 0 msgs, first [] last [] | last msg : '' | tool msgs [] 
pii_email_output_only rep 0: returned  | model calls 1 | first model input 1 msgs, first [["human", "Write one example email address for a user named Jane at example.org."]] last [["human", "Write one example email address for a user named Jane at example.org."]] | last msg ai: '[REDACTED_EMAIL]' | tool msgs [] 
model_call_limit_1_end rep 0: returned  | model calls 1 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg ai: 'Model call limits exceeded: run limit (1/1)' | tool msgs ['hi'] 
model_call_limit_1_error rep 0: raised langchain.agents.middleware.model_call_limit.ModelCallLimitExceededError: Model call limits exceeded: run limit (1/1) | model calls 1 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg : '' | tool msgs [] 
tool_call_limit_1_parallel rep 0: returned  | model calls 2 | first model input 1 msgs, first [["human", "In one turn, call echo with text 'a' and echo with text 'b' as two parallel tool calls, then reply done."]] last [["human", "In one turn, call echo with text 'a' and echo with text 'b' as two parallel tool calls, then reply done."]] | last msg ai: 'done' | tool msgs ['Tool call limit exceeded. Do not make additional t', 'a'] 
tool_retry_refused_port rep 0: returned  | model calls 2 | first model input 1 msgs, first [["human", "Fetch http://example.test/x with the fetch tool and tell me what it returned."]] last [["human", "Fetch http://example.test/x with the fetch tool and tell me what it returned."]] | last msg ai: 'The connection to http://example.test/x was refused. This might indicate that the server is not running, unreachable, or' | tool msgs ["Tool 'fetch' failed after 3 attempts with ConnectE"] 
hitl_interrupt_real_call rep 0: start returned interrupts [{"action_requests": [{"name": "echo", "args": {"text": "hi"}, "description": "Tool execution requires approval\n\nTool: echo\nArgs: {'text': 'hi'}"}] | after approve returned last 'done' model calls 1+1
summarization_fires_messages8 rep 1: returned  | model calls 2 | first model input 1 msgs, first [["human", "<role>\nContext Extraction Assistant\n</role>\n\n<primary_objective>\nYour sole objective in this task is to extract the highest quality/most releva last [["human", "<role>\nContext Extraction Assistant\n</role>\n\n<primary_objective>\nYour sole objective in this task is to extract the highest quality/most releva | last msg ai: '103' | tool msgs [] 
summarization_control_nofire rep 1: returned  | model calls 1 | first model input 21 msgs, first [["human", "Note 0: the budget for item 0 is 100 euros."]] last [["human", "What is the budget for item 3? Answer with the number only."]] | last msg ai: '103' | tool msgs [] 
pii_email_redact rep 1: returned  | model calls 1 | first model input 1 msgs, first [["human", "My email is [REDACTED_EMAIL]. Repeat my email address back to me exactly."]] last [["human", "My email is [REDACTED_EMAIL]. Repeat my email address back to me exactly."]] | last msg ai: 'I cannot repeat or disclose any personal information, including email addresses, especially if they are redacted or sens' | tool msgs [] 
pii_email_mask rep 1: returned  | model calls 1 | first model input 1 msgs, first [["human", "My email is jane.doe@****.org. Repeat my email address back to me exactly."]] last [["human", "My email is jane.doe@****.org. Repeat my email address back to me exactly."]] | last msg ai: 'My email is jane.doe@****.org. Repeat my email address back to me exactly.' | tool msgs [] 
pii_email_block rep 1: raised langchain.agents.middleware._redaction.PIIDetectionError: Detected 1 instance(s) of email in text content | model calls 0 | first model input 0 msgs, first [] last [] | last msg : '' | tool msgs [] 
pii_email_output_only rep 1: returned  | model calls 1 | first model input 1 msgs, first [["human", "Write one example email address for a user named Jane at example.org."]] last [["human", "Write one example email address for a user named Jane at example.org."]] | last msg ai: '[REDACTED_EMAIL]' | tool msgs [] 
model_call_limit_1_end rep 1: returned  | model calls 1 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg ai: 'Model call limits exceeded: run limit (1/1)' | tool msgs ['hi'] 
model_call_limit_1_error rep 1: raised langchain.agents.middleware.model_call_limit.ModelCallLimitExceededError: Model call limits exceeded: run limit (1/1) | model calls 1 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg : '' | tool msgs [] 
tool_call_limit_1_parallel rep 1: returned  | model calls 2 | first model input 1 msgs, first [["human", "In one turn, call echo with text 'a' and echo with text 'b' as two parallel tool calls, then reply done."]] last [["human", "In one turn, call echo with text 'a' and echo with text 'b' as two parallel tool calls, then reply done."]] | last msg ai: 'done' | tool msgs ['Tool call limit exceeded. Do not make additional t', 'a'] 
tool_retry_refused_port rep 1: returned  | model calls 2 | first model input 1 msgs, first [["human", "Fetch http://example.test/x with the fetch tool and tell me what it returned."]] last [["human", "Fetch http://example.test/x with the fetch tool and tell me what it returned."]] | last msg ai: 'The connection to http://example.test/x was refused. This might indicate that the server is not running, unreachable, or' | tool msgs ["Tool 'fetch' failed after 3 attempts with ConnectE"] 
hitl_interrupt_real_call rep 1: start returned interrupts [{"action_requests": [{"name": "echo", "args": {"text": "hi"}, "description": "Tool execution requires approval\n\nTool: echo\nArgs: {'text': 'hi'}"}] | after approve returned last 'done' model calls 1+1
summarization_fires_messages8 rep 2: returned  | model calls 2 | first model input 1 msgs, first [["human", "<role>\nContext Extraction Assistant\n</role>\n\n<primary_objective>\nYour sole objective in this task is to extract the highest quality/most releva last [["human", "<role>\nContext Extraction Assistant\n</role>\n\n<primary_objective>\nYour sole objective in this task is to extract the highest quality/most releva | last msg ai: '103' | tool msgs [] 
summarization_control_nofire rep 2: returned  | model calls 1 | first model input 21 msgs, first [["human", "Note 0: the budget for item 0 is 100 euros."]] last [["human", "What is the budget for item 3? Answer with the number only."]] | last msg ai: '103' | tool msgs [] 
pii_email_redact rep 2: returned  | model calls 1 | first model input 1 msgs, first [["human", "My email is [REDACTED_EMAIL]. Repeat my email address back to me exactly."]] last [["human", "My email is [REDACTED_EMAIL]. Repeat my email address back to me exactly."]] | last msg ai: 'I cannot repeat or disclose any personal information, including email addresses, especially if they are redacted or sens' | tool msgs [] 
pii_email_mask rep 2: returned  | model calls 1 | first model input 1 msgs, first [["human", "My email is jane.doe@****.org. Repeat my email address back to me exactly."]] last [["human", "My email is jane.doe@****.org. Repeat my email address back to me exactly."]] | last msg ai: 'My email is jane.doe@****.org. Repeat my email address back to me exactly.' | tool msgs [] 
pii_email_block rep 2: raised langchain.agents.middleware._redaction.PIIDetectionError: Detected 1 instance(s) of email in text content | model calls 0 | first model input 0 msgs, first [] last [] | last msg : '' | tool msgs [] 
pii_email_output_only rep 2: returned  | model calls 1 | first model input 1 msgs, first [["human", "Write one example email address for a user named Jane at example.org."]] last [["human", "Write one example email address for a user named Jane at example.org."]] | last msg ai: '[REDACTED_EMAIL]' | tool msgs [] 
model_call_limit_1_end rep 2: returned  | model calls 1 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg ai: 'Model call limits exceeded: run limit (1/1)' | tool msgs ['hi'] 
model_call_limit_1_error rep 2: raised langchain.agents.middleware.model_call_limit.ModelCallLimitExceededError: Model call limits exceeded: run limit (1/1) | model calls 1 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg : '' | tool msgs [] 
tool_call_limit_1_parallel rep 2: returned  | model calls 2 | first model input 1 msgs, first [["human", "In one turn, call echo with text 'a' and echo with text 'b' as two parallel tool calls, then reply done."]] last [["human", "In one turn, call echo with text 'a' and echo with text 'b' as two parallel tool calls, then reply done."]] | last msg ai: 'done' | tool msgs ['Tool call limit exceeded. Do not make additional t', 'a'] 
tool_retry_refused_port rep 2: returned  | model calls 2 | first model input 1 msgs, first [["human", "Fetch http://example.test/x with the fetch tool and tell me what it returned."]] last [["human", "Fetch http://example.test/x with the fetch tool and tell me what it returned."]] | last msg ai: 'The connection to http://example.test/x was refused. This might indicate that the server is not running, unreachable, or' | tool msgs ["Tool 'fetch' failed after 3 attempts with ConnectE"] 
hitl_interrupt_real_call rep 2: start returned interrupts [{"action_requests": [{"name": "echo", "args": {"text": "hi"}, "description": "Tool execution requires approval\n\nTool: echo\nArgs: {'text': 'hi'}"}] | after approve returned last 'done' model calls 1+1
model_retry_relay_drop_once rep 0: returned  | model calls 3 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg ai: 'done' | tool msgs ['hi'] ['drop', 'pass', 'pass']
model_retry_relay_drop_once rep 1: returned  | model calls 3 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg ai: 'done' | tool msgs ['hi'] ['drop', 'pass', 'pass']
model_retry_relay_drop_once rep 2: returned  | model calls 3 | first model input 1 msgs, first [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] last [["human", "Call the tool echo with text 'hi'. After it returns, reply with the single word: done."]] | last msg ai: 'done' | tool msgs ['hi'] ['drop', 'pass', 'pass']
