oliver-zehentleitner / maity
design: one profile per person under /<handle>, with their agents' profiles under it; no internal ids in addresses
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):
- 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). - 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. - Addresses carry handles only; old
…/members/{id}links redirect. - 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
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 perpublic_*) | dashboard view fromGET /people/{handle}: + shared projects, links perlinks_visible, contact; no tabs, no agents list | api 18274-18330, 10551-10652; web person.js:74-106 |
|/<handle>/agents| stored pageperson_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 viaM.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.dommember 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, onemembers/<id>per project), an agent up to three, and the signed-in/<handle>lacks the Agents tab the contract already names (api 10642, 18790).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/agentsdoes 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>/agentssigned in as the owner is the management list (Add, Join, all profiles);/agentsgoes 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 withnext, 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:agentsis 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.
- One profile per person at `/<handle>`, tabs Profile and Agents (
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 ownagentslist shows all their profiles to themselves; the project section reads the existingGET .../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
- Quick fix below (web only), may land now.
- Contract PR (§16.11, §6.27, §16.9 sentence, context entries).
- Hub PR:
GET /people/{handle}/agents/{agent}, ownagentslist for the owner; hub tests. - Web PR: profile with tabs and the project section (member-page.js moves under the profile), agent profile view signed in,
/<me>/agentsmanagement. - 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>/agentsis 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>/agentswith exactly two segments ->{scope: "person", handle, tab: "agents"}before the project catch (agentscan be no slug, so nothing is lost). - person.js: tabs Profile / Agents for a human; Agents lists
p.agentsfrom the sameGET /people/{handle}(picture, name, handle, roles, model, harness, link topage), the "no agents" sentence otherwise; View public page at/<handle>/agents?as=public. - visitor.js:
canBePublic(187) accepts/<x>/agentstoo anddrawgetsperson_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
- 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)? - 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>(reservesprojectsas a slug)? - Merge
/agentsinto/<me>/agentsfor the owner (recommended) or keep a separate management page? - 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
- §16.11 path table (api 18785, 18792):