Skip to content

M3.2 新建 PersonaBot 向导(client) #41

Closed

Description

@DoodleBears

Part of #10.

Tracer bullet

交付一条 Human 可立即体验的创建路径:从首次空态或 Bot 模式 sidebar “+”打开 DSH-native 表单,经 Host botharness/create 创建 PersonaBot identity/Memory,客户端立即加入 roster 并选中新 PersonaBot;重启后仍存在。

本票只定义 新建 PersonaBot。编辑现有 PersonaBot 的字段可变性、运行中 Session 影响与完整 profile editor 另行定界。

Creation contract

  • displayName:必填,是列表、搜索和未来 @ picker 的可见标签;允许重名,mention token 保留内部 PersonaBot ID。
  • roles:可选、可多个,显示为岗位/职位徽章;只用于描述,不参与身份或授权。
  • description:可选的简短简介/bio,用来说明 BOT 的信息、擅长领域或主要职责。
  • PersonaBot ID:由 Host 自动生成,用户不输入、不选择,也不会作为可见 mention label。当前 slug 仅是该内部 ID 的 wire/serialization 键。
  • PERSONA.md:本 slice 写入以名称为标题的占位文件,后续由完整 profile/Builder flow 完善。

创建 PersonaBot 不自动伪造 Session ownership、Orchestrator 或 Work。只有后续显式创建/绑定 Bot-mode Session 时,runtime 才通过 #80 的 ownership command 写归属。

UX and errors

  • 使用 DSH primitives、design tokens、Modal/form pattern 与既有 inset contract。
  • 入口同时存在于无 BOT 空态与 sidebar “+”菜单。
  • 岗位支持 Enter、英文逗号或中文逗号提交,并可逐枚移除。
  • Host 错误在 Modal 内就地展示;空简介从 RPC payload 完全省略。
  • 成功后无需整页刷新即可进入新 PersonaBot。

Acceptance criteria

  • Human 无需填写内部 ID,即可用名称、可选岗位徽章和可选简介创建 PersonaBot。
  • Host 生成稳定、filesystem-safe 的 PersonaBot ID,并生成 bot.json、占位 PERSONA.md 与 memory directory。
  • 创建成功后 roster/default avatar 立即更新并选中新 PersonaBot;重启后仍存在。
  • 同名 PersonaBot 允许存在;内部 ID 不参与可见搜索,旧 tag 可兼容投影为单个 role badge。
  • client 只调用 bridge,不复制 registry validation、文件写入或 ownership logic。
  • 创建本身不启动 Session/Work,不通过 cwd 猜 PersonaBot。
  • tests 覆盖创建、validation、duplicate ID、重名、roles/description、Host failure 与 refresh/select。
  • Human 已在运行中的 DSH 验收创建成功。

Out of scope

References

  • CONTEXT.md
  • ADR-0027、0028、0029、0032、0035、0041、0046
  • docs/client-bridge.md

Activity

  1. added this to the v1.0 milestone on Sep 18, 2026
  2. DoodleBears commented on Sep 18, 2026

    @DoodleBears
    ContributorAuthor

    新 IA 下向导入口变为「+」菜单的第二项(第一项为 Builder 对话创建,见 ADR-0029);字段与 #40 的桥方法一致(名字 / 标签 / 描述 / persona / 模型 / workspace / 头像种子)。实现时遵循 dsh-ui skill(tokens + primitives + 原生布局契约)。

  3. changed the title [-]M3.2 新建/编辑向导(client)[/-] [+]M3.2 新建 PersonaBot 向导(client)[/+] on Sep 20, 2026
  4. added and removed
    ready-for-agentFully specified, ready for an AFK agent
    on Sep 20, 2026
  5. moved this from Todo to In Progress in Roadmapon Sep 20, 2026
  6. moved this from In Progress to Done in Roadmapon Sep 20, 2026
  7. added
    V1.0Milestone v1.0; mirrors the GitHub milestone
    and removed on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    V1.0Milestone v1.0; mirrors the GitHub milestone

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions