agent-relay-server 0.99.0 → 0.99.1
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/docs/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Relay API",
|
|
5
|
-
"version": "0.99.
|
|
5
|
+
"version": "0.99.1",
|
|
6
6
|
"description": "Real-time message bus for inter-agent communication. Agent-first: this spec is designed for machine consumption — agents can self-discover the full API surface via GET /api/spec.",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "MIT",
|
package/package.json
CHANGED
|
@@ -403,11 +403,12 @@ function mergeQuotaWindows(existing: StoredQuotaState | undefined, incoming: Quo
|
|
|
403
403
|
mergedTimes.set(key, incoming.updatedAt); mergedSources.set(key, incoming.source);
|
|
404
404
|
return incomingWindow;
|
|
405
405
|
}
|
|
406
|
-
// Same-priority sources: prefer the newer reading
|
|
406
|
+
// Same-priority sources: prefer the newer reading. Keep the regression guard for noisy
|
|
407
|
+
// self-reports, but let authoritative API ingest correct a stale/maxed WHAM sample (#750).
|
|
407
408
|
if (incoming.updatedAt < existingUpdatedAt) {
|
|
408
409
|
mergedTimes.set(key, existingUpdatedAt); mergedSources.set(key, existingSource); return window;
|
|
409
410
|
}
|
|
410
|
-
if (quotaWindowUtilizationRegressed(window, incomingWindow)) {
|
|
411
|
+
if (incoming.source !== "ingest" && quotaWindowUtilizationRegressed(window, incomingWindow)) {
|
|
411
412
|
mergedTimes.set(key, existingUpdatedAt); mergedSources.set(key, existingSource); return window;
|
|
412
413
|
}
|
|
413
414
|
acceptedIncomingWindow = true;
|