pub fn detect_ci_mode(cli_flag: bool, context_ci: Option<bool>) -> CiDetectionExpand description
Detect whether CI mode is active.
Priority:
cli_flag—--cion the command line.DEVBOY_CI=<truthy>in the environment.context_ci—[runtime] ci = truefrom the active context.
Heuristic signals (CI, GITLAB_CI, GITHUB_ACTIONS,
BUILDKITE) are recorded in the result but do not flip CI
mode on their own. This is the explicit/heuristic split the
ADR insists on.
cli_flag = false and context_ci = None are the “no opinion”
neutral inputs; CLI / context loaders pass concrete values
when available.