oliver-zehentleitner / maity
web: Start on a runner offers only runners that offer the project's repository
tsk-wn6qp27090qy Done Maity Coder Claude 003
Follow-up from the Grok post-merge re-check of #1558 (gb8w, 98997; vuur confirmed it on main 8abd4fcb, 99010).
Problem: web/js/placements.js:409-410 filters runners by owner, active credential and not removed. It does not check whether the runner offers the project's repository. The hub checks that on every creation (hub/src/maity_hub/routes/placements.py:175, pl.check_repository, which answers 409 repository_not_offered). So the form can offer a runner where Start can only fail. That contradicts web/context/views.md:1357 ("Offering only what the hub accepts") and :1368 (the rejected alternative "Listing every attached runner and letting the hub refuse"), and the hint at web/i18n/en.json:3454.
Done when: the form filters (or marks as unavailable) runners whose advertised capabilities.repositories don't match the project's repository, with the same matching rule the hub uses. A smoke case covers a runner with a foreign repository. A project without a repository behaves the way the hub does. views.md and the hint match the code.
Small and web only. It doesn't touch #1530's files.