Files
document-haness/examples/golden/executable-clean-architecture/assets/bootstrap-dependency-guards/bootstrap-dependency-guards.svg
T

88 lines
7.4 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1090" height="515" viewBox="0 0 1090 515" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">bootstrap이 선택한 어댑터를 연결하고 두 검증 게이트가 안쪽 의존을 지킨다</title>
<desc id="diagram-description">가운데 Application Core를 기준으로 왼쪽에는 Inbound adapters와 Input port, 오른쪽에는 Output port와 Outbound adapters가 있다. 어댑터의 모듈 의존은 포트와 코어 쪽을 향한다. 아래의 app-bootstrap은 실제 사용할 양쪽 어댑터를 선택하고 application port에 연결한다. 별도의 두 검증 게이트 중 verifyCleanArchitectureDependencies는 모듈 간 프로젝트 의존을 검사하고 ArchUnit 규칙은 모듈 내부 코드의 금지된 프레임워크 타입 참조를 검사한다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;bootstrap-dependency-guards&quot;,&quot;profile&quot;:&quot;ports-adapters&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;/home/donghyeon/workspace/ai-tool/topic-arrange/executable-clean-architecture/claridoc-rewrite/document.md&quot;,&quot;document_sha256&quot;:&quot;04fbab095d33d301746c34f7cca305730919bad3c341bcf63b8ad3ee3b396d31&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;marker&quot;,&quot;value&quot;:&quot;bootstrap-dependency-guards&quot;,&quot;line&quot;:342}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" />
</marker>
<style>
:root { color-scheme: light; }
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
.canvas { fill: #ffffff; }
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
.group-label-bg { fill: #ffffff; }
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
.edge.style-dotted { stroke-dasharray: 2 5; }
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.edge.emphasis-muted { stroke: #9ca3af; }
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
.edge-label-bg { fill: #ffffff; }
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
.node-shape.assumption { stroke-dasharray: 4 4; }
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
.controller-led { fill: #4b5563; }
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
.node-detail { font-size: 11px; fill: #374151; }
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
</style>
</defs>
<rect class="canvas" width="1090" height="515" />
<polyline class="edge kind-validation style-dashed emphasis-normal" points="615.0,417.5 517.5,417.5 517.5,259.0 420.0,259.0" data-evidence="338-338,340-340" />
<rect class="edge-label-bg" x="519.5" y="324.2" width="44.0" height="22" rx="3" />
<text class="edge-label" x="541.5" y="339.2">적용</text>
<polyline class="edge kind-dependency style-solid emphasis-primary" points="255.0,117.0 337.5,117.0 337.5,241.0 420.0,241.0" data-evidence="322-328,340-340" />
<rect class="edge-label-bg" x="335.8" y="165.0" width="51.5" height="22" rx="3" />
<text class="edge-label" x="361.5" y="180.0">입력 호출</text>
<polyline class="edge kind-dependency style-solid emphasis-primary" points="935.0,149.0 935.0,361.0 535.0,361.0 535.0,315.0" data-evidence="311-311,340-340" />
<rect class="edge-label-bg" x="762.1" y="319.0" width="111.8" height="22" rx="3" />
<text class="edge-label" x="818.0" y="334.0">Output Port 구현</text>
<g id="node-application-core">
<polygon class="node-shape kind-domain emphasis-primary role-core" data-evidence="290-291,298-299,311-311" points="454.0,185.0 616.0,185.0 650.0,250.0 616.0,315.0 454.0,315.0 420.0,250.0" />
<text class="node-role" x="535.0" y="204.0">«core»</text>
<text class="node-label" x="535.0" y="240.0">Application Core</text>
<line class="node-detail-divider" x1="434.0" y1="261.0" x2="636.0" y2="261.0" />
<text class="node-detail" x="436.0" y="278.0">Use cases · Input / Output Ports</text>
</g>
<g id="node-inbound-adapters">
<rect class="node-shape kind-adapter emphasis-normal role-inbound-adapter" data-evidence="293-293,315-322,331-333" x="45.0" y="85.0" width="210.0" height="64.0" rx="7" />
<text class="node-role" x="150.0" y="104.0">«inbound-adapter»</text>
<text class="node-label" x="150.0" y="131.0">Inbound adapters</text>
</g>
<g id="node-outbound-adapters">
<rect class="node-shape kind-adapter emphasis-normal role-outbound-adapter" data-evidence="294-295,302-311,331-334" x="825.0" y="85.0" width="220.0" height="64.0" rx="7" />
<text class="node-role" x="935.0" y="104.0">«outbound-adapter»</text>
<text class="node-label" x="935.0" y="131.0">Outbound adapters</text>
</g>
<g id="node-assembly-enforcement">
<rect class="node-shape kind-governance emphasis-normal" data-evidence="292-292,338-338,340-340" x="420.0" y="365.0" width="195.0" height="105.0" rx="7" />
<text class="node-label" x="517.5" y="392.0">Assembly &amp; guards</text>
<line class="node-detail-divider" x1="434.0" y1="413.0" x2="601.0" y2="413.0" />
<text class="node-detail" x="436.0" y="430.0">RUNTIME · adapter 선택·연결</text>
<text class="node-detail" x="436.0" y="446.0">BUILD · 모듈 의존 검사</text>
<text class="node-detail" x="436.0" y="462.0">TEST · 금지 타입 참조 검사</text>
</g>
</svg>