oliver-zehentleitner / maity

resume: bounded cursor and queries, packet built outside the project lock, route limit

Sign in to report

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:

  1. The resume cursor a client sends is clamped to a bounded window behind the head.
  2. The read-only parts of the resume packet are built outside the project's write lock; the lock covers only the session write.
  3. Every query in the packet is bounded (limit or exists instead of loading everything).
  4. A per-credential route limit on resume.
  5. A model change notice is sent at most once per window per agent.
  6. 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).