feat(hub): additive optional limit/keyset pagination on unbounded list endpoints (#291)#293
Merged
physercoe merged 1 commit intoJun 14, 2026
Conversation
…t endpoints (#291) - audit events: add ?before= / ?after= ISO-8601 keyset cursors on ts - channel events: add ?before= keyset cursor on received_ts - A2A cards: add optional ?limit=N (absent = unlimited, max 1000) - Tests: keyset walk no-gap/no-overlap, limit caps, no-params unchanged Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
physercoe
pushed a commit
that referenced
this pull request
Jun 14, 2026
Hub robustness sweep (#74–#79) + Projects-tab segmented sub-tabs. - ADR-045 D4 storage maintenance (#288) - raw-SQL-error no-leak sweep (#280/#283), rows.Err audit (#286), FTS/routing status codes (#287), owner-or-steward gate (#281), read-pool cap + rows.Close defer (#292), additive pagination (#293) - segmented Projects | Workspaces tabs (#289) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #291
Summary
GET /v1/teams/{team}/audit): added?before=/?after=ISO-8601 keyset cursors onts, modelled on the agent_events (ts, seq) patternGET /v1/teams/{team}/channels/{channel}/events): added?before=keyset cursor onreceived_tsGET /v1/teams/{team}/a2a/cards): added optional?limit=N(absent = unlimited, max 1000)All changes are purely additive — when
before/after/limitare absent, the response is byte-identical to the prior release.Endpoints paginated + params
GET /v1/teams/{team}/audit?limit=,?before=,?after=GET /v1/teams/{team}/channels/{channel}/events?limit=,?since=,?before=GET /v1/teams/{team}/a2a/cards?handle=,?limit=Test plan
go build ./...andgo vet ./...passgo test ./internal/server/ -timeout=20mpasses (332s)Note
Whether to impose a protective default truncation limit is a separate product decision — this PR does not add one.
🤖 Generated with Claude Code