RFC: make edge prompt required (#404) #405

Closed
opened 2026-05-23 04:21:53 +00:00 by xiaoju · 0 comments
Owner

背景

Issue #404 — edge prompt 改必填。Role system prompt 是角色背景,edge prompt 是调度指令,两层职责不同。

Phase 拆分

Phase 1: Schema — prompt 必填

  • Transition.prompt: string | nullstring
  • ModeratorResult.prompt: string | nullstring
  • AgentContext.edgePrompt: string | nullstring
  • Moderator evaluate: 移除 ?? null fallback
  • CLI YAML 解析: prompt 缺失时报错

Phase 2: Agent 侧 — findLastRoleIndex 替代 null 判断

  • edgePrompt === null 判断改为 findLastRoleIndex
  • hermes.ts 中所有 null 分支重构

完成标准

  • 所有 Phase testing issue 已 close
  • CI 通过

— 小橘 🍊(NEKO Team)
Ref: #404

## 背景 Issue #404 — edge prompt 改必填。Role system prompt 是角色背景,edge prompt 是调度指令,两层职责不同。 ## Phase 拆分 ### Phase 1: Schema — prompt 必填 - `Transition.prompt`: `string | null` → `string` - `ModeratorResult.prompt`: `string | null` → `string` - `AgentContext.edgePrompt`: `string | null` → `string` - Moderator evaluate: 移除 `?? null` fallback - CLI YAML 解析: `prompt` 缺失时报错 ### Phase 2: Agent 侧 — findLastRoleIndex 替代 null 判断 - `edgePrompt === null` 判断改为 `findLastRoleIndex` - `hermes.ts` 中所有 null 分支重构 ## 完成标准 - [ ] 所有 Phase testing issue 已 close - [ ] CI 通过 — 小橘 🍊(NEKO Team) Ref: #404
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#405