Skip to content

Commit 640aed5

Browse files
committed
docs(spec): listRequests' limit docblock states the engine-side window the head serves — the who-acts-next arms resolve to a bounded id set first
Claude-Session: https://claude.ai/code/session_016njDy8ozy9B9Ns5Y8kAWEK Co-authored-by: Claude <noreply@anthropic.com>
1 parent e40ef1f commit 640aed5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎packages/spec/src/contracts/approval-service.ts‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -903,10 +903,14 @@ export interface IApprovalService {
903903
*/
904904
q?: string;
905905
/**
906-
* Page window. Honoured as an engine-level window when the filter is
907-
* fully pushable; an `approverId` / status-array filter still
908-
* post-filters in memory (bounded personal queues), where the window
909-
* is applied after filtering.
906+
* Page window, applied by the engine for every filter; a status array
907+
* pushes down as `$in`. The two "who acts next" arms (`approverId`,
908+
* `unstaffed`) first resolve to a bounded set of request ids: the
909+
* approver index for `approverId`, the pending-request scan for
910+
* `unstaffed`, each within the implementation's id window
911+
* (`APPROVER_INDEX_CAP`, 10,000 in `@objectstack/plugin-approvals`,
912+
* which warns when a probe reaches it). The window then applies
913+
* engine-side to the rows in that set.
910914
*/
911915
limit?: number;
912916
offset?: number;

0 commit comments

Comments
 (0)