docs(architecture): Android の AR 表示の契約を書く #1703
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 378 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1703"
general
weight: 0.35
cursor[bot]
update・許可・背景・原点)の契約が base に無く、実装の PR で設計と実装が混ざるdocs/architecture/android-ar.mdに Android 固有の決定を書く。後に乗る ar-camera-view の Android(#1571)と共有する所も書くcrates/fandhe-cap-ar/src/contract.rsのまま変えない(Android は同じ座標・三値・守る範囲に合わせる)Summary
com.google.ar:core1.57.0)を AR Optional で使い、checkAvailabilityAsyncがSUPPORTED_INSTALLED以外はUnsupported。導入・更新の画面は出さない(#335 の方針)Sessionは機能 crate の Java のワーカー 1 本にオフスクリーンの EGL を持たせて全部ここで回す(updateは GL コンテキストとテクスチャが要る)TRACKINGから位置と鉛直軸まわりの向きを取り直し、換算は Rust の純関数ar-camera-viewは同じSession・ワーカー・読み取りに映像を足す(8 節)足す依存(実装の本 #1702 で、利用者の承認の後)
| package | 版 | ライセンス | GMS |
| --- | --- | --- | --- |
|
com.google.ar:core| 1.57.0 | ARCore Additional Terms of Service(OSS ではない) | play-services の Gradle 依存は無い。端末に Google Play Services for AR の APK が要り、無い・古い・非対応機はUnsupported|androidx.annotation:annotation1.3.0 だけ(アプリは既に新しい版を解決)。OSV で既知の勧告なし(2026-11-30)Test plan
markdownlint0 件契約表の自己点検
docs のみのため各類型は「該当なし(実装の本 #1702 で点検する)」。設計で先に決めたのは類型 1(許可ダイアログの
onPause)・2(世代・許可の直前の見直し)・3(単調時計)・4(再描画の契機)・5(定数を Rust から渡す・OS の画像を処理の中で閉じる)・6(PAUSEDの位置を出さない)・9(Sessionの閉じる経路を 1 か所に)・11(直列のワーカー)。Closes #1701
Refs #1569
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->