Files
pipelines/app/test/features/runs/domain/run_exhausted_decision_fixture.dart
T
alan ebe79ebed0 App: findings ledger tab, retry extra visits and exhaustion decisions
Run detail gains a Findings tab (open-count badge) listing the server's
findings ledger with status and minimum-severity filters and expandable
event history; visit grants show as an Extra visits summary fact. The
resume retry prompt can grant 1-5 extra visits to the exhausted stage or a
chosen graph stage (never sent on restart), suggested when the run failed
on a visit limit. A loop-exhaustion decision waiting on a model stage is
now decidable from its recorded options, with readable labels, targets and
the visit count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 12:45:51 +00:00

44 lines
1.1 KiB
Dart

import 'package:pipelines_app/core/api_gateway.dart';
/// A run waiting on the server-created decision of an exhausted review loop:
/// the waiting stage is the model stage, not a human stage in the graph.
JsonMap exhaustedDecisionRun({dynamic output}) => {
'id': 9,
'status': 'waiting',
'current_stage': 'review',
'name': 'Build',
'graph': {
'stages': [
{
'key': 'review',
'type': 'model',
'edges': {'pass': '#', 'fail': 'implement'},
},
{'key': 'implement', 'type': 'model'},
],
},
'steps': [
{
'stage': 'review',
'sequence': 6,
'status': 'waiting',
'output':
output ??
{
'prompt': 'Review used all its visits.',
'options': ['accept', 'continue', 'abort'],
'exhausted': {
'stage': 'review',
'visit': 3,
'max_visits': 3,
'targets': {
'accept': '#success',
'continue': 'implement',
'abort': '#failure',
},
},
},
},
],
};