---
name: project-step1403-rei-scout-category-flow-2026-08-24
description: STEP 1403 rei-scout v0.3 = 「承認 → 制作」 flow template 標準化 (5 category + spike step + progress subcommand)、 rei-aios docs 側 workflow doc
metadata: 
  node_type: memory
  type: project
  originSessionId: dadb5340-3a5e-41c6-a6ea-a557191d9c84
  modified: 2026-08-23T22:43:23.389Z
---

# STEP 1403 — rei-scout v0.3: 承認 → 制作 flow template 標準化

**Date**: 2026-08-24
**Scope**: rei-scout local (Downloads/rei-scout/) + rei-aios docs/memory/site

## 経緯

STEP 1400 で 91 review 候補 + weekly cron setup 完了。 Gap 1 = 「承認 → 制作」 flow が 未定義 で 各承認が 個別 arc に stance judgment 依存 = 91 件 一つずつ 対応する 負担。

藤本さん directive 「rei-scout Gap 1 fix: 「承認 → 制作」 flow template 標準化 (次 review batch 時)」 → 実装。

## 実装

### rei-scout local 側 (Downloads/rei-scout/)

**3 file 修正 + 1 file 新規**:

| file | 変更 |
|---|---|
| `scout/store.py` | `decide()` に category / step_number / integration_status 引数 追加 (全 optional、 backward compat)。 `VALID_CATEGORIES` + `VALID_INTEGRATION_STATUS` 定数。 `progress_by_category()` 新 function |
| `scout/cli.py` | `_decide()` 拡張 (新 flag pass-through + 「次手 template」 nudge) + `_progress()` 新 function + `_add_decision_flags()` helper + `defer` / `progress` 新 subparser |
| `scout/cli.py` docstring | `--category` / `--step` / `--integration-status` 使い方 追記 |
| `docs/CATEGORIES.md` (NEW) | 5 category 定義 + spike step template + honest scope + 週次 review workflow |

### rei-aios 側 (git 管理)

- `docs/rei-scout-integration-flow.md` (NEW) — Rei stack 側 view + 5 category × 実装先 mapping + success pattern 例
- `public/tools/step-1403-rei-scout-category-flow/index.html` — site 反映 (2026-08-06 protocol)
- memory `project_step1403_*.md` (本 file)
- MEMORY.md hook + RECENT_UPDATES.md entry + git commit + push

## 5 category

| category | 意味 | spike step | 実装 scope |
|---|---|---|---|
| **`import-as-mcp`** | 外部 MCP として そのまま使用 | 5 step (~30-60 分) | .mcp.json 設定 + smoke test |
| **`port-to-rei`** | Rei stack に 移植 | 10 step (~数時間-数日) | 別 STEP + test + site 反映 |
| **`cite-only`** | 参照のみ | 3 step (~15 分) | memory `[[link]]` + bibliography |
| **`defer`** | 保留 | 1 step (~5 分) | review_after 日付 note |
| **`reject`** | 適合しない | 1 step (~5 分) | reject_reason note |

## Backward compat

**既 decisions.json 18 entries** (STEP 1400 以降 藤本さん or 別 session が 記録) は 全 `category` 欠如状態。 v0.3 は これを `uncategorized` として 扱い、 rewrite しない。 藤本さんが 順次 `approve --category X` で retroactive classify 可能 (実演: TECTOS-JP/lab-visa-mcp を `import-as-mcp` に classify、 verify PASS)。

## verify 実測

```bash
# [1] progress backward compat (v0.2 entries)
python -m scout progress
# → uncategorized (18): not-started=18

# [2] retroactive classify
python -m scout approve TECTOS-JP/lab-visa-mcp \
  --category import-as-mcp --integration-status not-started "note"
# → [approved] TECTOS-JP/lab-visa-mcp
#   category: import-as-mcp
#   integration: not-started
#   -- 次手 spike template: docs/CATEGORIES.md § import-as-mcp --

# [3] progress after classify
python -m scout progress
# → import-as-mcp (1): not-started=1
# → uncategorized (17): not-started=17

# [4] --help
python -m scout approve --help
# → --category {import-as-mcp,port-to-rei,cite-only,defer,reject}
#   --step STEP_NUMBER
#   --integration-status {not-started,in-progress,done,abandoned}
```

## Rei stack traceability

