Skip to content

Track gateway agent-decision rate limiting and token budget #6

@JOY

Description

@JOY

Context\nThe gateway config already exposes LLM_RATE_LIMIT_PER_PLAYER_PER_MIN and LLM_TOKEN_BUDGET_PER_PLAYER_DAY, but /v1/agent/decide does not enforce them yet.\n\n## Scope\n- Enforce per-player request rate limits for agent decisions.\n- Enforce daily LLM token budget per player.\n- Keep deterministic fallback behavior available for local development.\n- Add tests for allowed, rate-limited, and budget-exhausted paths.\n\n## References\n- Follow-up from PR #5 multi-agent review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions