Skip to main content

Module wait

Module wait 

Source
Expand description

session_wait: one evaluation of the anchor, the paged marker search and the terminal-state order.

Structsยง

Anchor
ChildDone ๐Ÿ”’
The reads a child return already made, when its evaluation ended the slice.
ChildState ๐Ÿ”’
What the wait-child task accumulates; it lives outside the task so the slice end can use it.
Evaluation
Lists ๐Ÿ”’
The two lists one poll tick reads.
Located ๐Ÿ”’
What anchor resolution leaves for the rest of one evaluation.
PageState
Snapshot
Everything one evaluation reads. messages run OLDEST FIRST and are never trimmed at the anchor.
WaitResult

Enumsยง

AnchorSource
PollEnd ๐Ÿ”’
SliceEnd ๐Ÿ”’
Stop ๐Ÿ”’
WaitState

Constantsยง

CHILD_SLICE_MS ๐Ÿ”’
A wait child never blocks longer than this, so the slice deadline and the poll are never starved.
PAGE_LIMIT ๐Ÿ”’
The route maximum page size.
PENDING_CEILING ๐Ÿ”’
Hard ceiling of pending_permissions / pending_forms entries.

Functionsยง

ceiling ๐Ÿ”’
At most PENDING_CEILING compacted entries and the count beyond them.
compact_form ๐Ÿ”’
cursor_str ๐Ÿ”’
evaluate
Rules 3.1 to 3.5 in order, after rule (0) (a parked anchor skips (1) and (4)).
is_idle ๐Ÿ”’
is_user ๐Ÿ”’
item_created ๐Ÿ”’
item_id ๐Ÿ”’
last_assistant_text ๐Ÿ”’
The text of the last text part of the newest post-anchor assistant row that has one.
message_from_raw ๐Ÿ”’
parked ๐Ÿ”’
push_new ๐Ÿ”’
rows ๐Ÿ”’
seconds ๐Ÿ”’
turn_start ๐Ÿ”’
Start of the current non-idle stretch as seen at end: the oldest user message at or before end with no idle marker between it and end, or the anchor, whichever is older.