== 01 big-input: ~100k token log -> 8192 window, 1024 reserved
log_lines 1695 log_tokens 100005
tally-plan v3
counter cl100k_base exact=true
window 8192
reserve 1024
input_limit 7168
used 7168
pinned 50
overflow false
[pools]
[kept]
0 pinned system 50
2 newest user 33
[truncated]
1 oldest old-log 100005->7085 suffix omitted=92920
[dropped]

== 02 multi-turn: 12 turns, pinned system, 360 window / 40 reserved
pinned_kept true dropped 7
tally-plan v3
counter cl100k_base exact=true
window 360
reserve 40
input_limit 320
used 317
pinned 51
overflow false
[pools]
[kept]
0 pinned system 51
8 middle history 61
9 middle history 45
10 newest history 56
11 newest history 38
12 newest history 66
[truncated]
[dropped]
1 oldest history 36 为满足预算而丢弃（最早的历史，最先牺牲）
2 oldest history 50 为满足预算而丢弃（最早的历史，最先牺牲）
3 oldest history 35 为满足预算而丢弃（最早的历史，最先牺牲）
4 oldest history 47 为满足预算而丢弃（最早的历史，最先牺牲）
5 middle history 49 为满足预算而丢弃（优先级低于 Newest）
6 middle history 45 为满足预算而丢弃（优先级低于 Newest）
7 middle history 36 为满足预算而丢弃（优先级低于 Newest）

== 03 rag: 6 chunks (same priority, scored) + question, 260 window / 20 reserved
chunks 6 kept 4 dropped 4
tally-plan v3
counter cl100k_base exact=true
window 260
reserve 20
input_limit 240
used 185
pinned 37
overflow false
[pools]
[kept]
0 pinned system 37
1 middle chunk 59
2 middle chunk 62
7 newest question 27
[truncated]
[dropped]
3 middle chunk 57 为满足预算而丢弃（优先级低于 Newest）
4 middle chunk 57 为满足预算而丢弃（优先级低于 Newest）
5 middle chunk 50 为满足预算而丢弃（优先级低于 Newest）
6 middle chunk 52 为满足预算而丢弃（优先级低于 Newest）

== 04 foreign-counter: external tokenizer as Counter, 24 window / 4 reserved
counter space-words exact false
tally-plan v3
counter space-words exact=false
window 24
reserve 4
input_limit 20
used 20
pinned 4
overflow false
[pools]
[kept]
0 pinned system 4
2 newest question 5
[truncated]
1 oldest doc 31->11 prefix omitted=20
[dropped]

== 05 pools: tools demand 100 / history demand 210
A quota tools=50 history=274
tally-plan v3
counter cl100k_base exact=true
window 361
reserve 0
input_limit 361
used 353
pinned 43
overflow false
[pools]
tools 50 100 100 50 0
history 274 210 210 0 50
[kept]
0 pinned system 43
1 newest tool 47
2 newest tool 53
3 oldest history 210
[truncated]
[dropped]

B quota tools=50 history=105
tally-plan v3
counter cl100k_base exact=true
window 361
reserve 0
input_limit 361
used 198
pinned 43
overflow false
[pools]
tools 50 100 50 0 0
history 105 210 105 0 0
[kept]
0 pinned system 43
1 newest tool 47
[truncated]
2 newest tool 53->3 suffix omitted=50
3 oldest history 210->105 suffix omitted=105
[dropped]

== 06 compress: long tool output -> prefix + placeholder marker
log_tokens 1520 payload_budget 60
tally-plan v3
counter cl100k_base exact=true
window 85
reserve 0
input_limit 85
used 85
pinned 25
overflow false
[pools]
[kept]
0 pinned system 25
[truncated]
1 newest build-log 1520->60 compress omitted=1491
[dropped]

marker_ok true
