docs(device): 取り消せる操作の待ちは stop で戻す契約を書く #1479
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.45) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 307 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.343
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1479"
general
weight: 0.35
cursor[bot]
Summary
#1451 の 1 つ目(docs)。device-bridge-contracts §11 に従い、続く bluetooth-le・tts の修正より先に契約を入れる。
bluetooth-le の走査と tts の発話は OS 側の処理を取り消せるため、§8.2 の begin / poll / discard ではなく、既存の停止の入口(
stop_shared_scan・Tts::stop)で同期の入口の待ちを戻す。期限は置かない(走査には権限ダイアログの応答待ちが入り、発話には長さの上限がない)。contract.rsに「待ちを戻す」節(走査開始後は各 OS の自前タイマーで必ず完了、開始前とアダプタの取得・停止の確認には期限がなく別スレッドからのstop_shared_scanでCancelled)Tts::stopの doc(Okの後は止める前の発話のwait_outcomeが戻る)main に今ある挙動だけを現在形で書き、まだ無い分(画面の走査を同じ呼び出しで終わらせる、iOS・Android の stop で
wait_outcomeを戻す)は「#1451 で入れる」と明記した。コードは変えない。Test plan
cargo fmt --all -- --check・cargo clippy --workspace --all-targets -- -D warningsbuild-capabilities.mjs --check・migrate-capability.mjs sync --check・node --test scripts/device/*.test.mjsRefs #1451
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->