Refusing the Free Lane: A Red-Flag Gate You Can Run in CI
Описание и применение
Автоматический контроль, позволяющий отклонять задания, которые могут привести к избыточному использованию бесплатных ресурсов, с помощью скрипта на Python и JSON‑политики.
Задача
Deciding whether to allow a workload to run on a free capacity lane can lead to costly retries, data exposure, and contractual violations.
Результат
The harness automatically refuses workloads exceeding a score of 12, shadows those between 5 and 12, and admits others, preventing costly overuse of free capacity.
Рабочий процесс
- Load policy.json
- Load workload manifest
- Compute weighted score for each red‑flag flag
- Compare score to refuse and shadow thresholds
- Return verdict (refuse, shadow, admit) and exit non‑zero if refused
Доказательства
The harness below uses only the Python standard library. It reads a policy file and a workload manifest, then exits non-zero on refusal.
Seven red flags worth acting on ... Each flag below describes the workload, not a vendor.
- Дата записи: 2026-10-16T05:41:04.365Z