asw_component/__init__.py +3−0 View file@@ -0,0 +1,3 @@
1 +
from .component import execute 2 +
3 +
__all__ = ["execute"][참조 MVP] 추종형 이송로봇 통합검증 — 추종·정지·레일 진입·적재 이송 시나리오를 확인하는 참조 검증 자산입니다.
https://git.agrithing.ai/cwsfa/following-amr-validation.git 33cdd75 153f903 2898f91 28e1cdb 2898f911b80f98d5f0020b25f73173f2474e33b2 asw_component/__init__.py +3−0 View filefrom .component import execute__all__ = ["execute"]asw_component/component.py +9−0 View filefrom __future__ import annotationsdef execute(payload: dict) -> dict: scenarios = payload.get("scenarios", []) results = [{"id": item["id"], "passed": bool(item.get("passed"))} for item in scenarios] passed = sum(item["passed"] for item in results) accepted = bool(results) and passed == len(results) return {"component": "cwsfa/following-amr-validation", "accepted": accepted, "status": "READY" if accepted else "BLOCKED", "verdict": "PASS" if accepted else "FAIL", "passed": passed, "total": len(results), "results": results}examples/input.json +16−0 View file{ "scenarios": [ { "id": "FOLLOW-01", "passed": true }, { "id": "STOP-01", "passed": true }, { "id": "RAIL-01", "passed": true } ]}pyproject.toml +5−0 View file[project]name = "following-amr-validation"version = "0.1.0"description = "추종·정지·레일 진입·적재 이송 시나리오를 확인하는 참조 검증 자산입니다."requires-python = ">=3.11"run.py +9−0 View filefrom __future__ import annotationsimport jsonimport sysfrom asw_component import executepath = sys.argv[1] if len(sys.argv) > 1 else Nonewith open(path, encoding="utf-8") if path else sys.stdin as source: payload = json.load(source)print(json.dumps(execute(payload), ensure_ascii=False, indent=2))