diff --git a/docs/agent-run-worker-rollout-runbook.md b/docs/agent-run-worker-rollout-runbook.md index f30c3ad..13f827e 100644 --- a/docs/agent-run-worker-rollout-runbook.md +++ b/docs/agent-run-worker-rollout-runbook.md @@ -174,6 +174,8 @@ bash /Users/john/Project/Memind/scripts/install-agent-run-worker-agent.sh MEMIND_AGENT_RUN_WORKER_EXPECT_RUNNING=1 node /Users/john/Project/Memind/scripts/check-agent-run-worker.mjs ``` +The worker LaunchAgent must have `KeepAlive=true` during all-user gray so a clean worker exit does not leave code-run queue processing stopped. + 8. Submit only code runs with validation metadata. Required user message metadata: diff --git a/docs/architecture/memind-2-streaming-agent-runtime-plan.md b/docs/architecture/memind-2-streaming-agent-runtime-plan.md index 15b5e24..8f9d61c 100644 --- a/docs/architecture/memind-2-streaming-agent-runtime-plan.md +++ b/docs/architecture/memind-2-streaming-agent-runtime-plan.md @@ -2099,7 +2099,7 @@ installer 默认行为: - `/Users/john/Library/LaunchAgents/cn.tkmind.memind-agent-run-worker.plist` - 默认: - `RunAtLoad=false` - - `KeepAlive=false` + - `KeepAlive=true` - `launchctl disable` - 不 `kickstart` - 默认环境: @@ -2640,6 +2640,7 @@ runtime/status: 备份: - `/Users/john/Project/memind_backups/20260702-114335-p615-validation-metadata` +- worker KeepAlive 运维补强备份: `/Users/john/Project/memind_backups/20260702-115330-worker-keepalive` ## 回滚策略 diff --git a/scripts/install-agent-run-worker-agent.sh b/scripts/install-agent-run-worker-agent.sh index 4e02b69..c843d68 100755 --- a/scripts/install-agent-run-worker-agent.sh +++ b/scripts/install-agent-run-worker-agent.sh @@ -49,7 +49,7 @@ cat > "$PLIST" <RunAtLoad KeepAlive - + ThrottleInterval 10 StandardOutPath