fix(context): pair route capacities and preserve source evidence within bounded requests

This commit is contained in:
Agent Workbench Dev
2026-11-06 02:37:52 +08:00
parent 3e8c2f99fe
commit 67c034f4b6
11 changed files with 126 additions and 27 deletions
+1 -1
View File
@@ -519,7 +519,7 @@ export class Runtime {
run.readMessageBytes = readMessageBudget(planned.record, message);
run.readBatchBudget = readBatchBudget(planned.record, message);
beginReadTurn(task, run.id, stepRecord.id);
run.readPageCharacters = planned.record.budget.inputBudget - planned.record.nextReadFixedInputTokens
run.readPageCharacters = planned.record.readStateGrowthTokens ? Infinity : planned.record.budget.inputBudget - planned.record.nextReadFixedInputTokens
- (planned.record.workingRetentionTokens ?? 0) < 4096 ? 2000 : Infinity;
const executionCalls = orderReadCalls(run.readBatchBudget, calls, call => {
const args = JSON.parse(call.function.arguments);