docs(keycloak-session-store): take the sentences out of the diagram canvases

The skill says drawings carry names and sentences go in <desc> and the
paragraph beside the figure. I put sentences in node details and edge labels
instead, and 27 of the 28 diagrams shipped with prose inside the canvas —
"예측 다섯 개가 틀렸다", "아홉 번 조용히 실패했다", "막혀서 닿지 않는다".

Only label and details render on the canvas; description does not. So every
sentence moved to a noun phrase and the meaning stays in description, which
was already carrying it.

  막혀서 닿지 않는다              -> 차단
  아홉 번 조용히 실패했다         -> 조용한 실패 9건
  예측 다섯 개가 틀렸다           -> 틀린 예측 5건
  로그아웃이 정리하지 않는다      -> 로그아웃 미정리
  볼륨이 없으면 여기까지다        -> 볼륨 없음

Three node labels were sentences too and became names: 세션 스냅샷, 예측
선기록, 대조군 확보.

What stays is what the rules protect — identifiers, commands and measured
values: PRIMARY KEY (client_registration_id, principal_name),
ValidationFailedException: 1 changesets check sum, nginx -t && nginx -s
reload, SET LOCAL synchronous_commit TO OFF. Those are names of things, not
prose about them.

294 canvas strings across 28 diagrams, none matching a sentence ending,
average 11 characters. All 28 still lint clean and re-rendered.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
DongHyeonka
2026-09-05 11:50:33 +09:00
co-authored by Claude Opus 5
parent 75bed382c8
commit 95c0e680b5
221 changed files with 1156 additions and 1152 deletions
@@ -18,5 +18,5 @@
## Relationships
- **keycloak-0 → TCP 7800:** 무효화 통지. Evidence: L186L190.
- **keycloak-1 → PostgreSQL:** 세션은 여기서 읽는다 — 7800 과 무관. Evidence: L186L189.
- **TCP 7800 → keycloak-1:** 막혀서 닿지 않는다. Evidence: L186L190.
- **keycloak-1 → PostgreSQL:** 세션 SELECT. Evidence: L186L189.
- **TCP 7800 → keycloak-1:** 차단. Evidence: L186L190.
@@ -14,5 +14,5 @@ n3: "PostgreSQL" {
shape: cylinder
}
n0 -> n1: "무효화 통지"
n1 -> n2: "막혀서 닿지 않는다"
n2 -> n3: "세션은 여기서 읽는다 — 7800 과 무관"
n1 -> n2: "차단"
n2 -> n3: "세션 SELECT"
@@ -7,6 +7,6 @@ digraph techviz {
n2 [label="keycloak-1", shape=box, style="rounded,filled"];
n3 [label="PostgreSQL", shape=cylinder, style="rounded,filled"];
n0 -> n1 [label="무효화 통지", style=solid];
n1 -> n2 [label="막혀서 닿지 않는다", style=solid];
n2 -> n3 [label="세션은 여기서 읽는다 — 7800 과 무관", style=solid];
n1 -> n2 [label="차단", style=solid];
n2 -> n3 [label="세션 SELECT", style=solid];
}
@@ -6,30 +6,30 @@
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="n_k0" value="keycloak-0" tooltip="로그아웃을 처리한 노드. | Evidence: L183-L189" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="92.5" y="60.0" width="150.0" height="64.0" as="geometry"/>
<mxGeometry x="82.0" y="60.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_transport" value="TCP 7800&lt;br/&gt;8080·9000 만 열고 누락시킨다" tooltip="무효화 통지가 지나는 길. NetworkPolicy 로 막았다. | Evidence: L191-L196" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#d97706;fillColor=#fffdf5;" vertex="1" parent="1">
<mxGeometry x="80.5" y="220.0" width="174.0" height="71.0" as="geometry"/>
<mxCell id="n_transport" value="TCP 7800&lt;br/&gt;허용 포트 8080 · 9000" tooltip="무효화 통지가 지나는 길. NetworkPolicy 로 막았다. | Evidence: L191-L196" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#d97706;fillColor=#fffdf5;" vertex="1" parent="1">
<mxGeometry x="80.5" y="220.0" width="153.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_k1" value="keycloak-1&lt;br/&gt;400 이어야 할 refresh 가 200" tooltip="통지를 못 받아 세션이 죽은 것을 모른다. | Evidence: L183-L189" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="70.0" y="387.0" width="195.0" height="71.0" as="geometry"/>
<mxCell id="n_k1" value="keycloak-1&lt;br/&gt;refresh 200 (기대 400)" tooltip="통지를 못 받아 세션이 죽은 것을 모른다. | Evidence: L183-L189" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="70.0" y="387.0" width="174.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_db" value="PostgreSQL&lt;br/&gt;교차 노드 refresh 200" tooltip="세션이 여기 있어 7800 과 무관하다. | Evidence: L186-L190" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;shape=cylinder3;boundedLbl=1;backgroundOutline=1;fillColor=#eef6fb;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="91.0" y="554.0" width="153.0" height="97.0" as="geometry"/>
<mxGeometry x="80.5" y="554.0" width="153.0" height="97.0" as="geometry"/>
</mxCell>
<mxCell id="e_k0-t" value="무효화 통지" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_k0" target="n_transport">
<mxGeometry relative="1" as="geometry">
<mxPoint x="191.5" y="172.0" as="offset"/>
<mxPoint x="181.0" y="172.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_k1-db" value="세션은 여기서 읽는다 — 7800 과 무관" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_k1" target="n_db">
<mxCell id="e_k1-db" value="세션 SELECT" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_k1" target="n_db">
<mxGeometry relative="1" as="geometry">
<mxPoint x="191.5" y="506.0" as="offset"/>
<mxPoint x="181.0" y="506.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_t-k1" value="막혀서 닿지 않는다" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_transport" target="n_k1">
<mxCell id="e_t-k1" value="차단" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_transport" target="n_k1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="191.5" y="339.0" as="offset"/>
<mxPoint x="181.0" y="339.0" as="offset"/>
</mxGeometry>
</mxCell>
</root>
@@ -6,7 +6,7 @@
{
"id": "edge-k0-t",
"type": "arrow",
"x": 167.5,
"x": 157.0,
"y": 124.0,
"width": 0.0,
"height": 96.0,
@@ -66,7 +66,7 @@
{
"id": "edge-label-k0-t",
"type": "text",
"x": 146.5,
"x": 136.0,
"y": 160.0,
"width": 90,
"height": 24,
@@ -105,7 +105,7 @@
{
"id": "edge-k1-db",
"type": "arrow",
"x": 167.5,
"x": 157.0,
"y": 458.0,
"width": 0.0,
"height": 96.0,
@@ -165,9 +165,9 @@
{
"id": "edge-label-k1-db",
"type": "text",
"x": 99.5,
"x": 136.0,
"y": 494.0,
"width": 184,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -193,18 +193,18 @@
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "세션은 여기서 읽는다 — 7800 과 무관",
"text": "세션 SELECT",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "세션은 여기서 읽는다 — 7800 과 무관",
"originalText": "세션 SELECT",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-t-k1",
"type": "arrow",
"x": 167.5,
"x": 157.0,
"y": 291.0,
"width": 0.0,
"height": 96.0,
@@ -264,7 +264,7 @@
{
"id": "edge-label-t-k1",
"type": "text",
"x": 146.5,
"x": 136.0,
"y": 327.0,
"width": 90,
"height": 24,
@@ -292,18 +292,18 @@
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "막혀서 닿지 않는다",
"text": "차단",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "막혀서 닿지 않는다",
"originalText": "차단",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-k0",
"type": "rectangle",
"x": 92.5,
"x": 82.0,
"y": 60.0,
"width": 150.0,
"height": 64.0,
@@ -333,7 +333,7 @@
{
"id": "node-label-k0",
"type": "text",
"x": 102.5,
"x": 92.0,
"y": 70.0,
"width": 130.0,
"height": 44.0,
@@ -374,7 +374,7 @@
"type": "rectangle",
"x": 80.5,
"y": 220.0,
"width": 174.0,
"width": 153.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -404,7 +404,7 @@
"type": "text",
"x": 90.5,
"y": 230.0,
"width": 154.0,
"width": 133.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -430,11 +430,11 @@
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "TCP 7800\n8080·9000 만 열고 누락시킨다",
"text": "TCP 7800\n허용 포트 8080 · 9000",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "TCP 7800\n8080·9000 만 열고 누락시킨다",
"originalText": "TCP 7800\n허용 포트 8080 · 9000",
"autoResize": true,
"lineHeight": 1.25
},
@@ -443,7 +443,7 @@
"type": "rectangle",
"x": 70.0,
"y": 387.0,
"width": 195.0,
"width": 174.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -473,7 +473,7 @@
"type": "text",
"x": 80.0,
"y": 397.0,
"width": 175.0,
"width": 154.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
@@ -499,18 +499,18 @@
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "keycloak-1\n400 이어야 할 refresh 가 200",
"text": "keycloak-1\nrefresh 200 (기대 400)",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "keycloak-1\n400 이어야 할 refresh 가 200",
"originalText": "keycloak-1\nrefresh 200 (기대 400)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-db",
"type": "rectangle",
"x": 91.0,
"x": 80.5,
"y": 554.0,
"width": 153.0,
"height": 97.0,
@@ -540,7 +540,7 @@
{
"id": "node-label-db",
"type": "text",
"x": 101.0,
"x": 90.5,
"y": 564.0,
"width": 133.0,
"height": 77.0,
@@ -2,7 +2,7 @@
"harness_version": "0.2.0",
"spec_id": "a1-transport-vs-discovery",
"spec_version": "1.1",
"spec_sha256": "af42cd905290687548b620849f1e143752f9ab346de4de352701256cc6657e32",
"spec_sha256": "f54cae81276a31a8b73961148cadf3ae5cd256bdc38a9c002997fce63c243ebf",
"source_context": {
"document": "docs/keycloak-session-store/final/document.md",
"document_sha256": "1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe",
@@ -6,5 +6,5 @@ flowchart TB
n2["keycloak-1"]
n3[("PostgreSQL")]
n0 -->|"무효화 통지"| n1
n1 -->|"막혀서 닿지 않는다"| n2
n2 -->|"세션은 여기서 읽는다 — 7800 과 무관"| n3
n1 -->|"차단"| n2
n2 -->|"세션 SELECT"| n3
@@ -50,35 +50,35 @@
</style>
</defs>
<rect class="canvas" width="680" height="696" />
<polyline class="edge kind-request style-solid emphasis-normal" points="167.5,124.0 167.5,172.0 167.5,172.0 167.5,220.0" data-evidence="186-190" />
<rect class="edge-label-bg" x="162.4" y="158.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="191.5" y="173.0">무효화 통지</text>
<polyline class="edge kind-read style-solid emphasis-normal" points="167.5,458.0 167.5,506.0 167.5,506.0 167.5,554.0" data-evidence="186-189" />
<rect class="edge-label-bg" x="105.5" y="492.0" width="172.1" height="22" rx="3" />
<text class="edge-label" x="191.5" y="507.0">세션은 여기서 읽는다 — 7800 과 무관</text>
<polyline class="edge kind-blocked style-solid emphasis-normal" points="167.5,291.0 167.5,339.0 167.5,339.0 167.5,387.0" data-evidence="186-190" />
<rect class="edge-label-bg" x="149.0" y="325.0" width="85.0" height="22" rx="3" />
<text class="edge-label" x="191.5" y="340.0">막혀서 닿지 않는다</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="157.0,124.0 157.0,172.0 157.0,172.0 157.0,220.0" data-evidence="186-190" />
<rect class="edge-label-bg" x="151.9" y="158.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="181.0" y="173.0">무효화 통지</text>
<polyline class="edge kind-read style-solid emphasis-normal" points="157.0,458.0 157.0,506.0 157.0,506.0 157.0,554.0" data-evidence="186-189" />
<rect class="edge-label-bg" x="141.8" y="492.0" width="78.3" height="22" rx="3" />
<text class="edge-label" x="181.0" y="507.0">세션 SELECT</text>
<polyline class="edge kind-blocked style-solid emphasis-normal" points="157.0,291.0 157.0,339.0 157.0,339.0 157.0,387.0" data-evidence="186-190" />
<rect class="edge-label-bg" x="159.0" y="325.0" width="44.0" height="22" rx="3" />
<text class="edge-label" x="181.0" y="340.0">차단</text>
<g id="node-k0">
<rect class="node-shape kind-service emphasis-primary role-source" data-evidence="183-189" x="92.5" y="60.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="167.5" y="90.0">keycloak-0</text>
<rect class="node-shape kind-service emphasis-primary role-source" data-evidence="183-189" x="82.0" y="60.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="157.0" y="90.0">keycloak-0</text>
</g>
<g id="node-transport">
<rect class="node-shape kind-channel emphasis-warning role-control" data-evidence="191-196" x="80.5" y="220.0" width="174.0" height="71.0" rx="7" />
<text class="node-label" x="167.5" y="247.0">TCP 7800</text>
<line class="node-detail-divider" x1="94.5" y1="268.0" x2="240.5" y2="268.0" />
<text class="node-detail" x="96.5" y="285.0">8080·9000 만 열고 누락시킨다</text>
<rect class="node-shape kind-channel emphasis-warning role-control" data-evidence="191-196" x="80.5" y="220.0" width="153.0" height="71.0" rx="7" />
<text class="node-label" x="157.0" y="247.0">TCP 7800</text>
<line class="node-detail-divider" x1="94.5" y1="268.0" x2="219.5" y2="268.0" />
<text class="node-detail" x="96.5" y="285.0">허용 포트 8080 · 9000</text>
</g>
<g id="node-k1">
<rect class="node-shape kind-service emphasis-primary role-target" data-evidence="183-189" x="70.0" y="387.0" width="195.0" height="71.0" rx="7" />
<text class="node-label" x="167.5" y="414.0">keycloak-1</text>
<line class="node-detail-divider" x1="84.0" y1="435.0" x2="251.0" y2="435.0" />
<text class="node-detail" x="86.0" y="452.0">400 이어야 할 refresh 가 200</text>
<rect class="node-shape kind-service emphasis-primary role-target" data-evidence="183-189" x="70.0" y="387.0" width="174.0" height="71.0" rx="7" />
<text class="node-label" x="157.0" y="414.0">keycloak-1</text>
<line class="node-detail-divider" x1="84.0" y1="435.0" x2="230.0" y2="435.0" />
<text class="node-detail" x="86.0" y="452.0">refresh 200 (기대 400)</text>
</g>
<g id="node-db">
<rect class="node-shape kind-datastore emphasis-primary role-store" data-evidence="186-190" x="91.0" y="567.0" width="153.0" height="71.0" /><ellipse class="node-shape kind-datastore emphasis-primary role-store" cx="167.5" cy="567.0" rx="76.5" ry="13.0" /><path class="storage-bottom" d="M 91.0 638.0 A 76.5 13.0 0 0 0 244.0 638.0" />
<text class="node-label" x="167.5" y="594.0">PostgreSQL</text>
<line class="node-detail-divider" x1="105.0" y1="615.0" x2="230.0" y2="615.0" />
<text class="node-detail" x="107.0" y="632.0">교차 노드 refresh 200</text>
<rect class="node-shape kind-datastore emphasis-primary role-store" data-evidence="186-190" x="80.5" y="567.0" width="153.0" height="71.0" /><ellipse class="node-shape kind-datastore emphasis-primary role-store" cx="157.0" cy="567.0" rx="76.5" ry="13.0" /><path class="storage-bottom" d="M 80.5 638.0 A 76.5 13.0 0 0 0 233.5 638.0" />
<text class="node-label" x="157.0" y="594.0">PostgreSQL</text>
<line class="node-detail-divider" x1="94.5" y1="615.0" x2="219.5" y2="615.0" />
<text class="node-detail" x="96.5" y="632.0">교차 노드 refresh 200</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB