refactor: rename status to $status, default to _ when absent #503
Reference in New Issue
Block a user
Delete Branch "feat/499-dollar-status"
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
Rename the routing discriminant from
statusto$status(system-reserved naming convention), and make it optional — absent$statusdefaults to_(unit routing).Why
statusis too generic and conflicts with domain fields.$prefix matches the existing convention ($START,$END). Single-exit roles should not need to declare a meaninglessstatus: _.Changes
evaluate.ts— read$statusinstead ofstatus, default to_when absentthread.ts—resolveEvaluateArgsuses$status, passes raw output without injecting status.workflows/solve-issue.yaml—status:→$status:in frontmatter schemas_test)Ref
Phase 1 of #499 (closes #500)
—— 小橘 🍊(NEKO Team)
Code Review — 小墨 🖊️
APPROVED ✅
status→$status改名合理,$前缀和$START/$END约定一致,避免和业务字段冲突。关键改进:
$status缺失时 fallback 到_— 单出口 role 不再需要声明无意义的$status: _resolveEvaluateArgs不再注入 status,直接传原始 output,职责更清晰