설계 개편

This commit is contained in:
DongHyeonka
2026-07-24 16:31:12 +09:00
parent f43e909162
commit 8daa568746
70 changed files with 6554 additions and 956 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1106" height="375" viewBox="0 0 1106 375" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">orchestrator-workers runtime fixture</title>
<desc id="diagram-description">This fixture validates the node roles, edges, and layout rules of the orchestrator-workers profile.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;orchestrator-workers&quot;,&quot;profile&quot;:&quot;orchestrator-workers&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;examples/runtime-profiles/fixture.md&quot;,&quot;document_sha256&quot;:&quot;0000000000000000000000000000000000000000000000000000000000000000&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;line&quot;,&quot;value&quot;:1,&quot;line&quot;:1}},&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="1106" height="375" />
<polyline class="edge kind-request style-solid emphasis-normal" points="379.0,109.0 379.0,157.0 157.5,157.0 157.5,205.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="232.4" y="115.0" width="71.6" height="22" rx="3" />
<text class="edge-label" x="268.2" y="130.0">dispatch</text>
<polyline class="edge kind-notification style-dashed emphasis-normal semantic-dashed" points="1015.0,267.5 1061.0,267.5 1061.0,72.0 775.0,72.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="989.5" y="30.0" width="98.4" height="22" rx="3" />
<text class="edge-label" x="1038.8" y="45.0">notification</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="415.0,109.0 415.0,157.0 637.5,157.0 637.5,205.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="500.5" y="115.0" width="51.5" height="22" rx="3" />
<text class="edge-label" x="526.2" y="130.0">spawn</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="397.0,109.0 397.0,157.0 397.5,157.0 397.5,205.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="361.4" y="115.0" width="71.6" height="22" rx="3" />
<text class="edge-label" x="397.2" y="130.0">spawn ×2</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="637.5,315.0 637.5,260.0 932.0,260.0 932.0,205.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="755.6" y="218.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="784.8" y="233.0">stdout</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="397.5,315.0 397.5,260.0 878.0,260.0 878.0,205.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="608.6" y="218.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="637.8" y="233.0">stdout</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="451.0,109.0 451.0,157.0 914.0,157.0 914.0,205.0" data-evidence="1-1" />
<rect class="edge-label-bg" x="643.4" y="171.0" width="78.3" height="22" rx="3" />
<text class="edge-label" x="682.5" y="186.0">subscribe</text>
<g id="node-main">
<rect class="node-shape kind-service emphasis-primary role-orchestrator" data-evidence="1-1" x="55.0" y="35.0" width="720.0" height="74.0" rx="5" /><line class="controller-divider" x1="55.0" y1="60.2" x2="775.0" y2="60.2" /><line class="controller-divider" x1="55.0" y1="84.6" x2="775.0" y2="84.6" /><rect class="controller-led" x="68.0" y="43.6" width="8" height="8" rx="1" /><rect class="controller-led" x="68.0" y="68.0" width="8" height="8" rx="1" /><rect class="controller-led" x="68.0" y="92.4" width="8" height="8" rx="1" />
<text class="node-role" x="415.0" y="54.0">«orchestrator»</text>
<text class="node-label" x="415.0" y="81.0">MAIN SESSION</text>
<line class="node-detail-divider" x1="69.0" y1="102.0" x2="761.0" y2="102.0" />
<text class="node-detail" x="71.0" y="119.0">context + logic</text>
</g>
<g id="node-agents">
<rect class="node-shape kind-service emphasis-normal role-worker" data-evidence="1-1" x="55.0" y="205.0" width="205.0" height="110.0" rx="7" />
<text class="node-role" x="157.5" y="224.0">«worker»</text>
<text class="node-label" x="157.5" y="251.0">SUBAGENTS × N</text>
<line class="node-detail-divider" x1="69.0" y1="272.0" x2="246.0" y2="272.0" />
<text class="node-detail" x="71.0" y="289.0">client RPS · latency</text>
<text class="node-detail" x="71.0" y="305.0">server RPS · latency</text>
<text class="node-detail" x="71.0" y="321.0">JVM heap · GC</text>
</g>
<g id="node-stream">
<rect class="node-shape kind-process emphasis-normal role-subprocess" data-evidence="1-1" x="295.0" y="205.0" width="205.0" height="110.0" rx="7" />
<text class="node-role" x="397.5" y="224.0">«subprocess»</text>
<text class="node-label" x="397.5" y="251.0">BACKGROUND BASH</text>
<line class="node-detail-divider" x1="309.0" y1="272.0" x2="486.0" y2="272.0" />
<text class="node-detail" x="311.0" y="289.0">tail -f ...</text>
</g>
<g id="node-poll">
<rect class="node-shape kind-process emphasis-normal role-subprocess" data-evidence="1-1" x="535.0" y="205.0" width="205.0" height="110.0" rx="7" />
<text class="node-role" x="637.5" y="224.0">«subprocess»</text>
<text class="node-label" x="637.5" y="251.0">POLLING BASH</text>
<line class="node-detail-divider" x1="549.0" y1="272.0" x2="726.0" y2="272.0" />
<text class="node-detail" x="551.0" y="289.0">until &lt;cond&gt;; sleep N</text>
</g>
<g id="node-monitor">
<rect class="node-shape kind-service emphasis-normal role-monitor" data-evidence="1-1" x="795.0" y="205.0" width="220.0" height="125.0" rx="5" /><line class="controller-divider" x1="795.0" y1="247.5" x2="1015.0" y2="247.5" /><line class="controller-divider" x1="795.0" y1="288.8" x2="1015.0" y2="288.8" /><rect class="controller-led" x="808.0" y="222.2" width="8" height="8" rx="1" /><rect class="controller-led" x="808.0" y="263.5" width="8" height="8" rx="1" /><rect class="controller-led" x="808.0" y="304.8" width="8" height="8" rx="1" />
<text class="node-label" x="905.0" y="249.5">MONITOR</text>
<line class="node-detail-divider" x1="809.0" y1="270.5" x2="1001.0" y2="270.5" />
<text class="node-detail" x="811.0" y="287.5">stdout 수신</text>
<text class="node-detail" x="811.0" y="303.5">이벤트 알림</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB

