File size: 8,198 Bytes
a6a5d8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>a11oy — governance substrate · SZL Holdings</title>
  <meta name="description" content="/v1/policy/evaluate · /v1/verify · /v1/ledger — one substrate, hash-chained, deny by default."/>
  <meta property="og:title" content="a11oy — governance substrate · SZL Holdings"/>
  <meta property="og:description" content="/v1/policy/evaluate · /v1/verify · /v1/ledger — one substrate, hash-chained, deny by default."/>
  <meta property="og:image" content="assets/hero_a11oy.png"/>
  <meta property="og:type" content="website"/>
  <link rel="stylesheet" href="style.css"/>
  <link rel="preconnect" href="https://fonts.googleapis.com"/>
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
  <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"/>
</head>
<body>

<a href="#main" class="skip">Skip to main content</a>

<!-- ===== HEADER: bracketed identity chip (left) + CTA pill (right) ===== -->
<header class="site-header">
  <div class="header-inner">
    <div class="brand">
      <span class="brand-mark mono">A</span>
      <span class="brand-name">a11oy</span>
      <span class="brand-tag mono">/ governance substrate</span>
    </div>
    <a class="cta-pill" href="#try-it">
      Try it live <span class="cta-arrow" aria-hidden="true"></span>
    </a>
  </div>
</header>

<!-- ===== HERO ===== -->
<main id="main">
  <section class="hero">
    <div class="grid-bg" aria-hidden="true"></div>

    <div class="hero-rail hero-rail-left mono" aria-hidden="true">
      <span>BASIN · GLOBAL</span><span>FEED · SIGNED</span><span>POSTURE · UNDERWAY</span>
    </div>
    <div class="hero-rail hero-rail-right mono" aria-hidden="true">
      <span>NODE · A11OY-01</span><span>EPOCH · 2026.Q2</span>
      <span class="rail-live"><span class="live-dot"></span>LIVE · RT</span>
    </div>

    <div class="hero-inner">
      <div class="eyebrow">
        <span class="eyebrow-dot"></span>
        <span class="eyebrow-text mono">· GOVERNANCE SUBSTRATE · SERIES A</span>
      </div>

      <h1 class="headline">
        Every action signed. Every decision gated. Every receipt <span class="accent">verifiable.</span>
      </h1>

      <p class="support">/v1/policy/evaluate · /v1/verify · /v1/ledger — one substrate, hash-chained, deny by default.</p>

      <div class="hero-ctas">
        <a class="btn-primary" href="/console/">
          Open console <span class="cta-arrow" aria-hidden="true"></span>
        </a>
      </div>

      <div class="hero-portrait">
        <img src="assets/hero_a11oy.png" alt="a11oy painterly identity portrait" loading="eager"/>
      </div>
    </div>
  </section>

  <!-- ===== TRY IT PANEL (below founder-locked hero) ===== -->
  <section class="reasoner-section" id="try-it" aria-label="a11oy live API demo">
    <div class="reasoner-inner">
      <div class="reasoner-eyebrow">
        <span class="eyebrow-dot"></span>
        <span class="reasoner-eyebrow-text">· governance substrate · api surface</span>
      </div>
      <h2 class="reasoner-heading">a11oy — policy gates &amp; receipts</h2>
      <p class="reasoner-sub">Evaluate a policy action, inspect the receipt ledger, and verify chain integrity — directly against the live API. 749 decl / 14 axioms / 168 sorries.</p>

      <div class="reasoner-controls">
        <button class="r-btn r-btn-primary" id="btn-evaluate" onclick="runEvaluate()">&#9654; Evaluate sample policy</button>
        <button class="r-btn" id="btn-ledger" onclick="showLedger()">&#x25A4; Show receipt ledger</button>
        <button class="r-btn" id="btn-verify" onclick="runVerify()">&#x26A0; Verify a receipt</button>
      </div>

      <div class="reasoner-output">
        <div class="output-label">
          <span id="output-title">OUTPUT</span>
          <span class="output-status">
            <span class="status-dot" id="status-dot"></span>
            <span id="status-text">idle</span>
          </span>
        </div>
        <pre class="output-pre" id="output-pre" role="log" aria-live="polite" aria-label="API response output"></pre>
      </div>
    </div>
  </section>
