{ "version": "1.1", "id": "messaging-admin-api-c06", "title": "타입이 지는 것과 구현이 지는 것", "question": "동시성 계약은 어디서 강제되는가?", "type": "sequence", "direction": "LR", "audience": [ "이 저장소의 구조를 읽는 사람" ], "summary": "이 리프에 실행 코드가 없으므로 동시성 계약은 인터페이스 문서로 표현되고 강제는 구현 리프의 몫이다.", "alt": "호출자가 API 타입에 펜싱 토큰 하한을 묻고 API 타입은 선언만 하며 구현 리프가 오래된 토큰을 거절하는 순서.", "long_description": "SSOT 는 이 리프가 불변 record 와 final 클래스로 이루어지고 실행 코드가 없다고 적는다. 펜싱 토큰 하한 같은 동시성 계약은 인터페이스 문서로 표현되고 오래된 토큰 거절은 구현 리프의 의무다.", "source_context": { "document": "/home/donghyeon/workspace/chat-gpt-container/document-haness/docs/clean-architecture-backend-template/final/document.md", "document_sha256": "8071fe71b3359d9cf60b95909c26c7b50653ce2f22bbc5fcf6988719bb91236d", "anchor": { "kind": "line", "value": 24184, "line": 24184 } }, "composition": { "profile": "sequence", "diagram_only": true, "reference_ids": [ "payment-approval-sequence" ], "rationale": "선언하는 자리와 강제하는 자리가 다르다는 것이 순서로 드러난다.", "focus_node": "api" }, "groups": [], "nodes": [ { "id": "caller", "label": "호출자", "kind": "service", "role": "participant", "evidence": [ { "start_line": 24167, "end_line": 24188 } ], "assumption": false }, { "id": "api", "label": "messaging-admin-api", "kind": "service", "role": "participant", "evidence": [ { "start_line": 24167, "end_line": 24188 } ], "assumption": false, "emphasis": "primary", "details": [ "불변 record 와 final 클래스" ] }, { "id": "impl", "label": "구현 리프", "kind": "service", "role": "participant", "evidence": [ { "start_line": 24167, "end_line": 24190 } ], "assumption": false } ], "edges": [ { "id": "m1", "from": "caller", "to": "api", "label": "펜싱 토큰 전달", "kind": "request", "evidence": [ { "start_line": 24167, "end_line": 24188 } ], "assumption": false, "order": 1 }, { "id": "m2", "from": "api", "to": "caller", "label": "하한 선언만", "kind": "response", "evidence": [ { "start_line": 24167, "end_line": 24188 } ], "assumption": false, "order": 2, "style": "dashed" }, { "id": "m3", "from": "caller", "to": "impl", "label": "같은 토큰 전달", "kind": "request", "evidence": [ { "start_line": 24167, "end_line": 24190 } ], "assumption": false, "order": 3 }, { "id": "m4", "from": "impl", "to": "caller", "label": "오래된 토큰 거절", "kind": "response", "evidence": [ { "start_line": 24167, "end_line": 24190 } ], "assumption": false, "order": 4, "emphasis": "primary" } ], "legend": [], "metadata": {} }