修好 4 个一直过不了的老测试 #3

Merged
saki merged 1 commit from fix-harness-tests into main 2026-11-29 00:15:38 +00:00
Owner

之前:alarm-activity、cache-history、letter-recovery-budget、startup-recovery 在 main 上一直过不了。这几个测试把 Resident 的真方法抄进一个小模拟类里跑。后来 Resident 多了几个私有字段和新调用,模拟类没跟上,所以要么编译不过,要么一跑就报错。

之后:

  • 新的私有字段照 Resident 的默认值补上。
  • 补上缺的 import。
  • 只把别的测试已经覆盖的边界换成占位:图片换摘要由 pic-summaries.mjs 管,主动来电由 proactive-call.mjs 管。
  • postProactiveReply 用真的,因为 alarm-activity 要检查消息有没有送出去。

只改了测试,没动 src/。全部单元测试都通过,typecheck 也干净。

🤖 Generated with Claude Code

**之前**:`alarm-activity`、`cache-history`、`letter-recovery-budget`、`startup-recovery` 在 main 上一直过不了。这几个测试把 Resident 的真方法抄进一个小模拟类里跑。后来 Resident 多了几个私有字段和新调用,模拟类没跟上,所以要么编译不过,要么一跑就报错。 **之后**: - 新的私有字段照 Resident 的默认值补上。 - 补上缺的 import。 - 只把别的测试已经覆盖的边界换成占位:图片换摘要由 `pic-summaries.mjs` 管,主动来电由 `proactive-call.mjs` 管。 - `postProactiveReply` 用真的,因为 `alarm-activity` 要检查消息有没有送出去。 只改了测试,没动 `src/`。全部单元测试都通过,typecheck 也干净。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
alarm-activity, cache-history, letter-recovery-budget and startup-recovery copy
real Resident methods into a small harness. Resident has since grown private
fields (#voiceDesignTurn, #proactiveTurns, #turnCall, #finishingVoices) and
calls (isCheckin, withoutOpenedPictures, placedProactiveCall, the picture swap
and proactive-call recovery) the harnesses did not have, so esbuild refused to
build them or the copied methods threw. Declare the fields with Resident's
defaults, import the helpers, and stub only boundaries other tests cover
(pic-summaries.mjs, proactive-call.mjs); postProactiveReply is copied for real
since alarm-activity checks the delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
saki merged commit 3f3060af68 into main 2026-11-29 00:15:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aelios-project/Aelios-resident!3
No description provided.