{{ message }}
Repository navigation
Commit fc2dd3c
committed
fix: three review findings — page budget in emitted units, demo cache cut, breakpoint docs
get_page_content sized its response budget in raw characters while the
envelope is emitted as JSON, where every quote, backslash, newline and
tab costs an escape character — quote-dense tables measured 108,777 and
code-dense pages 116,506 against the 100,000 limit while the accounting
said 94,400. The same sizing-units-vs-emitted-units defect was raised on
the structure path in #393 and fixed there via _serialized_size; the
sibling never got the fix. The budget now measures the serialized page
entry plus json's ", " item separator, closing the two residual gaps an
adversarial sweep still breached (per-entry shell: 300 short pages;
separators: 4000 tiny pages, 102,274 emitted). All shapes now land
under the limit except the deliberate first-page exception. The budget
test's pages are now escape-dense — raw length under the budget,
serialized length over — so it fails on the old accounting, and it
asserts the real property: the emitted envelope stays within
TOOL_RESPONSE_CHAR_LIMIT.
The demo's .doc_id sidecar cache is deleted: the name lookup kept right
below it resolves every re-run (submit's uniquing suffixes later
duplicates only, the first copy keeps its plain name), so the cache
bought one list_documents call on a local store ahead of a multi-minute
index step, at the cost of a read/validate/unlink block, two write-backs,
a disk artifact, and a .gitignore entry. Step 1 returns to its 0.2.9
shape, wait=True kept. Verified end to end against the seeded store.
messages() docstring promised the top-level cache_control is skipped
"when your own blocks already use all four breakpoints" — the managed
prefix always holds one, so a caller placing four puts five marks on
the wire and the API rejects the request. Now states the caller budget
of three, matching the _cache_marks < 4 gate.
Non-changes: _split_structure has the same separator undercount but its
node counts are too small to breach (no measured overshoot); the
first-page overshoot exception stays (one page must always return);
the _split_oversized_node budget floor stays (trigger is ~16x beyond
real summary sizes).1 parent 86c257d commit fc2dd3c
5 files changed
Lines changed: 17 additions & 27 deletions
File tree
- examples
- pageindex
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
145 | 132 | | |
146 | | - | |
147 | 133 | | |
148 | 134 | | |
149 | 135 | | |
150 | | - | |
151 | 136 | | |
152 | 137 | | |
153 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1059 | 1061 | | |
1060 | | - | |
| 1062 | + | |
1061 | 1063 | | |
1062 | 1064 | | |
1063 | 1065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
683 | | - | |
| 682 | + | |
| 683 | + | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| |||

0 commit comments