-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenmetadata_usage.html
More file actions
272 lines (266 loc) · 19.3 KB
/
Copy pathopenmetadata_usage.html
File metadata and controls
272 lines (266 loc) · 19.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/png" href="favicon.png">
<title>Synapse-Graph — OpenMetadata</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
:root{--bg:#0a0f1a;--card-bg:rgba(15,25,45,0.85);--muted:#6b8aad;--accent:#60d4ff;--accent2:#3ee1ff;--glow:rgba(62,225,255,0.15)}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes border-glow{0%,100%{border-color:rgba(62,225,255,0.3)}50%{border-color:rgba(62,225,255,0.6)}}
@keyframes scan-line{0%{top:-2px}100%{top:100%}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;background:var(--bg);color:#e6eef8;overflow:hidden}
.video-frame{position:relative;height:100vh;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.video-frame::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,var(--accent2),var(--accent),transparent);animation:scan-line 3s linear infinite;opacity:0.5}
.frame-border{position:absolute;top:12px;left:12px;right:12px;bottom:12px;border:1px solid rgba(62,225,255,0.2);border-radius:8px;pointer-events:none;animation:border-glow 4s ease-in-out infinite}
.scene-label{position:absolute;top:18px;left:18px;background:linear-gradient(135deg,rgba(62,225,255,0.2),rgba(96,212,255,0.1));padding:5px 10px;border-radius:6px;font-size:10px;font-weight:600;color:var(--accent2);letter-spacing:1px}
.card{background:var(--card-bg);backdrop-filter:blur(20px);border:1px solid rgba(62,225,255,0.15);border-radius:14px;padding:18px;max-width:1400px;width:100%;animation:fadeUp .8s ease both;box-shadow:0 20px 60px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,255,255,0.05);display:flex;flex-direction:column;gap:12px}
h1{font-size:24px;font-weight:800;margin:0;background:linear-gradient(135deg,#e6eef8,#60d4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.subtitle{color:var(--muted);font-size:12px;margin:0}
.header-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}
.expand-btn{background:linear-gradient(135deg,rgba(62,225,255,0.2),rgba(96,212,255,0.1));border:1px solid rgba(62,225,255,0.4);color:var(--accent);padding:8px 16px;border-radius:10px;font-size:12px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .2s;flex-shrink:0}
.expand-btn:hover{background:linear-gradient(135deg,rgba(62,225,255,0.3),rgba(96,212,255,0.2));transform:translateY(-2px);box-shadow:0 6px 20px rgba(62,225,255,0.2)}
.main-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1;min-height:0}
.panel{background:rgba(0,20,40,0.5);border:1px solid rgba(62,225,255,0.1);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}
.panel-header{display:flex;justify-content:space-between;align-items:center}
.panel-title{font-size:13px;font-weight:700;color:var(--accent);display:flex;align-items:center;gap:8px}
.panel-icon{width:26px;height:26px;background:linear-gradient(135deg,rgba(62,225,255,0.2),rgba(96,212,255,0.1));border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:14px}
.diagram-wrapper{background:rgba(0,10,20,0.5);border:1px solid rgba(62,225,255,0.1);border-radius:10px;padding:12px;flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
.diagram-svg{width:100%;max-width:420px;height:auto}
.flow-steps{display:flex;flex-direction:column;gap:8px}
.step{display:flex;align-items:flex-start;gap:10px}
.step-num{width:22px;height:22px;background:linear-gradient(135deg,var(--accent2),var(--accent));border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#052034;flex-shrink:0}
.step-content{flex:1}
.step-title{font-size:12px;font-weight:600;color:#e6eef8;margin-bottom:2px}
.step-desc{font-size:10px;color:var(--muted);line-height:1.4}
.tag-demo{display:flex;gap:6px;flex-wrap:wrap}
.tag{background:rgba(62,225,255,0.1);border:1px solid rgba(62,225,255,0.3);color:var(--accent);padding:5px 10px;border-radius:12px;font-size:10px;font-weight:600}
.tag.danger{background:rgba(255,68,68,0.15);border-color:rgba(255,68,68,0.4);color:#ff6666}
.tag.warning{background:rgba(255,200,68,0.15);border-color:rgba(255,200,68,0.4);color:#ffcc44}
.highlight{background:rgba(62,225,255,0.05);border-left:3px solid var(--accent);padding:10px 12px;border-radius:0 8px 8px 0}
.highlight-title{font-size:11px;font-weight:600;color:var(--accent);margin-bottom:3px}
.highlight-text{font-size:10px;color:var(--muted);line-height:1.4}
.key-insight{background:linear-gradient(135deg,rgba(62,225,255,0.15),rgba(96,212,255,0.05));border-radius:10px;padding:10px 14px;border:1px solid rgba(62,225,255,0.2)}
.key-insight-title{font-size:11px;font-weight:700;color:var(--accent);margin-bottom:4px;display:flex;align-items:center;gap:6px}
.key-insight-text{font-size:10px;color:var(--muted);line-height:1.4}
.nav-links{display:flex;gap:10px;justify-content:center;flex-shrink:0}
a.nav{color:var(--accent);text-decoration:none;font-size:11px;padding:6px 14px;border-radius:8px;background:rgba(62,225,255,0.08);border:1px solid rgba(62,225,255,0.2);transition:all .2s ease}
a.nav:hover{background:rgba(62,225,255,0.15);border-color:rgba(62,225,255,0.4)}
.fullscreen-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(10,15,26,0.98);z-index:1000;display:none;flex-direction:column;padding:24px;animation:fadeIn .3s ease}
.fullscreen-overlay.active{display:flex}
.fullscreen-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.fullscreen-title{font-size:16px;font-weight:700;color:var(--accent)}
.close-btn{background:rgba(62,225,255,0.1);border:1px solid rgba(62,225,255,0.3);color:var(--accent);width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.close-btn:hover{background:rgba(62,225,255,0.2);transform:scale(1.1)}
.fullscreen-diagram{flex:1;background:rgba(0,10,20,0.6);border:1px solid rgba(62,225,255,0.2);border-radius:12px;padding:20px;overflow:auto;display:flex;align-items:center;justify-content:center}
.fullscreen-diagram svg{max-width:100%;max-height:100%;width:auto;height:auto}
@media (max-width:1100px) {
.main-layout{grid-template-columns:1fr;gap:12px}
}
@media (max-width:900px) {
.video-frame{padding:16px}
.frame-border{top:8px;left:8px;right:8px;bottom:8px}
.scene-label{top:10px;left:10px;font-size:9px;padding:3px 6px}
.card{padding:14px;border-radius:10px}
h1{font-size:20px}
.header-row{flex-direction:column;align-items:stretch}
.expand-btn{justify-content:center}
.panel{padding:12px}
.nav-links{gap:6px}
a.nav{padding:5px 10px;font-size:10px}
.fullscreen-overlay{padding:16px}
}
@media (max-width:600px) {
.video-frame{padding:8px}
.card{padding:12px;border-radius:8px;gap:10px}
h1{font-size:16px}
.panel{padding:10px}
.panel-title{font-size:12px}
.step-title{font-size:11px}
.step-desc{font-size:10px}
.diagram-wrapper{min-height:200px;padding:8px}
.tag{padding:4px 8px;font-size:9px}
.key-insight{padding:8px 10px}
.key-insight-text{font-size:10px}
.highlight{padding:8px 10px}
.fullscreen-overlay{padding:10px}
.fullscreen-diagram{padding:12px}
}
</style>
</head>
<body>
<div class="video-frame">
<div class="frame-border"></div>
<div class="scene-label">SCENE 04 — GOVERNANCE FLOW</div>
<div class="card">
<div class="header-row">
<div>
<h1>OpenMetadata — Governance Plane</h1>
<p class="subtitle">Mapping AI interpretability artifacts into a familiar metadata control plane</p>
</div>
<button class="expand-btn" onclick="toggleFullscreen()">⛶ Expand Topology</button>
</div>
<div class="main-layout">
<div>
<div class="panel" style="animation:float 4s ease-in-out infinite">
<div class="panel-header">
<div class="panel-title">
<div class="panel-icon">🏗️</div>
Topology Mapping
</div>
</div>
<div class="diagram-wrapper">
<svg class="diagram-svg" viewBox="0 0 420 280" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="150" y="8" width="120" height="38" rx="7" fill="#0a0f1a" stroke="#60d4ff" stroke-width="2"/>
<text x="210" y="32" fill="#e6eef8" font-size="11" text-anchor="middle">Model (Service)</text>
<rect x="150" y="55" width="120" height="38" rx="7" fill="#0a0f1a" stroke="#60d4ff" stroke-width="2"/>
<text x="210" y="79" fill="#e6eef8" font-size="11" text-anchor="middle">Database (Model)</text>
<rect x="150" y="102" width="120" height="38" rx="7" fill="#0a0f1a" stroke="#60d4ff" stroke-width="2"/>
<text x="210" y="126" fill="#e6eef8" font-size="11" text-anchor="middle">Schema (Transformer)</text>
<rect x="50" y="155" width="80" height="32" rx="6" fill="#0a0f1a" stroke="#3ee1ff" stroke-width="2"/>
<text x="90" y="176" fill="#e6eef8" font-size="10" text-anchor="middle">Layer_1</text>
<rect x="170" y="155" width="80" height="32" rx="6" fill="#0a0f1a" stroke="#3ee1ff" stroke-width="2"/>
<text x="210" y="176" fill="#e6eef8" font-size="10" text-anchor="middle">Layer_2</text>
<rect x="290" y="155" width="80" height="32" rx="6" fill="#0a0f1a" stroke="#3ee1ff" stroke-width="2"/>
<text x="330" y="176" fill="#e6eef8" font-size="10" text-anchor="middle">Layer_N</text>
<rect x="30" y="205" width="65" height="28" rx="5" fill="#0a0f1a" stroke="#60d4ff" stroke-width="1.5"/>
<text x="62" y="223" fill="#e6eef8" font-size="9" text-anchor="middle">Head_1</text>
<rect x="110" y="205" width="65" height="28" rx="5" fill="#0a0f1a" stroke="#60d4ff" stroke-width="1.5"/>
<text x="142" y="223" fill="#e6eef8" font-size="9" text-anchor="middle">Head_2</text>
<rect x="190" y="205" width="65" height="28" rx="5" fill="#0a0f1a" stroke="#60d4ff" stroke-width="1.5"/>
<text x="222" y="223" fill="#e6eef8" font-size="9" text-anchor="middle">Head_3</text>
<rect x="290" y="205" width="100" height="38" rx="6" fill="rgba(255,68,68,0.15)" stroke="#ff6666" stroke-width="2"/>
<text x="340" y="220" fill="#ff6666" font-size="10" text-anchor="middle" font-weight="600">DEFECTIVE</text>
<text x="340" y="234" fill="#ff6666" font-size="10" text-anchor="middle" font-weight="600">QUARANTINED</text>
<path d="M210 46 L210 55" stroke="#60d4ff" stroke-width="2"/>
<path d="M210 93 L210 102" stroke="#60d4ff" stroke-width="2"/>
<path d="M210 120 L210 140 L90 155" stroke="#60d4ff" stroke-width="2" fill="none"/>
<path d="M210 120 L210 140 L210 155" stroke="#60d4ff" stroke-width="2" fill="none"/>
<path d="M210 120 L210 140 L330 155" stroke="#60d4ff" stroke-width="2" fill="none"/>
<path d="M90 187 L90 205" stroke="#60d4ff" stroke-width="2"/>
<path d="M210 187 L210 205" stroke="#60d4ff" stroke-width="2"/>
<path d="M62 233 L250 233 L280 220" stroke="#ff6666" stroke-width="2" stroke-dasharray="4,4" fill="none"/>
<text x="230" y="148" fill="#6b8aad" font-size="8" text-anchor="middle">create entities</text>
</svg>
</div>
<div class="tag-demo">
<span class="tag danger">DEFECTIVE</span>
<span class="tag warning">QUARANTINED</span>
<span class="tag">AUDITED</span>
<span class="tag">VERIFIED</span>
</div>
</div>
<div class="key-insight">
<div class="key-insight-title">💡 Why Column-Level Tags?</div>
<div class="key-insight-text">Each attention head maps to a column. Enables fine-grained governance, existing data team workflows, and familiar query patterns.</div>
</div>
</div>
<div>
<div class="panel">
<div class="panel-header">
<div class="panel-title">
<div class="panel-icon">🔄</div>
Governance Flow
</div>
</div>
<div class="flow-steps">
<div class="step">
<div class="step-num">1</div>
<div class="step-content">
<div class="step-title">Bootstrap Topology</div>
<div class="step-desc">Backend creates synthetic OpenMetadata entities: model → schemas → layers → heads</div>
</div>
</div>
<div class="step">
<div class="step-num">2</div>
<div class="step-content">
<div class="step-title">Trace Ingestion</div>
<div class="step-desc">AttentionTrace objects ingested as lineage edges: prompt → layer → head → token</div>
</div>
</div>
<div class="step">
<div class="step-num">3</div>
<div class="step-content">
<div class="step-title">Operator Tags Head</div>
<div class="step-desc">User marks head as DEFECTIVE or QUARANTINED via OpenMetadata UI or REST API</div>
</div>
</div>
<div class="step">
<div class="step-num">4</div>
<div class="step-content">
<div class="step-title">Runtime Enforcement</div>
<div class="step-desc">Backend polls/receives webhook → calls set_masked_heads() → HeadMaskStore updates → subsequent generations masked</div>
</div>
</div>
</div>
</div>
<div class="highlight">
<div class="highlight-title">🔧 Engineering Robustness</div>
<div class="highlight-text">Tagging includes retry/backoff logic. Prefers column-level tags, falls back to table-level when needed. Webhook handler validates secrets before processing.</div>
</div>
</div>
</div>
<div class="nav-links">
<a class="nav" href="video_scene.html">← Demo Video</a>
<a class="nav" href="last_frame.html">Thank You →</a>
<a class="nav" href="tech_stack.html">Tech Stack</a>
<a class="nav" href="first_frame.html">Intro</a>
</div>
</div>
</div>
<div class="fullscreen-overlay" id="fullscreenOverlay">
<div class="fullscreen-header">
<span class="fullscreen-title">Topology Mapping — Full View</span>
<button class="close-btn" onclick="toggleFullscreen()">×</button>
</div>
<div class="fullscreen-diagram">
<svg viewBox="0 0 420 280" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="150" y="8" width="120" height="38" rx="7" fill="#0a0f1a" stroke="#60d4ff" stroke-width="2"/>
<text x="210" y="32" fill="#e6eef8" font-size="11" text-anchor="middle">Model (Service)</text>
<rect x="150" y="55" width="120" height="38" rx="7" fill="#0a0f1a" stroke="#60d4ff" stroke-width="2"/>
<text x="210" y="79" fill="#e6eef8" font-size="11" text-anchor="middle">Database (Model)</text>
<rect x="150" y="102" width="120" height="38" rx="7" fill="#0a0f1a" stroke="#60d4ff" stroke-width="2"/>
<text x="210" y="126" fill="#e6eef8" font-size="11" text-anchor="middle">Schema (Transformer)</text>
<rect x="50" y="155" width="80" height="32" rx="6" fill="#0a0f1a" stroke="#3ee1ff" stroke-width="2"/>
<text x="90" y="176" fill="#e6eef8" font-size="10" text-anchor="middle">Layer_1</text>
<rect x="170" y="155" width="80" height="32" rx="6" fill="#0a0f1a" stroke="#3ee1ff" stroke-width="2"/>
<text x="210" y="176" fill="#e6eef8" font-size="10" text-anchor="middle">Layer_2</text>
<rect x="290" y="155" width="80" height="32" rx="6" fill="#0a0f1a" stroke="#3ee1ff" stroke-width="2"/>
<text x="330" y="176" fill="#e6eef8" font-size="10" text-anchor="middle">Layer_N</text>
<rect x="30" y="205" width="65" height="28" rx="5" fill="#0a0f1a" stroke="#60d4ff" stroke-width="1.5"/>
<text x="62" y="223" fill="#e6eef8" font-size="9" text-anchor="middle">Head_1</text>
<rect x="110" y="205" width="65" height="28" rx="5" fill="#0a0f1a" stroke="#60d4ff" stroke-width="1.5"/>
<text x="142" y="223" fill="#e6eef8" font-size="9" text-anchor="middle">Head_2</text>
<rect x="190" y="205" width="65" height="28" rx="5" fill="#0a0f1a" stroke="#60d4ff" stroke-width="1.5"/>
<text x="222" y="223" fill="#e6eef8" font-size="9" text-anchor="middle">Head_3</text>
<rect x="290" y="205" width="100" height="38" rx="6" fill="rgba(255,68,68,0.15)" stroke="#ff6666" stroke-width="2"/>
<text x="340" y="220" fill="#ff6666" font-size="10" text-anchor="middle" font-weight="600">DEFECTIVE</text>
<text x="340" y="234" fill="#ff6666" font-size="10" text-anchor="middle" font-weight="600">QUARANTINED</text>
<path d="M210 46 L210 55" stroke="#60d4ff" stroke-width="2"/>
<path d="M210 93 L210 102" stroke="#60d4ff" stroke-width="2"/>
<path d="M210 120 L210 140 L90 155" stroke="#60d4ff" stroke-width="2" fill="none"/>
<path d="M210 120 L210 140 L210 155" stroke="#60d4ff" stroke-width="2" fill="none"/>
<path d="M210 120 L210 140 L330 155" stroke="#60d4ff" stroke-width="2" fill="none"/>
<path d="M90 187 L90 205" stroke="#60d4ff" stroke-width="2"/>
<path d="M210 187 L210 205" stroke="#60d4ff" stroke-width="2"/>
<path d="M62 233 L250 233 L280 220" stroke="#ff6666" stroke-width="2" stroke-dasharray="4,4" fill="none"/>
<text x="230" y="148" fill="#6b8aad" font-size="8" text-anchor="middle">create entities</text>
</svg>
</div>
</div>
<script src="tour.js"></script>
<script>
function toggleFullscreen(){
document.getElementById('fullscreenOverlay').classList.toggle('active');
}
document.addEventListener('keydown', e => {
if(e.key === 'Escape') document.getElementById('fullscreenOverlay').classList.remove('active');
});
</script>
</body>
</html>