// SPDX-FileCopyrightText: 2026 FocusFlow contributors
// SPDX-License-Identifier: AGPL-3.0-only

part of '../../application_management.dart';

/// One backlog row with its configured staleness marker.
class BacklogItemReadModel {
  /// Creates a `BacklogItemReadModel` instance with the values required by its invariants.
  /// Callers should pass already-normalized scheduler data because validation and defaulting belong at the model or service boundary, not in arbitrary UI code.
  const BacklogItemReadModel({
    required this.task,
    required this.stalenessMarker,
  });

  /// Source backlog task.
  final Task task;

  /// Green/blue/purple marker using owner settings.
  final BacklogStalenessMarker stalenessMarker;
}
