feat: 문서 구조 변경 및 tech-visual 스킬 추가

This commit is contained in:
DongHyeonka
2026-09-04 18:20:00 +09:00
parent 43901f0abf
commit 2efb7ee1f2
683 changed files with 61180 additions and 10479 deletions
@@ -0,0 +1,27 @@
# 결정 주소가 게시 시점에 굳어져 방문자가 404 를 만나기까지
## Alternative text
계약, 게시 시점 경로 생성, 저장 테이블, 조회 시점 경로 생성, 방문자, 공개 라우트 여섯 참가자 사이에서 주소가 만들어져 저장되고 방문 시 404 로 끝나는 순서도.
## Long description
위에서 아래로 여섯 번의 이동이 있다. 계약 ProjectDecisionItem 은 공개 주소가 decisions#{slug} 앵커라고 규정한다. 게시 시점의 PublicPaths.forKind 는 그 대신 decisions/{slug} 를 만들어 public_resource_projection 에 저장한다. 조회 시점의 PublicSql.pathOf 가 저장된 주소를 읽고 방문자에게 링크로 내보낸다. 방문자가 그 주소를 요청하면 공개 라우트에는 projects/{slug}/decisions 하나뿐이라 맞는 라우트가 없고 404 가 돌아온다.
## Elements and evidence
- **계약 ProjectDecisionItem** (participant): 공개 주소를 앵커로 규정한 OpenAPI 계약. Evidence: L676L678.
- **PublicPaths.forKind** (participant): 게시할 때 공개 주소를 만드는 코드. Evidence: L677L678.
- **public_resource_projection** (participant): 만들어진 주소가 저장되는 투영 테이블. Evidence: L682L683.
- **PublicSql.pathOf** (participant): 조회할 때 공개 주소를 만드는 코드. Evidence: L677L678.
- **방문자** (actor): 「다음에 읽을 것」 링크를 따라간 사람. Evidence: L670L671.
- **공개 라우트** (participant): 결정에는 상세 화면이 없어 라우트가 하나뿐이다. Evidence: L675L676.
## Relationships
- **계약 ProjectDecisionItem → PublicPaths.forKind:** …/decisions#{slug} 로 규정. Evidence: L676L678.
- **PublicPaths.forKind → public_resource_projection:** …/decisions/{slug} 저장. Evidence: L675L678.
- **public_resource_projection → PublicSql.pathOf:** 저장된 주소 조회. Evidence: L682L683.
- **PublicSql.pathOf → 방문자:** 같은 형태로 링크 전달. Evidence: L677L678.
- **방문자 → 공개 라우트:** …/decisions/{slug} 요청. Evidence: L670L675.
- **공개 라우트 → 방문자:** 404. Evidence: L670L675.
@@ -0,0 +1,27 @@
# 결정 주소가 게시 시점에 굳어져 방문자가 404 를 만나기까지
# Question: 계약은 앵커 주소를 적어 두었는데 방문자는 왜 404 를 만났는가?
direction: down
n0: "계약 ProjectDecisionItem" {
shape: rectangle
}
n1: "PublicPaths.forKind" {
shape: rectangle
}
n2: "public_resource_projection" {
shape: rectangle
}
n3: "PublicSql.pathOf" {
shape: rectangle
}
n4: "방문자" {
shape: person
}
n5: "공개 라우트" {
shape: rectangle
}
n0 -> n1: "…/decisions#{slug} 로 규정"
n1 -> n2: "…/decisions/{slug} 저장"
n2 -> n3: "저장된 주소 조회"
n3 -> n4: "같은 형태로 링크 전달"
n4 -> n5: "…/decisions/{slug} 요청"
n5 -> n4: "404"
@@ -0,0 +1,17 @@
digraph techviz {
graph [rankdir=TB, splines=ortho, nodesep=0.55, ranksep=0.85];
node [fontname=Helvetica, fontsize=11, margin="0.18,0.12", style="rounded,filled", fillcolor=white, color="#2d4357", penwidth=1.5];
edge [fontname=Helvetica, fontsize=10, color="#364b5f", penwidth=1.4, arrowsize=0.75];
n0 [label="계약 ProjectDecisionItem", shape=box, style="rounded,filled"];
n1 [label="PublicPaths.forKind", shape=box, style="rounded,filled"];
n2 [label="public_resource_projection", shape=box, style="rounded,filled"];
n3 [label="PublicSql.pathOf", shape=box, style="rounded,filled"];
n4 [label="방문자", shape=box, style="rounded,dashed,filled"];
n5 [label="공개 라우트", shape=box, style="rounded,filled"];
n0 -> n1 [label="…/decisions#{slug} 로 규정", style=solid];
n1 -> n2 [label="…/decisions/{slug} 저장", style=solid];
n2 -> n3 [label="저장된 주소 조회", style=solid];
n3 -> n4 [label="같은 형태로 링크 전달", style=solid];
n4 -> n5 [label="…/decisions/{slug} 요청", style=solid];
n5 -> n4 [label="404", style=solid];
}
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2026-07-23T00:00:00.000Z" agent="techviz-harness" version="24.7.17" type="device">
<diagram id="decision-path-404" name="결정 주소가 게시 시점에 굳어져 방문자가 404 를 만나기까지">
<mxGraphModel dx="1330" dy="542" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1330" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="n_contract" value="계약 ProjectDecisionItem" tooltip="공개 주소를 앵커로 규정한 OpenAPI 계약. | Evidence: L676-L678" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="45.0" y="35.0" width="188.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_publish-path" value="PublicPaths.forKind&lt;br/&gt;게시 시점" tooltip="게시할 때 공개 주소를 만드는 코드. | Evidence: L677-L678" 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="255.0" y="35.0" width="167.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_projection" value="public_resource_projection" tooltip="만들어진 주소가 저장되는 투영 테이블. | Evidence: L682-L683" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="465.0" y="35.0" width="190.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_read-path" value="PublicSql.pathOf&lt;br/&gt;조회 시점" tooltip="조회할 때 공개 주소를 만드는 코드. | Evidence: L677-L678" 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="675.0" y="35.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_visitor" value="방문자" tooltip="「다음에 읽을 것」 링크를 따라간 사람. | Evidence: L670-L671" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;dashed=1;fillColor=#f5f7fa;" vertex="1" parent="1">
<mxGeometry x="885.0" y="35.0" width="150.0" height="78.0" as="geometry"/>
</mxCell>
<mxCell id="n_public-route" value="공개 라우트&lt;br/&gt;/projects/{slug}/decisions 하나뿐" tooltip="결정에는 상세 화면이 없어 라우트가 하나뿐이다. | Evidence: L675-L676" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="1095.0" y="35.0" width="190.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="e_m1" value="…/decisions#{slug} 로 규정" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_contract" target="n_publish-path">
<mxGeometry relative="1" as="geometry">
<mxPoint x="238.8" y="128.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_m2" value="…/decisions/{slug} 저장" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_publish-path" target="n_projection">
<mxGeometry relative="1" as="geometry">
<mxPoint x="449.2" y="190.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_m3" value="저장된 주소 조회" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_projection" target="n_read-path">
<mxGeometry relative="1" as="geometry">
<mxPoint x="655.0" y="252.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_m4" value="같은 형태로 링크 전달" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_read-path" target="n_visitor">
<mxGeometry relative="1" as="geometry">
<mxPoint x="855.0" y="314.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_m5" value="…/decisions/{slug} 요청" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_visitor" target="n_public-route">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1075.0" y="376.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_m6" value="404" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_public-route" target="n_visitor">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1075.0" y="438.0" as="offset"/>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
@@ -0,0 +1,973 @@
{
"type": "excalidraw",
"version": 2,
"source": "techviz-harness",
"elements": [
{
"id": "edge-m1",
"type": "arrow",
"x": 139.0,
"y": 140.0,
"width": 199.5,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 1391175952,
"version": 1,
"versionNonce": 1697606636,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
199.5,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-contract",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-publish-path",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-m1",
"type": "text",
"x": 146.75,
"y": 116.0,
"width": 184,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 205439938,
"version": 1,
"versionNonce": 479762556,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "…/decisions#{slug} 로 규정",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "…/decisions#{slug} 로 규정",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-m2",
"type": "arrow",
"x": 338.5,
"y": 202.0,
"width": 221.5,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 1592612909,
"version": 1,
"versionNonce": 300451842,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
221.5,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-publish-path",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-projection",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-m2",
"type": "text",
"x": 365.25,
"y": 178.0,
"width": 168,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 774335790,
"version": 1,
"versionNonce": 203462744,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "…/decisions/{slug} 저장",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "…/decisions/{slug} 저장",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-m3",
"type": "arrow",
"x": 560.0,
"y": 264.0,
"width": 190.0,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 986781738,
"version": 1,
"versionNonce": 1446276182,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
190.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-projection",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-read-path",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-m3",
"type": "text",
"x": 610.0,
"y": 240.0,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 79282802,
"version": 1,
"versionNonce": 1904842631,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "저장된 주소 조회",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "저장된 주소 조회",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-m4",
"type": "arrow",
"x": 750.0,
"y": 326.0,
"width": 210.0,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 522855009,
"version": 1,
"versionNonce": 870155517,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
210.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-read-path",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-visitor",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-m4",
"type": "text",
"x": 807.0,
"y": 302.0,
"width": 96,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1255410992,
"version": 1,
"versionNonce": 1365345158,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "같은 형태로 링크 전달",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "같은 형태로 링크 전달",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-m5",
"type": "arrow",
"x": 960.0,
"y": 388.0,
"width": 230.0,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 1867262898,
"version": 1,
"versionNonce": 135793406,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
230.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-visitor",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-public-route",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-m5",
"type": "text",
"x": 991.0,
"y": 364.0,
"width": 168,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1226396936,
"version": 1,
"versionNonce": 1389084094,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "…/decisions/{slug} 요청",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "…/decisions/{slug} 요청",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-m6",
"type": "arrow",
"x": 960.0,
"y": 450.0,
"width": 230.0,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 70953370,
"version": 1,
"versionNonce": 201368227,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
230.0,
0.0
],
[
0.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-public-route",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-visitor",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-m6",
"type": "text",
"x": 1030.0,
"y": 426.0,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 74056664,
"version": 1,
"versionNonce": 1569763366,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "404",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "404",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-contract",
"type": "rectangle",
"x": 45.0,
"y": 35.0,
"width": 188.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 179232308,
"version": 1,
"versionNonce": 606575263,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-contract",
"type": "text",
"x": 55.0,
"y": 45.0,
"width": 168.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 165738200,
"version": 1,
"versionNonce": 285005378,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "계약 ProjectDecisionItem",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "계약 ProjectDecisionItem",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-publish-path",
"type": "rectangle",
"x": 255.0,
"y": 35.0,
"width": 167.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1417710709,
"version": 1,
"versionNonce": 1665911034,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-publish-path",
"type": "text",
"x": 265.0,
"y": 45.0,
"width": 147.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 50338411,
"version": 1,
"versionNonce": 807019191,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "PublicPaths.forKind\n게시 시점",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "PublicPaths.forKind\n게시 시점",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-projection",
"type": "rectangle",
"x": 465.0,
"y": 35.0,
"width": 190.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 999328874,
"version": 1,
"versionNonce": 597714154,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-projection",
"type": "text",
"x": 475.0,
"y": 45.0,
"width": 170.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 953399410,
"version": 1,
"versionNonce": 714619786,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "public_resource_projection",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "public_resource_projection",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-read-path",
"type": "rectangle",
"x": 675.0,
"y": 35.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1926593938,
"version": 1,
"versionNonce": 40129050,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-read-path",
"type": "text",
"x": 685.0,
"y": 45.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1004658553,
"version": 1,
"versionNonce": 1323581357,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "PublicSql.pathOf\n조회 시점",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "PublicSql.pathOf\n조회 시점",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-visitor",
"type": "rectangle",
"x": 885.0,
"y": 35.0,
"width": 150.0,
"height": 78.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1988852071,
"version": 1,
"versionNonce": 853159826,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-visitor",
"type": "text",
"x": 895.0,
"y": 45.0,
"width": 130.0,
"height": 58.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1682004011,
"version": 1,
"versionNonce": 316530528,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "방문자",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "방문자",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-public-route",
"type": "rectangle",
"x": 1095.0,
"y": 35.0,
"width": 190.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 902477841,
"version": 1,
"versionNonce": 1837923212,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-public-route",
"type": "text",
"x": 1105.0,
"y": 45.0,
"width": 170.0,
"height": 51.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 280566903,
"version": 1,
"versionNonce": 21474891,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "공개 라우트\n/projects/{slug}/decisions 하나뿐",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "공개 라우트\n/projects/{slug}/decisions 하나뿐",
"autoResize": true,
"lineHeight": 1.25
}
],
"appState": {
"gridSize": 10,
"viewBackgroundColor": "#ffffff",
"currentItemFontFamily": 5
},
"files": {}
}
@@ -0,0 +1,32 @@
{
"harness_version": "0.2.0",
"spec_id": "decision-path-404",
"spec_version": "1.1",
"spec_sha256": "277ea0b16980c58b052895bdd09c2dcc15aa24b33173785c3b9b37d6888e0daf",
"source_context": {
"document": "document.md",
"document_sha256": "93b9fec4884efa0e6231de07dc27e2b0ac36c9052d3720e28d102d9747ac4f8f",
"anchor": {
"kind": "marker",
"value": "decision-path-404",
"line": 673
}
},
"outputs": [
"decision-path-404.svg",
"decision-path-404.mmd",
"decision-path-404.d2",
"decision-path-404.dot",
"decision-path-404.drawio",
"decision-path-404.excalidraw",
"decision-path-404.alt.md"
],
"lint_issue_count": 0,
"assumption_count": 0,
"assumptions_allowed": false,
"composition_profile": "sequence",
"reference_ids": [
"payment-approval-sequence"
],
"diagram_only": true
}
@@ -0,0 +1,15 @@
%% 결정 주소가 게시 시점에 굳어져 방문자가 404 를 만나기까지
%% question: 계약은 앵커 주소를 적어 두었는데 방문자는 왜 404 를 만났는가?
sequenceDiagram
participant n0 as 계약 ProjectDecisionItem
participant n1 as PublicPaths.forKind
participant n2 as public_resource_projection
participant n3 as PublicSql.pathOf
participant n4 as 방문자
participant n5 as 공개 라우트
n0->>n1: …/decisions#{slug} 로 규정
n1->>n2: …/decisions/{slug} 저장
n2->>n3: 저장된 주소 조회
n3->>n4: 같은 형태로 링크 전달
n4->>n5: …/decisions/{slug} 요청
n5->>n4: 404
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1330" height="542" viewBox="0 0 1330 542" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">결정 주소가 게시 시점에 굳어져 방문자가 404 를 만나기까지</title>
<desc id="diagram-description">위에서 아래로 여섯 번의 이동이 있다. 계약 ProjectDecisionItem 은 공개 주소가 decisions#{slug} 앵커라고 규정한다. 게시 시점의 PublicPaths.forKind 는 그 대신 decisions/{slug} 를 만들어 public_resource_projection 에 저장한다. 조회 시점의 PublicSql.pathOf 가 저장된 주소를 읽고 방문자에게 링크로 내보낸다. 방문자가 그 주소를 요청하면 공개 라우트에는 projects/{slug}/decisions 하나뿐이라 맞는 라우트가 없고 404 가 돌아온다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;decision-path-404&quot;,&quot;profile&quot;:&quot;sequence&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;document.md&quot;,&quot;document_sha256&quot;:&quot;93b9fec4884efa0e6231de07dc27e2b0ac36c9052d3720e28d102d9747ac4f8f&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;marker&quot;,&quot;value&quot;:&quot;decision-path-404&quot;,&quot;line&quot;:673}},&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="1330" height="542" />
<rect class="node-shape kind-participant emphasis-normal role-participant" data-evidence="676-678" x="45.0" y="35.0" width="188.0" height="64.0" rx="7" />
<text class="node-label" x="139.0" y="65.0">계약 ProjectDecisionItem</text>
<line class="lifeline" x1="139.0" y1="99.0" x2="139.0" y2="512.0" />
<rect class="node-shape kind-participant emphasis-warning role-participant" data-evidence="677-678" x="255.0" y="35.0" width="167.0" height="71.0" rx="7" />
<text class="node-label" x="338.5" y="62.0">PublicPaths.forKind</text>
<line class="node-detail-divider" x1="269.0" y1="83.0" x2="408.0" y2="83.0" />
<text class="node-detail" x="271.0" y="100.0">게시 시점</text>
<line class="lifeline" x1="338.5" y1="106.0" x2="338.5" y2="512.0" />
<rect class="node-shape kind-participant emphasis-normal role-participant" data-evidence="682-683" x="465.0" y="35.0" width="190.0" height="64.0" rx="7" />
<text class="node-label" x="560.0" y="65.0">public_resource_projection</text>
<line class="lifeline" x1="560.0" y1="99.0" x2="560.0" y2="512.0" />
<rect class="node-shape kind-participant emphasis-warning role-participant" data-evidence="677-678" x="675.0" y="35.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="750.0" y="62.0">PublicSql.pathOf</text>
<line class="node-detail-divider" x1="689.0" y1="83.0" x2="811.0" y2="83.0" />
<text class="node-detail" x="691.0" y="100.0">조회 시점</text>
<line class="lifeline" x1="750.0" y1="106.0" x2="750.0" y2="512.0" />
<g class="actor-symbol emphasis-normal" data-evidence="670-671"><circle cx="960.0" cy="55.0" r="11.0" /><line x1="960.0" y1="71.0" x2="960.0" y2="74.0" /><line x1="942.0" y1="81.0" x2="978.0" y2="81.0" /><line x1="960.0" y1="74.0" x2="945.0" y2="91.0" /><line x1="960.0" y1="74.0" x2="975.0" y2="91.0" /></g>
<text class="node-label" x="960.0" y="106.0">방문자</text>
<line class="lifeline" x1="960.0" y1="113.0" x2="960.0" y2="512.0" />
<rect class="node-shape kind-participant emphasis-normal role-participant" data-evidence="675-676" x="1095.0" y="35.0" width="190.0" height="71.0" rx="7" />
<text class="node-label" x="1190.0" y="62.0">공개 라우트</text>
<line class="node-detail-divider" x1="1109.0" y1="83.0" x2="1271.0" y2="83.0" />
<text class="node-detail" x="1111.0" y="100.0">/projects/{slug}/decisions 하나뿐</text>
<line class="lifeline" x1="1190.0" y1="106.0" x2="1190.0" y2="512.0" />
<polyline class="edge kind-request style-solid emphasis-normal" points="139.0,140.0 338.5,140.0" data-evidence="676-678" />
<rect class="edge-label-bg" x="142.6" y="114.0" width="192.2" height="22" rx="3" />
<text class="edge-label" x="238.8" y="129.0">1. …/decisions#{slug} 로 규정</text>
<polyline class="edge kind-request style-solid emphasis-warning" points="338.5,202.0 560.0,202.0" data-evidence="675-678" />
<rect class="edge-label-bg" x="359.9" y="176.0" width="178.8" height="22" rx="3" />
<text class="edge-label" x="449.2" y="191.0">2. …/decisions/{slug} 저장</text>
<line class="failure-mark" x1="547.0" y1="189.0" x2="573.0" y2="215.0" />
<line class="failure-mark" x1="573.0" y1="189.0" x2="547.0" y2="215.0" />
<polyline class="edge kind-response style-solid emphasis-normal semantic-dashed" points="560.0,264.0 750.0,264.0" data-evidence="682-683" />
<rect class="edge-label-bg" x="605.8" y="238.0" width="98.4" height="22" rx="3" />
<text class="edge-label" x="655.0" y="253.0">3. 저장된 주소 조회</text>
<polyline class="edge kind-response style-solid emphasis-normal semantic-dashed" points="750.0,326.0 960.0,326.0" data-evidence="677-678" />
<rect class="edge-label-bg" x="795.8" y="300.0" width="118.5" height="22" rx="3" />
<text class="edge-label" x="855.0" y="315.0">4. 같은 형태로 링크 전달</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="960.0,388.0 1190.0,388.0" data-evidence="670-675" />
<rect class="edge-label-bg" x="985.6" y="362.0" width="178.8" height="22" rx="3" />
<text class="edge-label" x="1075.0" y="377.0">5. …/decisions/{slug} 요청</text>
<polyline class="edge kind-response style-solid emphasis-warning semantic-dashed" points="1190.0,450.0 960.0,450.0" data-evidence="670-675" />
<rect class="edge-label-bg" x="1045.9" y="424.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="1075.0" y="439.0">6. 404</text>
<line class="failure-mark" x1="947.0" y1="437.0" x2="973.0" y2="463.0" />
<line class="failure-mark" x1="973.0" y1="437.0" x2="947.0" y2="463.0" />
</svg>

After

Width:  |  Height:  |  Size: 8.9 KiB