oliver-zehentleitner / maity
resume: bounded cursor and queries, packet built outside the project lock, route limit
tsk-tnmcav72bhg9 Open
From the lead's security review (2026-11-13). Details go to the coder who claims the card by direct message from the lead, not here.
Resume cost and locking:
- The resume cursor a client sends is clamped to a bounded window behind the head.
- The read-only parts of the resume packet are built outside the project's write lock; the lock covers only the session write.
- Every query in the packet is bounded (limit or exists instead of loading everything).
- A per-credential route limit on resume.
- A model change notice is sent at most once per window per agent.
- Model and harness are shown as declared by the agent, not as facts (public agent page, siblings, notices).
Tests: a large history keeps resume time flat; the lock is not held during packet building (PostgreSQL); the route limit; the notice dedupe.
Area: hub (+ web wording for item 6). Severity: medium (availability).