namespace ZB.MOM.WW.OtOpcUa.ControlPlane.AdminOperations;

/// <summary>
///     How the deploy gate treats TagConfig strictness inspection results (R2-11, 05/CONV-2). Sourced from
///     <c>Deployment:TagConfigValidationMode</c> in appsettings; defaults to <see cref="Warn"/> so existing
///     deployments are never blocked by a previously-tolerated typo.
/// </summary>
public enum TagConfigValidationMode
{
    /// <summary>Non-blocking: inspection warnings are logged and appended to the accepted
    /// <c>StartDeploymentResult.Message</c>, but the deploy still succeeds. The default.</summary>
    Warn,

    /// <summary>Blocking: inspection warnings fold into the draft-gate reject list, so a config with a
    /// typo'd enum (or unparseable TagConfig) cannot be re-deployed until fixed. Opt-in per environment
    /// once the fleet deploys warning-clean.</summary>
    Error,
}
