fix: add wrapper-backed progress evidence integration path

This commit is contained in:
Eve
2026-04-24 08:21:06 +08:00
parent 9f59449b0c
commit ef990d10b7
3 changed files with 55 additions and 1 deletions

View File

@@ -70,6 +70,14 @@ async function main() {
'Summarize the current dry-run planner state for technical inspection only.',
].join(' ');
const realWrapperInjected = await runScenario(forceRecall, 'Dispatch a subagent to inspect logs and wait for the result.');
assert.match(realWrapperInjected, /classification=long_task/, 'real wrapper integration should classify subagent wait as long_task');
assert.match(realWrapperInjected, /gateStatus=pass/, 'real wrapper integration should pass gate with real progress evidence');
assert.match(realWrapperInjected, /allowedResponseMode=silent_continuation/, 'real wrapper integration should preserve silent continuation allowance');
assert.doesNotMatch(realWrapperInjected, /reason=claimed progression without concrete progress evidence is forbidden/, 'real wrapper integration should not fail for missing progress evidence');
assert.doesNotMatch(realWrapperInjected, /requiredEvidence=progressEvidence/, 'real wrapper integration should not require synthetic progressEvidence repair');
assert.doesNotMatch(realWrapperInjected, /task_name/, 'real wrapper integration should not leak taskRecord.task_name fallback into gate/preflight text');
const injected = await runScenario(forceRecall, requestText);
const expectedSnippets = [