Skip to content

M1: BotHarness 骨架(core + registry + bot home + 状态事件) #8

Closed

Description

@DoodleBears

What to build

建立 @botharness/core(monorepo 的第一个包):PersonaBot registry(CRUD + slug 唯一)、bot home($DSH_HOME/botharness/bots/<slug>/bot.json + 用户可配记忆目录)、状态模型(Session 级五态 + PersonaBot 聚合六态)与事件、DSH 设置/存储接入。把现有 M1 脚手架(插件入口、settings 命名空间、workspace→bot 解析)迁入 packages/core,并把 resolver 标注为 IM 绑定助手。

依据:docs/botharness.md §2/§3/§6;ADR-0015/0016。

Acceptance criteria

  • monorepo(pnpm workspaces)建立;packages/core 承载 host 插件;pnpm lint && format:check && typecheck && test && build 全绿
  • registry:创建/读取/删除(slug 唯一)、bot.json 原子持久化、记忆目录可配(默认在 bot home 内)
  • 状态:Session 级上报 → PersonaBot 聚合(blocked > waiting > working > thinking > idle;done 为 session 事件);事件可订阅
  • M1 脚手架迁入 core;workspace→bot 解析保留并标注为 IM 绑定助手(ADR-0016 后果)
  • 单测覆盖 registry / 聚合 / 路径配置

Blocked by

  • None (can start immediately).

Activity

  1. self-assigned this
    on Sep 17, 2026
  2. DoodleBears commented on Sep 17, 2026

    @DoodleBears
    ContributorAuthor

    验收措辞修正:状态聚合为五态(blocked > waiting > working > thinking > idle),\done\ 是 session 级事件、聚合随即回 idle——与 CONTEXT/docs/botharness.md §3 一致;原文「聚合六态」是笔误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-for-agentFully specified, ready for an AFK agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions