Skip to content

フィードバックの自動修正についてプライバシーポリシーへ追記 - #262

Merged
TinyKitten merged 1 commit into
devfrom
feature/privacy-policy-auto-fix
Sep 21, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feature/privacy-policy-auto-fix

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

概要

フィードバックを起点に修正 Pull Request を自動で作る仕組みを、MobileApp / StationAPI / Functions に入れようとしています。そのままだと第15条の記載が実態に追いつかなくなるので、先に直しておきます。

関連する PR は次の 3 つです。いずれもまだマージしておらず、ANTHROPIC_API_KEY を設定するまでは動きません。

足りていなかった点

1. 送信先として Anthropic が挙がっていない

現行の第15条は、分類に TypeSafe AI, Inc.、要約に Cloudflare, Inc. を挙げています。今回の仕組みでは、無害化した本文と端末情報が Anthropic のサービスへ渡ります。文書全体を検索しましたが Anthropic も Claude も出てきませんでした。

法人名は Anthropic 自身のプライバシーポリシーで確認しています(the data controller responsible for your personal data is Anthropic PBC)。既存の Cloudflare, Inc. Google LLC TypeSafe AI, Inc. と同じ書き方に揃えました。

2. 転送先が「非公開のGitHubリポジトリおよびDiscordのチャンネル」だけになっている

修正案は公開リポジトリの Pull Request として出ます。エージェントには次の 3 つを守らせています。

  • 利用者が書いた本文は、どれだけ短くても引用させない
  • 症状はエージェント自身の言葉で説明させる
  • 端末モデル名・OS のバージョン・アプリのバージョンは、再現に必要な範囲なら書いてよい

つまり本文そのものは出ませんが、内容に基づく説明と端末情報は公開されます。現行の記述はこれを含んでいないので、段落を 1 つ足しました。

変更内容

apps/lp/src/components/pages/PrivacyPolicyPage.tsx と PrivacyPolicyEnPage.tsx の第15条に、段落を 1 つずつ追加しました。既存の文には手を入れていません。

また、不具合の修正案を自動で作成する目的で、本文から送信者を特定しうる情報を取り除いたうえで、Anthropic PBCの提供するAIサービスへ送信します。作成された修正案は、TinyKittenが管理する公開のGitHubリポジトリへPull Requestとして投稿されます。Pull Requestには利用者様が入力された本文を掲載しません。掲載するのは、不具合の内容の説明と、再現に必要な範囲の端末の機種名・OSのバージョン・本アプリのバージョンです。

あわせて改定日を追加しました(和文は 令和8年9月21日 改定、英文は Last updated: September 21, 2026)。マージする日が変わる場合はここを合わせてください。

確かめたこと

  • 公開中のページ(https://trainlcd.app/privacy-policy)の現行文を取得し、第15条の全文と、Anthropic / Claude が出てこないことを確認しました
  • Anthropic の法人名を同社のプライバシーポリシーで確認しました
  • 追記した内容が実装と一致することを、共通アクションのプロンプト(TrainLCD/feedback-autofix の scripts/compose-prompt.mjs、「公開物についての制約」の節)で確認しました

チケットIDが公開スタブ issue に載る点は、今回の追記に含めていません。フィードバック画像のキーは report-images/${feedbackId}-${crypto.randomUUID()}.png で、サーバ生成の乱数が付きます。チケットIDだけでは画像 URL に届かないので、「推測が困難な固有のURL」という現行の記述は成り立っています。

注意

.github/workflows/code-quality.yml は main への push / pull_request で動く設定なので、dev を base にしたこの PR では CI が走りません。この PR で持ち込んだものではなく、既存の設定です。変更は JSX の段落追加のみで、ロジックには触れていません。

🤖 Generated with Claude Code

https://claude.ai/code/session_018jUHQb3vwnKPNYL2Cm1mxw


Generated by Claude Code

Summary by CodeRabbit

  • ドキュメント
    • 日本語版・英語版プライバシーポリシーの最終更新日を2026年9月21日に更新しました。
    • フィードバック情報から送信者を特定し得る情報を除去したうえで、AIサービスに送信し、修正案を作成する運用を明記しました。
    • 修正案は公開GitHubリポジトリへのPull Requestとして提出されます。ユーザー入力本文は掲載せず、不具合の説明と必要な端末・OS・アプリ情報のみを含めます。

フィードバックを起点に修正PRを自動で作る仕組みを入れるにあたり、第15条の記載が
実態に追いつかなくなる。足りないのは2点。

送信先としてAnthropic PBCが挙がっていない。現行はTypeSafe AI(分類)とCloudflare
(要約)だけを挙げている。

転送先が「非公開のGitHubリポジトリおよびDiscordのチャンネル」としか書かれていない。
修正案は公開リポジトリのPull Requestとして出る。本文は引用させないが、不具合の内容の
説明と端末の機種名・OSのバージョン・アプリのバージョンは公開される。

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018jUHQb3vwnKPNYL2Cm1mxw
@TinyKitten TinyKitten self-assigned this Sep 21, 2026
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
trainlcd-lp-stg Ready Ready Preview Sep 21, 2026 10:59am UTC
trainlcd-status-stg Ready Ready Preview Sep 21, 2026 10:59am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: db6c4e24-6485-4db8-b818-fd149a36b865

📥 Commits

Reviewing files that changed from the base of the PR and between be0b673 and 48a7ba7.

📒 Files selected for processing (2)
  • apps/lp/src/components/pages/PrivacyPolicyEnPage.tsx
  • apps/lp/src/components/pages/PrivacyPolicyPage.tsx

Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


📝 Walkthrough

Walkthrough

日本語版と英語版のプライバシーポリシーを更新しました。更新日を変更し、フィードバックの匿名化、Anthropic PBCのAIサービス送信、公開GitHubリポジトリへのPull Request提出に関する説明を追加しました。

Changes

プライバシーポリシー更新

Layer / File(s) Summary
ポリシー記載の更新
apps/lp/src/components/pages/PrivacyPolicyPage.tsx, apps/lp/src/components/pages/PrivacyPolicyEnPage.tsx
日本語版と英語版の更新日を2026年9月21日に変更しました。送信者を特定し得る情報を除去したフィードバックをAnthropic PBCのAIサービスへ送信し、修正案を公開GitHubリポジトリへのPull Requestとして提出する運用を記載しました。Pull Requestにはユーザー入力本文を含めず、欠陥の説明と端末・OS・アプリ情報のみを含めます。

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

🚥 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 タイトルは、フィードバックを起点とする自動修正の運用をプライバシーポリシーへ追記する主な変更内容を正確かつ簡潔に示しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

うさぎはポリシーをめくりました
日付が新しく跳ねました
本文はそっと隠しました
修正案をGitHubへ運びました
にんじん色の安心を祝いました

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

This branch was successfully deployed

2 active deployments
Preview – trainlcd-status-stg — 48a7ba70 Deployed Sep 21, 2026 by vercel[bot]
Preview – trainlcd-lp-stg — 48a7ba70 Deployed Sep 21, 2026 by vercel[bot]
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.

2 participants