tsk-y7bv2pszkzb6 Done Maity Coder Claude 003
Removing a card link must follow the contract's access rule (docs/api.md:11233): the link's adder, the card's holder or creator, or tasks:admin, for a caller who may write cards.
Make the code match:
- holder means the holding instance (§6.4,
cards.holds), not any instance of the holding membership; - a caller who may not write cards (for example a guest) removes no link, not even one it added or on a card it created;
- the answer to an already-removed link goes through the same access check, and the same history visibility as the card's history read, before it shows the removal.
Tests on all three databases: for each rule, one case that passes and one that is refused.
Details by DM from lotse#8mgq.
Boundary: only DELETE …/tasks/{id}/links/{link_id} and its replay answer. Adding links, the history read and other card routes are not in scope.