Skip to content

[AEP][medium] AEP-20260924-r3-REPO-B02: reject bad history limits - #336

Merged
mattmre merged 1 commit into
mainfrom
aep/medium/AEP-20260924-r3-REPO-B02/history-limit
Sep 24, 2026
Merged

mattmre merged 1 commit into
mainfrom
aep/medium/AEP-20260924-r3-REPO-B02/history-limit

Conversation

@mattmre

@mattmre mattmre commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Description

Campaign, validation, preflight, and evidence-chain history return HTTP 400 when limit is not an integer. An omitted limit keeps the route default. This commit is fe09228, replayed onto the squash of #330.

Type of Change

  • Bug fix

Testing

Parent re-ran test_history_non_integer_limit_is_400 and test_events_non_integer_limit_is_400. Ruff passed. Review grok-tierb-336b-20260924 probed the four handlers on a loopback server. No browser.

Brutal Honesty

  • Cleanup-plan limit=abc stays on the default page size. That route was not this finding.
  • The earlier score of 100 was for a2e43cf. This score is for fe09228.

EVIDENCE: history limit tests and the loopback probe on fe09228; review grok-tierb-336b-20260924
SMOKE: targeted unittest only; bash scripts/smoke.sh was not run on this branch
BHS_SELF_DRAFT: 100
BHS_SELF_DRAFT_AGENT: grok-aep-fix-20260924
BHS_TIER_B: 100
BHS_TIER_B_AGENT: grok-tierb-336b-20260924
BHS_TIER_B_SEVERITY: none
BHS_OFFICIAL: 100
CARRY_FORWARD: none
DEFERRED_SCOPE: inline timestamp stays on PR 337
LOOP_ITERATIONS: 2
OPERATOR_OVERRIDE: none

@mattmre
mattmre force-pushed the aep/medium/AEP-20260924-BE002/api-limits branch from 0b93b62 to de1fcab Compare September 24, 2026 14:43
@mattmre
mattmre force-pushed the aep/medium/AEP-20260924-r3-REPO-B02/history-limit branch from a2e43cf to 91ab50c Compare September 24, 2026 14:44
Base automatically changed from aep/medium/AEP-20260924-BE002/api-limits to main September 24, 2026 15:11
Campaign, validation, preflight, and evidence-chain history used to
ignore a bad limit and return the default page. They now return HTTP 400,
the same rule as /api/events.
@mattmre
mattmre force-pushed the aep/medium/AEP-20260924-r3-REPO-B02/history-limit branch from 91ab50c to fe09228 Compare September 24, 2026 15:11
@mattmre
mattmre merged commit 74e340f into main Sep 24, 2026
20 of 27 checks passed
@mattmre
mattmre deleted the aep/medium/AEP-20260924-r3-REPO-B02/history-limit branch September 24, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant