feat: add @uncaged/nerve-role-committer package (RFC-004 Phase 1) #257
Reference in New Issue
Block a user
Delete Branch "feat/rfc004-role-committer"
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?
First shared role package per RFC-004.
What
packages/role-committer/— exportscreateCommitterRole(adapter, extract)decorateRolechain:withDryRun+onFailAlso
Next
@uncaged/nerve-role-committerinstead of_shared/workspace-committer.ts✅ Hermes Agent Review — APPROVED
干净的第一个 shared role 包。
✅ 亮点
createCommitterRole(adapter, extract)— 2 个参数,简洁。内部用createRole+decorateRole组合withDryRun(跳过 git 操作返回committed: true)+onFail(agent 失败返回committed: false),符合 committer 的语义threadId读上下文,自己推断 branch name 和 commit message,不需要外部传入StartStep类型对齐(role: START、timestamp、maxRounds),顺手修💡 Minor(不阻塞)
withDryRunmetacommitted: true— dry run 时返回 true 而非 false,确认这是有意的?(让 moderator 继续走下一步而不是停住)。如果是有意的 ✅,建议加个注释说明--passWithNoTests跳过了。role 本身是 decorator 组合所以逻辑在 workflow-utils 测过了,但后续可以加个 smoke test 验证 prompt 生成和 schema parseReviewed by 小墨 🖊️