oliver-zehentleitner / maity
placement with a new agent profile: the profile is created but not admitted to the project, so the pickup answers pickup_not_allowed; the runner logs nothing
tsk-7f77h3rxekjq Open
Owner's report (2026-11-19, chat), reproduced on two runners (home-laptop, vm-aigents01), in another project of his (not maity):
- "Start agent on runner" with a NEW profile: the profile is created, but not assigned to the project. The runner reports "joining failed · pickup_not_allowed" (generation 3), and keeps failing.
- "Create new agent profile" alone: the profile exists, but it is usable on a runner only after an instance has once brought it to life (joined); before that it is not.
- The runner log stays empty for the refused pickup.
Pickup refusals (docs/api.md §15.9, hub/src/maity_hub/routes/runner.py pick_up): not_running, stale_generation, credential_issued, project_not_allowed (allowed_projects.admits_membership), handle_taken, creator_lacks_authority. Likely suspects for (1): the new profile is written with an allowed_projects list that lacks the project, or the placement got a membership/credential before the profile was usable. Ops is checking the exact details.why on the VM (go_request seq 171277); add it here.
Done when: a placement that creates a new profile for project P starts on the first try (the new profile admits P, and the pickup and exchange succeed); a profile created alone can be placed before any instance joined, or the UI says what is missing; the runner logs every refused pickup with code and details.why at warning level; tests for each, and docs/ (§6.3, §15.9, runner docs) updated in the same PR.
Owner (2026-11-19, chat): do this together with the one Join agent form (tsk-hdczmsq2r431, #1919, ships in hub 0.1.0a10). Prod still runs the old two-way dialog, so first reproduce on 0.1.0a10 (the one form with its "On a runner" part); the fix and its tests target that form: a new profile made in the form, started on a runner, is admitted to the project and joins on the first try.
Notes
Maity Test Team · Nov 19, 2026, 23:57 UTC
Repro on a LOCAL hub (main b6d523e6b, includes 4ec6e8c9; package says hub 0.1.0a9, CLI/runner 0.1.0a10), SQLite, one runner, headless (no browser, fake `claude` stub). Result: NOT reproduced for the new-profile placement; the "profile alone" part is reproduced as a 400.
Setup: owner
tester, projecttester/proj(repository set), runner paired and attached at pairing,maity runner serve, local git over https for the clone.- New profile via §15.6 (exactly what the one-form "On a runner" part sends, web/js/join.js
place()):
POST /projects/tester/proj/placements {"agent":{"handle":"newbie","display_name":"Newbie"},"trust":"member","role":"coder","areas":[],"capabilities":[],"briefing":"test","runner":"rnr-…","harness":"claude-code","mode":"supervised","workspace":{"clone":"newbie","branch":"main"},"desired":"running"}-> 201,agent.id: null, approval approved, generation 1.GET /agentsat that point: no profile yet (the profile is only made at the exchange; the handle is reserved:POST /agents {"handle":"newbie"}is 400 taken).
First two starts failed for my setup (clone_failed), restarts bumped generation to 3. Then: runner logstarting (generation 3)->started generation 3; hub:POST /runner/placements/{id}/join201 (pickup) and the exchange worked: placementcredential_idset,GET /agents-> profilenewbiewith `allowed_projects: null`, membershiptester/projmember/coder. So nopickup_not_allowedhere, first pickup after a good clone.- Profile alone:
POST /agents {"handle":"solo","display_name":"Solo"}-> 201,allowed_projects: null,memberships: []. ThenPOST …/placements {"agent":{"id":"agt-…solo"},…}-> 400 invalid, `details.fields["agent.id"]: "not_a_member"`. So a profile without a membership cannot be placed by id at all (docs §15.6 say{"id"}is an active member). In the form, existing non-member profiles are offered (GET /agents?allowed_in=, option without "member") and are sent as{agent:{id}}-> this is the likely route to the owner's "profile alone is only usable after an instance joined it once". Not clicked in a browser; derived from join.jsplace()+ the API answer. - Also seen: a pending placement for a new handle reserves it (
POST /agentssame handle -> 400 taken); a second instance of a member -> 409instance_quota. - Pickup refusal `details.why`: NOT obtained. My attempt to set
allowed_projectsof a member to exclude the project, revoke the credential and restart withrejoinwas blocked by the tool safety check, I did not retry. Soproject_not_allowed/creator_lacks_authorityunverified at runtime. Hub code/docs: new profile gets allowed_projects null at creation (observed), so project_not_allowed can only come from a later owner change or an existing profile with a list. - Runner output for a refusal (from code, not run): supervisor.py ~1210-1221: on a pickup HubError it raises
Refused("join_failed", join_detail(exc.code, exc.details.get("reason"))).join_detailreadsdetails.reason, notdetails.why, so apickup_not_allowedshows asjoin_failedwith detailpickup_not_allowedand thewhyis dropped; the log lines I saw are only status lines (starting,failed clone_failed), no code+why warning. Matches item 3 of the card.
Likely real-world cause of the owner's 409s: a placement created from an older dialog/path, or a profile with an
allowed_projectslist not containing the project, or generation/state drift; needs the VM'sdetails.why(go_request seq 171277).- New profile via §15.6 (exactly what the one-form "On a runner" part sends, web/js/join.js
Lotse · Nov 20, 2026, 16:59 UTC
Oliver (2026-11-20 16:59Z, chat): still broken, "not nicely implemented, several things hang there". He will send a clear report for fixing and reworking. Hold this card until that report is in.
Lotse · Nov 20, 2026, 20:19 UTC
Lead, 2026-11-20 20:19Z: Oliver sent his report (chat seq 179198: the runner must host several instances of one agent; the join form and the runner form are not quite compatible) and agreed to the split (seq 179244). The hold of nte-7cd3yzh4y1f6 is lifted. Split into: (a) tsk-yfpwawy3xk3a, another instance of an existing agent on a runner; (b) tsk-swrhej87tp0c, one form for join and runner, a non-member profile can be placed (maity-coder-claude-002); (c) tsk-fveaj86ec6e2, the runner logs refused pickups with code and why (maity-coder-claude-008). This card stays open as the parent until all three are done.