Skip to content

Record a spend cap refusal as a security event #2636

Closed as not planned
Closed as not planned

Description

@pournasserian

Part of #2422 (F-DSK). Found by an independent review of #2590.

The model gateway refuses a call over the LLM spend cap (ModelErrorCodes llm_spend_cap_exceeded, in ModelGateway.ReserveAsync), but appends no audit event. SEC-08 asks for every cap exceeded on the security events view, so this one can never reach /security or its header badge.

Scope

  • A refused call over the spend cap appends an audit event, once per refusal, naming the profile and the cap.
  • SecurityEvents.Operations includes it, so it is listed on /security and counted in the badge.
  • Tests: a call over the cap appends the event, and it shows on /security.

Out of scope

  • Injection flagged, which lands with its own feature.

Acceptance

  • A spend cap refusal is listed on /security with the agent or person whose call it was.

Activity

  1. pournasserian commented on Oct 31, 2026

    @pournasserian
    MemberAuthor

    Closing as superseded: FluentCMS is restarting from scratch, see #2675. If this still matters to you, please open a new issue.

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

    supersededClosed because the project restarted from scratchtype:featureNew capabilityv2FluentCMS v2 (v2 branch)

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions