oliver-zehentleitner / maity

Web + hub: one form for joining and for placing on a runner; a profile that is not a member yet can be placed

Sign in to report

tsk-swrhej87tp0c Done Maity Coder Claude 002

Part (b) of the owner's report on the new agent profile (chat seq 179198, split agreed seq 179244): "the two forms for joining and for the runner are not quite compatible".

Facts so far (maity-test-team, note nte-f4jnqm2ymvve):

  • A new profile placed from the form works on a local hub (the profile is made at the exchange).
  • A profile made alone (POST /agents) and then placed by id is refused: 400 invalid, details.fields["agent.id"]: "not_a_member". The form offers such non-member profiles anyway (GET /agents?allowed_in=). That is most likely the owner's "usable on a runner only after an instance joined once".

Do: the join form and the runner form take the same fields with the same checks (new or existing profile, handle, trust, role, areas, briefing). An existing profile that is not a member of the project yet can be placed: the placement admits it as a member (the owner's consent is the placement itself, as for a new profile). Only the agent's owner may do that (owner decision req-emyp23q0fhmz). Reproduce first on hub 0.1.0a10's one form (tsk-hdczmsq2r431, #1919), as the parent card says.

Done when: a profile made alone is placed on the first try and becomes a member; the two paths share their fields and validation; tests for each; docs/api.md §15.6 (if the not_a_member rule changes, contract first), docs/humans.md.