## Machine-Readable Contract ```yaml contract_schema_version: v1 issue_kind: implementation parent_issue: "396" goal_ref: "PATH_TOKEN_EXTENSIONS を repo 実拡張子 inventory と同期させ、落ちる拡張子をなくす" change_kind: code ``` ## Parent Issue #396 ## Source PR #430 review comment (reviewer NB3): https://github.com/squne121/loop-protocol/pull/430#issuecomment-4558848091 ## Background / Problem 現行 allowlist は `.md/.py/.ts/.tsx/.js/.yml/.yaml/.json/.sh` のみ。`.mdx/.jsx/.mjs/.cjs/.lock/.sql/Dockerfile/Makefile` 等を落とす。CI で repo 実拡張子 inventory を出して allowlist を同期する仕組みがない。 ## Outcome `PATH_TOKEN_EXTENSIONS` が repo 実拡張子 inventory(CI または静的スキャン)と同期されており、主要な拡張子 (`.mdx`, `.jsx`, `.mjs`, `.cjs`, `.lock`, `.sql`, `Dockerfile`, `Makefile` 等) が漏れなく含まれる。 ## In Scope - `PATH_TOKEN_EXTENSIONS` に不足拡張子を追加 - CI で repo 内拡張子を列挙し、未対応拡張子を warning するスクリプト(任意) - 関連 fixture の追加(`.mdx` / `Dockerfile` 等を含む fixture) ## Out of Scope - PATH_TOKEN_PREFIXES への変更 - tokenization アルゴリズムの変更 ## Acceptance Criteria - [ ] `PATH_TOKEN_EXTENSIONS` が `.mdx`, `.jsx`, `.mjs`, `.cjs` 等を含む - [ ] 不足拡張子を含む fixture が PASS する - [ ] 既存 fixture 全件が引き続き PASS する ## Verification Commands ```bash $ rg -n "PATH_TOKEN_EXTENSIONS" .claude/skills/review-issue/scripts/check_issue_contract.py $ uv run pytest .claude/skills/review-issue/tests/ -v ``` ## Allowed Paths - `.claude/skills/review-issue/scripts/check_issue_contract.py` - `.claude/skills/review-issue/tests/` - `.claude/skills/review-issue/fixtures/` ## Stop Conditions なし ## Runtime Verification Applicability decision: not_applicable reason: pytest で機械的に検証可能
Activity