feat(app): an activity log of what Jarvis did (chat actions, schedule deliveries)

Each chat channel action the brain's tool asked for and each schedule
delivery is recorded in activity/<day>.jsonl by kind, target, who asked and
outcome, never its text, kept 30 days. The worker's chat_action carries the
asker. A 한 일 screen lists the newest entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-14 16:51:18 +09:00
parent e8db417752
commit 04b603facd
17 changed files with 282 additions and 17 deletions

View File

@@ -471,7 +471,9 @@ def test_a_chat_action_goes_to_the_app_and_its_answer_comes_back(store):
return action
action = asyncio.run(with_worker(body, store=store, brain=brain))
assert {k: action[k] for k in ("action", "channel", "text")} == {"action": "send", "channel": "c1", "text": "안녕"}
# The app records who asked for it (its activity log).
assert {k: action[k] for k in ("action", "channel", "text", "user")} == {
"action": "send", "channel": "c1", "text": "안녕", "user": "100"}
assert results == [{"ok": True, "message_ids": ["555"]}]