Files
trail-mate/docs/models/device-target-capability/model.html
T

2 lines
1.9 KiB
HTML

<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><title>设备目标、能力与权威模型</title><style>:root{color-scheme:dark}body{margin:0;background:#0b1219;color:#e8f2f8;font:15px/1.65 system-ui}main{max-width:980px;margin:auto;padding:28px}header,section{background:#111c26;border:1px solid #294052;border-radius:12px;padding:20px;margin-bottom:16px}h1,h2{margin-top:0}a{color:#70d7ff}code{background:#081018;border-radius:7px;padding:2px 6px}.tag{border:1px solid #426277;border-radius:999px;padding:2px 8px;margin-right:5px}</style></head><body><main class="praxis-model-document" data-praxis-anchor="model:device-target-capability" data-praxis-kind="uml_model" data-praxis-status="confirmed"><header><h1>设备目标、能力与权威模型</h1><p>目标具有什么能力、当前是否可用、资源由谁控制。</p><span class="tag">confirmed</span><span class="tag">4 elements</span></header><section><h2>模型判断</h2><p>代码被编译进目标不等于功能可用。manifest、runtime status 和 authority binding 共同形成产品能力事实。</p><h2>不变量</h2><ol><li>未声明能力默认为不可用。</li><li>同一受控资源只有一个 authority owner。</li><li>不可用和降级携带可诊断原因。</li><li>UI 不用平台宏猜测能力。</li></ol></section><section><h2>领域元素</h2><p><strong>TargetManifestView</strong> — 静态目标契约。</p><p><strong>CapabilityKind / CapabilityStatus</strong> — 能力语言与运行状态。</p><p><strong>AuthorityBinding</strong> — 资源到 owner 的绑定。</p></section><section><h2>源码证据</h2><p><code>modules/core_device/include/device/target_manifest_types.h</code><br><code>modules/core_device/include/device/capability_types.h</code><br><code>modules/core_device/include/device/authority_types.h</code></p><p><a href="capability-resolution.html">下钻:目标能力解析</a></p></section></main></body></html>