Prompt file imported from novum-d/android-platform-research (
.codex/prompts/investigation.md). Copyright stays with the author.
Investigation
以下のドキュメントを起点として調査を行ってください。
このプロンプトは、Android Behavior Changes、AGP、Gradle、Kotlin、NDK、CI、KSP、Compose Compiler などの調査で共通利用する調査手順テンプレートです。
Entry Point
調査対象に応じて、以下の entry point から開始してください。
| Area | Entry Point | 必要に応じて追加で確認する情報 |
|---|---|---|
| Android Behavior Changes | Android Developers の Behavior Changes ページ | Compat Framework、AOSP、API Reference、CTS |
| AGP | AGP Release Notes | Compatibility Matrix、API Reference、Migration Guide、tools/base |
| Gradle | Gradle Release Notes | User Guide、DSL Reference、Upgrade Guide |
| Kotlin | Kotlin What's New | Compatibility Guide、Compiler options、YouTrack、API Reference |
| NDK | NDK Release Notes | NDK Guides、CMake documentation、Issue Tracker |
| CI | CI provider release notes / runner image documentation | runner image changelog、setup action docs、cache docs |
| KSP | KSP Release Notes | Kotlin compatibility、API Reference、Issue Tracker |
| Compose Compiler | Compose Compiler / Kotlin compatibility documentation | Kotlin compatibility map、Release Notes、Issue Tracker |
Release Notes は入口です。 Release Notes だけで調査を完了しないでください。
Entry Point と References は分けて記録してください。
- Entry Point: 調査を開始した公式文書
- References: 調査中に参照したすべての資料
Goal
単なる要約ではなく、以下を整理してください。
- 何が変わったのか
- なぜ変わったのか
- 誰が影響を受けるのか
- 何を確認する必要があるのか
- どのように検証するか
- どのようなアップデート戦略を取るべきか
Investigation Workflow
以下の順序で調査してください。
- 起点ドキュメントを読む
- 変更点を一覧化する
- 変更点ごとに影響範囲を分類する
- 必要な項目のみ一次情報を深掘りする
- 実装レベルで何が変わるか調査する
- 検証方法を整理する
- PR 戦略を考える
Deep Dive Policy
以下の場合のみ追加調査してください。
- Breaking Change
- Deprecated
- Compatibility 変更
- Default 値変更
- DSL 変更
- API 変更
- Build 挙動変更
- Runtime 挙動変更
- Performance 影響
- CI 影響
追加調査しない変更についても、対象外にした理由を短く記録してください。
Entry Point と Evidence Priority
Android Platform と Build System では、調査の入口と結論を支える根拠の優先順位が異なる。
Android Behavior Changes
調査は必ず公式 Behavior Change 文書から開始する。statement の実装条件を検証する根拠は次の順で扱う。
- AOSP source code
- API surface changes (
current.txt) - Android official documentation
- Android release notes
- External articles
AOSP source は公式 statement の検証・説明に必須であり、source diff だけを起点に新しい Behavior Change を作らない。
Build System
Release Notesをentry pointとし、ルートAGENTS.mdのEvidence Hierarchyを唯一の
順序定義として、影響候補だけを深掘りする。このprompt内に別の順序を複製しない。
AOSP / tools/base などの source code は、文書だけでは DSL や build 挙動を判断できない場合、または未記載変更を確認する場合に限る。
References
調査中に参照した公式ドキュメントはすべて記録してください。
最低限、以下を調査レポートへ記載してください。
- Entry Point
- Official References
- Additional References
References は以下の分類で整理してください。
Official Documentation
- Release Notes
- Compatibility Matrix
- Migration Guide
- API Reference
- User Guide / DSL Reference
Source Code
- AOSP
- tools/base
- Gradle source
- Kotlin source
Issue
- Google Issue Tracker
- Gradle issue tracker
- Kotlin YouTrack
- GitHub issues
Validation
- Sample Project
- Production Project
- CI run
- 実機検証
Evidence
事実には必ず根拠となる公式文書を紐付けてください。
Evidence は以下の単位で整理してください。
| Fact | Evidence | Confidence |
|---|---|---|
| High / Medium / Low |
記入例:
| Fact | Evidence | Confidence |
|---|---|---|
| AGP 9.0 requires Gradle 9.1. | AGP Release Notes、Compatibility Matrix | High |
Output
調査結果は、対象に応じて以下のテンプレートへまとめてください。
| Area | Output Template |
|---|---|
| Android Behavior Changes | android<version>/templates/customer-report-template.md |
| Android one-page summary | android<version>/templates/one-page-summary-template.md |
| Android FAQ companion | Use the version-specific FAQ template when present, for example android16/templates/behavior-change-faq-template.md |
| Android implementation examples | Use the version-specific implementation examples template when present, for example android16/templates/implementation-examples-template.md |
| Android runtime behavior comparison | Use the version-specific runtime behavior comparison template when present, for example android16/templates/runtime-behavior-comparison-template.md |
| Android OS version behavior comparison | docs/templates/android-os-version-behavior-comparison-template.md |
| Build System version diff | build-system/templates/version-diff-template.md |
| Build System one-page summary | build-system/templates/one-page-summary-template.md |
| Build System migration checklist | build-system/templates/migration-checklist-template.md |
Behavior Change の対応候補に複数のコード例、framework 別実装例、temporary opt-out の具体例を載せる場合は、primary report へ長いコードを直接集約しない。
version directory に implementation examples template がある場合は、そのテンプレートを使って実装例ファイルを作成し、primary report の「対応候補」には代表的な短い例と実装例ファイルへのリンクを置く。
実装例はAndroid versionにかかわらずandroid<version>/behavior-changes/implementation-examples/へ置き、専用README.mdから索引する。case-guides/はケース選択、カテゴリ別対応手順、挙動ガイドに限定する。
Behavior Change を読む際の用語、前提、処理経路、よくある誤解を複数の質問として整理する場合は、FAQ を primary report と別ファイルにする。 version directory に FAQ template がある場合は、そのテンプレートを使い、primary report には FAQ の位置づけと companion file へのリンクだけを置く。classification、confidence、evidence、Human Decision は primary report を正とする。
複数 API / 実装方式について、実行時刻、callback 選択順、fallback、遅延・lifecycle 復帰後の差を説明する必要がある場合は、version directory の runtime behavior comparison template を使って companion comparison file を作成する。 比較には共通条件、expected timeline / flow、Expected / Observed、実装選択マップ、テスト仕様を含め、primary report の適用条件や根拠を重複して再判定しない。
同じ初期状態と操作が Android OS バージョン間でどう変わるかを説明する場合は、docs/templates/android-os-version-behavior-comparison-template.md を使って companion comparison file を作成する。
比較では baseline / target の OS と AOSP tag、共通条件、状態遷移、OS 差と targetSdkVersion 差、system behavior と app-visible signal、Expected / Observed を分離する。classification、confidence、evidence、Human Decision は primary report を正とする。
Investigation Exit Criteria
以下を満たしたら調査完了としてください。
- 変更内容を説明できる
- 影響範囲を説明できる
- 必要な対応を説明できる
- 検証方法を説明できる
- 一次情報へ辿れる
- Entry Point と References を分けて記録した
- 事実に Evidence と Confidence を紐付けた
- 必要な場合は 1ページサマリを作成した
- 未調査事項があれば明記した
Required Reporting Rules
この調査の目的はリリースノートの要約ではありません。
アップデート時の意思決定に必要な情報を整理し、将来同じ調査を別バージョンでも再現できる品質でまとめてください。
「事実」と「推測」は必ず分けて記載してください。