</main>

<footer class="site-footer">
  <div class="footer-inner">
    <div class="footer-brand">
      <span class="footer-name">a11oy</span>
      <span class="mono footer-by">/ by SZL Holdings</span>
    </div>
    <span class="mono footer-note">Counsel-governed · A11oy-orchestrated</span>
  </div>
</footer>

<!-- Rosie floating operator widget (additive). Canonical source: SZLHOLDINGS/README assets/rosie. -->
<link rel="stylesheet" href="https://szlholdings-readme.static.hf.space/assets/rosie/rosie-widget.css">
<script src="https://szlholdings-readme.static.hf.space/assets/rosie/rosie-widget.js"
        data-surface="a11oy"
        data-a11oy-base="/api/a11oy"
        defer></script>

<script>
/* a11oy try-it panel — Hampichiq II hardening pass */
const API_BASE = '/api/a11oy';

function setStatus(state, text) {
  const dot = document.getElementById('status-dot');
  const stxt = document.getElementById('status-text');
  dot.className = 'status-dot ' + (state || '');
  stxt.textContent = text || state || 'idle';
}

function setOutput(title, text) {
  document.getElementById('output-title').textContent = title || 'OUTPUT';
  document.getElementById('output-pre').textContent = text;
}

function formatJson(obj) {
  return JSON.stringify(obj, null, 2);
}

function disableButtons(disabled) {
  ['btn-evaluate', 'btn-ledger', 'btn-verify'].forEach(function(id) {
    document.getElementById(id).disabled = disabled;
  });
}

async function runEvaluate() {
  disableButtons(true);
  setStatus('loading', 'evaluating policy…');
  setOutput('POLICY EVALUATE', '');
  try {
    const res = await fetch(API_BASE + '/v1/policy/evaluate', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        actionId: 'landing-demo',
        severity: 'medium',
        confidence: 0.9,
        witnesses: ['agent-a', 'agent-b']
      }),
    });
    const data = await res.json();
    if (!res.ok) throw new Error('HTTP ' + res.status + ': ' + JSON.stringify(data));
    const label = data.decision === 'allow' ? 'ALLOW ✓' : 'DENY ✗';
    setStatus('ok', label + ' via ' + (data.gate || 'gate'));
    setOutput('POLICY EVALUATE — ' + label, formatJson(data));
  } catch (err) {
    setStatus('err', 'error');
    setOutput('POLICY EVALUATE — ERROR', String(err));
  } finally {
    disableButtons(false);
  }
}

async function showLedger() {
  disableButtons(true);
  setStatus('loading', 'fetching ledger…');
  setOutput('RECEIPT LEDGER', '');
  try {
    const res = await fetch(API_BASE + '/v1/ledger?limit=10');
    const data = await res.json();
    if (!res.ok) throw new Error('HTTP ' + res.status + ': ' + JSON.stringify(data));
    setStatus('ok', 'ledger ✓ total ' + data.total);
    setOutput('RECEIPT LEDGER — ' + data.count + ' of ' + data.total + ' receipts', formatJson(data));
  } catch (err) {
    setStatus('err', 'error');
    setOutput('RECEIPT LEDGER — ERROR', String(err));
  } finally {
    disableButtons(false);
  }
}

async function runVerify() {
  disableButtons(true);
  setStatus('loading', 'verifying receipt chain…');
  setOutput('VERIFY RECEIPT', '');
  try {
    const res = await fetch(API_BASE + '/v1/verify', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ ledger: [] }),
    });
    const data = await res.json();
    if (!res.ok) throw new Error('HTTP ' + res.status + ': ' + JSON.stringify(data));
    const label = data.valid ? 'VALID ✓' : 'INVALID ✗';
    setStatus(data.valid ? 'ok' : 'err', label);
    setOutput('VERIFY RECEIPT — ' + label, formatJson(data));
  } catch (err) {
    setStatus('err', 'error');
    setOutput('VERIFY RECEIPT — ERROR', String(err));
  } finally {
    disableButtons(false);
  }
}
</script>

</body>
</html>