Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .textlint/prh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,50 @@ rules:
to: 変更前PASS
- from: baseline passing
to: baseline passing
# === AI運用語 post-processing ===
# safe auto-fix
- expected: 自動修正可能
patterns:
- /auto[-]fixable/
specs:
- from: auto-fixable
to: 自動修正可能

- expected: 体裁不備
patterns:
- hygiene failure
specs:
- from: hygiene failure
to: 体裁不備

# contextual auto-fix
- expected: 着手前確認
patterns:
- /\bintake gate\b/
specs:
- from: intake gate
to: 着手前確認
- from: intake_gate
to: intake_gate

- expected: 決定的修正 SubAgent
patterns:
- /\bdeterministic fixer SubAgent\b/
specs:
- from: deterministic fixer SubAgent
to: 決定的修正 SubAgent
- from: deterministic_fixer_SubAgent
to: deterministic_fixer_SubAgent

- expected: snapshot の鮮度
patterns:
- /\bsnapshot freshness\b/
specs:
- from: snapshot freshness
to: snapshot の鮮度
- from: snapshot_freshness
to: snapshot_freshness

# glossary-only / no blanket fix
# enum / mutation / stale / intake / gate / freshness / snapshot / SubAgent
# These tokens are documented in docs/dev/glossary.md but intentionally have no blanket prh rule.
20 changes: 20 additions & 0 deletions docs/dev/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,23 @@ LOOP_PROTOCOL プロジェクトで使用する VC(Verification Commands)周
3. **段階的対応**: 完全な用語統一は別 Issue で段階的に対応する。

`baseline fail` / `baseline pass`(複合語)については prh ルールで `変更前FAIL` / `変更前PASS` へ変換する。

## AI運用語の扱い

AI 運用語は、複合語の blanket replacement ではなく atomic term 単位で扱う。`CLAUDE.md` / `AGENTS.md` / agent prompt に長い用語表を増やさず、repo 側の glossary / prh で post-processing する。

| 用語 | 分類 | 扱い |
| --- | --- | --- |
| `auto-fixable` | safe auto-fix | `自動修正可能` に寄せる |
| `hygiene failure` | safe auto-fix | `体裁不備` に寄せる |
| `intake gate` | contextual auto-fix | `着手前確認` に寄せる |
| `deterministic fixer SubAgent` | contextual auto-fix | `決定的修正 SubAgent` に寄せる |
| `snapshot freshness` | contextual auto-fix | `snapshot の鮮度` に寄せる |
| `enum` | glossary-only | schema / code token としてそのまま維持する |
| `mutation` | glossary-only | code / contract token としてそのまま維持する |
| `stale` | glossary-only | 文脈依存が強いため単独自動置換しない |
| `intake` / `gate` / `freshness` / `snapshot` / `SubAgent` | glossary-only | 単独では自動置換しない |

`prose` / `heading` / `handoff` / `enforcement` も atomic term として文脈依存が強いので、単独の blanket replacement では扱わず、必要なら別の contextual rule に分離する。

GitHub に投稿済みの Issue / PR コメントは遡及修正しない。人間向け prose の整形は、投稿前 Markdown または repo 内文書に限定する。
Loading