Define unified-manager exclusion, restoration, and permanent deletion of baseline-bounded command-log entries.
When command-log recording support is ENABLED, the unified manager SHALL provide an excludeCommands action associated with commandsInSequence. The action SHALL accept one or more commands from the current baseline-and-limit-bounded sequence, set every selected backing command-log entry to replay state EXCLUDED, retain the entries, and return the current manager. Its default selection SHALL contain exactly the current sequence commands whose contextual knownParticipants value is false. The action SHALL be disabled when recording support is DISABLED or the sequence is empty. Direct invocation MUST reject disabled recording support, an empty selection, or any selected interaction id outside the current sequence, and validation MUST complete before any replay state changes.
A and B respectively have unknown and known participantsA is selected and changed to EXCLUDEDA is in the current sequence and command B is outside itThe unified manager SHALL provide an unexcludeCommands action associated with excluded. The action SHALL accept one or more commands from the manager's current baseline-bounded excluded collection and a replay state chosen from every ReplayState value except EXCLUDED. It SHALL set every selected backing entry to the chosen state, retain the entries, and return the current manager. The action SHALL be disabled when recording support is DISABLED or excluded is empty. Direct invocation MUST reject an empty selection, an EXCLUDED or null destination state, or any selected interaction id outside the current excluded collection, and validation MUST complete before any replay state changes.
A and B are in the current manager collectionUNDEFINEDUNDEFINEDA is in the current excluded collectionPENDINGPENDINGexcludedA and active command BEXCLUDEDThe unified manager SHALL provide a deleteCommands action associated with excluded, with choices drawn from the current baseline-bounded excluded collection. The action SHALL validate one or more selected interaction ids, permanently remove each selected backing command-log entry through the existing persistence service, and return the current manager. It SHALL be disabled when excluded is empty. It MUST reject an empty selection or any selected command outside the current excluded collection before deleting anything, and it MUST NOT delete active, pending, failed, recorded, or replayed entries merely because a caller constructs their view models.
A and B are in the current manager collectiondeleteCommandsA and active command BdeleteCommandsA and active command BA but not B