workCreates property

List<List<String>> get workCreates

Every create EXCEPT the durable remount-budget record (tg-zlfu).

WorkList writes one type=mount-attempt bead per work bead at admission, so a test asserting how many SESSIONS or molecules a path mints would otherwise count the budget record too — and would then be asserting something it does not mean. Filters by the --type argument rather than by position, so it holds regardless of argv order.

Implementation

List<List<String>> get workCreates {
  return callsFor('create').where((c) {
    final i = c.indexOf('--type');
    return i < 0 || i + 1 >= c.length || c[i + 1] != 'mount-attempt';
  }).toList();
}