Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
claude/adoring-hopper-5x74bqclaude/affectionate-feynman-ykrf1hclaude/architecture-audit-design-wxprenclaude/build-status-update-3MXsfclaude/charming-meitner-mllb5rclaude/compare-gate-gluecron-s4mFQclaude/confident-faraday-tikcwbclaude/continue-work-XMTlIclaude/crontech-gluecron-deploy-7MIECclaude/crontech-platform-setup-SeKfwclaude/design-2026claude/ecstatic-ptolemy-jMdigclaude/enhance-github-integration-QNHdGclaude/fix-aa-loop-issue-PonMQclaude/fix-actions-and-processclaude/fix-desktop-errors-XqoW8claude/fix-red-workflowsclaude/fix-website-access-6FKJNclaude/gatetest-integration-hardeningclaude/github-audit-improvements-bDFr9claude/gluecron-launch-status-FoMRlclaude/hopeful-lamport-olfCTclaude/issue-to-pr-and-protectionsclaude/jolly-heisenberg-2sg1Qclaude/launch-preparation-QmTb6claude/new-session-xk1l7claude/plan-platform-architecture-kkN4yclaude/platform-analysis-roadmap-1nUGLclaude/platform-launch-assessment-8dWV8claude/polish-platform-release-AeDrUclaude/resume-previous-work-KzyLwclaude/review-crontech-handoff-qYEVqclaude/review-project-completeness-lHhS2claude/review-readme-docs-ulqPKclaude/serene-edison-rj87weclaude/setup-multi-repo-dev-BCwNQclaude/ship-fixes-and-tests-Jvz1cclaude/site-audit-competitive-pctlwgclaude/site-migration-vercel-XstpKclaude/standalone-product-repos-XHFTDcopilot/feat-smart-empty-states-keyboard-first-enhancementcopilot/feat-smart-morning-digest-review-context-restorecopilot/fix-and-process-workflowscopilot/update-ai-powered-code-reviewfeat/debt-mapfeat/push-policy-codeowners-hardeningfeat/smart-digest-contextfeat/stage-impactfeat/t1-secret-migrationfeat/u-polishfeat/w-self-hostfeat/w2-claude-configfix/agent-journey-orphan-sweepgatetest/auto-fix-1776586424172gatetest/auto-fix-1776586534814gatetest/auto-fix-1776590685143gatetest/auto-fix-1776590808199mainops/redeploy-retriggerstyle/dxt-cta-themeworktree-agent-a3377aad30d55da26worktree-agent-a7ef607b7ee1d6c74
org-memory.tsx13.2 KB · 590 lines
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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
import type { FC } from "hono/jsx";

export interface OrgMemoryProps {
  query?: string;
  answer?: { text: string; sources: number; prs: number };
  receipts?: Array<{ when: string; title: string; detail: string; ref: string }>;
  owner?: string;
  repo?: string;
  user?: any;
}

const DEFAULT_RECEIPTS = [
  {
    when: "Mar 12",
    title: "Issue №42 — Gate execution isolation",
    detail: "Original design discussion; env-leak prototype documented here.",
    ref: "#42",
  },
  {
    when: "Mar 19",
    title: "feat: subprocess gate runner",
    detail: "The founding commit — rationale in the commit body.",
    ref: "9c41f2a",
  },
  {
    when: "May 30",
    title: "PR №171 — in-process gates for latency",
    detail: "Merged, then reverted 36h later. Incident review attached.",
    ref: "#171",
  },
  {
    when: "Jun 24",
    title: "PR №203 — sandbox security model",
    detail: "Codifies the subprocess boundary as a security assumption.",
    ref: "#203",
  },
];

const SUGGESTIONS = [
  "Why Bun instead of Node?",
  "What broke in the 0083 migration?",
  "History of the auto-repair loop",
];

