---
name: feedback-publish-gate-source-of-truth-verify
description: Paper publish gate に含む deploy verify 項目は HEAD state だけでなく public/tools/* source of truth 存在も verify すること。 STEP 1055 pattern 削除再発の教訓
metadata: 
  node_type: memory
  type: feedback
  originSessionId: b1bcbe52-6b3f-4f2d-8711-71682adedc11
---

Paper publish gate で「/tools/<name>/ site 反映 verify」 を含む場合、 **HEAD state の git tracked 確認だけでは不十分**。 `public/tools/<name>/` に source of truth が存在することも同時に verify する。

**Why**: 2026-07-03 → 07-04 session で Paper 173 v0.6 gate (i) 「/tools/amala-mandala/ 阿摩羅識曼荼羅 site 反映 verify」 audit 時、 HEAD state (commit `981272bce`) には tracked file 存在するが working tree では削除再発中 = auto-cron vite build 時 publicDir (`public/tools/`) に対応 source 無い artifact を stale 判断 wipe。 `.gitignore:127-129` architecture (2026-06-25 確立) で `dist-renderer/tools/` は build artifact 扱い = source of truth は `public/tools/*` にある必要。 STEP 1055 pattern 3rd/4th recurrence 経験 evidence。

**How to apply**:
1. 新 paper で UI/tool artifact に依存する publish gate 起草時、 「HEAD state tracked + `public/tools/<name>/` source 存在」 の 2 条件を **and** で明示
2. gate audit 実行時 `ls public/tools/<name>/` + `git status public/tools/<name>/ dist-renderer/tools/<name>/` の 2 commands 両方 run
3. tool deploy 時は必ず `public/tools/<name>/` に先置き → `git add public/tools/` → vite build で dist-renderer/tools/ 自動生成の順序遵守 (直接 `dist-renderer/tools/<name>/` に `git add -f` は 07-02 `b4492498c` + 07-03 `981272bce` + 07-04 `37dbec4e5` の 3 度の学習 evidence で anti-pattern 確定)
4. 既 publish された論文で該当 gate 記載ある場合、 v-next iteration 時に本 2 条件条項を retrofit 追加

**負荷 case**: `.gitignore` 迂回 `git add -f` は architecture 意図と反するため anti-pattern。 やむを得ない場合 (chat-Claude 直接 deploy artifact 等) は同 commit で `public/tools/<name>/` にも同 file を copy して source of truth 化する 2 step ワンセット。

**関連**:
- [[project-session-2026-07-03-04-amala-permanent-fix-and-paper-judgments]] (本 feedback 発生 session)
- [[project-amala-mandala-deploy-and-silent-omission-cluster-2026-07-03]] (前 session 同 pattern 経験)
- STEP 1055 (Site Coverage Map 確立、 2026-05-11)
- Commit `b4492498c` (2026-07-02 pyrrho + karma-demo 同 pattern fix precedent)
- Commit `37dbec4e5` (2026-07-04 amala-mandala 恒久 fix implementation)
- `.gitignore:127-129` (2026-06-25 確立 source-of-truth architecture)
- [[feedback-evaluation-symmetry-principle]] (silent omission pattern 発見の base)
