Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(ops): widen EVM-only fault cap so a merely-degraded Solana leg does not escalate to down
nirholasfc2052449437
diff --git a/api/_lib/ops/index-lag.js b/api/_lib/ops/index-lag.jsindex d01b1b920..2466f789a 100644--- a/api/_lib/ops/index-lag.js+++ b/api/_lib/ops/index-lag.js@@ -265,7 +265,7 @@ export function indexLagVerdict(lag) {// the surface said `down` for a stale secondary cursor while the actual// Solana fault (two thirds of cursors wedged) was never scored at all. So an// EVM-only fault caps at `degraded`, with the reason stated in the detail.- const evmOnlyFault = solStatus === 'ok' && evmStatus === 'down';+ const evmOnlyFault = solStatus !== 'down' && evmStatus === 'down';const status = worst(solStatus, evmOnlyFault ? 'degraded' : evmStatus);const solPart =@@ -294,7 +294,9 @@ export function indexLagVerdict(lag) {const detail =`${solPart}. ${evmPart}.` +- (evmOnlyFault ? ' Secondary-chain cursors only: the Solana index users read is fresh, so this is degraded, not down.' : '');+ (evmOnlyFault+ ? ` Secondary-chain cursors only: the Solana index users read is ${solStatus === 'ok' ? 'fresh' : 'degraded but not down'}, so this is degraded, not down.`+ : '');const hint =status === 'ok'diff --git a/tests/agent-index.test.js b/tests/agent-index.test.jsindex 43f95b8aa..c1c8ff38d 100644--- a/tests/agent-index.test.js+++ b/tests/agent-index.test.js@@ -924,6 +924,23 @@ describe('indexLagVerdict', () => {);expect(verdict.status).toBe('degraded');expect(verdict.detail).toContain('the Solana index users read is fresh');+ expect(verdict.detail).toContain('is fresh');+ });++ it('still caps at degraded when Solana is merely degraded, not ok, and EVM is down', () => {+ // Measured on production 2026-10-25: Solana error rate 5.28% (104/1971,+ // just over the 5% degraded threshold) with a fresh 45-minute median lag,+ // while Base (EVM) sat 69h19m stale. The guard required solStatus === 'ok'+ // exactly, so this combination escalated the whole subsystem to `down`+ // even though no user-visible Solana fault exists.+ const verdict = indexLagVerdict(+ lagFixture({+ solana: { agents: 1971, errored: 104, medianLagMin: 45 },+ evm: { lagMin: 4159, worstBlocksBehind: 125_079, behindChains: 1, staleChains: 1 },+ }),+ );+ expect(verdict.status).toBe('degraded');+ expect(verdict.detail).toContain('degraded but not down');});it('still reports down when Solana itself is the leg that is behind', () => {