host 权限 port is_admin + 四个运行时管理命令 #80
Loading…
Add table
Add a link
Reference in a new issue
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?
Parent
#77 [PRD] arise 运营与质量(决策快照 + 六池成本治理 + 管理命令)—— ADR-0010 完整落地
What to build
让部署者能在运行时管理机器人,而不必改配置重启:切换模型、按 chat 开关工具、重新加载 persona、跑依赖自检。同时建立"谁算管理员由 host 决定"的权限地基——core 不认识群主/管理员/superuser 这些平台概念。
本片交付权限 port + 四个不依赖决策快照/成本记账的管理命令;
/cost//why//why_query依赖后续 ticket 的基础设施,各自在自己的 ticket 里落地。Acceptance criteria
ArisePorts新增 host 权限回调is_admin(chat_id, user_id) -> bool(同get_persona(chat_id)/get_tools(context)既有回调先例)——core 不替 host 决定"谁算管理员"/setmodel:运行时切换模型,不需重启/settool:per-chat 工具开关,不需改全局配置/reloadprompt:重新加载 persona,不需重启/diagnose:依赖连通性自检(模型/数据库/向量库),一次看清各依赖当前通不通is_admin校验;校验失败时明确拒绝(不静默忽略),不产生任何状态变更、不产生任何 LLM 调用,且拒绝信息不泄漏任何本来只有管理员看得到的信息on_command(..., rule=to_me(), priority=1, block=True)形状(已在跨平台拉取同意命令上验证过的先例)允许了解我的动态/不再了解我的动态)——那是内容所有者本人的授权维度,ADR-0027 明确拒绝与管理命令权限体系混用is_admin实现(恒真/恒假),断言恒假时无状态变更、无 LLM 调用Blocked by
None — can start immediately