@@ -0,0 +1,226 @@
{
"version": "1.1",
"id": "orchestrator-workers",
"title": "orchestrator-workers runtime fixture",
"question": "Does the orchestrator-workers logical composition render correctly?",
"type": "architecture",
"direction": "TB",
"audience": [
"renderer maintainer"
],
"summary": "Executable orchestrator-workers fixture.",
"alt": "Executable technical diagram fixture for the orchestrator-workers composition profile.",
"long_description": "This fixture validates the node roles, edges, and layout rules of the orchestrator-workers profile.",
"source_context": {
"document": "examples/runtime-profiles/fixture.md",
"document_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
"anchor": {
"kind": "line",
"value": 1,
"line": 1
}
},
"composition": {
"profile": "orchestrator-workers",
"diagram_only": true,
"reference_ids": [
"mission-workers"
],
"rationale": "Runtime regression fixture for orchestrator-workers.",
"focus_node": "main"
},
"groups": [],
"nodes": [
{
"id": "main",
"label": "MAIN SESSION",
"kind": "service",
"role": "orchestrator",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false,
"shape": "controller",
"emphasis": "primary",
"details": [
"context + logic"
]
},
{
"id": "agents",
"label": "SUBAGENTS × N",
"kind": "service",
"role": "worker",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false,
"details": [
"client RPS · latency",
"server RPS · latency",
"JVM heap · GC"
]
},
{
"id": "stream",
"label": "BACKGROUND BASH",
"kind": "process",
"role": "subprocess",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false,
"details": [
"tail -f ..."
]
},
{
"id": "poll",
"label": "POLLING BASH",
"kind": "process",
"role": "subprocess",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false,
"details": [
"until <cond>; sleep N"
]
},
{
"id": "monitor",
"label": "MONITOR",
"kind": "service",
"role": "monitor",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false,
"shape": "controller",
"details": [
"stdout 수신",
"이벤트 알림"
]
}
],
"edges": [
{
"id": "dispatch",
"from": "main",
"to": "agents",
"label": "dispatch",
"kind": "request",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false
},
{
"id": "spawn-stream",
"from": "main",
"to": "stream",
"label": "spawn ×2",
"kind": "request",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false
},
{
"id": "spawn-poll",
"from": "main",
"to": "poll",
"label": "spawn",
"kind": "request",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false
},
{
"id": "subscribe",
"from": "main",
"to": "monitor",
"label": "subscribe",
"kind": "request",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false
},
{
"id": "stdout-stream",
"from": "stream",
"to": "monitor",
"label": "stdout",
"kind": "request",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false
},
{
"id": "stdout-poll",
"from": "poll",
"to": "monitor",
"label": "stdout",
"kind": "request",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false
},
{
"id": "notify",
"from": "monitor",
"to": "main",
"label": "notification",
"kind": "notification",
"evidence": [
{
"start_line": 1,
"end_line": 1
}
],
"assumption": false,
"style": "dashed"
}
],
"legend": [],
"metadata": {
"fixture": true
}
}