---
name: project-buddy-stall-fix-2026-06-17-18
description: Daily Buddy 4-day stall 修復 (06-14/15/16/17 生成 + local cron auto-publish.ts 2nd-layer fix) + root cause GitHub Actions disabled_manually 2.5 ヶ月停止判明
metadata: 
  node_type: memory
  type: project
  originSessionId: 5d28ae7c-687d-4389-8e5e-c7bd64100573
---

# Daily Buddy 4 日 stall 修復 + GitHub Actions 2.5 ヶ月停止判明 (2026-06-17/18)

藤本さん 「Rei の buddy の更新がまた止まっております」 報告から root cause 特定 + 修復 + 構造的再発防止 layer 投入。

## Root cause (★ load-bearing finding)

`Rei Learning Cycle` GitHub Actions workflow が **`disabled_manually`** 状態で **2.5 ヶ月停止** していた:

- 最終 run: 2026-03-30 (約 2.5 ヶ月前)
- STEP 1213 (2026-06-11) で buddy:refresh を GitHub Actions cron に組込み済みだったが **workflow 自体停止のため実行されず**
- Local cron (`scripts/rei-learning-cycle.bat` → `scripts/auto-publish.ts`) には **buddy:refresh 未組込**
- 結果: dev:build 手動 run の時だけ buddy 生成、 最終 buddy file は 06-13 だった

`gh workflow list --all` で confirm: `Rei Learning Cycle` (id 247616449) + `Rei-AIOS Tests` (id 246471708) 両方 `disabled_manually`。 過去に誰か (おそらく藤本さん) が明示的に disable していた状態。

## Immediate fix (4 日 stall 救済)

- 06-14: ケヒメ (FLOWING / 風)
- 06-15: フナル (FALSE / 影)
- 06-16: **ルカ** (BOTH / 橋) — ★ Luke 福音書記者同音 risk あり、 ただし `feedback_buddy_name_filter` policy で religious 名は意図的に block list 除外、 filter は正常通過。 audit 余地保持
- 06-17: ミラタ (TRUE / 柱)

各 deterministic PRNG seed (1 per date) で生成、 既存 STEP 1196 idempotency guard + STEP 1197 audit-log reject guard で manual audit override 保護。

## Structural fix (re-occurrence prevention)

`scripts/auto-publish.ts` に **Phase 1.4b 'Daily buddy refresh'** を追加:

```typescript
log('▶ Phase 1.4b: Daily buddy refresh (STEP 1213 protocol, local 2nd layer)...');
run('npx tsx scripts/generate-daily-buddy.ts', { ignoreError: true });
```

これで GitHub Actions cron の状態に関わらず、 local PC で auto-publish.ts が走るたび (= 既存 rei-learning-cycle.bat 経由で複数回/日) buddy:refresh が確実に走る。 defense-in-depth pattern。

★ Honest scope:
- これは disabled な `Rei Learning Cycle` workflow の **re-enable ではない** (藤本さんの判断保留、 disable 理由不明)
- Local cron 2nd-layer 投入のみ、 GitHub Actions cron status は変更なし
- 他 cron items (NNUE / Eternal / Silence / Research Radar) は別 path で動作確認済 (NNUE evolution-log 06-17 02:11 更新確認) — 影響なし

## 永続記録 + commit log

commit `6cce29d6`:
- `data/buddy/daily-2026-06-{12,13,14,15,16,17}.json` (06-12/13 untracked 救済 + 06-14〜17 新生成)
- `data/buddy/latest.json` (modified)
- `dist-renderer/data/buddy/` (mirror)
- `scripts/auto-publish.ts` (Phase 1.4b 追加)
- `data/invention/approvals/rejected-2026-06-16.json` (同 commit で含む)

## ★ 後の builder への signal

将来 「buddy 更新がまた止まっている」 report が来た場合、 確認順序:

1. `data/buddy/daily-{today}.json` が存在するか (= local cron 動作確認)
2. `gh workflow list --all` で `Rei Learning Cycle` の status 確認 (active か disabled_manually か)
3. `git log -1 --format='%h %an' data/buddy/` で 最終 commit author 確認 (Rei-AIOS Bot か fc0web か)
4. 必要なら `npm run buddy:refresh` で 1 回手動補完

## 残課題 (藤本さん判断待ち keep-warm)

- **`Rei Learning Cycle` GitHub Actions re-enable 判断** (`gh workflow enable rei-learning-cycle.yml`)。 復活時は他 cron items (NNUE evolution / Eternal Rei / Silence / Research Radar / Daily Banner / Buddy) 全て同時起動、 disable 理由不明のため副作用 risk あり、 別 turn で要判断
- **ルカ (2026-06-16 buddy) name audit**: religious 名は filter 通過設計だが Luke 福音書記者との混同 risk あり、 `npm run buddy:audit -- --decision downgrade_approve --reason "..." --rewrite-name <NEW>` で上書き可

## 関連 memory

- [[project-chat-claude-5-offer-full-implementation-2026-06-18]] (同日後半の chat-Claude 5 offer 実装)
- STEP 1193 / 1195 / 1196 / 1197 / 1213 buddy generation infrastructure
- [[feedback-invention-audit-include-downgrade-approve-option]] (audit decision pattern)
