camsemianalsyis commited on
Commit
fc503fa
·
verified ·
1 Parent(s): d1c068c

Broaden filter: drop non-conversational classifier calls (max_tokens<=64, no tools) — removes residual OSL 5-10 spike

Browse files
README.md CHANGED
@@ -46,18 +46,21 @@ Filters:
46
  is on top of that.
47
  3. **CC ≥ 2.1.139.** Every replayable request in every included session
48
  originated from a Claude Code CLI build at version 2.1.139 or newer.
49
- 4. **Security Monitor excluded.** Claude Code's "Security Monitor"
50
- subagent fires short low-OSL (5-10 token) classification calls. These
51
- are dropped at source so they don't pollute the OSL distribution
52
- (`subagent_label IS DISTINCT FROM 'Security Monitor'` plus a body-
53
- pattern fallback for Security Monitor rows that got the generic
54
- 'Subagent' label).
 
 
 
55
 
56
  - **Traces:** 219
57
- - **Top-level entries:** 48,836 (46,896 main turns + 1,940 subagent groups)
58
- - **Sub-agent inner requests:** 39,251
59
- - **Total individual model requests:** 86,147
60
- - **Models:** `claude-opus-4-7` (82,809 req), `claude-opus-4-6` (2,138 req), `claude-haiku-4-5-20251001` (1,104 req), `claude-sonnet-4-6` (96 req)
61
  - **KV block size:** 64 tokens
62
  - **Hash scope:** `local` — block hash IDs are only comparable *within*
63
  a single trace; they are not a global content-addressable identity.
@@ -129,19 +132,19 @@ triggered them.
129
 
130
  ## Summary statistics
131
 
132
- Across **all** requests (main + sub-agent inner = 86,147 requests):
133
 
134
  | | p50 | p75 | p90 | p95 | p99 | mean |
135
  |------------------------------|---------:|---------:|---------:|---------:|---------:|---------:|
136
- | ISL (tokens) | 98,231 | 197,519 | 373,531 | 511,098 | 779,719 | 154,048 |
137
- | OSL (tokens) | 263 | 598 | 1,336 | 2,032 | 6,408 | 616 |
138
- | Top entries/trace | 139 | 272 | 497 | 722 | 1,114 | 222 |
139
 
140
  ## Plots
141
 
142
  ### Main-agent stream
143
 
