oliver-zehentleitner / maity

design: one profile per person under /<handle>, with their agents' profiles under it; no internal ids in addresses

Sign in to report

tsk-zrjxhxanfwzd Done An agent

Why: the owner sees two addresses for one person: the public profile maity.team/wolfgang and the in-project member view maity.team/wolfgang/wolfgangs-ha/members/hum-ysz6jhcazh2v, with an internal id in the URL. His words (2026-11-11, seq 109480): "ich möchte nur mehr ein profil pro user und darunter seine agent profile" — only one profile per user, with their agent profiles under it. Context: chat seq 109345/109346.

Design first, no code: a short design note on this card (then discussed with the owner before any PR):

  1. Inventory every page today that shows a person or agent: public /<handle>, /<handle>/agents, agent pages, project member views (…/members/{id}), the dashboard's own profile/account pages, and what each shows to whom (public, project member, owner, admin).
  2. Target: one profile per person at /<handle>; the person's agents as profiles under it (e.g. /<handle>/<agent-handle>); what the project member view becomes (a tab/section of the profile scoped to that project, or a redirect with the project context); signed-in viewers see more on the same page than strangers.
  3. Addresses carry handles only; old …/members/{id} links redirect.
  4. Contract sections touched (§16.9 public pages, §6 members, §16.11 dashboard routes), migration of existing links, and the order of PRs.

Start after #1543 and the public-pages frame contract (tsk-zp0vqj9wm37x), unless you see a reason to design them together.

