fix: retain planning feedback and add acceptance probes
This commit is contained in:
@@ -118,10 +118,20 @@ def run(root, binary, output):
|
||||
events = coordinator.events(first['task_id'],limit=500)
|
||||
planning = [event for event in events if event['kind']=='planning_result']
|
||||
assert planning and planning[-1]['payload']['planning_record_ref'].startswith('sim://plan_task/')
|
||||
planning_feedback = [event['payload'] for event in events if event['kind']=='planning_progress']
|
||||
assert planning_feedback, 'genuine PlanTask feedback was not persisted'
|
||||
assert all(row['sequence'] > 0 and isinstance(row['message'], str) and
|
||||
0 <= row['stamp']['nanosec'] < 1000000000 for row in planning_feedback)
|
||||
assert [row['sequence'] for row in planning_feedback] == sorted(set(row['sequence'] for row in planning_feedback))
|
||||
dispatches = [event for event in events if event['kind']=='execution_dispatched']
|
||||
assert dispatches and dispatches[-1]['versions']['provenance_schema'] == 1
|
||||
assert dispatches[-1]['versions']['runtime_config']['status'] == 'captured'
|
||||
assert any(event['kind']=='delivery_committed' for event in events)
|
||||
report['normal'] = {'task_id':first['task_id'],'run_id':first['run_id'],
|
||||
'status':first['status'],'completed_quantity':first['completed_quantity'],
|
||||
'planning_record_ref':planning[-1]['payload']['planning_record_ref'],
|
||||
'planning_feedback':planning_feedback,
|
||||
'execution_versions':dispatches[-1]['versions'],
|
||||
'counts':counts()}
|
||||
|
||||
second = submit('lost-final-result')
|
||||
|
||||
Reference in New Issue
Block a user