Reorganize Blender Web execution around capabilities
This commit is contained in:
@@ -5,12 +5,12 @@ import { buildTaskContext, compactTaskContext, contextSizeReport, CONTEXT_LIMITS
|
||||
test("current task context is bounded and follows the parent pointer", () => {
|
||||
const bundle = buildTaskContext();
|
||||
const report = contextSizeReport(bundle);
|
||||
assert.match(bundle.context.task, /^M\d+-GAP-\d{5}$/);
|
||||
assert.match(bundle.context.parentTask, /^M\d+-GAP-\d{5}$/);
|
||||
assert.match(bundle.context.task, /^(?:M\d+-GAP-\d{5}|WBV2-P\d-\d{3})$/);
|
||||
assert.match(bundle.context.parentTask, /^(?:M\d+-GAP-\d{5}|WBV2-(?:BASELINE|P\d-\d{3}))$/);
|
||||
assert.equal(bundle.context.parent.manifest.nextTask, bundle.context.task);
|
||||
assert.ok(bundle.context.commands.length >= 1);
|
||||
assert.equal(bundle.context.sourceDocuments.taskCard, `docs/tasks/${bundle.context.task}.md`);
|
||||
assert.equal(bundle.context.sourceDocuments.taskIndex, "tests/golden/M15-03A/task-index.json");
|
||||
assert.equal(bundle.context.sourceDocuments.taskIndex, "tests/golden/WBV2/task-index.json");
|
||||
assert.ok(!JSON.stringify(bundle.context).includes("next-task-plan.json"));
|
||||
assert.equal(bundle.context.scope.ownerFamily, readIndexedTask(bundle.context.task).ownerFamily);
|
||||
assert.equal(report.withinBudget, true);
|
||||
|
||||
Reference in New Issue
Block a user