Repository navigation
docs: add AI ops glossary and prh rules - #710
Conversation
Add atomic-term glossary guidance and prh rule groups for safe auto-fix, contextual auto-fix, and glossary-only handling. This keeps human-facing prose normalization in repo docs/prh without expanding agent context or retroactively editing posted GitHub comments.
Preview URLPreview removed (PR #710 closed). |
squne121
left a comment
There was a problem hiding this comment.
Review
LOOP_VERDICT_V2:
verdict: APPROVE
merge_ready: false
required_auto_actions: []
blockers:
- kind: ci
check: e2e
reason: tests/e2e/m2-combat-mvp.spec.ts:569 の baseline screenshot mismatch が既存の失敗として残っています。
status: external_blocker- 差分は issue contract に沿っており、Allowed Paths 逸脱はありません。
- ただし
e2eが既存の screenshot mismatch で失敗しているため、この PR は merge-ready にはまだ到達していません。 - 変更内容そのもののレビュー結果は APPROVE です。
判定REQUEST_CHANGES / merge 不可。 PR #710 は Blocker 1: AC1「12語の定義」が未充足Issue #708 の AC1 は、 しかし PR の glossary 追加は表形式の短い扱いメモに留まり、 修正方針: Blocker 2: 「atomic term ベース」と言いながら複合語ルール中心PR 本文は「atomic term ベース」と主張していますが、 これは人間コメントの意図―― 修正方針: たとえば次のように分けるべきです。 # safe/contextual
deterministic -> 決定的
fixer -> 修正役
freshness -> 鮮度
# glossary-only
SubAgent
snapshot
enum
schema
YAML keyそのうえで、複合語の置換は「便宜上の phrase rule」として扱い、atomic term 方針とは別段落で説明してください。 Blocker 3: 正規表現の境界が甘いPR は また 修正例: - expected: 自動修正可能
patterns:
- /(^|[^\w-])auto[-]fixable(?=$|[^\w-])/
specs:
- from: auto-fixable
to: 自動修正可能
- from: not-auto-fixable
to: not-auto-fixable
- from: auto-fixable-ish
to: auto-fixable-ish
- expected: 体裁不備
patterns:
- /(^|[^\w-])hygiene failure(?=$|[^\w-])/
specs:
- from: hygiene failure
to: 体裁不備
- from: hygiene failures
to: hygiene failures
Blocker 4: PR の検証コマンドが Issue の VC から逸脱Issue #708 の AC5 は この repo の 必須確認: pnpm run lint:prose
pnpm exec textlint --config .textlintrc --fix --dry-run --format diff \
'docs/**/*.md' 'README.md' '.github/**/*.md' 'CLAUDE.md' 'AGENTS.md' 'SECURITY.md' '.claude/**/*.md'Blocker 5: hidden/bidirectional Unicode 警告を未処理GitHub は python3 - <<'PY'
from pathlib import Path
import unicodedata
for p in [Path(".textlint/prh.yml"), Path("docs/dev/glossary.md")]:
text = p.read_text(encoding="utf-8")
bad = [
(i, hex(ord(ch)), unicodedata.name(ch, "UNKNOWN"))
for i, ch in enumerate(text)
if unicodedata.bidirectional(ch) in {"RLO","LRO","RLE","LRE","PDF","RLI","LRI","FSI","PDI"}
or unicodedata.category(ch) in {"Cf", "Cc"} and ch not in "\n\r\t"
]
print(p, bad)
PYCI 状態
PR に投げるコメント案REQUEST_CHANGES
Issue #708 の契約を満たしていません。
1. AC1 は 12 語の「定義」追加を要求していますが、PR の glossary は表の扱いメモに留まり、heading / prose / handoff / enforcement は定義されていません。
2. Issue の VC は `着手前チェック|見出し|決定的修正サブエージェント|人間向け文章|選択肢|変更操作|引き継ぎ|体裁不備|古い|自動修正可能|スナップショット鮮度|強制チェック` を期待していますが、PR は `着手前確認` / `決定的修正 SubAgent` / `snapshot の鮮度` などに逸脱しています。
3. 「atomic term ベース」と説明しつつ、実装は `intake gate` / `deterministic fixer SubAgent` / `snapshot freshness` の複合語 rule 中心です。人間コメントの趣旨である atomic term 境界設計が未完了です。
4. prh rule の境界条件が弱いです。`\b` は hyphen 境界を守らないため、`pre-intake gate` 等の部分置換を negative specs で防ぐ必要があります。
5. PR evidence は `docs/dev/glossary.md` 単体の dry-run で、Issue の `pnpm run lint:prose` を満たしていません。
6. GitHub が hidden/bidirectional Unicode 警告を出しているため、不可視文字 audit の結果を evidence に入れてください。
修正後に以下を evidence として貼ってください。
- `pnpm run lint:prose`
- Issue #708 の VC そのもの
- `.textlint/prh.yml` の specs による positive/negative case
- hidden/bidirectional Unicode audit 結果この PR は「方向性」は合っていますが、現状は Issue #708 を close できる実装品質ではありません。 |
Summary
Checks
pnpm exec textlint --config .textlintrc --fix --dry-run --format diff docs/dev/glossary.md: 差分は出ませんでした。rg -n "atomic term|safe auto-fix|contextual auto-fix|glossary-only" docs/dev/glossary.md: 必要な用語説明が追加されています。rg -n "CLAUDE.md|AGENTS.md|投稿済み GitHub コメント|遡及修正" docs/dev/glossary.md: 長い用語表を増やさない方針と、投稿済みコメントを遡及修正しない方針を確認しました。rg -n "atomic term|safe auto-fix|contextual auto-fix|glossary-only" .textlint/prh.yml: 3 つの分類見出しを確認しました。rg -n "expected: .*\b(enum|mutation|stale|intake|gate|freshness|snapshot|SubAgent)\b" .textlint/prh.yml: 単独の blanket replacement は追加していません。rg -n "intake gate|deterministic fixer SubAgent|snapshot freshness" .textlint/prh.yml: 文脈付きルールが追加されています。Schema Change Applicability
Schema Consumer Inventory
docs/dev/glossary.mdと.textlint/prh.ymlだけで、schema consumer の更新はありません。Safety Claim Matrix
docs/dev/glossary.mdで atomic-term ガイドを追加し、agent prompt を拡張していません。.textlint/prh.ymlに explicit rule を追加し、glossary-only token の blanket replacement は追加していません。glossary.mdremains textlint-clean after the change.pnpm exec textlint --config .textlintrc --fix --dry-run --format diff docs/dev/glossary.mdは差分なしでした。Notes
Closes #708