Skip to content

fix(api): /api/stat returns insufficient status to match /api/citable (cherry-pick to main) - #627

Merged
Flotapponnier merged 1 commit into
mainfrom
fix/stat-align-insufficient-main
Jun 22, 2026
Merged

fix(api): /api/stat returns insufficient status to match /api/citable (cherry-pick to main)#627
Flotapponnier merged 1 commit into
mainfrom
fix/stat-align-insufficient-main

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #626 to main.

/api/stat was claiming live data with a value and a leader for
benchmarks where the underlying harness has no usable sample
(network-fees, token-deployment-cost, oracle-deviation 3 samples).
/api/citable for the same bench correctly returned status draft.

LLMs and agents that fetch /api/stat directly were seeing the
misleading assertion. This change adds an isInsufficient predicate
that both endpoints now share, and propagates the same status
through headlineSentence so the /answers page and /api/llm-context
also degrade to "insufficient data" instead of asserting a winner.

No code in the harness changed.

@Flotapponnier
Flotapponnier merged commit b81ce60 into mainJun 22, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/stat-align-insufficient-main branch June 22, 2026 09:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Flotapponnier