export const OrgMemory: FC<OrgMemoryProps> = (props) => {
  const {
    query = "",
    owner = "ccanty",
    repo = "gluecron",
    user,
    receipts = DEFAULT_RECEIPTS,
  } = props;

  const userInitial = user?.username?.[0]?.toUpperCase() ?? "C";

  return (
    <>
      <style dangerouslySetInnerHTML={{ __html: css }} />
      <div class="om-root">
        <header class="om-header">
          <a href="/" class="om-logo">
            <span class="om-logo-mark" />
            gluecron
          </a>
          <span class="om-header-sep">/</span>
          <span class="om-header-label">Memory</span>
          <div class="om-header-right">
            <span class="om-avatar">{userInitial}</span>
          </div>
        </header>

        <main class="om-main">
          <div class="om-hero">
            <div class="om-hero-eyebrow">
              Org memory &middot; every commit, PR, issue, and decision since day one
            </div>
            <h1 class="om-title">Ask your codebase why.</h1>
            <div class="om-search-wrap">
              <input
                id="om-input"
                class="om-search-input"
                type="text"
                value={query}
                placeholder="Why does the gate runner use a subprocess instead of a worker thread?"
              />
              <button id="om-ask-btn" type="button" class="om-ask-btn">
                Ask
              </button>
            </div>
            <div class="om-pills">
              {SUGGESTIONS.map((s) => (
                <button
                  type="button"
                  class="om-pill"
                  data-suggestion={s}
                >
                  {s}
                </button>
              ))}
            </div>
          </div>

          <div class="om-answer-card">
            <div class="om-answer-head">
              <div id="om-answer-eyebrow" class="om-section-label">
                Answer &middot; grounded in 2,841 commits, 218 PRs, 194 issues
              </div>
              <p class="om-answer-lead">
                The gate runner uses a subprocess because gates execute untrusted,
                customer-defined commands &mdash; process isolation was chosen deliberately over speed.
              </p>
              <p class="om-answer-body">
                The decision was made in issue &numero;42 (March), after a prototype
                worker-thread runner leaked environment variables between concurrent gate runs.
                A later attempt to move back in-process for latency (PR &numero;171) was reverted
                within 36 hours after memory isolation failed under load. The subprocess boundary
                is now relied on by the sandbox security model, so changing it means
                re-reviewing that model too.
              </p>
            </div>
            <div class="om-receipts-wrap">
              <div class="om-section-label">Receipts &mdash; the actual history</div>
              <div class="om-receipts-list">
                {receipts.map((r, i) => (
                  <a href="#" class="om-receipt-row">
                    <span class="om-receipt-when">{r.when}</span>
                    <span class="om-receipt-body">
                      <span class="om-receipt-title">{r.title}</span>
                      <span class="om-receipt-detail">{r.detail}</span>
                    </span>
                    <span class="om-receipt-ref">{r.ref}</span>
                  </a>
                ))}
              </div>
            </div>
          </div>

          <div class="om-bottom-grid">
            <div class="om-bottom-card">
              <div class="om-section-label">Last time someone touched this</div>
              <p class="om-bottom-text">
                PR &numero;171 tried to move gates in-process for speed. It shipped, broke memory
                isolation under load, and was reverted in 36 hours. The revert commit links the
                incident review &mdash; worth reading before trying again.
              </p>
            </div>
            <div class="om-bottom-card">
              <div class="om-section-label">Who to ask</div>
              <p class="om-bottom-text">
                <strong class="om-strong">{owner}nz</strong> wrote 84% of the gate runner and
                reviewed every change to it. The original design discussion lives in
                issue &numero;42.
              </p>
            </div>
          </div>
        </main>
      </div>
      <script dangerouslySetInnerHTML={{ __html: js }} />
    </>
  );
};

export default OrgMemory;

const js = `
(function () {
  var input = document.getElementById('om-input');
  var btn = document.getElementById('om-ask-btn');
  var eyebrow = document.getElementById('om-answer-eyebrow');
  var asked = false;

  var BASE_EYEBROW = 'Answer · grounded in 2,841 commits, 218 PRs, 194 issues';
  var ASKED_EYEBROW = 'Answer · re-grounded just now · 2,841 commits, 218 PRs, 194 issues';

  function resetState() {
    asked = false;
    if (btn) btn.textContent = 'Ask';
    if (eyebrow) eyebrow.textContent = BASE_EYEBROW;
  }

  if (btn) {
    btn.addEventListener('click', function () {
      if (input && input.value.trim() === '') return;
      asked = true;
      btn.textContent = 'Answered ✓';
      if (eyebrow) eyebrow.textContent = ASKED_EYEBROW;
    });
  }

  if (input) {
    input.addEventListener('input', function () {
      if (asked) resetState();
    });
    input.addEventListener('keydown', function (e) {
      if (e.key === 'Enter') {
        if (btn) btn.click();
      }
    });
  }

  var pills = document.querySelectorAll('.om-pill');
  pills.forEach(function (pill) {
    pill.addEventListener('click', function () {
      var suggestion = pill.getAttribute('data-suggestion');
      if (input && suggestion) {
        input.value = suggestion;
        resetState();
        input.focus();
      }
    });
  });
})();
`;

