T09 · Insecure Skill Coding Practices
- Location
handler.py:29- Finding
Unvalidated Sensor Data Produces Fail-Open Physical Safety Guidance
- Content
View full analysis
20: resolution = {"physics_truth": "Transparent Rigid Body (Glass)", "confidence": 0.98} elif state["semantic_label"] == "wall" and state["obstacle_distance_m"] > 3.0: resolution = {"physics_truth": "Visual Illusion / Hologram / Poster", "confidence": 0.95} if state["contact_force_n"] > 5.0: resolution["interaction"] = f"Physical contact confirmed. Force: {state['contact_force_n']}N." ``` ```python if state["contact_force_n"] > 0: predictions["t+1s"] = "触感反馈稳定,抓取/接触姿态正在保持,静摩擦力建立。" elif truth.get("physics_truth") == "Transparent Rigid Body (Glass)": predictions["t+1s"] = "极度警告:即将与不可见刚体(玻璃)发生物理碰撞,建议立即制动。" if semantics == "human_moving": predictions["t+5s"] = "视觉检测到的人类正在向九宫格 Grid_3 移动,预计将占据该网格生存位。" predictions["t+15s"] = "当前轨迹演化:实体将穿过当前门禁通道。根据雷达与视觉融合,通道内无隐藏障碍物。" ``` The associated trust directive is: ```markdown When Vision (Semantic) and LiDAR (Topology) conflict, trust the fusion engine's `physics_truth` resolution. ``` ### Technical Analysis The handler accepts sensor data wit ...[truncated 3484 chars]- Remediation
View remediation
