namespace w4c_workflows.Services.Security;
///
/// Resource ceilings for node execution, bound from the Nodes:Quotas
/// configuration section. These are safety limits, not feature flags: they stop
/// a runaway loop or an oversized response from exhausting the worker. A value
/// of 0 disables the corresponding limit.
///
public sealed class NodeQuotaOptions
{
/// Configuration section this policy binds from.
public const string SectionName = "Nodes:Quotas";
///
/// Outbound requests a single run may issue across all its HTTP nodes,
/// redirect hops included. Guards against a mis-wired loop hammering an
/// external service.
///
public int MaxRequestsPerRun { get; set; } = 100;
///
/// Largest response body a node will buffer, in bytes. Responses above the
/// cap fail the node instead of being loaded into memory.
///
public long MaxResponseBytes { get; set; } = 8 * 1024 * 1024;
}