- **`--step <N>`** flag = rei-scout 承認 ↔ Rei stack STEP 番号 の 双方向 link
- **`import-as-mcp` 統合時** = MEMORY.md 累計 `Rei stack MCP N systems` 更新
- **`port-to-rei` 実装時** = RECENT_UPDATES.md で 「rei-scout 経由の 発見」 明記 + 元 repo attribution

## Success pattern (既 arc からの 例)

| category | 例 | 備考 |
|---|---|---|
| `import-as-mcp` | TECTOS-JP/lab-visa-mcp | 2026-08-24 retroactive classify (実装は 未着手 = integration-status=not-started) |
| `port-to-rei` | STEP 1399 Kernighan bit-clear hardware | rei-scout 経由ではない が pattern 同型 (1970s 既知 idea の Rei stack 内 再表現) |
| `defer` | daqifi/daqifi-core | Nyquist hardware 保有時のみ approve (2026-08-23 decision) |
| `cite-only` | STEP 1364 CHECKER_SPEC_v0 | chat-Claude 出力を asset として 参照 |

## 週次 review batch workflow

```powershell
# 1. pending 確認
cd C:\Users\user\Downloads\rei-scout
python -m scout pending --min-score 60 --limit 25

# 2. batch 5-10 件 review
for each top repo:
  python -m scout show <repo>
  # GitHub URL で README 目視 (60K 上限 補完)
  python -m scout approve/reject/defer <repo> --category X

# 3. 進捗
python -m scout progress

# 4. port-to-rei の場合 = 別 session で 実装 → 完了後
python -m scout approve <repo> --category port-to-rei --step N --integration-status done
```

## Honest scope 7 条

1. **template は 目安**、 例外 OK (「不要 step で 時間浪費しない」)
2. **novelty ゼロ** ([[feedback-world-uniqueness-claim-controllable]] 適用) = OSS integration workflow は 標準 pattern、 novelty は Rei stack 内 discipline 化のみ
3. **backward compat 完全** = v0.2 既 18 entries は uncategorized、 rewrite しない、 retroactive classify option のみ
4. **90 日 defer review は 手動** (auto reminder は v0.4+ candidate)
5. **AGPL port は 別 workflow** (Rei stack 全体 copyleft 汚染回避)
6. **README 60K 検査 gap** は port-to-rei step 2 の source review で 補完、 全 code 通読は 現実的でない
7. **integration-status=done は 実装完了 marker のみ** = 品質保証 or 保守 commitment ではない (abandoned で 追跡)

## rei-scout upstream integration

**現状**: Downloads/rei-scout/ は local (git 未管理)、 変更は 藤本さん 手元のみ。
**Recommended**: 藤本さんが chat-Claude に diff を送って 上流反映 依頼 (async)。 chat-Claude が 新 zip 送付 → 上書き展開で 藤本さん side も update。
**代替**: 手元 rei-scout を そのまま 継続運用、 upstream sync は 別 stance 待ち。

## 次 candidate (別 STEP)

- v0.4 auto defer review (90 日 経過 で `pending` に 戻す)
- v0.4 AGPL 専用 workflow (copyleft audit ゲート)
- v0.4 category migration guide (uncategorized → 具体 category)
- rei-scout upstream chat-Claude 送付 = 藤本さん judgment 待ち
- 91 review 候補 の 実 batch review 開始 (別 arc)

## 関連

- STEP 1400 (rescore + weekly cron setup + 91 review 候補、 本 STEP の 前提)
- STEP 1401 (rei-checker-mcp v0.3、 pattern 同型 の 自己 repo case)
- STEP 1402 (d8_ledger_query、 rei-aios cross-project consumer example)
- STEP 1399 (Kernighan hardware port、 port-to-rei pattern 例)
- STEP 1364 (CHECKER_SPEC_v0 archival、 cite-only pattern 例)
- [[feedback-all-research-site-reflection-default]] 2026-08-06 protocol 継続
- [[feedback-no-rush-publication]] 週次 batch 遵守
- [[feedback-projection-self-audit-pattern]] SAC-4 継承
- [[feedback-world-uniqueness-claim-controllable]] 継承
- [[feedback-critique-response-pattern]] SAC-4 100% 認諾 discipline
- rei-scout `docs/CATEGORIES.md` (local、 詳細 template)
- rei-aios `docs/rei-scout-integration-flow.md` (Rei stack 側 view)
