/**
 * Create one deterministic finding.
 * @param check
 * @param status
 * @param reason
 */
export function deterministicFinding(check, status, reason) {
    return { check, layer: "deterministic", status, reason };
}
/* eslint-enable jsdoc/require-param-description, jsdoc/require-returns -- restore repository documentation defaults */
/**
 * Format a bounded sorted identifier list without exposing values.
 * @param label - Stable human prefix
 * @param names - Safe relative paths, keys, or public contract names
 * @returns Bounded reason
 */
export function namedReason(label, names) {
    const sorted = [...new Set(names)].sort((left, right) => left.localeCompare(right));
    const shown = sorted.slice(0, 12);
    const suffix = sorted.length > shown.length
        ? ` (+${sorted.length - shown.length} more)`
        : "";
    return `${label}: ${shown.join(", ")}${suffix}`;
}
//# sourceMappingURL=finding-utils.js.map