const css = `
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }

.om-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: #16181d;
  background: #fcfcfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Header ── */

.om-header {
  height: 56px;
  border-bottom: 1px solid rgba(22,24,29,0.07);
  background: #fcfcfd;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.om-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #16181d;
  text-decoration: none;
}

.om-logo-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #4353c9;
  display: inline-block;
  flex-shrink: 0;
}

.om-header-sep {
  color: #c4c6cf;
  font-size: 14px;
}

.om-header-label {
  font-size: 13px;
  color: #16181d;
  font-weight: 500;
}

.om-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.om-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16181d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Main layout ── */

.om-main {
  flex: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px 88px;
}

/* ── Hero / search ── */

.om-hero {
  text-align: center;
  margin-bottom: 36px;
}

.om-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8d99;
  margin-bottom: 12px;
}

.om-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.12;
  color: #111318;
  margin: 0 0 24px;
}

.om-search-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(22,24,29,0.12);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 8px 8px 20px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(22,24,29,0.03);
  transition: border-color 0.15s;
}

.om-search-wrap:focus-within {
  border-color: rgba(22,24,29,0.22);
}

.om-search-input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: -0.008em;
  color: #16181d;
  background: transparent;
  min-width: 0;
}

.om-search-input::placeholder {
  color: #8a8d99;
}

.om-ask-btn {
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  background: #16181d;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.om-ask-btn:hover {
  opacity: 0.85;
}

.om-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.om-pill {
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  border: 1px solid rgba(22,24,29,0.10);
  background: #ffffff;
  color: #6b7080;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.om-pill:hover {
  border-color: rgba(22,24,29,0.24);
  color: #16181d;
}

/* ── Shared section label ── */

.om-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8a8d99;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ── Answer card ── */

.om-answer-card {
  border: 1px solid rgba(22,24,29,0.07);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 32px;
}

.om-answer-head {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(22,24,29,0.06);
}

.om-answer-lead {
  font-size: 14.5px;
  color: #16181d;
  margin: 0 0 12px;
  line-height: 1.7;
}

.om-answer-body {
  font-size: 14px;
  color: #6b7080;
  margin: 0;
  line-height: 1.7;
}

/* ── Receipts ── */

.om-receipts-wrap {
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.om-receipts-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.om-receipt-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(22,24,29,0.05);
  transition: background 0.1s;
  border-radius: 4px;
}

.om-receipt-row:last-child {
  border-bottom: none;
}

.om-receipt-row:hover {
  background: rgba(22,24,29,0.015);
  padding-left: 4px;
  padding-right: 4px;
  margin-left: -4px;
  margin-right: -4px;
}

.om-receipt-when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #8a8d99;
  flex-shrink: 0;
}

.om-receipt-body {
  min-width: 0;
}

.om-receipt-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #16181d;
}

.om-receipt-detail {
  display: block;
  font-size: 12.5px;
  color: #6b7080;
  margin-top: 1px;
}

.om-receipt-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #4353c9;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Bottom two-col grid ── */

.om-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.om-bottom-card {
  border: 1px solid rgba(22,24,29,0.07);
  border-radius: 12px;
  background: #ffffff;
  padding: 20px 22px;
}

.om-bottom-text {
  font-size: 13px;
  color: #6b7080;
  margin: 0;
  line-height: 1.65;
}

.om-strong {
  color: #16181d;
  font-weight: 500;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .om-main {
    padding: 32px 16px 64px;
  }

  .om-title {
    font-size: 24px;
  }

  .om-search-wrap {
    padding: 6px 6px 6px 14px;
  }

  .om-search-input {
    font-size: 14px;
  }

  .om-bottom-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .om-receipt-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .om-header {
    padding: 0 16px;
  }
}
`;