Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/agent-rate-limits-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# - tests/test_agent_rate_limits_config.bats
# - tests/test_agent_rate_limit.bats
# - tests/test_agent_rate_limit_token_budget.bats
# - tests/test_agent_rate_limit_weekly_glide.bats
# - .github/workflows/agent-rate-limits-tests.yml
#
# Gate: bats validates that standards/agent-rate-limits.json parses as JSON, all
Expand All @@ -21,7 +22,11 @@
# open/half-open transitions, and malformed-input degradation that allows)
# against a stubbed `gh`; and that the org-wide token-budget breaker (#641)
# defers over the config threshold, blocks on a fresh 429, and fails safe to
# allow on telemetry error — against a mocked telemetry adapter, no live network.
# allow on telemetry error; and that the weekly glide-path breaker (#994) defers
# over a time-varying threshold derived from the payload's resets_at (with
# partial days rounded up), ignores the per-model weekly_scoped limit, and fails
# safe to allow on telemetry error — against a mocked telemetry adapter, no live
# network.
# ShellCheck of the lib is covered by the existing scripts/**/*.sh job in ci.yml.
#
# Context: ADR docs/initiatives/agent-rate-limits-adr.md (#637). #638 delivers the
Expand All @@ -39,6 +44,7 @@ on:
- 'tests/test_agent_rate_limits_config.bats'
- 'tests/test_agent_rate_limit.bats'
- 'tests/test_agent_rate_limit_token_budget.bats'
- 'tests/test_agent_rate_limit_weekly_glide.bats'
- '.github/workflows/agent-rate-limits-tests.yml'
push:
branches:
Expand All @@ -49,6 +55,7 @@ on:
- 'tests/test_agent_rate_limits_config.bats'
- 'tests/test_agent_rate_limit.bats'
- 'tests/test_agent_rate_limit_token_budget.bats'
- 'tests/test_agent_rate_limit_weekly_glide.bats'
- '.github/workflows/agent-rate-limits-tests.yml'

permissions:
Expand Down Expand Up @@ -82,4 +89,5 @@ jobs:
bats --print-output-on-failure \
tests/test_agent_rate_limits_config.bats \
tests/test_agent_rate_limit.bats \
tests/test_agent_rate_limit_token_budget.bats
tests/test_agent_rate_limit_token_budget.bats \
tests/test_agent_rate_limit_weekly_glide.bats
Loading
Loading