Repository navigation
feat(fanql): FanQL text query language with HTTP, MCP and AI-optional UI - #410
Merged
Merged
Conversation
…nd extract QueryShape
Remove language-version negotiation from HTTP, MCP, envelopes, and generated references. Keep query text optional for MCP. Reduce repeated formatter shape checks and keep bounded spelling-distance buffers on the stack so allocation limits retain headroom. Isolate the settlement regression from repeated checkout hashing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds FanQL, a compact text form of Fanout's structured query, so people and
agents can query telemetry without an LLM key or raw SQL:
catalog, and lowering to the existing structured query. A canonical
printer lifts stored queries back to text through the engine parser.
count_if, …) and measure arithmetic for spansand logs, using one shared measure grammar with query budgets and a
disclosed 20-sample ranking floor.
specific repairs and one-click fixes (
span,fix_its).absolute or relative windows.
POST /api/fanql/parse,POST /api/fanql/format,POST /api/fanql/complete,GET /api/fanql/reference.query_telemetryaccepts optional FanQLtext(syntax and examplesinline). The reference is published as
fanout://fanql/referenceand inthe site docs, generated from the same registries the engine uses.
docs/specs/2026-10-29-no-llm-ui-design.md(section 0).FanQL lowers to the existing validated query, so the arbitrary SQL rules and
telemetry relations are unchanged. There is no language version field.
Verification
just check(pre-push and CI)just test-racelatency budgets as opt-in benchmarks (
just fanql-perf)regression tests
ingest or release-contract changes