Complete M16 action select circle parity
This commit is contained in:
@@ -51,7 +51,13 @@ export function validateContextBundle(bundle, { current = true } = {}) {
|
||||
for (const [name, source, limit] of measured) {
|
||||
if (byteLength(source) > limit) add(violations, "DOCUMENT_OVER_BUDGET", `${name}=${byteLength(source)}>${limit}`);
|
||||
}
|
||||
if (!report.withinBudget) add(violations, "CONTEXT_OVER_BUDGET", `tokens=${report.totalTokens}>${CONTEXT_LIMITS.contextTokens}`);
|
||||
if (!report.withinBudget) add(violations, "CONTEXT_OVER_BUDGET", `tokens=${report.estimatedContextTokens}>${CONTEXT_LIMITS.contextTokens}`);
|
||||
if (report.serializedContextTokens > CONTEXT_LIMITS.contextEnvelopeTokens) {
|
||||
add(violations, "CONTEXT_ENVELOPE_OVER_BUDGET", `tokens=${report.serializedContextTokens}>${CONTEXT_LIMITS.contextEnvelopeTokens}`);
|
||||
}
|
||||
if (report.estimatedContextTokens > CONTEXT_LIMITS.contextTokens) {
|
||||
add(violations, "CONTEXT_CONTENT_OVER_BUDGET", `tokens=${report.estimatedContextTokens}>${CONTEXT_LIMITS.contextTokens}`);
|
||||
}
|
||||
if (context.inputPaths.length > GOVERNANCE_LIMITS.maxTaskInputs) {
|
||||
add(violations, "TASK_INPUTS_TOO_WIDE", `count=${context.inputPaths.length}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user