Files
pipelines/app/test/features/runs/domain/run_findings_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

49 lines
1.1 KiB
Dart

import 'package:pipelines_app/core/api_gateway.dart';
/// A run detail with a small findings ledger: one open, one fixed with its
/// event history, one dismissed, and a malformed entry.
JsonMap findingsRun() => {
'id': 4,
'findings': [
{
'id': 'F1',
'severity': 'critical',
'origin': 'introduced',
'location': 'internal/cache.go:42',
'summary': 'Cache never evicts',
'status': 'open',
'raised_by': 'review',
'raised_sequence': 4,
},
{
'id': 'F2',
'severity': 'minor',
'origin': 'pre-existing',
'location': '',
'summary': 'Typo in log',
'status': 'fixed',
'reason': 'Corrected',
'raised_by': 'review',
'raised_sequence': 4,
'updated_by': 'implement',
'updated_sequence': 5,
'events': [
{
'sequence': 5,
'stage': 'implement',
'status': 'fixed',
'reason': 'Corrected',
},
],
},
{
'id': 'F3',
'severity': 'nit',
'origin': 'introduced',
'summary': 'Naming',
'status': 'dismissed',
},
'not a finding',
],
};