merge(app): land corrected run-state foundation

This commit is contained in:
2026-10-21 13:37:26 +01:00
9 changed files with 1261 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# F3 run foundation
Public API: `run_models.dart` provides run identity/state/filter/sort helpers,
status wording, `RunListResult`, decision draft/option values, and attention
ordering/identity. `run_decisions.dart` resolves recorded human options and
prompt evidence with graph fallback. `run_events.dart` and
`run_step_evidence.dart` provide monotonic list/detail folds, immutable schedule
origin, graph evidence, and `runDetailNeedsFullSync`. `data/runs_repository.dart`
provides list/get/cancel/retry/decide/title/start calls through the shared gateway.
Focused tests cover stale and terminal lifecycle deltas, resource-wait clearing,
sparse step preservation, sticky cancel/cleanup flags, schedule provenance,
export gating, pending-decision evidence, list/detail agreement, filters/sorts,
exact request fields and server refusals. The repository file is deliberately
tracked despite the repository's `data/` ignore rule. This is a nonvisual
foundation; browser UI captures were not applicable. Mobile targets are
unverified.
This is not total web parity: date filtering uses Dart local-time conversion
rather than web's explicit IANA-zone/locale helpers; the complete attention
dismissal/persistence surface, retry key generation, and repository methods for
export repair/request-key reconciliation are not included in this foundation.