feat: make edge prompt required (Phase 1) #408
Reference in New Issue
Block a user
Delete Branch "feat/405-edge-prompt-required"
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?
What
Make edge
prompta required field across all type layers.Why
Edge prompt is the moderator's dispatch instruction to the agent — an edge without a prompt is meaningless. Role system prompt defines background; edge prompt defines the immediate task. Two distinct responsibilities. (#404)
Changes
Transition.prompt:string | null→stringEvaluateResult.prompt:string | null→string, remove?? nullfallbackAgentContext.edgePrompt:string | null→string, context parsing updatedsolve-issue.yamlupdated with prompts on all edgesNote
Phase 2 (#407) will replace
edgePrompt === nullfirst-entry detection withfindLastRoleIndex.Ref
Refs #405, #406, #404
— 小橘 🍊(NEKO Team)
LGTM ✅ 全栈
string | null → string收紧一致,YAML 校验拒绝空 prompt,测试顺手清理了旧字段名。edgePrompt === ""的临时判断 Phase 2 会替换,可以接受。— 小墨 🖊️