Complete M16 action select circle parity
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-08-20 22:57:59 -04:00
parent fb5abd8e37
commit 6a0b980d75
368 changed files with 17417 additions and 117 deletions

View File

@@ -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}`);
}