144
- Histograms across all 46,896 main-agent turns (sub-agent groups skipped).
145
  Same view as the [no-subagents sibling](https://huggingface.co/datasets/semianalysisai/cc-traces-weka-no-subagents-051826) — the two datasets share an identical main-agent stream.
146
 
147
  ![Main-stream distributions — log x](plots/distributions_log.png)
@@ -149,7 +152,7 @@ Same view as the [no-subagents sibling](https://huggingface.co/datasets/semianal
149
 
150
  ### Sub-agent fan-out analysis
151
 
152
- Histograms across all 1,940 sub-agent groups (and their 39,251 inner requests). Companion to the main-stream plots — answers questions about how often sub-agents are spawned, how deep their tool-loops go, how long they take, and how much intra-group prefix cache reuse exists.
153
 
154
  ![Sub-agent distributions — log x](plots/subagent_distributions_log.png)
155
  ![Sub-agent distributions — linear x](plots/subagent_distributions_linear.png)
@@ -167,10 +170,10 @@ Six panels:
167
 
168
  | model | requests (main + subagent inner) |
169
  |-------|---------:|
170
- | `claude-opus-4-7` | 82,809 |
171
  | `claude-opus-4-6` | 2,138 |
172
- | `claude-haiku-4-5-20251001` | 1,104 |
173
- | `claude-sonnet-4-6` | 96 |
174
 
175
  ## Source
176
 
@@ -179,8 +182,10 @@ Same proxy → weka pipeline as the
179
  just without the post-step that strips `WekaSubagentEntry` blocks.
180
 
181
  1. `utils/sample_proxy_traces.py --min-trace-version 5 --min-main-turns 20 --require-cli-min 2.1.139 --privacy-mode anon`
182
- (Security Monitor exclusion is hardcoded into the query so the
183
- 5-10-token OSL spike doesn't leak into the published corpus.)
 
 
184
  2. `utils/proxy_to_weka.py` (subagent grouping per the dashboard's
185
  algorithm)
186
  3. Concatenate the resulting weka JSONs into `traces.jsonl` — one trace
 
46
  is on top of that.
47
  3. **CC ≥ 2.1.139.** Every replayable request in every included session
48
  originated from a Claude Code CLI build at version 2.1.139 or newer.
49
+ 4. **Non-conversational classifier calls excluded.** Claude Code fires
50
+ several short auxiliary classifier calls per session ("SUGGESTION
51
+ MODE" next-input prediction, conversation-title generation, haiku
52
+ intent detection, the "Security Monitor" subagent). They share a
53
+ clean request shape `max_tokens <= 64` AND no `tools` — and
54
+ produced a heavy OSL 5-10 spike (~9k+ rows at exactly OSL=7) that
55
+ pollutes the published output-length distribution. They are dropped
56
+ at source by shape, with an additional label/body fallback for the
57
+ Security Monitor subagent specifically.
58
 
59
  - **Traces:** 219
60
+ - **Top-level entries:** 39,726 (37,732 main turns + 1,994 subagent groups)
61
+ - **Sub-agent inner requests:** 40,367
62
+ - **Total individual model requests:** 78,099
63
+ - **Models:** `claude-opus-4-7` (74,293 req), `claude-opus-4-6` (2,138 req), `claude-haiku-4-5-20251001` (1,163 req), `claude-sonnet-4-6` (505 req)
64
  - **KV block size:** 64 tokens
65
  - **Hash scope:** `local` — block hash IDs are only comparable *within*
66
  a single trace; they are not a global content-addressable identity.
 
132
 
133
  ## Summary statistics
134
 
135
+ Across **all** requests (main + sub-agent inner = 78,099 requests):
136
 
137
  | | p50 | p75 | p90 | p95 | p99 | mean |
138
  |------------------------------|---------:|---------:|---------:|---------:|---------:|---------:|
139
+ | ISL (tokens) | 109,729 | 214,992 | 394,994 | 535,364 | 799,788 | 164,194 |
140
+ | OSL (tokens) | 307 | 688 | 1,442 | 2,204 | 6,852 | 694 |
141
+ | Top entries/trace | 114 | 219 | 369 | 543 | 1,062 | 181 |
142
 
143
  ## Plots
144
 
145
  ### Main-agent stream
146
 
147
+ Histograms across all 37,732 main-agent turns (sub-agent groups skipped).
148
  Same view as the [no-subagents sibling](https://huggingface.co/datasets/semianalysisai/cc-traces-weka-no-subagents-051826) — the two datasets share an identical main-agent stream.
149
 
150
  ![Main-stream distributions — log x](plots/distributions_log.png)
 
152
 
153
  ### Sub-agent fan-out analysis
154
 
155
+ Histograms across all 1,994 sub-agent groups (and their 40,367 inner requests). Companion to the main-stream plots — answers questions about how often sub-agents are spawned, how deep their tool-loops go, how long they take, and how much intra-group prefix cache reuse exists.
156
 
157
  ![Sub-agent distributions — log x](plots/subagent_distributions_log.png)
158
  ![Sub-agent distributions — linear x](plots/subagent_distributions_linear.png)
 
170
 
171
  | model | requests (main + subagent inner) |
172
  |-------|---------:|
173
+ | `claude-opus-4-7` | 74,293 |
174
  | `claude-opus-4-6` | 2,138 |
175
+ | `claude-haiku-4-5-20251001` | 1,163 |
176
+ | `claude-sonnet-4-6` | 505 |
177
 
178
  ## Source
179
 
 
182
  just without the post-step that strips `WekaSubagentEntry` blocks.
183
 
184
  1. `utils/sample_proxy_traces.py --min-trace-version 5 --min-main-turns 20 --require-cli-min 2.1.139 --privacy-mode anon`
185
+ (Non-conversational classifier-call exclusion `max_tokens <= 64`
186
+ + no `tools` array is hardcoded into the query so the 5-10-token
187
+ OSL spike doesn't leak into the published corpus. A label/body
188
+ fallback for the Security Monitor subagent is layered on top.)
189
  2. `utils/proxy_to_weka.py` (subagent grouping per the dashboard's
190
  algorithm)
191
  3. Concatenate the resulting weka JSONs into `traces.jsonl` — one trace
plots/distributions_linear.png CHANGED

Git LFS Details

  • SHA256: 500da7463167d9df0165fd3906ee7b2fe5c948bbcec7ba176008301266916486
  • Pointer size: 131 Bytes
  • Size of remote file: 217 kB

Git LFS Details

  • SHA256: a17958c2b8abd9a90795c98df5fe6b96d14062cd7a3891a3eeb07a5abb60b67f
  • Pointer size: 131 Bytes
  • Size of remote file: 211 kB
plots/distributions_log.png CHANGED

Git LFS Details

  • SHA256: ebf8645632d76e1c9426cd039eb663646bff9778ae06f9e69423b2b83361c56c
  • Pointer size: 131 Bytes
  • Size of remote file: 207 kB

Git LFS Details

  • SHA256: 92764368cb17712aa310b04d5b930e9c6d768258e3fe5acb71850ed7c26484bc
  • Pointer size: 131 Bytes
  • Size of remote file: 202 kB
plots/subagent_distributions_linear.png CHANGED

Git LFS Details

  • SHA256: 5383fb5999b795d965f52f5febf45669c704ed4fb360722b4a16eb32fe2caf78
  • Pointer size: 131 Bytes
  • Size of remote file: 209 kB

Git LFS Details

  • SHA256: 76b2af8d1fadfae53c392be9c37505dd0b1778bdb969dd26661ec98f380fe799
  • Pointer size: 131 Bytes
  • Size of remote file: 211 kB
plots/subagent_distributions_log.png CHANGED

Git LFS Details

  • SHA256: 7bc30557da357085ec4a2c21f5388e5de52301b5e312254ddb5268b0d17c1285
  • Pointer size: 131 Bytes
  • Size of remote file: 201 kB

Git LFS Details

  • SHA256: ce2e57832dddfa9f31c97d13a43753166fbbae984d7061b10bf011a111e214de
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
traces.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:69d08f80d3abbc1a83b6f9ec71a3b1e85a79c9996e8c8fe0ce70e8cbde8dd159
3
- size 1326859564
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e0f7cba9bbd40fc28af41bccc8afccf839bc77d081fb11c210a2939eb1215f5
3
+ size 1076644069