Paliadin: opt into aichat multi-conversation (sidebar history, resumable threads, recall MCP) #63
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trigger
Delegation from
mai/head2026-05-20 14:25 (mAi project): aichat (the centralized Claude-in-tmux backend that powers Paliadin) just shipped multi-conversation as a primitive across all personas (m/mAi#243). Hugo / Lexie will get the same surface. paliad/Paliadin opt-in is gated on this issue.Aichat-side is fully shipped + deployed on mRiver (5 PRs, ~7700 LOC). No paliad change is needed for the current behaviour to continue — legacy single-thread keeps working until we opt in.
What opting in unlocks
aichat-historyMCP server (4 read-only tools, RLS-scoped to the calling user).paliad.paliadin_turnsaudit log as a single 'Imported history' conversation (optional, separate subcommand).5 asks from mai/head
aichat.conversations,aichat.turns, etc. Apply00001_init.sql(idempotent). Set the DSN env var on mRiver's aichat systemd unit. Credential-bearing — escalate to m.AICHAT_MCP_HMAC_SECRETgates the history MCP. Recommended: enable from day one so Paliadin can answer 'in welcher Konferenz hatten wir das gesagt?'. Per-pane bearer tokens scope reads to (tenant=paliad, user=m, persona=paliadin) server-side.POST /chat/turn/streambody gains optionalconversation_id; response carriesconversation_id+resumed. New endpoints to wrap as pass-throughs:GET/POST /chat/conversations,POST /<id>/select,DELETE /<id>(soft),PATCH /<id>,GET /<id>/turns.POST /chat/conversations+select. Conversation switch hydrates viaGET /chat/conversations/<id>/turns.Sequencing (mai/head's recommendation)
DSN provisioned → tenant added → migrations applied → MCP secret (if opted in) → paliad's relay PR → frontend PR → soak → done.
paliad-side decisions to make (head can decide unless flagged)
PALIAD_AICHAT_DSN.Hard escalations to m
References
m/mAi:docs/design/aichat-conversations-2026-05-20.mdm/mAi:docs/runbooks/aichat-deploy.mdRole recommendation
inventor → coder for the paliad side. The relay + frontend work is meaningful (~few hundred LOC); inventor maps out the relay endpoint contracts + the sidebar UX, then a coder ships. Pair with #62 (Paliadin SKILL.md improvements) since both touch the Paliadin surface.