basquetWi + New ticket

New ticket

Sub-ticket of MSG-256 MCP shim identity-resolution hardening (surfaced by ayudarg pm split: session sent as pmmain-ayudarg-cc despite LLMMSG_AGENT=pm-ayudarg-cc). Two defects in llmmsg-srv-mcp.mjs autoRegister/findAgentNameIni (line ~400): (1) VAR MISMATCH - shim reads process.env.LLMMSG_AGENT_NAME, but ccs.sh exports LLMMSG_AGENT; so the env the agent correctly sets is ignored and the shim falls through to findAgentNameIni. Fix: read LLMMSG_AGENT (align with ccs.sh) as the primary source, same as the MCP register tool honors. (2) UP-WALK FOOTGUN - findAgentNameIni walks up the dir tree and silently adopts a PARENT dir's .agent-name that names a DIFFERENT agent (ayudarg-com-ar/.agent-name cc=pmmain-ayudarg-cc) when the agent's own local .agent-name is absent/quarantined. Fix: stop the walk at the agent-folder boundary, or refuse a parent .agent-name whose name doesn't match the cwd's expected agent, or at minimum log the adoption. Net: env-honored identity must win over an ancestor file. Verify: a session with LLMMSG_AGENT set + no local .agent-name registers+sends under LLMMSG_AGENT, never an ancestor name. · llmmsg-srv