Skip to content

report: locked and not-checked rules carry a machine-readable reason (plan, provider error, unsupported here) #1734

Closed

Description

@nc9

Today a cloud report's locked rules all get one message chosen by plan alone (lockedRulesMessage in packages/report/src/locked-rules.ts), and LockedRule in core-contracts is { id, name } with no reason. So a Team-plan audit whose archive-indexing provider failed is told "the cloud service may have been temporarily unavailable", and an agent cannot tell whether the plan excludes the rule, a provider failed, or the check cannot run in that environment. It either retries (spending credits) or trusts a result that never ran.

The private cloud already knows the cause for a failed service (the prefetch records it with its reason) and will fill the new field once this ships.

Acceptance Criteria

  • LockedRule (and each notChecked entry) carries a reason code from a closed set: at least plan, provider_error, unsupported_environment, plus a free-text detail.
  • Every report format (html, llm, markdown, json, text, xml) renders a message that matches the code: a plan reason names the plan, a provider_error says a re-run may help, and unsupported_environment says where the check can run.
  • A report whose locked rules carry no reason (older publishers) renders today's wording unchanged.
  • Tests cover each code in the llm and html formats, plus the no-reason fallback.
  • docs/reports.mdx describes the reasons, and the PR states whether the agent skill needs a change.

Activity

  1. added
    enhancement
    size: M
    rules
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. nc9 commented on Nov 12, 2026

    @nc9
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions