Capture M16 gap execution artifacts
This commit is contained in:
@@ -24,11 +24,12 @@ test("current task context is bounded and follows the parent pointer", () => {
|
||||
test("printed context reserves envelope space and omits verbose exclusion audit", () => {
|
||||
const bundle = buildTaskContext();
|
||||
const compact = compactTaskContext(bundle.context);
|
||||
const excludedReasons = {};
|
||||
for (const item of bundle.context.inputSelection.excluded) {
|
||||
excludedReasons[item.reason] = (excludedReasons[item.reason] ?? 0) + 1;
|
||||
}
|
||||
assert.equal(compact.inputSelection.excludedCount, bundle.context.inputSelection.excluded.length);
|
||||
assert.deepEqual(compact.inputSelection.excludedReasons, {
|
||||
EVIDENCE_BYTE_BUDGET: 3,
|
||||
GENERATED_EVIDENCE_OUTPUT: 3,
|
||||
});
|
||||
assert.deepEqual(compact.inputSelection.excludedReasons, excludedReasons);
|
||||
assert.ok(!Object.hasOwn(compact.inputSelection, "excluded"));
|
||||
assert.ok(contextSizeReport(bundle).serializedContextTokens <= CONTEXT_LIMITS.contextEnvelopeTokens);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user