akm-cli
Version:
akm (Agent Knowledge Manager) — a portable, local-first capability library for AI agents. Discover, load, share, and improve reusable skills, scripts, workflows, and knowledge across any shell-capable coding agent, including Claude Code, OpenCode, and Cur
15 lines (14 loc) • 646 B
JavaScript
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
/**
* Cron task failure rate at or above which the `task-fail-rate` advisory
* warns; also the HTML report's fail-rate badge cutoff, so the two cannot drift.
*/
export const TASK_FAIL_RATE_WARN = 0.05;
/**
* Minimum task_history rows a single task_id needs in the window before its
* own fail rate feeds `task-fail-rate` — a task run once and failed once is
* not a 100% signal.
*/
export const MIN_ROWS_FOR_WORST_TASK_FAIL_RATE = 5;