Skip to content

Locked-rule reason codes: add a 'credits' reason for audits that ran out of credits #1792

Description

@nc9

Locked and not-checked rules carry a machine-readable reason (#1734): plan, provider_error or unsupported_environment. A cloud audit that runs out of credits partway has no fitting code. The cloud currently reports it as unsupported_environment with a detail sentence ("The audit ran out of credits. Add credits, then re-run the audit."). That never blames the plan, but the label is a stretch, and an agent reading the code can't tell "add credits" apart from "this can't run in the cloud".

Acceptance Criteria

  • The public reason set has a credits value, documented beside the others
  • The report renderers (console, text, markdown, html, llm, json) group and word credits locked rules on their own ("ran out of credits: add credits and re-run"), never as a plan or environment limit
  • Older readers that don't know credits fall back to the generic wording without failing
  • Tests cover the new code in each renderer and in the contract schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions