Skip to content

chore(gitignore): post-merge-feedback pending file を除外 (ADR-029)#74

Merged
aloekun merged 1 commit intomasterfrom
chore-gitignore-pending-file
Apr 24, 2026
Merged

chore(gitignore): post-merge-feedback pending file を除外 (ADR-029)#74
aloekun merged 1 commit intomasterfrom
chore-gitignore-pending-file

Conversation

@aloekun
Copy link
Copy Markdown
Owner

@aloekun aloekun commented Apr 24, 2026

Summary

  • .claude/post-merge-feedback-pending.json.gitignore に追加
  • ADR-029 の pending file は runtime-generated artifact でコミット対象外
  • 既存の「Runtime generated files」セクションに追記 (論理構造を保つ)

Context

PR #73 merge 後の dogfood で .claude/post-merge-feedback-pending.json が working copy に A (Added) として現れることが判明。ADR-029 の pending file は cli-merge-pipeline / hooks-stop-feedback-dispatch / post-merge-feedback skill が生成・consume する runtime artifact で、.gitignore 登録が必要だが、task 1-B (PR #70) / 1-C (PR #71) 実装時に見落とされていた。

既存 .claude/pr-monitor-state.json 等の runtime state 系パターンと同じ位置 (Runtime generated files セクション) に追加することで、.gitignore の論理構造を保つ。skill crash 時などに pending file が短時間残存するケースもあるが、次回の Phase 0 で consumed / stale / corrupt 分岐により自動回収される設計なので、.gitignore の適用範囲は「誤コミット防止」のみで十分。

Validation

  • pnpm push pre-push-review: verdict=APPROVE (最終 1 iteration 1m 32s, simplicity/security 両方 approved)
  • jj diff --stat: .gitignore | 2 ++ — コメント 1 行 + ignore pattern 1 行のみ、他ファイル unchanged
  • 目視確認: 既存の Runtime generated files セクション (.session-id, pr-monitor-state*.json, scheduled_tasks.lock) と同じブロック内で追加、論理構造保持

References

Summary by CodeRabbit

リリースノート

  • Chores
    • 内部用の一時ファイルを除外するように .gitignore を更新しました。

cli-merge-pipeline が生成する `.claude/post-merge-feedback-pending.json` は
hooks-stop-feedback-dispatch / post-merge-feedback skill が consume する一時 artifact
で、コミットに含めるべきではない。ADR-029 の task 1-B/1-C 実装時に .gitignore
登録が漏れていたため補完する。

skill crash 時などに short window で残存するが、次回の Phase 0 で consumed/stale
分岐により自動回収される設計。
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2bfad41c-5602-445c-a615-7ccf7432edc4

📥 Commits

Reviewing files that changed from the base of the PR and between 9c93011 and fbbb7b7.

📒 Files selected for processing (1)
  • .gitignore

📝 Walkthrough

Walkthrough

.gitignoreファイルを更新して、新しい一時的なポストマージフィードバック保留中アーティファクトファイル.claude/post-merge-feedback-pending.jsonを無視対象として追加しました。

Changes

Cohort / File(s) Summary
Gitignore Configuration
.gitignore
.claude/post-merge-feedback-pending.jsonアーティファクトをバージョン管理から除外するエントリを追加。既存の.claude/*ランタイムアーティファクト無視設定は変更なし。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • PR #72: ポストマージフィードバック機能を有効にするポストステップと、このPRが無視する生成されたアーティファクトファイルが対応している。
  • PR #69: ADR-029で指定された同じ.claude/post-merge-feedback-pending.jsonアーティファクトをこのPRの.gitignore追加と関連付けている。
  • PR #73: このPRがgitignoreに追加するアーティファクトと同じファイルをスキル側のハンドリングおよび削除の観点から扱っている。
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly describes the main change: adding a post-merge feedback pending file to .gitignore, directly matching the changeset content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@aloekun
Copy link
Copy Markdown
Owner Author

aloekun commented Apr 24, 2026

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@aloekun aloekun merged commit ae1cfe7 into master Apr 24, 2026
1 check passed
@aloekun aloekun deleted the chore-gitignore-pending-file branch April 24, 2026 18:26
aloekun added a commit that referenced this pull request Apr 25, 2026
PR #75 の post-merge-feedback で得られた Tier 1 提案を実装。

custom-lint-rules.toml に新規 rule を追加:
- pattern: 'C:\Users\[A-Za-z][A-Za-z0-9_-]+\|/home/[a-z][a-z0-9_-]+/'
- extensions: md / txt
- severity: error
- placeholder (<USER_NAME>, %USERPROFILE%, ~/, $HOME) は character class
  ([A-Za-z] / [a-z]) で開始位置を縛り自動除外

由来: PR #75 で同種 PII 指摘が 3 箇所同時発生 (ADR-030 line 143、
todo.md line 35/48)。PR #74 でも前例あり、CodeRabbit Major 指摘の
頻出パターンとして Plankton Tier 1 (決定論的防止) で固定化する。

カスタムリンタは std::fs::read_to_string で runtime ロードのため
exe rebuild 不要。既存 45 件のリンターテスト全 PASS で regex 妥当性確認済。
aloekun added a commit that referenced this pull request Apr 25, 2026
PR #75 の post-merge-feedback で得られた Tier 1 提案を実装。

custom-lint-rules.toml に新規 rule を追加:
- pattern: 'C:\Users\[A-Za-z][A-Za-z0-9_-]+\|/home/[a-z][a-z0-9_-]+/'
- extensions: md / txt
- severity: error
- placeholder (<USER_NAME>, %USERPROFILE%, ~/, $HOME) は character class
  ([A-Za-z] / [a-z]) で開始位置を縛り自動除外

由来: PR #75 で同種 PII 指摘が 3 箇所同時発生 (ADR-030 line 143、
todo.md line 35/48)。PR #74 でも前例あり、CodeRabbit Major 指摘の
頻出パターンとして Plankton Tier 1 (決定論的防止) で固定化する。

カスタムリンタは std::fs::read_to_string で runtime ロードのため
exe rebuild 不要。既存 45 件のリンターテスト全 PASS で regex 妥当性確認済。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant