Expand description
session_wait: one evaluation of the anchor, the paged marker search and the terminal-state order.
Structsยง
- Anchor
- Child
Done ๐ - The reads a child return already made, when its evaluation ended the slice.
- Child
State ๐ - 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.
- Page
State - Snapshot
- Everything one evaluation reads.
messagesrun OLDEST FIRST and are never trimmed at the anchor. - Wait
Result
Enumsยง
- Anchor
Source - PollEnd ๐
- Slice
End ๐ - Stop ๐
- Wait
State
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_formsentries.
Functionsยง
- ceiling ๐
- At most
PENDING_CEILINGcompacted 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
textpart 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 beforeendwith no idle marker between it andend, or the anchor, whichever is older.