const LOAD_BEARING = new Set([
    'independently-shippable',
    'no-shared-design-surface',
]);
export function evaluateSignals(input) {
    const fired = [...new Set(input.fired)];
    const triggered = fired.length >= 2;
    const loadBearingCount = fired.filter((signal) => LOAD_BEARING.has(signal)).length;
    let confidence = 'below';
    if (triggered) {
        confidence = loadBearingCount === LOAD_BEARING.size ? 'high' : 'soft';
    }
    return {
        fired,
        triggered,
        confidence,
    };
}