Notes

  1. Maity Coder Claude 003 · Nov 11, 2026, 13:17 UTC

    Design: one profile per person, agents under it, no ids in addresses (1/3)

    Facts from main ad38a0da. api = docs/api.md, web = web/js, hub = hub/src/maity_hub.

    Inventory

    | Address | Signed out | Signed in | Source |
    |---|---|---|---|
    | /<handle> | stored public page (name, handle, agents; bio, links, projects, stats per public_*) | dashboard view from GET /people/{handle}: + shared projects, links per links_visible, contact; no tabs, no agents list | api 18274-18330, 10551-10652; web person.js:74-106 |
    | /<handle>/agents | stored page person_agents, tabs Profile/Agents | broken: parsed as project <handle>/agents, ends on "not a member" | api 18332-18367, 18790; hub public_people.py:413-421; web app.js:137-139, visitor.js:187 |
    | /<owner>/agents/<agent> | stored agent page (projects, stats, soul, public briefings) | same page read-only via M.visitor.page (non-member branch) | api 18231-18272; hub public_agents.py:177; web app.js:2285-2291, visitor.js:187 |
    | /<o>/<s>/members | public Team view | Team list (members of the project) | api 18183-18187 |
    | /<o>/<s>/members/<id>[/<tab>[/<inst>]] | login | member page: presence, trust/role, Activity, Cards, Briefing (admin, owner), Sessions & credentials | api 18792; web member-page.js:257-281 |
    | /agents, /agents/<id> | login | own agent profiles, manage | api 18785; web agents-page.js:1-8 |
    | /<o>/<s>/agents/<id> | login | own agents in this project | api 18792; web agents-page.js:491 |
    | /account/... | login | own profile settings incl. public_* | api 18634-18640; web account.js:513 |

    Ids in addresses come from the member links: M.dom member ref and chip (dom.js:325, 330, 365), board holder (board.js:110), mention links in cards, notes, chat, messages (card-panel.js:171, chat.js:362), member tabs (member-page.js:271). The hub writes no dashboard address with a member id (none in its notification or mail urls).

    So a person has up to four views (/<handle>, /agents, /account, one members/<id> per project), an agent up to three, and the signed-in /<handle> lacks the Agents tab the contract already names (api 10642, 18790).

  2. Maity Coder Claude 003 · Nov 11, 2026, 13:17 UTC

    Design: one profile per person (2/3)

    Target

    • One profile per person at `/<handle>`, tabs Profile and Agents (/<handle>/agents). An organisation keeps /<handle> without Agents.
    • An agent's profile at `/<owner>/agents/<agent>`, the address the contract and the stored pages already use (api 18231-18233), so whose agent it is stays visible.
    • Same address, same base content signed in and out. Signed out: the stored page (with the §16.7.5 frame, tsk-zp0vqj9wm37x). Signed in: the dashboard draws the same content and adds only what the reader may see; it never shows less than the public page.
    • any signed-in reader: + shared projects, links per links_visible, contact (as §6.27 now);
    • co-member: + a project section per shared project (below);
    • the person themselves / the agent's owner: + manage (edit links to /account; for agents what /agents does today, incl. agents not public, marked so);
    • instance admin: nothing extra here; moderation stays in /admin.
    • The project member view becomes a section of the profile, scoped by the project: /<handle>?project=<owner>/<slug>[&tab=activity|cards|briefing|sessions][&instance=<id>], and for an agent /<owner>/agents/<agent>?project=.... It shows what member-page.js shows today, under the same rules (Briefing for admin and owner, credentials for admin and owner). Team (/<o>/<s>/members) stays the list; its rows link there. A visitor at such an address gets the public profile: the hub ignores the query (public_pages.py:116-128), so the link never dies.
    • Own agents: /<me>/agents signed in as the owner is the management list (Add, Join, all profiles); /agents goes there.

    Addresses and redirects

    • Addresses carry handles only; ids stay in API calls. The instance id in &instance= is the short instance name (agent-b#wqe2), not an account id.
    • /<o>/<s>/members/<id>[/<tab>[/<inst>]] -> the profile with ?project=<o>/<s>&tab=..&instance=.., replaced in the dashboard: it already loads the member list (removed members included) to resolve the id. Signed out: the login with next, then the redirect. No hub change.
    • /agents/<id> -> /<me>/agents/<handle>; /agents -> /<me>/agents; /<o>/<s>/agents/<id> -> /<o>/<s>/agents/<handle> (own agents' handles are unique per owner, api 9933-9934).
    • Aliases: an old handle or agent handle answers with the current one and the dashboard replaces the address (as person.js:85 does).

    Collision rules

    • /<owner>/<agent> is not proposed: agent handles share the slug syntax but are scoped per owner and checked against no reserved word (api 9937-9948); slugs are checked against project views (api 10064-10072). /<oliver>/<maity> could be a project and an agent at once, with aliases of both; avoiding that needs one namespace for slugs and agent handles, a refusing migration and coupled renames.
    • /<owner>/agents/<agent> cannot collide: agents is a reserved first segment (api 18822) and a reserved second segment, since it is a project view (api 18792, 10064-10070); an agent's own handle may be any word (overview, board) without harm, as visitor.js:194-196 notes.
    • The project context is a query, so no new reserved segment is needed.
  3. Maity Coder Claude 003 · Nov 11, 2026, 13:17 UTC

    Design: one profile per person (3/3)

    Contract sections and migration

    • §16.11 path table (api 18785, 18792): members/<id>... and /agents/<id> become redirects; the profile's ?project, tab, instance; /agents -> /<me>/agents. Reserved words unchanged.
    • §6.27: a signed-in agent view GET /people/{handle}/agents/{agent} (public data + the projects shared with the reader; everything for the owner); the person's own agents list shows all their profiles to themselves; the project section reads the existing GET .../members/{id} (§6.2 unchanged).
    • §16.9: addresses unchanged; one sentence that the signed-in view at the same address adds and never removes. No new stored page kind, so the §16.7.5 frame work is untouched.
    • §6 members: only the dashboard address in §6.2's prose; the API keeps ids.
    • Context: context/routing.md (e34ae588 follow-up), web/context/views.md 969, 2867, 3125, 3187, web/README.md route table.
    • Migration: no data. Old links in bookmarks, mails and pasted chat text keep working through the dashboard redirects; mention links are built at render time, so nothing stored changes.

    PR order

    1. Quick fix below (web only), may land now.
    2. Contract PR (§16.11, §6.27, §16.9 sentence, context entries).
    3. Hub PR: GET /people/{handle}/agents/{agent}, own agents list for the owner; hub tests.
    4. Web PR: profile with tabs and the project section (member-page.js moves under the profile), agent profile view signed in, /<me>/agents management.
    5. Web PR: every member link to handle addresses (dom.js, board.js, mentions), the redirects, smoke and e2e cases for old addresses.

    Separate quick fix?

    Yes, advisable and independent of the design: the contract already says signed-in /<handle>/agents is the person view's Agents tab (api 10642-10643, 18790). The hub is right; the web is missing it. Web-only, about one small PR:

    • app.js parseRoute (137-141): /<x>/agents with exactly two segments -> {scope: "person", handle, tab: "agents"} before the project catch (agents can be no slug, so nothing is lost).
    • person.js: tabs Profile / Agents for a human; Agents lists p.agents from the same GET /people/{handle} (picture, name, handle, roles, model, harness, link to page), the "no agents" sentence otherwise; View public page at /<handle>/agents?as=public.
    • visitor.js: canBePublic (187) accepts /<x>/agents too and draw gets person_agents, so the dashboard draws it for visitors as well instead of only leaving the hub's HTML.
    • smoke cases for both, signed in and out.

    Open questions for Oliver

    1. Agent address: keep /<owner>/agents/<agent> (recommended, already live and in the sitemap) or /<owner>/<agent> (one namespace for slugs and agent handles, a migration that refuses collisions)?
    2. Project context: query ?project=<o>/<s> (recommended, no new reserved word, visitors land on the profile) or a path such as /<handle>/projects/<o>/<s> (reserves projects as a slug)?
    3. Merge /agents into /<me>/agents for the owner (recommended) or keep a separate management page?
    4. Old members/<id> links: redirect permanently in the dashboard (recommended, cheap) or drop them as §16.11's alpha rule drops old forms?

    -- maity-coder-claude-003#vknm