@opennodes/registry 0.1.57 → 0.1.58

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.
package/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  The OpenNodes Protocol (ONP) reference registry — an open, federatable discovery service for AI inference nodes.
4
4
 
5
5
  ```bash
6
- npx @opennodes/registry@0.1.57 # web app + API on http://127.0.0.1:4300
7
- ONP_DB=./registry.db npx @opennodes/registry@0.1.57 # persistent SQLite + persistent signing key
8
- ONP_DB=postgres://user:pass@host/db npx @opennodes/registry@0.1.57
6
+ npx @opennodes/registry@0.1.58 # web app + API on http://127.0.0.1:4300
7
+ ONP_DB=./registry.db npx @opennodes/registry@0.1.58 # persistent SQLite + persistent signing key
8
+ ONP_DB=postgres://user:pass@host/db npx @opennodes/registry@0.1.58
9
9
  ```
10
10
 
11
11
  What it does:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opennodes/registry",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "OpenNodes (ONP) reference registry: node registration with proof-of-resource qualification (Stage A/B/C), transparent ranking, enforceable estimates, catalog importers (OpenRouter, Hugging Face, models.dev, Ollama, AI Horde), MCP surface, and the web app (catalog, chat, advisor, Node Builder)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -43,7 +43,7 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@opennodes/core": "0.1.26",
46
+ "@opennodes/core": "0.1.27",
47
47
  "pg": "^8.13.1"
48
48
  }
49
49
  }
package/src/mcp.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // MCP host gets ONP discovery (recommend, search_offerings, get_offering, get_node, estimate,
4
4
  // find_locations, find_residency) for free.
5
5
  import { readFileSync } from 'node:fs';
6
- import { readJson, sendJson, problem, estimateBounds, round6, extractFeatures, recommend, MCP_TOOLS, MCP_INSTRUCTIONS, summarizeNode, serverCheckOf } from '@opennodes/core';
6
+ import { readJson, sendJson, problem, estimateBounds, round6, extractFeatures, recommend, MCP_TOOLS, MCP_INSTRUCTIONS, summarizeNode, serverCheckOf, mcpToolResult } from '@opennodes/core';
7
7
  import { searchOfferingsPaged, searchOfferings, collectOfferings, pricePublished, locationSummary } from './search.js';
8
8
  import { buildLocations, buildResidency } from './locations.js';
9
9
  import { nodeIdsIn } from './counts.js';
