REPOSITORY
cwsfa/following-amr-validation Private
[참조 MVP] 추종형 이송로봇 통합검증 — 추종·정지·레일 진입·적재 이송 시나리오를 확인하는 참조 검증 자산입니다.
https://git.agrithing.ai/cwsfa/following-amr-validation.git 33cdd75 feat: 추종형 이송로봇 통합검증 구체 MVP 구현
153f903 ci: add static dynamic and evidence gates
2898f91 feat: add executable institution reference MVP
28e1cdb docs: define product role and interface contract
2 items · feat/concrete-mvp-v2
·/ asw_component/component.py
python · 1.1 KB · 6b033ff Download
from __future__ import annotationsREQUIRED = set(["FOLLOW-01","STOP-01","RAIL-01"])def execute(payload: dict) -> dict: results = [] seen = set() for scenario in payload.get("scenarios", []): scenario_id = str(scenario.get("id", "")) seen.add(scenario_id) actual, limit = float(scenario.get("actual", 0)), float(scenario.get("limit", 0)) operator = scenario.get("operator") passed = actual <= limit if operator == "lte" else actual >= limit if operator == "gte" else False results.append({"id": scenario_id, "actual": actual, "limit": limit, "operator": operator, "passed": passed}) missing = sorted(REQUIRED - seen) passed_count = sum(item["passed"] for item in results) accepted = bool(results) and not missing and passed_count == len(results) return {"component": "cwsfa/following-amr-validation", "accepted": accepted, "status": "VERIFIED" if accepted else "BLOCKED", "target": "validation", "verdict": "PASS" if accepted else "FAIL", "passed": passed_count, "total": len(results), "missingRequired": missing, "results": results}