Measure only the usable validation context prefix
This commit is contained in:
@@ -156,15 +156,12 @@ already clear from its own segment does not require such evidence. No audio,
|
||||
out-of-chunk context, or complete transcript is implied.
|
||||
|
||||
Context is serialized inside the validation item and included in the existing
|
||||
payload token estimate, including the target speaker. If one enriched item exceeds
|
||||
the configured limit, optional neighbors are removed from the end first, then
|
||||
glossary entries from the end,
|
||||
until it fits or only required candidate data remains. Required before/after text
|
||||
is never truncated. Existing oversized-candidate handling still applies if that
|
||||
required data does not fit. The built-in estimator reuses encoded fragment
|
||||
counts for fitting and batching. Context is supplemental, not a promise that every
|
||||
relevant definition or neighboring utterance always fits. This uses the existing
|
||||
payload estimator, not a new guarantee about the provider's full context window.
|
||||
payload token estimate, including the target speaker. Fitting measures the
|
||||
required data first, then considers glossary entries followed by neighboring
|
||||
segments in order. It stops at the first entry that exceeds the budget. Required
|
||||
before/after text is never truncated. A candidate whose required data exceeds
|
||||
the budget receives an unavailable decision. The built-in estimator reuses
|
||||
encoded fragment counts for fitting and batching.
|
||||
|
||||
## Protected Names
|
||||
|
||||
|
||||
@@ -377,6 +377,13 @@ Audit #36.
|
||||
reduced measurements or allocation. Retain request-shape and available
|
||||
sibling expectations under over-budget input.
|
||||
|
||||
**Complete.** Validation budgets measure required data first and stop at the
|
||||
first optional entry that does not fit, with glossary entries preceding
|
||||
neighbors. An independent serialized-payload oracle checked fit and batching.
|
||||
With 5,000 optional entries and room for one, allocations fell from 3.12 MB to
|
||||
2.13 KB per operation (Go 1.27.3, twenty iterations). The CLI build and full
|
||||
offline suite passed.
|
||||
|
||||
## Stage 11 — Hand checked selections to execution
|
||||
|
||||
Audit #24 (readiness), #37, #49 (module port), #50, #55, #56.
|
||||
|
||||
Reference in New Issue
Block a user