fix: require real progress evidence artifacts

This commit is contained in:
Eve
2026-04-24 07:29:56 +08:00
parent 5647a34294
commit 227755aa57
2 changed files with 39 additions and 13 deletions

View File

@@ -209,7 +209,8 @@ async function main() {
dispatched: true,
event: 'dispatch',
},
taskRecord: { task_name: 'task-123' },
progressEvidence: { sessionKey: 'task-123' },
externalizedCheckpointPath: 'checkpoints/task-123.json',
handoff: { mode: 'direct_reply' },
}), async () => runScenario(forceRecall, requestText));
assert.match(passInjected, /gateStatus=pass/, 'hook pass-path should pass when wrapper provides concrete progressEvidence');
@@ -285,7 +286,8 @@ async function main() {
dispatched: true,
event: 'dispatch',
},
taskRecord: { task_name: 'task-spec-review-missing-evidence' },
progressEvidence: { sessionKey: 'task-spec-review-missing-evidence' },
externalizedCheckpointPath: 'checkpoints/task-spec-review-missing-evidence.json',
handoff: { mode: 'direct_reply' },
}), async () => runScenario(forceRecall, plannerOnlyRequestText));
assert.match(specReviewWithoutEvidenceInjected, /\[LONG_TASK_AUTO_CHAIN_PLAN\]/, 'hook spec-review missing-evidence path should emit auto-chain plan block');
@@ -310,7 +312,8 @@ async function main() {
dispatched: true,
event: 'dispatch',
},
taskRecord: { task_name: 'task-fix-slice-missing-evidence' },
progressEvidence: { sessionKey: 'task-fix-slice-missing-evidence' },
externalizedCheckpointPath: 'checkpoints/task-fix-slice-missing-evidence.json',
handoff: { mode: 'direct_reply' },
}), async () => runScenario(forceRecall, plannerOnlyRequestText));
assert.match(fixSliceWithoutEvidenceInjected, /\[LONG_TASK_AUTO_CHAIN_PLAN\]/, 'hook fix-slice missing-evidence path should emit auto-chain plan block');
@@ -334,7 +337,8 @@ async function main() {
dispatched: true,
event: 'dispatch',
},
taskRecord: { task_name: 'task-implementation-missing-evidence' },
progressEvidence: { sessionKey: 'task-implementation-missing-evidence' },
externalizedCheckpointPath: 'checkpoints/task-implementation-missing-evidence.json',
handoff: { mode: 'direct_reply' },
}), async () => runScenario(forceRecall, plannerOnlyRequestText));
assert.match(specReviewWithoutImplementationEvidenceInjected, /\[LONG_TASK_AUTO_CHAIN_PLAN\]/, 'hook implementation missing-evidence path should emit auto-chain plan block');