oliver-zehentleitner / maity

web: Managed agents gives a placement that creates its agent profile no actions for its creator, where the hub counts the creator as the profile owner

Sign in to report

tsk-t31j72f4bwzm Open

Found in the review of PR #1926 (tsk-44x5grp6fcsq, review A1039); the gap predates that PR. What happens: web/js/placements.js owns(p) (around line 302) needs p.agent.id and the member list to name the viewer as the agent owner. A placement that creates its agent profile (no membership yet, agent.id null) is therefore never counted as the viewer own: its creator gets no Stop or Remove unless they also own the runner (ownsRunner), and /agents/placements (opts.own, filtered by owns) does not list it. What the hub does: hub/src/maity_hub/placements.py profile_owner (around line 201) falls back to created_by when membership_id is null, so the hub treats the creator as the profile owner for the DELETE, the stop and foreign (docs/api.md §15.5, §15.6). To do: count the creator (created_by) as the owner of a placement without an agent id, as the hub does, for the actions and for the own list; consent rows (pending creation or change, placements.js pending) keep offering no action. A smoke case per caller path (the creator who does not own the runner; someone else), and docs/humans.md and docs/runners.md if what they say changes.