@opennodes/registry 0.1.14 → 0.1.15
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/package.json +1 -1
- package/src/stageb.js +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennodes/registry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
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), MCP surface, and the web app (catalog, chat, advisor, Node Builder)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/src/stageb.js
CHANGED
|
@@ -182,10 +182,9 @@ export async function runStageB(store, nodeId, card, { safeFetch, capacity = {}
|
|
|
182
182
|
await store.recordProbe(nodeId, offering.offering_id, 'B', 'context', verdict.context.ok,
|
|
183
183
|
`claimed ${verdict.context.claimed}, verified ${verdict.context.verified_cap}`,
|
|
184
184
|
verdict.context);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
185
|
+
// Every run replaces the last result: a pass stores the full claimed window, which lifts an
|
|
186
|
+
// earlier cap; 0 = nothing verified, shown as unverified rather than trusting the claim.
|
|
187
|
+
await store.setObservation(nodeId, offering.offering_id, 'context_cap', verdict.context.verified_cap);
|
|
189
188
|
|
|
190
189
|
verdict.capacity = await probeCapacity(safeFetch, card, offering, capacity);
|
|
191
190
|
await store.recordProbe(nodeId, offering.offering_id, 'B', 'capacity', verdict.capacity.ok, null, verdict.capacity);
|