Archived
fix(memory): 工作日志把配方做的事归系统 —— 它不是 AI 判的,也不是人办的
不加这一条,配方的留痕会掉进 default 分支记在「任务助手」名下,日志上看着像 AI 干的。 自主率的分法要认第三档:确定的事交系统,判断交 AI,责任交人。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LKMZDwMbyKzjw6Hembwvet
This commit is contained in:
@@ -269,6 +269,13 @@ function actionOf(e: MemoryEntry): string {
|
||||
* 由上层换成名字;换不到就退回「员工」,不编名字。
|
||||
*/
|
||||
function actorOf(e: MemoryEntry): { actor: string; actorId: string | undefined; who: 'owner' | 'agent' | 'system' } {
|
||||
/*
|
||||
* **配方做的事归系统**(2026-08-29,ADR-014)。自主率的分法要认第三档:
|
||||
* 它既不是 AI 判出来的,也不是人办的 —— 是系统按声明做的。
|
||||
* 不加这一条的话,`kind: 'result'` 会掉进 `default` 分支被记在「任务助手」名下,
|
||||
* 日志上看着像 AI 干的 —— **界面不撒谎**。
|
||||
*/
|
||||
if (typeof e.detail?.['auto'] === 'string') return { actor: '系统', actorId: undefined, who: 'system' as const };
|
||||
const by = e.detail?.['by'];
|
||||
const id = typeof by === 'string' && by !== '' ? by : undefined;
|
||||
switch (e.kind) {
|
||||
|
||||
Reference in New Issue
Block a user