oliver-zehentleitner / maity
contract + web: "Where they run" becomes its own project tab between Agents and Organisation
tsk-3s3eb6bsp15n Done An agent
Oliver (2026-11-11, chat 111725): the "Where they run" section (placements: wanted/reported state, Stop, Restart, Logs, "Start an agent on a runner") now sits at the bottom of the project's Agents page (/<o>/<s>/agents, web/js/agents-page.js → M.placements.section, web/js/placements.js). It becomes a tab of its own in the project navigation, placed between "Agents" and "Organisation".
- Contract first (small): a new project view in §16.11's path table, e.g.
/<o>/<s>/placements(or another word; propose it), with the reserved-word lists in the same PR as paths.py, since the §16.11 lists break hub tests otherwise. Who sees the tab: the same callers who see the section today. The Agents page no longer shows the section. Its?agent=/join flows stay. - Web: the tab with its label (en/de and the other catalogs per the usual rule), the section moved out of agents-page.js, deep links from anywhere that pointed at the section, and smoke and e2e cases for the tab, the restart confirm and the logs line.
No hub behaviour changes beyond the path list. Take it after #1654.
Notes
An agent · Nov 11, 2026, 14:28 UTC
Plan (unr9), two pull requests, the contract first. Written before any code. Branch claude/where-they-run-tab from main.
Today: "Where they run" (en
placements.title, de "Wo sie laufen") is M.placements.section (web/js/placements.js), appended at the bottom of the project's Agents page (web/js/agents-page.js:714). The section always returns its box (placements.js:423, :432): every member who opens Agents sees it. Its actions are gated per item: Stop, Restart and Logs for the runner's owner with members:admin or the agent's owner; "Start an agent on a runner" for a human with members:admin. That matches GET …/placements beingproject:read(§15.6). So the tab is for every member, the same callers as the section today.The word: I propose `placements`. A path cannot say "where they run", so the §16.11 Team precedent (the path says what the tab says) cannot be met word for word here.
placementsis the word the contract (§15.6,/projects/{o}/{s}/placements), the CLI (maity placement …) and the code (js/placements.js,placement_*events) already use for exactly this list. A reader who opens the address from the API docs or a log finds the same noun. The alternative isrunning, closer to the tab's words. It is one letter apart from the existingrunnersview (the machines), which invites confusion in a link or a log. Oliver or you choose; I write whichever.PR 1, contract (docs/api.md and hub, no behaviour change beyond the list):
- §16.11's project-view row gains
placements(the tab "Where they run": where the project's agents run, §15.6), placed afterorganisation/runners. Same for the "view added later joins this list" sentence's list. - hub/src/maity_hub/paths.py PROJECT_VIEWS gains it, so a project slug can never be
placements; hub/tests/test_paths.py's comparison with §16.11 stays green. - An existing project whose slug is already
placements: I check the dev and the operators' data path (maity-hub migrate's reserved check) and say what I find before the PR. It is no first segment, so handles are untouched. - Changelog fragment (contract).
PR 2, web, after PR 1 is merged:
- The tab in the project navigation between Agents and Organisation, en label "Where they run", de "Wo sie laufen", the other catalogs per the usual rule.
- The section moved from agents-page.js into its own view at
/<o>/<s>/placements, with the same calls. Its?agent=and join flows stay on Agents. - Every link that pointed at the section now points at the tab (I grep for
placements-titleand the anchors). - Smoke cases for the tab, the restart confirm and the logs line; an e2e case for the tab. web/context entry, README, changelog.
Waiting for the word before PR 1.
- §16.11's project-view row gains
Lotse · Nov 11, 2026, 14:34 UTC
Scope extended by Oliver (2026-11-11, chat 111782): the global agents page (
/agents, own agents) gets the same treatment. "Where they run" becomes a tab of its own there too, and "Maintenance notices" (now at the bottom of that page) becomes a tab of its own as well. If those tabs need addresses (e.g./agents/placements,/agents/maintenance), they go into the §16.11 path table in the contract PR (#1661), checked against agent ids and reserved words. Note: Oliver decided on tsk-zrjxhxanfwzd (req-8n3tpcx1qf9y) that/agentslater merges into/<me>/agents; vknm's redesign keeps these tabs there.An agent · Nov 11, 2026, 15:51 UTC
Plan for PR 2 (web), written by unr9 before any code. Branch claude/where-they-run-web, cut from main at 52c16110.
- Where the tab goes: "between Agents and Organisation" is literally the Agents page's own tab row, which today reads
Agents | Organisation(agentsTabs in agents-page.js; smoke checks it at :3073). The project's top navigation has no Organisation entry, since Team's Organisation is a sub-tab. So the row becomesAgents | Where they run | Organisation. "Where they run" opens/<o>/<s>/placements(routeplacements, no tab in the top row,current: "agents", likeorganisation→ team). From now on the row shows even without js/org.js; the Organisation entry needs it. - The view: M.views.projectPlacements renders M.placements.section with the same credentials loader that Agents uses now. It is open to every member who reads the project. The section and its slot leave projectAgents.
- /agents tabs:
Agents | Where they run | Maintenance noticesat/agents,/agents/placementsand/agents/maintenance. - Where they run: for each project the human reads where one of their agents is a member, M.projectContext plus a section limited to their own agents, grouped under the project's name. It is read only when the tab opens.
- Maintenance notices: M.broadcasts.part, moved from the bottom of the list.
- section(): gets options
{ only, title, idSuffix }, so that several sections on one page keep their heading ids unique. - i18n:
nav.placementsand the tab labels in en and de, and in the other catalogs per the usual rule. - Tests:
- smoke: the tab rows, every placement case moved to the new path, the restart confirm, the logs line, and both global tabs.
- e2e: the start form goes to /placements, plus a case for the tab.
- ppge's nit: the twin-leave step finds the twin by its title.
- Docs: a web/context entry, the README if it names the section, and the changelog.
- Where the tab goes: "between Agents and Organisation" is literally the Agents page's own tab row, which today reads