@opennodes/registry 0.1.50 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,6 +116,8 @@
116
116
  .chip.t-community { color: var(--accent); border-color: var(--accent); }
117
117
  .chip.t-disputed, .chip.t-suspended { color: var(--bad); border-color: var(--bad); }
118
118
  .chip.inst { color: var(--accent); border-color: var(--accent); }
119
+ .chip.found { color: var(--star); border-color: var(--star); }
120
+ .chip.untested { color: var(--warn); border-color: var(--warn); border-style: dashed; }
119
121
  .chip.imp { background: var(--panel-2); font-weight: 400; }
120
122
  .chip.loc { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
121
123
  .chip.b-documented { color: var(--accent); border-color: var(--accent); }
@@ -155,6 +157,7 @@
155
157
  .micro { font-family: "IBM Plex Mono", monospace; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.04em; }
156
158
  .m-measured { color: var(--good); } .m-claimed { color: var(--faint); font-weight: 400; } .m-warn { color: var(--warn); }
157
159
  .prov { font-family: "IBM Plex Mono", monospace; font-size: 0.64rem; color: var(--faint); }
160
+ .sitenote { font-size: 0.76rem; font-style: italic; font-weight: 400; color: var(--muted); }
158
161
 
159
162
  /* layout */
160
163
  .cols { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@@ -649,15 +652,28 @@
649
652
  <h1>The qualification procedure</h1>
650
653
  <p class="sub">Listing is open; tiers are earned. The registry runs an automated admission battery against your live endpoints — no paperwork, no gatekeepers, no exceptions. Every verdict is recorded and visible in your node's listing history.</p>
651
654
  <div class="panel pad" style="max-width:56rem">
652
- <div class="stage"><span class="k">STAGE A</span><span><b>Conformance</b> — gate to <span class="chip t-community">COMMUNITY</span>, minutes. Health endpoint live; card valid and signed; models list agrees with the card; one blind invocation returns proper usage accounting and a signed receipt. Re-run every 6&nbsp;hours and on every card revision.</span></div>
655
+ <div class="stage"><span class="k">STAGE A</span><span><b>Conformance</b> — gate to <span class="chip t-community">COMMUNITY</span>, minutes. Health endpoint live; card valid and signed; models list agrees with the card; one blind invocation returns proper usage accounting and a signed receipt. Runs when you verify your registration, and again whenever you call <code>PUT /v0/nodes/{id}/ping</code>; this registry does not yet re-run it on a timer.</span></div>
653
656
  <div class="stage"><span class="k">STAGE B</span><span><b>Substance</b> — gate to <span class="chip t-verified">VERIFIED</span>, hours. <b>Identity fingerprinting:</b> a deterministic probe battery compared against reference outputs of the claimed model — serving a cheaper substitute under a premium name marks the node <i>disputed</i> and delists it. <b>Context verification:</b> needle-in-haystack probes at 25/50/90% of the claimed window; overclaims are capped to the verified size, visibly. <b>Capacity ramp:</b> stepped concurrent load; measured TTFT/throughput overrides claims in search results.</span></div>
654
657
  <div class="stage"><span class="k">STAGE C</span><span><b>Continuous</b> — keeps the tier honest. Liveness sweeps feed a rolling availability score; random blind invocations at unpredictable times defeat "benchmark mode"; sustained failures auto-suspend the listing.</span></div>
658
+ <div class="stage"><span class="k">COVERAGE</span><span><b>What is tested.</b> This registry has tests only for chat offerings (<code>onp.openai.chat/v1</code>). A tier covers only the offerings it could test: speech, embeddings, image or any other offering is listed as <span class="chip untested">UNTESTED</span>, and its tier is capped to <span class="chip t-unverified">UNVERIFIED</span> whatever the node's tier. A node with no chat offering stays unverified, because Stage A has nothing to call.</span></div>
659
+ </div>
660
+ <h2 id="probe-load">Probe load</h2>
661
+ <p class="sub">Everything this registry sends to your endpoints, as the code runs today. A <i>chat offering</i> is one bound to <code>onp.openai.chat/v1</code>; other offerings get only the health and models checks. Probe calls carry your probe key if you gave one at registration, and the registry does not pay for them.</p>
662
+ <div class="panel pad" style="max-width:56rem" id="probe-load-table">
663
+ <div class="stage"><span class="k">STAGE A</span><span><b>When:</b> once when you verify your registration, and once per <code>PUT /v0/nodes/{id}/ping</code>. No timed re-run yet.<br><b>Sends:</b> 1 GET to your health endpoint, 1 GET to <code>/models</code>, and 1 blind chat completion per chat offering (a short prompt, at most 32 output tokens).</span></div>
664
+ <div class="stage"><span class="k">STAGE B</span><span><b>When:</b> only when you ask for admission (<code>POST /v0/nodes/{id}/admit</code>), at most once every 30&nbsp;minutes per node on registry.opennodes.io.<br><b>Sends, per chat offering</b> (up to 20 chat completions):
665
+ <br>· <b>Fingerprint battery:</b> 3 fixed prompts at temperature 0, at most 64 output tokens each. Skipped when the registry holds no reference outputs for the model.
666
+ <br>· <b>Calibration:</b> 1 call with about 4,000 characters of filler, at most 4 output tokens, to measure your tokenizer.
667
+ <br>· <b>Context:</b> 3 probes sized at 25, 50 and 90% of the claimed context window, at most 64 output tokens each: about 1.65 times the window in prompt tokens altogether (about 210k tokens for a 128k window).
668
+ <br>· <b>Capacity ramp:</b> one batch each of 1, 4 and 8 parallel requests (13 calls, at most 48 output tokens each) inside a 3-second budget; a step that would start after the budget is skipped.</span></div>
669
+ <div class="stage"><span class="k">STAGE C</span><span><b>When:</b> continuously, for community, verified and attested nodes, and for nodes suspended for liveness until they recover.<br><b>Sends:</b> 1 GET to your health endpoint every 5&nbsp;minutes on average (each gap is random, 2.5 to 7.5&nbsp;minutes), and 1 blind chat completion per node per hour on average (30 to 90&nbsp;minutes apart, to a randomly chosen chat offering, at most 32 output tokens), each after a fetch of your card. That is about 288 health checks and 24 chat calls a day per node, whatever the number of offerings.</span></div>
670
+ <div class="stage"><span class="k">LOCATION</span><span><b>When:</b> after verification and then daily.<br><b>Sends:</b> 3 TCP connections to port 443 of your API host from each probe site (Nuremberg and Helsinki). No HTTP request.</span></div>
655
671
  </div>
656
672
  <h2>Principles</h2>
657
673
  <div class="panel pad" style="max-width:56rem; font-size:0.85rem">
658
674
  <p><b>Claimed ≠ measured ≠ attested.</b> Self-reported values are labeled <span class="micro m-claimed">CLAIMED</span>; registry measurements override them and show as <span class="micro m-measured">● MEASURED</span>; third-party Verifiable Credentials earn <i>attested</i>. The three are never blended.</p>
659
675
  <p><b>Transparent rank, by rule.</b> Every result carries its rank explanation — component weights and values. Undisclosed ranking inputs are non-conformant; sponsored placement, if ever present, must be labeled and excluded from rank.</p>
660
- <p style="margin-bottom:0"><b>Probes cost you nothing you don't grant.</b> Your card declares a probe allowance; the registry stays within it or pays like any client.</p>
676
+ <p style="margin-bottom:0"><b>Probe load is bounded and published.</b> The probe load list above is all the traffic the registry sends you. A card may declare a probe allowance (<code>payment.probe_allowance</code>); this registry does not read it yet, so the load above applies whatever the card says.</p>
661
677
  </div>
662
678
  </div>
663
679
 
@@ -681,7 +697,13 @@ const ago = (iso) => {
681
697
  return Math.round(s / 86400) + 'd ago';
682
698
  };
683
699
  const tierChip = (t) => `<span class="chip t-${esc(t)}">${esc(String(t).toUpperCase())}</span>`;
684
- const SUBSCRIPTION_NODE = /-plan(-|$)|\.gitlab$/;
700
+ // Marks the registry admin sets on a node or offering (ONP-3 §4b): labels only, never rank inputs.
701
+ const markChips = (o) => (o.founding ? '<span class="chip found" title="Founding operator: one of the first operators to list with this registry. A label only: it does not change rank.">FOUNDING</span>' : '')
702
+ + (o.institutional ? '<span class="chip inst" title="Operated by a research or public institution. A label only: it does not change rank.">institutional</span>' : '');
703
+ // An offering on a registered node whose profile the registry cannot test (ONP-3 §4a): its tier is capped to unverified.
704
+ const untestedChip = (o) => (o.tested === false && o.source !== 'import' && !o.local
705
+ ? `<span class="chip untested" title="This registry has no tests for ${esc(o.binding?.profile ?? 'this profile')}: the node's tier does not cover this offering.">UNTESTED</span>` : '');
706
+ const SUBSCRIPTION_NODE =/-plan(-|$)|\.gitlab$/;
685
707
  const pricePublished = (p) => p && (p.input_per_mtok != null || p.output_per_mtok != null);
686
708
  const priceStr = (p, nodeId = '') => {
687
709
  if (!pricePublished(p)) return SUBSCRIPTION_NODE.test(nodeId) ? 'in a subscription plan' : 'price not published';
@@ -1065,7 +1087,7 @@ function renderItem(o) {
1065
1087
  return `<div class="mitem" data-artifact="${esc(o.model.artifact)}" data-key="${esc(o.node_id + '/' + o.offering_id)}">
1066
1088
  <div class="t">
1067
1089
  <span class="nm">${esc(o.model.name)}</span>
1068
- ${tierChip(o.tier)}
1090
+ ${tierChip(o.tier)}${markChips(o)}${untestedChip(o)}
1069
1091
  ${o.local ? '<span class="chip loc">LOCAL</span>' : (o.source === 'import' ? '<span class="chip imp">IMP</span>' : '')}
1070
1092
  </div>
1071
1093
  <div class="b">
@@ -1148,7 +1170,7 @@ function renderRow(o, idx) {
1148
1170
  ${tierChip(o.tier)}
1149
1171
  <span class="chip">${esc(o.modality)}</span>
1150
1172
  ${o.local ? '<span class="chip loc">RUNS LOCALLY</span>' : (o.source === 'import' ? '<span class="chip imp">IMPORTED</span>' : '')}
1151
- ${o.institutional ? '<span class="chip inst">institutional</span>' : ''}
1173
+ ${markChips(o)}${untestedChip(o)}
1152
1174
  <a class="nodeid" href="#/node/${encodeURIComponent(o.node_id)}">${esc(o.node_id)}</a>
1153
1175
  <span class="rankwrap" title="rank — expand for the formula">
1154
1176
  <span class="rankbar"><i style="width:${Math.round((o.rank ?? 0) * 100)}%; ${rankMuted ? 'background: var(--faint)' : ''}"></i></span>
@@ -1190,7 +1212,9 @@ function renderScore(artifact) {
1190
1212
  verified: 'verified: passed identity, context and capacity checks',
1191
1213
  community: 'community: passed the registration checks',
1192
1214
  attested: 'attested by a third party',
1193
- }[o.tier] ?? (o.source === 'import' ? 'unverified: imported from a public catalog, not checked by this registry' : 'unverified: not checked yet'),
1215
+ }[o.tier] ?? (o.source === 'import' ? 'unverified: imported from a public catalog, not checked by this registry'
1216
+ : o.tested === false ? `unverified: this registry has no tests for ${o.binding?.profile ?? 'this profile'}, so the node's tier does not cover it`
1217
+ : 'unverified: not checked yet'),
1194
1218
  probe_success: obs.probes > 0 ? `${Math.round((obs.probe_success ?? 0) * obs.probes)} of the last ${obs.probes} checks passed` : 'no checks yet',
1195
1219
  };
1196
1220
  const label = { price: 'Price', tier: 'Trust tier', probe_success: 'Check pass rate' };
@@ -1313,7 +1337,7 @@ async function loadModel(artifact) {
1313
1337
  return `<tr>
1314
1338
  <td><div style="display:flex; flex-direction:column; gap:0.2rem">
1315
1339
  <a href="#/node/${encodeURIComponent(o.node_id)}" style="font-weight:600">${esc(o.node_id)}</a>
1316
- <span style="display:flex; gap:0.3rem">${tierChip(o.tier)}${o.institutional ? '<span class="chip inst">institutional</span>' : ''}${o.source === 'import' ? `<span class="chip imp">IMPORTED</span> <a class="prov" href="#/node/${encodeURIComponent(o.node_id)}">claim</a>` : ''}</span>
1340
+ <span style="display:flex; gap:0.3rem">${tierChip(o.tier)}${markChips(o)}${untestedChip(o)}${o.source === 'import' ? `<span class="chip imp">IMPORTED</span> <a class="prov" href="#/node/${encodeURIComponent(o.node_id)}">claim</a>` : ''}</span>
1317
1341
  </div></td>
1318
1342
  <td><b>${priceStr(o.pricing, o.node_id)}</b></td>
1319
1343
  <td>${hwStr(o) || '<span style="color:var(--faint)" title="Vendor has not disclosed the hardware behind this offering">undisclosed</span>'}</td>
@@ -2235,7 +2259,7 @@ async function loadRankings() {
2235
2259
  <td><div style="display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap">
2236
2260
  <a href="#/model/${encodeURIComponent(o.model.artifact)}" style="font-weight:600">${esc(o.model.name)}</a>
2237
2261
  <span style="color:var(--muted); font-size:0.76rem">${esc(o.node_id)}</span>
2238
- ${tierChip(o.tier)}${o.institutional ? '<span class="chip inst">institutional</span>' : ''}
2262
+ ${tierChip(o.tier)}${markChips(o)}${untestedChip(o)}
2239
2263
  </div></td>
2240
2264
  <td><b>${o.observed?.ttft_ms?.p50 ?? '—'}ms</b></td>
2241
2265
  <td><b>${o.observed?.tps > 0 ? o.observed.tps : '—'}</b></td>
@@ -2267,7 +2291,7 @@ async function loadNodes() {
2267
2291
  <th>NODE</th><th>TIER</th><th>OPERATOR</th><th>REGION</th><th>OFFERINGS</th><th>UP</th><th>UPDATED</th>
2268
2292
  </tr></thead><tbody>` + nodes.map((n) => `<tr>
2269
2293
  <td><a href="#/node/${encodeURIComponent(n.id)}" style="font-weight:600">${esc(n.id)}</a></td>
2270
- <td><span style="display:inline-flex; gap:0.3rem">${tierChip(n.tier)}${n.institutional ? '<span class="chip inst">institutional</span>' : ''}${n.source === 'import' ? '<span class="chip imp">IMPORTED</span>' : ''}</span></td>
2294
+ <td><span style="display:inline-flex; gap:0.3rem">${tierChip(n.tier)}${markChips(n)}${n.source === 'import' ? '<span class="chip imp">IMPORTED</span>' : ''}</span></td>
2271
2295
  <td>${esc(n.operator ?? '—')}${n.country ? ' <span style="color:var(--muted)">(' + esc(n.country) + ')</span>' : ''}</td>
2272
2296
  <td>${servesCell(n.serves)}</td>
2273
2297
  <td>${n.offerings}</td>
@@ -2278,6 +2302,10 @@ async function loadNodes() {
2278
2302
  }
2279
2303
 
2280
2304
  /* ---------- where models run ---------- */
2305
+ const siteNote = (x) => {
2306
+ const note = [x.facility_operator ? `run by ${x.facility_operator}` : '', x.note ?? ''].filter(Boolean).join('. ');
2307
+ return note ? ` <span class="sitenote">${esc(note)}</span>` : '';
2308
+ };
2281
2309
  let whereCountriesLoaded = false;
2282
2310
  async function loadWhere() {
2283
2311
  const qs = new URLSearchParams();
@@ -2317,7 +2345,7 @@ async function loadWhere() {
2317
2345
  <th>REGION</th><th>SITE</th><th>PROVIDER</th><th>STATUS</th><th>EVIDENCE</th><th>RESIDENCY</th><th>MODELS SERVED</th>
2318
2346
  </tr></thead><tbody>` + r.sites.map((x) => `<tr>
2319
2347
  <td class="mono" style="font-size:0.78rem">${esc(x.region)}</td>
2320
- <td>${esc(x.site ?? '—')}${x.facility_operator ? `<span class="prov">run by ${esc(x.facility_operator)}</span>` : ''}${x.note ? `<span class="prov">${esc(x.note)}</span>` : ''}</td>
2348
+ <td><b>${esc(x.site ?? '—')}</b>${siteNote(x)}</td>
2321
2349
  <td>${provider(x)}</td>
2322
2350
  <td><span class="chip s-${esc(x.status)}">${esc(String(x.status).toUpperCase())}</span></td>
2323
2351
  <td>${basisChip(x.basis)}${x.source_url ? `<span class="prov"><a href="${esc(x.source_url)}" target="_blank" rel="noopener">source</a>${x.checked ? ' · checked ' + esc(x.checked) : ''}</span>` : ''}</td>
@@ -2579,6 +2607,24 @@ function locationRow(loc, imported) {
2579
2607
  return `<tr><td style="color:var(--muted)" class="mono">server</td><td style="font-size:0.8rem">${words[loc.verdict] || esc(loc.verdict)}${srv.asn ? ` · AS${srv.asn}${srv.network ? ' ' + esc(srv.network) : ''}` : ''}<br><span style="color:var(--muted)">latency ${latWord}${sites ? ' (' + sites + ')' : ''} · checked ${esc((loc.checked_at || '').slice(0, 10))} · evidence, not proof</span></td></tr>`;
2580
2608
  }
2581
2609
 
2610
+ /** Request counts (GET /v0/nodes/{id} request_counts): how often clients were shown this node. */
2611
+ function returnedRow(weeks, nodeId) {
2612
+ if (!Array.isArray(weeks) || !weeks.length) return '';
2613
+ const [now, prev] = weeks;
2614
+ const all = weeks.reduce((sum, w) => sum + w.total, 0);
2615
+ const parts = (w) => `search ${fmtInt(w.search)} · recommend ${fmtInt(w.recommend)} · MCP ${fmtInt(w.mcp)}`;
2616
+ return `<tr><td style="color:var(--muted)" class="mono">returned</td><td style="font-size:0.8rem"><b>${fmtInt(now.total)}</b> this week (${parts(now)})${prev ? ` · ${fmtInt(prev.total)} last week` : ''} · ${fmtInt(all)} in ${weeks.length} weeks<br><span style="color:var(--muted)">registry responses that included this node, per ISO week from Monday ${esc(now.starts)} (UTC) · counts only, no queries stored · <a href="/v0/stats/requests?node_id=${encodeURIComponent(nodeId)}">JSON</a></span></td></tr>`;
2617
+ }
2618
+
2619
+ /** What the node's tier covers (GET /v0/nodes/{id} verification): shown only when some offering is untested. */
2620
+ function testedRow(n, total, untested) {
2621
+ const v = n.verification;
2622
+ if (!v || n.source === 'import' || !untested) return '';
2623
+ const profiles = (v.tested_profiles || []).map(esc).join(', ');
2624
+ const skipped = v.blind_skipped ? `<br><span class="warncol">Stage C blind probes skipped since ${esc((v.blind_skipped.since || '').slice(0, 10))}: ${esc(v.blind_skipped.reason)}</span>` : '';
2625
+ return `<tr><td style="color:var(--muted)" class="mono">tested</td><td style="font-size:0.8rem">${fmtInt(total - untested)} of ${fmtInt(total)} offerings · <b>${fmtInt(untested)} untested</b>: this registry tests only ${profiles}, so the trust tier says nothing about the others${skipped}</td></tr>`;
2626
+ }
2627
+
2582
2628
  async function loadNode(id) {
2583
2629
  $('#node-title').textContent = id;
2584
2630
  try {
@@ -2591,9 +2637,11 @@ async function loadNode(id) {
2591
2637
  const tier = n.state === 'indexed' ? 'unverified' : n.state;
2592
2638
  const stat = (v, l) => `<span class="stat"><span class="sv">${v}</span><span class="sl">${l}</span></span>`;
2593
2639
  const offers = (card.offerings || []);
2640
+ // Offerings the registry's tests cannot call (ONP-3 §4a): the node's tier does not cover them.
2641
+ const untested = new Set(n.source === 'import' ? [] : (n.verification?.untested_offerings || []));
2594
2642
  const offerRows = offers.slice(0, 50).map((o) => `<tr>
2595
2643
  <td><a href="#/model/${encodeURIComponent(o.model?.artifact ?? '')}" style="font-weight:600">${esc(o.model?.name ?? o.offering_id)}</a></td>
2596
- <td><span class="chip">${esc(o.modality)}</span></td>
2644
+ <td><span class="chip">${esc(o.modality)}</span>${untested.has(o.offering_id) ? ' ' + untestedChip({ tested: false, source: n.source, binding: o.binding }) : ''}</td>
2597
2645
  <td class="num"><b>${priceStr(o.pricing || {}, o.node_id)}</b></td>
2598
2646
  <td>${hwStr({ hardware: o.hardware ?? card.hardware }) || '<span style="color:var(--faint)">undisclosed</span>'}</td>
2599
2647
  <td class="num">${o.serving?.context_window ? fmtInt(o.serving.context_window) : '—'}</td>
@@ -2604,6 +2652,7 @@ async function loadNode(id) {
2604
2652
  ${card.node?.description ? `<p class="desc">${esc(card.node.description)}</p>` : ''}
2605
2653
  <div class="statstrip">
2606
2654
  ${stat(tierChip(tier), 'TRUST TIER')}
2655
+ ${markChips(n) ? stat(`<span style="display:inline-flex; gap:0.3rem">${markChips(n)}</span>`, 'REGISTRY MARK — label, not a rank input') : ''}
2607
2656
  ${stat(String(offers.length), 'OFFERINGS')}
2608
2657
  ${card.node?.operator?.name ? stat(esc(card.node.operator.name) + (card.node.operator.country ? ' (' + esc(card.node.operator.country) + (n.source === 'import' ? ' · inferred' : '') + ')' : ''), 'OPERATOR') : ''}
2609
2658
  ${(card.node?.regions || []).length ? stat(esc(card.node.regions.join(', ')), 'REGIONS') : ''}
@@ -2614,6 +2663,8 @@ async function loadNode(id) {
2614
2663
  ${docsUrl(card.endpoints) ? `<tr><td style="color:var(--muted)" class="mono">docs</td><td class="mono" style="font-size:0.74rem"><a href="${esc(docsUrl(card.endpoints))}" target="_blank" rel="noopener">${esc(docsUrl(card.endpoints))}</a></td></tr>` : ''}
2615
2664
  ${locationRow(n.location, n.source === 'import')}
2616
2665
  ${card.hardware ? `<tr><td style="color:var(--muted)" class="mono">hardware</td><td style="font-size:0.78rem">${hwStr({ hardware: card.hardware })}</td></tr>` : ''}
2666
+ ${returnedRow(n.request_counts, n.id)}
2667
+ ${testedRow(n, offers.length, untested.size)}
2617
2668
  <tr><td style="color:var(--muted)" class="mono">revision</td><td class="mono" style="font-size:0.74rem">${esc(card.revision ?? '—')}</td></tr>
2618
2669
  </table></div>
2619
2670
  ${offers.length ? `<h2>Offerings</h2><div class="panel tablewrap" style="max-width:56rem"><table class="grid num"><thead><tr>