hub: requests: answer() and the forwarding check share one answerer check (the seven checks are restated line for line)
tsk-tj0w7gexsq3b Proposed
Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: rule built twice.
What is wrong
routes/requests._refuse_unless_answerer(routes/requests.py:2197-2226) restates the checks ofanswer()(:2315-2340) nearly line for line:require_known,action_needs_owner,needs_a_human,runner_owner_only,_refuse_by_kind,may_answer,self_answer.- Both build the
action_needs_ownerandrunner_owner_only403s inline, althoughroutes/placements._runner_owner_only(routes/placements.py:931) exists.
Proposal
answer()calls_refuse_unless_answerer, keeping_relayed_ownerand the forwarded-holder check where they are (or the helper takes a hook for them); onerunner_owner_only()inerrors.
Effort / risk: S. Medium; the refusal order is pinned in test_proxy_go.