feat(followup-audio): review full dialogue and bind roles before extraction
This commit is contained in:
@@ -202,8 +202,8 @@ try {
|
||||
$config->set(['verified_profiles' => ['qwen', 'openai']], 'followup_audio');
|
||||
$a = Store::create($firstUpload, $recordedAt, 'qwen', 1, $root);
|
||||
$binding = json_decode(Store::task($a['task_id'])['upstream_ids_json'], true, 16, JSON_THROW_ON_ERROR);
|
||||
$expect($binding === ['provider_fingerprint' => ProviderConfig::resolve('qwen')['fingerprint']],
|
||||
'New task persists only immutable provider fingerprint, not credentials or endpoint');
|
||||
$expect($binding === ['channel_roles' => 'unconfirmed', 'provider_fingerprint' => ProviderConfig::resolve('qwen')['fingerprint']],
|
||||
'New task persists immutable provider fingerprint and default role, not credentials or endpoint');
|
||||
$expect(Store::create($firstUpload, $recordedAt, 'qwen', 1, $root)['task_id'] === $a['task_id'], 'Repeated create does not enqueue duplicate upstream work');
|
||||
$reject(fn () => Store::create($firstUpload, $recordedAt, 'openai', 1, $root), 'UPLOAD_ALREADY_USED');
|
||||
$differentUpload = $upload(1, 1, $firstUpload);
|
||||
|
||||
Reference in New Issue
Block a user