@@ -139,11 +139,7 @@ async function handleRpc(store, seeds, msg, onResult, trusted) {
139
139
  try {
140
140
  const result = await runTool(store, seeds, params?.name, params?.arguments, trusted);
141
141
  onResult?.(nodesReturned(params.name, result));
142
- return reply({
143
- content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
144
- structuredContent: result,
145
- isError: false,
146
- });
142
+ return reply(mcpToolResult(result)); // operator text cut and marked untrusted (review 4.11)
147
143
  } catch (err) {
148
144
  return reply({ content: [{ type: 'text', text: String(err.message) }], isError: true });
149
145
  }
package/src/server.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { randomUUID } from 'node:crypto';
3
3
  import {
4
4
  createApp, listen, closeApp, sendJson, problem, readJson,
5
- validateCard, verifyCardSignature, keyFromJwk, estimateBounds,
5
+ validateCard, verifyCardWithJwks, estimateBounds,
6
6
  extractFeatures, recommend, trustedView, DEFAULT_TRUSTED_JURISDICTIONS, serverCheckOf,
7
7
  } from '@opennodes/core';
8
8
  import { resolveTxt } from 'node:dns/promises';
@@ -132,10 +132,7 @@ export async function startRegistry({
132
132
  jwks = await res.json();
133
133
  } catch (err) { return { ok: false, definite: false, error: `jwks fetch failed: ${err.message}` }; }
134
134
  try {
135
- const kid = card.signatures[0].kid;
136
- const jwk = (jwks.keys ?? []).find((k) => !kid || k.kid === kid) ?? jwks.keys?.[0];
137
- if (!jwk) return { ok: false, definite: true, error: 'no key in jwks' };
138
- verifyCardSignature(card, keyFromJwk(jwk));
135
+ verifyCardWithJwks(card, jwks); // any signature, by kid first, with a key the origin publishes
139
136
  return { ok: true };
140
137
  } catch (err) { return { ok: false, definite: true, error: String(err.message ?? err) }; }
141
138
  }
package/src/stageb.js CHANGED
@@ -85,10 +85,16 @@ export const STAGE_B_409 = 'identity-409';
85
85
  * revision, or null when the pinned one is still current.
86
86
  * - `stale`: a new revision, within the bound: recorded, the run stops unjudged, the caller retries;
87
87
  * - `refused`: the current revision was pinned: a reply that does not match;
88
- * - `moved`: a new revision again, beyond the bound: the run ends as not passed, never as a dispute
89
- * (the card the run holds is stale now, so even an honest node refuses what follows).
88
+ * - `repin`, beyond the bound, when the re-fetched card claims the same model for the offering: the run
89
+ * goes on with the re-fetched card pinned (`pin.card`) and asks again; a refusal with that revision
90
+ * pinned then counts as a reply that does not match. Before, the run ended as not passed, never as a
91
+ * dispute, so a node that swapped its model could publish a new revision at every run, reach the
92
+ * bound each time and stay at `community` instead of `disputed` (review M4, 24 Nov). An honest node
93
+ * that re-prices often loses nothing: it answers with the current revision pinned.
94
+ * - `moved`, beyond the bound, when the offering's claimed model or binding changed or is gone: the
95
+ * run ends as not passed (no reply was compared for the new claim; that change brings its own run).
90
96
  */
91
- function makeOn409(store, nodeId, card, { revisionMoved, maxExcused409 }) {
97
+ function makeOn409(store, nodeId, pin, { revisionMoved, maxExcused409 }) {
92
98
  // `status`: the reply that sent the registry to the card. Since rev. 14 scheduled runs go out on
93
99
  // the card already held, so a 404 for a model the node has just dropped gets the same rule as a
94
100
  // 409: re-fetched after the reply, excused only if the revision really moved, within the bound.
@@ -98,32 +104,53 @@ function makeOn409(store, nodeId, card, { revisionMoved, maxExcused409 }) {
98
104
  const since = (await store.getSchedule(nodeId, 'B'))?.last_at ?? '';
99
105
  const excused = await store.countProbes(nodeId, STAGE_B_409, since);
100
106
  if (excused >= maxExcused409) {
101
- return { kind: 'moved', reason: `the card revision moved again during Stage B, after ${excused} such 409s since the last judged run (at most ${maxExcused409} are excused)` };
107
+ const bound = `after ${excused} excused card changes since the last judged run (at most ${maxExcused409} are excused)`;
108
+ const latest = await store.latestCard(nodeId);
109
+ const now = latest?.revision === fresh ? latest.offerings?.find((o) => o.offering_id === offering.offering_id) : null;
110
+ if (now && testable(now) && sameModelClaim(offering, now)) {
111
+ pin.card = latest;
112
+ return { kind: 'repin', offering: now, beyond: `re-pinned to revision ${fresh} ${bound}` };
113
+ }
114
+ return { kind: 'moved', reason: `the card revision moved again during Stage B ${bound}, and the offering's claimed model or binding changed or is gone` };
102
115
  }
103
116
  await store.recordProbe(nodeId, offering.offering_id, 'B', STAGE_B_409, false,
104
- `${status} with revision ${card.revision} pinned; card re-indexed at ${fresh}; Stage B runs again later`);
117
+ `${status} with revision ${pin.card.revision} pinned; card re-indexed at ${fresh}; Stage B runs again later`);
105
118
  return { kind: 'stale' };
106
119
  };
107
120
  }
108
121
 
122
+ /** Whether two versions of an offering claim the same model behind the same binding. */
123
+ const sameModelClaim = (a, b) => a.model?.artifact === b.model?.artifact
124
+ && a.binding?.profile === b.binding?.profile && a.binding?.model_id === b.binding?.model_id;
125
+
109
126
  /**
110
127
  * DS-ADM-02: identity check against stored references. A reply that does not match is asked once
111
128
  * more before it counts (ONP-3 §6.3 disputes only a confirmed failure: batching on an engine with
112
129
  * parallel slots can change a temperature-0 reply now and then). A 409 counts as a reply that does
113
130
  * not match unless `on409` excuses it (makeOn409).
114
131
  */
115
- async function probeIdentity(safeFetch, card, offering, refs, on409) {
116
- let matches = 0, retried = 0, refused = 0, stop = null;
117
- const ask = async (prompt) => {
118
- const { status, text } = await chatOnce(safeFetch, card, offering, prompt);
132
+ async function probeIdentity(safeFetch, pin, offering, refs, on409) {
133
+ let matches = 0, retried = 0, refused = 0, refusedRepinned = 0, repinned = null, stop = null;
134
+ let current = offering;
135
+ const ask = async (prompt, again = true) => {
136
+ const { status, text } = await chatOnce(safeFetch, pin.card, current, prompt);
119
137
  if (status !== 200) {
120
138
  // A 409, or another failure (a 404 for a model dropped since the card was fetched): only a
121
139
  // revision that really moved excuses it; with the current revision pinned it does not match.
122
- const what = await on409(offering, status);
123
- if (what.kind === 'refused') { if (status === 409) refused++; } else stop = what;
140
+ const what = await on409(current, status);
141
+ if (what.kind === 'repin') {
142
+ // Beyond the bound: ask again with the revision just fetched pinned; a refusal then counts.
143
+ current = what.offering;
144
+ repinned = what.beyond;
145
+ if (again) return ask(prompt, false);
146
+ refusedRepinned++;
147
+ return null;
148
+ }
149
+ if (what.kind !== 'refused') stop = what;
150
+ else if (status === 409) refused++;
124
151
  return null;
125
152
  }
126
- return status === 200 && text !== null ? sha256(text) : null;
153
+ return text !== null ? sha256(text) : null;
127
154
  };
128
155
  for (const ref of refs) {
129
156
  let hash = await ask(ref.prompt);
@@ -131,7 +158,8 @@ async function probeIdentity(safeFetch, card, offering, refs, on409) {
131
158
  if (hash === ref.expected_hash) matches++;
132
159
  if (stop) break;
133
160
  }
134
- const extra = { ...(retried ? { retried } : {}), ...(refused ? { refused } : {}) };
161
+ const extra = { ...(retried ? { retried } : {}), ...(refused ? { refused } : {}),
162
+ ...(repinned ? { repinned, refused_repinned: refusedRepinned } : {}) };
135
163
  if (stop?.kind === 'stale') return { ok: false, matches, total: refs.length, ...extra, stale: true };
136
164
  if (stop?.kind === 'moved') return { ok: false, matches, total: refs.length, ...extra, moved: true, reason: stop.reason };
137
165
  // Deterministic battery: require all prompts to match the reference distribution.
@@ -237,14 +265,14 @@ async function probeCapacity(safeFetch, card, offering, corpus, { steps = CAPACI
237
265
  * offering cannot be verified: no usable reference for the artefact, or a proprietary artefact
238
266
  * claimed outside the vendor's namespace.
239
267
  */
240
- async function identityOf(store, nodeId, safeFetch, card, offering, { corpus, vendors, identitySample, on409 }) {
268
+ async function identityOf(store, nodeId, safeFetch, pin, offering, { corpus, vendors, identitySample, on409 }) {
241
269
  const artifact = offering.model?.artifact;
242
270
  const claim = vendorClaim(artifact, nodeId, vendors);
243
271
  if (!claim.ok) return { ok: false, unverified: true, reason: `${artifact} is not this node's to claim (vendor namespace)` };
244
272
  // References captured with public prompts prove nothing: a node could have recognised them.
245
273
  const refs = (await store.getFingerprints(artifact)).filter((r) => corpus.usableReference(r.prompt));
246
274
  if (!refs.length) return { ok: false, unverified: true, reason: NO_REFERENCE };
247
- return probeIdentity(safeFetch, card, offering, sample(refs, identitySample), on409);
275
+ return probeIdentity(safeFetch, pin, offering, sample(refs, identitySample), on409);
248
276
  }
249
277
 
250
278
  /**
@@ -260,7 +288,9 @@ export async function runStageB(store, nodeId, card, {
260
288
  safeFetch, capacity = {}, corpus = DEV_CORPUS, vendors = vendorTable(), signed = true, identitySample = IDENTITY_SAMPLE,
261
289
  revisionMoved = null, maxExcused409 = MAX_EXCUSED_409,
262
290
  } = {}) {
263
- const on409 = makeOn409(store, nodeId, card, { revisionMoved, maxExcused409 });
291
+ // The card the run pins: the one held, until a refusal beyond the bound re-pins the fetched one.
292
+ const pin = { card };
293
+ const on409 = makeOn409(store, nodeId, pin, { revisionMoved, maxExcused409 });
264
294
  const untested = untestedOfferings(card);
265
295
  if (!signed) {
266
296
  await store.recordProbe(nodeId, null, 'B', 'signature', false, UNSIGNED_CARD);
@@ -270,26 +300,31 @@ export async function runStageB(store, nodeId, card, {
270
300
  return { ok: false, identityFailed: false, reason: NO_TESTED_OFFERINGS, verdicts: [], untested };
271
301
  }
272
302
  const verdicts = [];
273
- for (const offering of card.offerings) {
274
- if (!testable(offering)) continue;
303
+ // The offering as the pinned card lists it now (a re-pin replaces the card mid-run).
304
+ const pinned = (o) => pin.card.offerings.find((p) => p.offering_id === o.offering_id) ?? o;
305
+ for (const listed of card.offerings) {
306
+ if (!testable(listed)) continue;
307
+ let offering = pinned(listed);
275
308
  const verdict = { offering_id: offering.offering_id, identity: null, context: null, capacity: null };
276
309
 
277
- verdict.identity = await identityOf(store, nodeId, safeFetch, card, offering, { corpus, vendors, identitySample, on409 });
310
+ verdict.identity = await identityOf(store, nodeId, safeFetch, pin, offering, { corpus, vendors, identitySample, on409 });
278
311
  if (verdict.identity.stale) {
279
312
  // The card's revision really moved (an excused 409, recorded). Abort without judging: the caller retries.
280
313
  return { ok: false, identityFailed: false, stale: true, verdicts: [...verdicts, verdict], untested };
281
314
  }
282
- const { matches, total, refused } = verdict.identity;
315
+ const { matches, total, refused, repinned, refused_repinned: refusedRepinned } = verdict.identity;
283
316
  await store.recordProbe(nodeId, offering.offering_id, 'B', 'identity', verdict.identity.ok,
284
317
  verdict.identity.unverified ? `identity unverified: ${verdict.identity.reason}`
285
318
  : verdict.identity.moved ? `not judged: ${verdict.identity.reason}`
286
- : `${matches}/${total} reference matches${refused ? `; ${refused} replies refused with 409, the current card revision pinned` : ''}`);
319
+ : `${matches}/${total} reference matches${refused ? `; ${refused} replies refused with 409, the current card revision pinned` : ''}`
320
+ + (repinned ? `; ${repinned}${refusedRepinned ? `, then ${refusedRepinned} refusals with it pinned, counted as replies that do not match` : ''}` : ''));
287
321
  if (verdict.identity.moved) {
288
- // Beyond the bound: not passed, and nothing more is sent on a card that is no longer current.
322
+ // Beyond the bound, and the claimed model changed: not passed, and nothing more is sent.
289
323
  return { ok: false, identityFailed: false, reason: `${offering.offering_id}: ${verdict.identity.reason}`, verdicts: [...verdicts, verdict], untested };
290
324
  }
325
+ offering = pinned(offering);
291
326
 
292
- verdict.context = await probeContext(safeFetch, card, offering, corpus);
327
+ verdict.context = await probeContext(safeFetch, pin.card, offering, corpus);
293
328
  await store.recordProbe(nodeId, offering.offering_id, 'B', 'context', verdict.context.ok,
294
329
  `claimed ${verdict.context.claimed}, verified ${verdict.context.verified_cap}`,
295
330
  verdict.context);
@@ -297,13 +332,15 @@ export async function runStageB(store, nodeId, card, {
297
332
  // earlier cap; 0 = nothing verified, shown as unverified rather than trusting the claim.
298
333
  await store.setObservation(nodeId, offering.offering_id, 'context_cap', verdict.context.verified_cap);
299
334
 
300
- verdict.capacity = await probeCapacity(safeFetch, card, offering, corpus, capacity);
335
+ verdict.capacity = await probeCapacity(safeFetch, pin.card, offering, corpus, capacity);
301
336
  if (!verdict.capacity.ok) {
302
337
  // A failed ramp on a card that has since moved (the model dropped or changed during the run)
303
338
  // is not judged, by the same rule and bound as a 409.
304
339
  const what = await on409(offering, 'capacity failure');
305
340
  if (what.kind === 'stale') return { ok: false, identityFailed: false, stale: true, verdicts: [...verdicts, verdict], untested };
306
341
  if (what.kind === 'moved') return { ok: false, identityFailed: false, reason: `${offering.offering_id}: ${what.reason}`, verdicts: [...verdicts, verdict], untested };
342
+ // Beyond the bound, same model: the ramp once more with the fetched card pinned, and that one counts.
343
+ if (what.kind === 'repin') { offering = what.offering; verdict.capacity = await probeCapacity(safeFetch, pin.card, offering, corpus, capacity); }
307
344
  }
308
345
  await store.recordProbe(nodeId, offering.offering_id, 'B', 'capacity', verdict.capacity.ok, null, verdict.capacity);
309
346
  if (verdict.capacity.ttft_ms.p50 != null) {
@@ -655,20 +655,20 @@
655
655
  <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>
656
656
  <div class="panel pad" style="max-width:56rem">
657
657
  <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; models list agrees with the card; one blind invocation returns proper usage accounting; a proprietary artefact (<code>urn:proprietary:{vendor}:…</code>) only from that vendor's own namespace, so name open-weight models by their public record (<code>hf:</code>, <code>ollama:</code>). Runs when you verify your registration, on every new card revision, and again at least every 6 hours on the registry's own timer.</span></div>
658
- <div class="stage"><span class="k">STAGE B</span><span><b>Substance</b> — gate to <span class="chip t-verified">VERIFIED</span>, hours. The registry chooses when it runs; nobody can ask for it. <b>Identity fingerprinting:</b> prompts from a private set, at temperature 0, compared with reference answers the registry captured from a deployment of the same weights it trusts. With no reference for your model's artefact, identity is unverified and the node stays at community. A mismatch marks the node <i>disputed</i> and delists it; registering again does not end a dispute, only a resolution the registry records after review. A 409 to a fingerprint prompt stops the run only when your card's revision really changed (then it runs again within the hour, at most 3 times before a run is judged); with the current revision pinned, a 409 counts as a reply that does not match. <b>Signed card:</b> the verified tier needs a card whose signature verifies against your JWKS. <b>Card-only listings:</b> if you gave a probe key at registration, probes carrying it are easy to pick out, so the node stays at community until the registry has bought access to your API as an ordinary customer; from then on probes use that access, and the next Stage B can verify the node. <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>
658
+ <div class="stage"><span class="k">STAGE B</span><span><b>Substance</b> — gate to <span class="chip t-verified">VERIFIED</span>, hours. The registry chooses when it runs; nobody can ask for it. <b>Identity fingerprinting:</b> prompts from a private set, at temperature 0, compared with reference answers the registry captured from a deployment of the same weights it trusts. With no reference for your model's artefact, identity is unverified and the node stays at community. A mismatch marks the node <i>disputed</i> and delists it; registering again does not end a dispute, only a resolution the registry records after review. A 409 to a fingerprint prompt stops the run only when your card's revision really changed (then it runs again within the hour, at most 3 times before a run is judged); with the current revision pinned, or beyond those 3, a 409 counts as a reply that does not match. <b>Signed card:</b> the verified tier needs a card whose signature verifies against your JWKS. <b>Card-only listings:</b> if you gave a probe key at registration, probes carrying it are easy to pick out, so the node stays at community until the registry has bought access to your API as an ordinary customer; from then on probes use that access, and the next Stage B can verify the node. <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>
659
659
  <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, worded like ordinary requests, defeat "benchmark mode". On verified nodes some of them ask an identity prompt, and a reply that is not the reference's brings Stage B within the hour. Sustained liveness failures suspend the listing; blind invocations that keep failing while the node answers its health checks cost it a tier.</span></div>
660
660
  <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>
661
661
  </div>
662
662
  <h2 id="probe-load">Probe load</h2>
663
663
  <p class="sub">Everything this registry sends to your endpoints, as the code runs today: how much, how often and what starts it, so you can size your probe allowance. 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, or, once the registry has bought access to your API as a customer, that access instead; the registry does not pay for calls made with your probe key. Their wording comes from a private set of ordinary requests, the same kind your customers send; it is not published.</p>
664
664
  <div class="panel pad" style="max-width:56rem" id="probe-load-table">
665
- <div class="stage"><span class="k">STAGE A</span><span><b>When:</b> when you verify your registration, on each <code>PUT /v0/nodes/{id}/ping</code>, on every new card revision, and at least every 6&nbsp;hours (each gap is random, 4.5 to 6&nbsp;hours), each time after a fetch of your card.<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 request, at most 32 output tokens): about 4 of each a day.</span></div>
665
+ <div class="stage"><span class="k">STAGE A</span><span><b>When:</b> when you verify your registration, on each <code>PUT /v0/nodes/{id}/ping</code>, on every new card revision, and at least every 6&nbsp;hours (each gap is random, 4.5 to 6&nbsp;hours); a scheduled run uses the card the registry already holds.<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 request, at most 32 output tokens): about 4 of each a day.</span></div>
666
666
  <div class="stage"><span class="k">STAGE B</span><span><b>When:</b> on the registry's schedule, never on request: between 1 and 24&nbsp;hours after your node reaches community; at a random time within 72&nbsp;hours of a change to a chat offering's model, serving, hardware or binding block, a new chat offering, or a change to your API endpoint; within 1&nbsp;hour of a confirmed identity mismatch in a blind call (below), at most once a day; within 1&nbsp;hour after a run stopped because your card's revision changed; again after 7&nbsp;days when a run did not pass; and after a pass at a random time from 1&nbsp;day on, and at most every 91&nbsp;days. That random run is set apart: a run that a change brings does not move it. The registry admin can also run it.<br><b>Sends, per chat offering</b> (up to 20 chat completions, plus one repeat for each identity reply that does not match):
667
667
  <br>· <b>Fingerprint battery:</b> 3 prompts drawn at random from the 8 reference prompts the registry holds for your model's artefact, at temperature 0, at most 64 output tokens each. With no reference for the artefact nothing is asked, and the offering cannot be verified.
668
668
  <br>· <b>Calibration:</b> 1 call with about 4,000 characters of text, at most 4 output tokens, to measure your tokenizer.
669
669
  <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).
670
670
  <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>
671
- <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 temperature 0 and at most 64 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.<br><b>Identity:</b> on verified and attested nodes, about 1 in 4 of those calls asks one of the identity prompts the registry holds references for, instead of an ordinary request and in the same form. A reply that does not match is asked once more; a second miss makes Stage B due within the hour, at most once a day. It never changes your tier by itself.<br><b>409 answers:</b> excused only when your card's revision really changed, at most 3 a day; the registry then fetches the new card, asks once more at once, and sends one more blind chat completion against the new revision at a random time within the hour. Any other 409 counts as a failed call. When 3 blind calls in a row fail while your health checks pass, the node drops one tier (verified to community, community to unverified); the scheduled stages bring it back.</span></div>
671
+ <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 temperature 0 and at most 64 output tokens), on the card the registry already holds; it fetches your card about once an hour, on a timer of its own. That is about 288 health checks and 24 chat calls a day per node, whatever the number of offerings.<br><b>Identity:</b> on verified and attested nodes, about 1 in 4 of those calls asks one of the identity prompts the registry holds references for, instead of an ordinary request and in the same form. A reply that does not match is asked once more; a second miss makes Stage B due within the hour, at most once a day. It never changes your tier by itself.<br><b>409 answers:</b> excused only when your card's revision really changed, at most 3 a day; the registry then fetches the new card, asks once more at once, and sends one more blind chat completion against the new revision at a random time within the hour. Any other 409 counts as a failed call. When 3 blind calls in a row fail while your health checks pass, the node drops one tier (verified to community, community to unverified); the scheduled stages bring it back.</span></div>
672
672
  <div class="stage"><span class="k">REFERENCES</span><span><b>When:</b> when the registry admin captures identity references for a model, from a deployment of the same weights the registry trusts.<br><b>Sends:</b> 8 chat completions at temperature 0, at most 64 output tokens each.</span></div>
673
673
  <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>
674
674
  </div>