This commit is contained in:
Your Name
2026-10-23 10:17:09 +08:00
parent 1cbe8bfe54
commit e974d3cfa5
15 changed files with 1501 additions and 71 deletions
@@ -42,7 +42,8 @@ namespace {
$options = ['should_abort' => static fn (): bool => $GLOBALS['lifecycleCancelled'],
'on_authorized' => static function (array $metadata): bool {
$GLOBALS['lifecycle'][] = 'start';
lifecycleExpect($metadata === ['diagnosis_id' => 11, 'task' => 'summary', 'model_key' => 'qwen'], 'early start exposes only authorized identity and model key');
lifecycleExpect($metadata === ['diagnosis_id' => 11, 'task' => 'summary', 'model_key' => 'qwen', 'required_sections' => []],
'early start exposes authorized identity and no unaggregated section claims');
return true;
},
'on_progress' => static function (array $event): void { $GLOBALS['lifecycle'][] = $event; }];