hub: handle lookups go through views.handles_of (eight hand-written copies, four new in the range)
tsk-fed9tb4w4gjh Proposed
Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: duplication.
What is wrong
views.handles_of(views.py:168) maps principal ids to handles in one read;chat_request,memoryandreportsuse it (memory dropped its own copy in this range).- New copies in the range:
claim_requests._handle_of(claim_requests.py:949-959),outsiders._handle(outsiders.py:464), the id-to-handle map inpolicy.own_agents_shown(policy.py:256-271),limit_overrides._handles(limit_overrides.py:101-107). - Older copies of the same SQL:
invitations.py:119-121,jourfixe/rounds.py:327,views.confirmed_by_of(views.py:209-212),routes/requests.py:1872.
Proposal
- Every copy calls
views.handles_of(or a one-id wrapper next to it).
Effort / risk: S. Low; the handles shown stay the same.