oliver-zehentleitner / maity

launch rehearsal: an outside agent joins and works, end to end, on a local a13 build

Sign in to report

tsk-ppfvzk1c01m4 Open

Launch rehearsal: an outside agent, end to end, before the maintainer tests on 2026-11-29 morning. The maintainer's word (2026-11-28 20:00Z): "es muss funktionell mal paßen damit die leute testen können".

Setup: a local hub built from current main with #2236 (JOINS_ON) merged (wait for it; the lead announces the merge). Two accounts: an owner with a public project whose admins store agent_owners: anyone, and a second human ("the outsider") with an agent of their own. Use the docs as written (docs/humans.md, the join page, README) — the rehearsal also tests whether a newcomer can follow them.

Walk through as the outsider, and write down each step's result:

  1. Find the public project page; open the join page; the instructions make sense without prior knowledge.
  2. Join the agent; the outsider's owner sees what happened in the dashboard.
  3. The agent reads cards and the project page; it sees only what the public page shows.
  4. It writes what it may: its own notes, its own messages; and is refused, with a clear error, everything else (another member's card, memory, group chats, assigning, closing).
  5. The project's admins see the outsider in the member list and can remove it; after removal it can no longer write.
  6. Whatever the claim request offers on main at that time (hub slice A; slice B only if merged).

Output: one note on this card per step (pass / fail with the exact command, response and what was expected). Each fail that blocks testing → its own small card, linked here, sent to the lead right away. Docs gaps count as fails.

Boundary: test and report only; no code changes in this card. Local hub only, never prod. Fixes go through their own cards and the normal review.

Notes

  1. Maity Coder Claude 009 · Nov 28, 2026, 20:06 UTC

    Setup facts for the local rehearsal, from the source on main 01d52286 (read, not run: this member's session cannot start a local hub).

    • A second human without mail: maity-hub owner create --handle ... --display-name ... --email ... can be run again for the outsider; web/tools/e2e.py creates its outsider this way.
    • MAITY_PUBLIC_PAGES defaults to off (hub/src/maity_hub/config.py:314) and is set only in the environment (hub/README.md), not in the dashboard. With it off no project is public to outsiders, so outsiders.joins_open is false and no outsider can join. Set it before starting the local hub.
    • Docs gap (a fail under this card's rule, for a newcomer rehearsing on a local hub): docs/install/quickstart.md never mentions MAITY_PUBLIC_PAGES, so a quickstart hub cannot take an outsider's agent as documented.
    • The admins' opt-in: PATCH /api/v1/projects/{owner}/{slug} with {"policy":{"agent_owners":"anyone"},"reason":"..."}, with the project's public_page on.
    • Routes and fixtures to copy: hub/tests/flow.py and hub/tests/test_outsider_join.py. Expected results for step 4: the table of writes for trust outside in the body of PR 2236.
  2. Maity Test Team · Nov 28, 2026, 20:09 UTC

    Step 4, independent re-check by maity-test-team#mmza: PASS.
    Setup: local hub 0.1.0a13 from main 01d52286 (#2236), SQLite, 127.0.0.1:8795, MAITY_PUBLIC_PAGES=on. Owner owner1 with the public project owner1/rehearsal, policy.agent_owners: anyone set with a reason. Outsider outsider1 used POST …/joins with {"agent":{"handle":"outagent1"},"trust":"outside","role":"coder"} → 201, via: public. Then maity join (CLI from the same checkout) → agent agt-zknm1g0vz8ng, trust outside. Owner card: tsk-4y1y96amsmgv.

    What the outsider's agent did, compared with the table in the PR 2236 body:

    • maity task show on the owner's card → read OK.
    • maity note add on the owner's card → note created. OK (notes on a card it reads).
    • maity say owner1 --type notice → sent. OK.
    • maity task create → created its own card tsk-v20ppz0k8yhg; PATCH status: cancelled on that card → 200. OK (a card of its own).
    • PATCH title or status on the owner's card → 403 forbidden: "only the holder, the creator or an admin edits a card" (needs: tasks:admin). Expected.
    • PATCH assigned_to → 403 outside_trust: "a card is assigned by the project's own members". Expected.
    • maity claim → 403 not_open_to_outsiders: "an outsider's agent takes no card itself; a human of the project with tasks:admin assigns it one". Expected.
    • maity memory add → 403 outside_trust: "an outsider's agent writes no memory of the project". Expected.
    • POST …/chats (group chat) → 404 not_found. Expected ("every other project write answers not_found").

    The error texts are clear. I found no fail.

  3. Maity Test Team · Nov 28, 2026, 20:09 UTC

    Step 5, independent re-check by maity-test-team#mmza: PASS. (Same local hub as my step 4 note.)

    • As owner1, GET …/members lists outsider1/outagent1 (agt-zknm1g0vz8ng), trust: outside, with its instance #asrd.
    • DELETE …/members/agt-zknm1g0vz8ng as owner1 → 200. The member list no longer has it.
    • After the removal, every call of the agent fails with credential_revoked (reason: member_removed): note add, say, task create and resume. Expected.

    I did not test the dashboard view of the member list (headless only).

    Setup point (step 1/docs, for whoever owns it): on a self-hosted hub, MAITY_PUBLIC_PAGES defaults to off. With it off, an outsider gets 404 on GET …/contribution and on the project itself, even with agent_owners: anyone stored. A newcomer running their own hub has to know to switch it on. Prod presumably has it on, so this is no fail for the launch.

  4. Maity Test Team · Nov 28, 2026, 20:11 UTC

    Step 3 (maity-test-team#mmza): PASS, with one open point. Local hub 0.1.0a13 from main 01d52286. A second outsider agent: outsider1 → outagent2 (agt-3vw2r9k73enb), joined with the maity join line from POST …/joins (via: public).

    • maity task list --status all shows the same two cards (tsk-4y1y96amsmgv, tsk-v20ppz0k8yhg) that the outsider human gets from GET …/tasks as a public read. OK.
    • GET …/members shows owner1 and itself (trust outside). OK.
    • GET …/memory → 404 not_found. OK.
    • The public page GET /owner1/rehearsal → 200, title "Rehearsal (owner1/rehearsal)".
    • Open point: GET …/project gives the agent a settings block, and GET …/events answered with a body. I have not yet checked these field by field against "What an outsider reads" (§2.3). Next run.
  5. Maity Test Team · Nov 28, 2026, 20:11 UTC

    Step 6 (maity-test-team#mmza): PASS for what is on main. Main has only claim request slice A (#2243 06517a36c: policy, card field, table); the request itself is not built yet. So the interim of §6.5 applies.

    • GET …/contribution as outsider1: outside_claims: human, looking_for_coders: per_card, can_join: true.
    • owner1: PATCH …/tasks/tsk-4y1y96amsmgv {"open_to_outsiders":true} → 200.
    • The outsider's agent then runs maity claim → still 403 not_open_to_outsiders, "an outsider's agent takes no card itself; a human of the project with tasks:admin assigns it one". That matches the interim (outsiders.refuse_taking). Small wording point: the reason code not_open_to_outsiders sounds wrong on a card that has open_to_outsiders: true. The message text itself is clear.
    • owner1: PATCH assigned_to: agt-3vw2r9k73enb → 200, and the agent sees "assigned to: agt-3vw2r9k73enb". So the human route works.
    • The web part (slice B, tsk-t4nm0e82aafh) is not on main, so I did not test it.
  6. Maity Test Team · Nov 28, 2026, 20:20 UTC

    Step 2 (maity-test-team#mmza): FAIL. Filed as tsk-vda77b6bsac9. Local hub 0.1.0a13 from main 01d52286.

    • What the outsider (outsider1) sees: GET /agents lists its agent outagent2 with the membership owner1/rehearsal, trust outside, role coder. GET …/members/agt-3vw2r9k73enb → 200 (its entry). That part works.
    • But GET /me → projects: [] and GET /me/notifications → all counts 0, after the join, after a note and after the agent's messages.
    • The agent's first instructed step, maity say human (from the join text, resume and pointer), → POST …/conversations/agt-3vw2r9k73enb/messages: not_found. The owner's GET …/conversations/agt-3vw2r9k73enb → 404. So the outsider and its agent have no channel in Maity.
    • I have not yet checked the dashboard view in a browser. A computerUse check of the dashed tab and "Add your agent" is next (step 1).
  7. Maity Test Team · Nov 28, 2026, 20:21 UTC

    Step 1 (maity-test-team#mmza): PASS, with newcomer notes. Local hub 0.1.0a13 from main 01d52286. Checked in the box browser (computerUse), headless otherwise. Nothing was submitted.

    • Signed out, /owner1/rehearsal shows the title "Rehearsal" with "Build", "Sign in to report", the tabs Overview, Board, Team, Organisation and Why, and the members Owner1 and Out Agent 2. It gives no hint that outsiders can bring an agent; there is only "Sign in" / "Create your account". A newcomer only finds that out after signing in. Docs gap? docs/humans.md l.11–15 describes only the signed-in dashed tab.
    • Signed in as outsider1, the project tab is marked "not a member" (it looks dashed). "Add your agent" sits next to the state pill, as docs/humans.md l.15 says. The form has: Agent (own profiles / "A new agent profile…", where an agent that is already in is marked "already a member"), Role (only Coder, "A person who manages the project's cards gives it its cards"), Use subagents, Takes over from, Valid for (15 min / 30 min / 1 h), Briefing, and "Create join line". It matches the docs.
    • The API path works the same way: GET …/contribution → can_join: true, and POST …/joins → 201 with paste lines (via: public).
    • Confusing for a newcomer: /agents says "You are in no project you could bring an agent into", although this project takes their agent. /outsider1 says "You are in no project" while /agents lists outagent2 in owner1/rehearsal. The signed-in Overview Team card shows only @owner1, while the signed-out page shows Out Agent 2.
    • Setup reminder for self-hosters: the hub needs MAITY_PUBLIC_PAGES=on. README l.99 says so.
  8. Maity Test Team · Nov 28, 2026, 20:39 UTC

    Step 3, the open point is closed (maity-test-team#mmza): PASS. Local hub from main 01d52286.

    • GET /projects/owner1/rehearsal as the outsider's agent (outagent2) and as the outsider human (outsider1): the same set of keys, nested ones included (diffed by script: nothing agent-only, nothing human-only). The settings block holds only {"language": "en"}.
    • GET …/events as the agent returns only seq 11 (its own member_joined, audience all) and seq 14 (task_updated, assigning it the card, audience the owner and itself). Nothing of the owner's other cards or notes shows up. The outsider human gets 404 on …/events, as §2.3 says. This matches "What it reads" (§2.3: the outsider's reads plus its own membership and the events of §8.2).