The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ArrowInvalid
Message: JSON parse error: Invalid value. in row 0
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 354, in _generate_tables
df = pandas_read_json(f)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
return json_reader.read()
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
obj = self._get_object_parser(self.data)
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
self._parse()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1392, in _parse
ujson_loads(json, precise_float=self.precise_float), dtype=None
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Expected object or value
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4675, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2885, in _head
return next(iter(self.iter(batch_size=n)))
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3095, in iter
for key, pa_table in ex_iterable.iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2600, in _iter_arrow
yield from self.ex_iterable._iter_arrow()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 357, in _generate_tables
raise e
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
return check_status(status)
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
- 1. The rule, in one line
- 2. Where this folder sits and what it needs
- 3. Asking one question
- 4. How a question becomes a sentence
- 5. The votes and the arbiter
- 6. The two paths and the eight engines
- 7. What a session prints when the engine is unkind
- 8. The nine final states
- 9. The ten nodes, and how a session really ends
- 10. Faults, and what each one breaks
- 11. The corpus file
- 12. The lexicons
- 13. Tests
- 14. What this bundle does not do
- 15. Where this folder is published
- 16. The fields of one corpus line
- 17. Loading this dataset
- 18. The eight bundles this gateway calls
- 19. Rights
- 20. Citation
LingoLOGOS genesis: the gateway between a question and eight engines
This dataset is the genesis/ folder of the LingoLOGOS project, published as it stands: 75 files of code
and data together, plus this card in place of their README. It is the language front door of the project.
A person writes a question in one of six written varieties; the bundle reads it twice with two independent readers, votes for a
domain, translates it into the controlled sentence of that domain, asks one of eight engines for an
answer as a separate process, and answers in the variety the question was written in. The number it
shows is min(what the engine is worth, what the reading is worth), so an assurance never hides a
guess: a sentence two readers agreed on is worth 2, a sentence only one reader managed is worth 1, a
sentence nobody read is worth 0 and says so.
Nothing here is a demonstration of fluency. The bundle is built so that every number it prints can be traced to something it measured, and so that a node which lies about its own work is caught by the referee of the same session. Section 14 lists what it does not do, with the strings that show it.
1. The rule, in one line
assurance shown = min(engine assurance, ceiling of the reading)
| The reading ended as | Ceiling | Why that number |
|---|---|---|
PASSTHROUGH |
3 | the question arrived already written in the controlled sentence of a domain, and it travelled the direct path: nothing was read, so nothing was risked |
AGREED |
2 | two readers with different methods produced the same sentence |
SINGLE |
1 | one reader produced it and the other saw nothing, or the loose reader had to reorder pieces or repair a spelling |
DISPUTED, AMBIGUOUS, NOT COVERED, TAMPERED, NONE |
0 | the gateway did not read the question, or read it in two incompatible ways, or the record it was given does not match the sentence it sent |
The engine side is reported next to it, never merged into it: an engine that abstains, refuses, says it is not covered, or crashes lowers the assurance to 0 and the answer is not shown. The final state is one of nine (section 8), and the reply says which.
2. Where this folder sits and what it needs
The engines are not part of this dataset: section 18 lists the eight bundles this gateway calls as
separate processes, and the gateway never imports a module of any of them and never writes outside
itself. Only the standard library and z3-solver are required, plus pytest for the tests and
huggingface_hub for the publishing tool alone; all three are named in requirements.txt. Every
command below is written from inside the folder, as it arrives from the hub:
| Path | What it holds |
|---|---|
lingologos_gateway/ |
fourteen modules: protocol, numbers, lexicon, readers, canonical, votes, bridge, decide, render, extract, faults, agents, pipeline, corpus |
lexicon/ |
one JSON file per variety: ar, en, es, hi, it, zh |
problems/corpus.jsonl |
70 questions, each with what this bundle really answered and why |
nodes/<10 node ids>/ |
grammar.gf, ontology.smt2, seed_payload.json for each orchestrated node |
agents/gateway_agent |
the single entry point of all ten nodes, plus gateway_agent.cmd for Windows |
topology.json |
the ten instances and the routing matrix of section 9 |
tools/ |
ask.py, corpus_check.py, coverage_report.py, ablation.py, orchestrated_session.py, publish_dataset.py |
tests/ |
nine files, 272 tests |
SPECIFICATION.md |
what the gateway really does, section by section, and where it departs from the parent specification |
Requirements are z3-solver (only for the referee, which solves the claims the nodes attach to their
envelopes) and pytest for the suite; both are named in requirements.txt, together with
huggingface_hub, which only tools/publish_dataset.py needs and nothing else in this bundle imports.
The gate tests/test_topology.py::test_the_package_imports_only_the_standard_library_z3_and_itself reads
the syntax trees of every module of the package lingologos_gateway and fails if one of them imports
anything outside the standard library, z3 and the package itself, and
test_the_package_opens_no_socket_and_no_url fails if one of them even mentions socket, urllib,
httpx, requests, huggingface or http.: the engines stay outside this bundle and are only ever
launched as processes.
On Windows set PYTHONUTF8=1 before running anything here. The console of a default Windows session is
cp1252 and the questions are not ASCII; without that variable a run dies on UnicodeEncodeError in
printing, not in the gateway.
3. Asking one question
python tools/ask.py "quanto fa 1/2 + 1/3" --lang it
question : quanto fa 1/2 + 1/3
language : it
faults : none
reading state : AGREED
domain chosen : math
sentence asked : evaluate 1/2 + 1/3
votes : geometry 0, math 5, physics 0, structures 0
engine : math direct VERIFIED, assurance 3, 1.728s
engine record : evaluate 1 / 2 + 1 / 3
engine reasons : none
probe : CHANGED evaluate + 1/3
final state : ANSWERED
assurance shown : 2 (reading ceiling 2, engine assurance 3)
referee : 10 of 10 envelope claims confirmed
answer : 5/6 (= 0.833333333333)
Il motore ha risposto: 5/6 (= 0.833333333333)
stato: ANSWERED | certezza: 2/2 | dominio: math | percorso: direct
Normalizzazione applicata: evaluate 1/2 + 1/3 (lettura: AGREED)
sonda: CHANGED (evaluate + 1/3)
Read the lines from the top: what was understood, what sentence was sent, who voted, what the engine printed, what the probe did, and what the session finally shows. The block indented at the bottom is the answer as the person sees it, in the variety of the question; the lines above it are the audit trail that produced it.
A question nobody read, in the same shape:
python tools/ask.py "senso unico della vita 42" --lang it
reading state : NONE
domain chosen : none
sentence asked : None
votes : geometry 0, math 0, physics 0, structures 0
probe : SKIPPED the sentence carries no numeral to change
final state : NOT_UNDERSTOOD
assurance shown : 0 (reading ceiling 0, engine assurance None)
referee : 10 of 10 envelope claims confirmed
because : nessun lettore e riuscito a leggere la domanda
Non ho capito la domanda
stato: NOT_UNDERSTOOD | certezza: 0/0 | dominio: - | percorso: direct
perche: nessun lettore e riuscito a leggere la domanda; Nessun dominio ha riconosciuto la domanda: senso unico
The geometry answer is a structured record, and the gateway prints the fields instead of the blob:
python tools/ask.py "where do the circle of radius 5 and the line y = x + 100 meet" --lang en
sentence asked : Conic q: x^2 + y^2 = 25. Line l: y = x + 100. Find the intersection of line l and conic q.
votes : geometry 11, math 0, physics 0, structures 0
engine : geometry direct VERIFIED, assurance 3, 0.516s
final state : ANSWERED
assurance shown : 2 (reading ceiling 2, engine assurance 3)
the engine answered: q1: outcome=none, count=0, kind=conic_line, discriminant=-39800
numerals the lexicon rule transformed: 5 -> 25 (square)
A circle of radius 5 and the line y = x + 100 do not meet, and that is what the answer says. The
radius appears in the sentence as 25 because the frame squares it into x^2 + y^2 = 25; the
derivation is declared by the frame and printed, so a number that appears without a declaration is a
bug rather than a detail (section 4).
Flags of ask.py: the question is positional, then --lang (a variety code), --path
(direct or stratum), --faults (section 10), --json for the machine-readable dossier.
4. How a question becomes a sentence
Two readers work from the same variety file, with different methods, and their disagreement is the measurement the bundle reports.
reader_b, the strict reader, demands the marker phrase of a frame exactly as the file writes it. It
never moves a word and never repairs one.
reader_a, the loose reader, additionally:
- drops the filler words the variety declares (
la,il,si,per, ...); - reads a marker word written one keystroke away from the word the frame is made of: one
substitution, one deletion, one insertion, or two neighbouring letters written the other way round,
and only when exactly one candidate matches and the word is not itself a word of the variety and is
at least four letters long (
rislviis read asrisolvi;carrois left alone, because it is one keystroke from bothcarriandcarco;chiloetriis left alone, becausechilometriis a unit word and no marker phrase of that variety is written with it); - when a frame declares a
pivot, places the pieces of the frame in the order the domain needs, provided every number and unit is present exactly once and no word of the variety is left over (converti in metri 3 chilometriis the convert frame with its pieces out of order).
Every step is recorded (spelling corrected: rislvi -> risolvi, reordered, accents folded in ...),
and a reading obtained only by the loose reader can never be reported as an agreement: what one reader
inferred is worth one, not two. Measured, with one letter taken out of one marker word of an Italian
example of each frame:
quato fa 1/2 + 1/3 strict: nothing loose: math ANSWERED at 1/1
rislvi x^2 - 5*x + 6 = 0 per x strict: nothing loose: math ANSWERED at 1/1
convrti 1500 m in km strict: nothing loose: physics ANSWERED at 1/1
lungezza ... carico uniforme -12 strict: nothing loose: structures ANSWERED at 1/1
dove si inconrano il cerchio ... strict: nothing loose: geometry ANSWERED at 1/1
Word order that is scrambled beyond what a declared pivot allows, and filler the variety does not
declare before the marker phrase, are not read: the answer is NOT_UNDERSTOOD, not a guess.
Numeral honesty is checked twice. Every numeral the person wrote has to survive into the canonical
sentence, or be accounted for by a derivation the frame declares (kind square:{slot}, or a constant
in added); and probe asks the engine the same sentence with one numeral changed, to see whether
the answer really depends on it. CHANGED with a different answer is the healthy result; SAME means
the answer did not move and is reported as such; SKIPPED means there was no numeral to change. A
math engine that re-spells 1/2 as 1 / 2 is not accused of losing a number: the numeral pattern
allows spaces around the slash, because that re-spelling is what the engine really prints.
5. The votes and the arbiter
Each of the four domain nodes counts the evidence that points at its domain, and each kind of evidence has a weight:
| Evidence | Weight |
|---|---|
| the question arrived already written in that domain's sentence | 4 |
| the strict reader produced a sentence of that domain | 3 |
| the loose reader produced a sentence of that domain | 2 |
| a marker word of that domain appears, without a reading | 2 |
The claim a domain node attaches to its envelope says, in SMT: no other domain beats me. The referee of the same node re-derives the votes from the same data and solves the claim, so a node that reported a score it did not compute is refuted inside its own turn. In the first example of section 3 the math score is 5 (strict 3 + loose 2) and the others are 0; in the geometry example it is 11.
A tie is not resolved. extract.arbitrate refuses the decision and the final state is CLARIFY with
the candidates listed in the reply, and the reply says which two frames disagreed.
6. The two paths and the eight engines
Every domain has two doors, and this bundle walks both of them:
| Domain | Direct engine | Intermediate stratum |
|---|---|---|
math |
datasets/math/tools/solve.py --json |
datasets/math-stratum/tools/ask.py --json |
physics |
datasets/physics/tools/ask.py --json --in-process |
datasets/physics-stratum/tools/ask.py --json |
structures |
datasets/struc/tools/ask.py --json --in-process |
datasets/struc-stratum/tools/ask.py --json |
geometry |
datasets/geometry/tools/geometry_runner.py --json |
datasets/geometry-stratum/tools/ask.py --json |
The eight adapters print two shapes: the direct engines print final.status with an assurance, a
refusal or an abstention; the strata print final.state (PASSTHROUGH, NOT COVERED) with the
engine status under a *_status key and the answer as a string. bridge.verdict_of and
bridge.stratum_verdict map both shapes onto one verdict, and the measured ceiling each adapter is
worth is kept in bridge.ENGINE_CEILING next to the mapping, so the reader of a verdict can see when
a ceiling is an observation about an adapter rather than a property of a domain. Exit codes are read,
never the prose: 0 a verdict with assurance above 0, 2 a verdict with assurance 0, 3 a record
that carries a detection, 1 usage or a crash. A stratum is asked in the variety it knows, and an
unknown variety is refused before the subprocess starts; the direct engines take a sentence, not a
language.
The canonical question of each domain, through both doors, measured on the checkout that produced this dataset:
| Domain | Sentence asked | direct | stratum |
|---|---|---|---|
geometry |
Conic q: x^2 + y^2 = 25. Line l: y = x + 100. ... |
VERIFIED 3, 0.6 s |
NOT COVERED 0, 1.7 s (no_verb; unknown_word) |
math |
evaluate 1/2 + 1/3 |
VERIFIED 3, 2.0 s |
VERIFIED 2, 3.7 s |
physics |
convert 1500 m to km |
VERIFIED 2, 2.3 s |
VERIFIED 2, 5.8 s |
structures |
beam simple span length 6 with load uniform -12 ... |
VERIFIED 2, 0.2 s |
VERIFIED 2, 2.2 s |
The stratum path never beats the direct path here, and it is two to three times slower; the geometry
stratum does not read the canonical geometry sentence at all. --path stratum exists because it is
the path the parent specification asks for, and both columns are published so that the choice can be
made on these numbers.
7. What a session prints when the engine is unkind
Four things can go wrong on the engine side and the bundle keeps them apart instead of collapsing them into "no answer":
python tools/ask.py "quanto fa sqrt(-1)" --lang it
reading state : AGREED
domain chosen : math
sentence asked : evaluate sqrt(-1)
engine reasons : formalizer_a failed: ParseError: unexpected trailing input '('
final state : UNKNOWN
assurance shown : 0 (reading ceiling 2, engine assurance 0)
The gateway read the question correctly (agreement, ceiling 2), the math engine's own formalizer could
not parse sqrt(-1), and the session says UNKNOWN at 0 with the engine's reason. The same holds for
log(0). A refusal (REFUSED, GUARD_BLOCKED, ABSTAINED) ends as REFUSED, with the engine's
reason shown; a stratum that does not cover the sentence ends as OUT_OF_DOMAIN; an adapter that is
not installed, that crashes, or that prints something unparseable ends as ENGINE_ERROR and the
command it tried to run is shown. TAMPERED is reserved for the record not matching the sentence that
was sent (section 9 and 10).
8. The nine final states
decide.STATES is closed, and every line of the corpus is graded against it:
| State | When | Assurance |
|---|---|---|
ANSWERED |
an engine answered and the record matches the sentence asked | min(engine, ceiling), above 0 |
REFUSED |
the engine declined on purpose (REFUSED, GUARD_BLOCKED, ABSTAINED) |
0 |
UNKNOWN |
the engine could not decide (UNKNOWN, or a verdict with assurance 0) |
0 |
OUT_OF_DOMAIN |
the stratum says the sentence is not covered | 0 |
CLARIFY |
two domains tied, or a frame conflict: the reply lists the candidates | 0 |
NOT_UNDERSTOOD |
neither reader produced a sentence, or the variety has no lexicon here | 0 |
ENGINE_ERROR |
the adapter is missing, crashed, or printed something unparseable | 0 |
TAMPERED |
the record shown does not match the sentence that was sent | 0 |
NONE |
nothing reached the end of the session: a node died, or the pipeline was cut | 0 |
The four courteous cases are deliberately not flattened. "I did not understand", "this is outside what these engines cover", "an engine refused to answer this", and "an engine is not available" print different states, different assurance, and different localized wording; a system that answers them with one sentence is a system a person cannot act on.
9. The ten nodes, and how a session really ends
The same gateway runs as an orchestrated session of ten processes, one per node: intake,
reader_a, reader_b, domain_math, domain_physics, domain_structures, domain_geometry,
arbiter, boundary, closer. Each node speaks the envelope of the orchestrator (JSON on stdin and
stdout), carries the whole dossier inside payload.naturalLanguage after the marker @@GENESIS@@,
and states a claim in payload.smtConstraints. The claim is re-derived by the referee of that node
from data it recomputes itself: the strict and loose readings, the votes, the assurance shown. A node
that reports an assurance higher than the ceiling allows is refuted; so is a node that reports a
reading it did not produce. The tool prints the count in every run: referee: 10 of 10 envelope claims confirmed.
Two things about topology.json look wrong and are not:
- The routing matrix is written backwards.
orchestrator.pywalks the edges in the order they are listed, and rule k means "the node on the right reads the inbox of the node on the left". So the pipeline readsintake -> closeronly as a consequence of the rules being listed in the opposite order:reader_a -> intake,reader_b -> reader_a,domain_math -> reader_b, ...closer -> boundary. Reversing the list is not a stylistic choice: it breaks the session on the second edge. MAX_TURNS_REACHEDis the normal end of an honest session. The orchestrator implements exactly two termination conditions,UNSAT_BREAKER(any node reports an unsatisfiable payload) andSAT_CONVERGENCE(a run of satisfiable payloads as long as the edge list). Naming either one interminationConditionwould end a correct session on the second turn, because an honest reader's claim is unsatisfiable by construction when it has nothing to keep. So the session runs itsmaxTurnsof 10 turns and ends withtermination_reason == "MAX_TURNS_REACHED", andtests/test_topology.pypins exactly that, with the measurement that explains it."FIXED_PIPELINE"in the file is an accepted but unimplemented string; the tests check it is there as a declaration, not that the orchestrator honours it.
On Windows the executable agents/gateway_agent is a POSIX script with a shebang,
which cannot be spawned, so tools/orchestrated_session.py appends the .cmd shim
(agents/gateway_agent.cmd) to the executable path. The orchestrator gives each node 30 seconds, so
the bridge inside a node uses 25.
Run one session by hand, and see every node turn:
python tools/orchestrated_session.py --question "quanto fa 1/2 + 1/3" --lang it
The transcript and the runtime state are written to a temporary directory and printed as a table of
turns; --faults takes the fault specification of section 10.
10. Faults, and what each one breaks
lingologos_gateway/faults.py is the fault catalogue of the bundle. A node reads the environment
variable LINGOLOGOS_GENESIS_FAULTS and misbehaves only if its own id and the requested kind are
named. Five kinds, and each is allowed only where it is meaningful (faults.WHERE):
| Kind | What the node does |
|---|---|
inflate |
shows an assurance higher than its engine printed or than the reading allows |
drop |
loses a numeral of the sentence it forwards |
swap |
hands the dossier to another domain's frame |
crash |
dies instead of answering |
echo |
forwards a verdict whose record is not the sentence that was asked |
An unknown kind is a FaultError, not a silent no-op, and faults.unapplied gives the reason a
requested fault could not be applied at a given node. The whole table is produced by
tools/ablation.py, which runs the orchestrated session once per pair; on this
checkout, for the question quanto fa 1/2 + 1/3 in it on the direct path (baseline ANSWERED at
2/2, reading AGREED, domain math), 25 rows came out like this:
assurance fell 4
no decision 10
refuted promise 8
state moved 3
no row shows an assurance above its ceiling
That last line is the honesty invariant of the whole bundle, checked row by row and not only claimed: a fault may lower an assurance, move a state, or end a session, and it never raises one. The rows most worth reading:
| Node | Fault | State | Assurance | Witness printed by the tool |
|---|---|---|---|---|
reader_a |
inflate |
ANSWERED |
1/1 | assurance fell: 2 became 1 at ceiling 1 (the strict reader disagreed, so the reading is SINGLE) |
reader_a |
swap |
CLARIFY |
0/0 | state moved: ANSWERED became CLARIFY, reading DISPUTED |
domain_math |
inflate |
TAMPERED |
0/0 | refuted promise: the domain node of math published score 25, the words of this session give 5 |
arbiter |
drop |
TAMPERED |
0/0 | refuted promise: the sentence this session asked about, evaluate + 1/3, no longer carries every numeral of the question |
boundary |
drop |
UNKNOWN |
0/2 | state moved: ANSWERED became UNKNOWN |
boundary |
swap |
TAMPERED |
0/0 | refuted promise: the verdict came from the engine of physics, the chosen domain is math |
boundary |
echo |
TAMPERED |
0/0 | refuted promise: the verdict carries the record evaluate + 1 / 3 for the sentence evaluate 1/2 + 1/3 |
closer |
inflate |
TAMPERED |
0/0 | refuted promise: the verdict shown carries assurance 3, while the engine printed 3 for status VERIFIED and the reading allows 2 |
arbiter |
crash |
NONE |
0/0 | no decision: the session names the nodes that ended badly: arbiter |
intake |
crash |
NONE |
0/0 | no decision: eight nodes ended badly, and no answer is shown |
boundary:drop is caught as a moved state and a lowered assurance, not as a tampering accusation: the
sentence the session asked lost a numeral, the engine was asked a different question, and what came
back no longer supports the answer. That is the honest shape of that row, and section 14 says so.
11. The corpus file
problems/corpus.jsonl holds 70 questions: 9 comment lines and 70 JSON objects, each one recording
what this bundle really did with the question, and why. Ids name the variety (it-01 to it-23,
en-01 to en-11, es-, hi-, zh-, ar- with 8 each, fr-01 for a variety with no lexicon
here) and s-01 to s-03 for the three controlled-sentence handoffs.
Graded on the checkout that produced this dataset with python tools/corpus_check.py:
lines: 70, ok: 70, wrong: 0
states: ANSWERED 47, NOT_UNDERSTOOD 14, OUT_OF_DOMAIN 1, REFUSED 3, UNKNOWN 5
assurances: 0 20, 1 1, 2 47, 3 2
languages among the lines: 8 (ar, en, es, fr, hi, it, it-IT, zh), of which 7 carry a lexicon here
A row states an expectation about a reading, not about mathematics: the expect block carries the
reading state, the domain, the sentence that was sent, the final state, an assurance bound, and
referee_clean that no envelope claim of the session was refuted. tests/test_corpus_file.py refuses
a corpus that promises a state this bundle can only reach with a fault planted (CLARIFY, TAMPERED,
ENGINE_ERROR, NONE), so the published rows stay a description of honest behaviour.
The three handoff rows matter: s-01 and s-03 arrive written in the controlled sentence and are
answered at 2 (an en conversion, capped by its engine) and at 3 when the direct path and the engine
both allow it, while s-02 is a controlled geometry sentence that the stratum path cannot read.
fr-01 is a French question: there is no French lexicon in this bundle, so the guard of decide
answers NOT_UNDERSTOOD and names the untranslated code rather than letting a node crash on a missing
file.
12. The lexicons
One JSON file per variety: ar, en, es, hi, it, zh. lexicon.validate is run over every
file at import of the tests and refuses a file that misses any of the eight required blocks (units,
marker words, frames, labels, filler, numerals, domains, examples) or that names a domain that is not
one of the four. Each file carries 33 label keys, so the nine final states, the probe outcomes, the
reasons and the clarifying questions are worded in the variety of the question; the Italian label text
is ASCII by design ("nessun lettore e riuscito a leggere la domanda"), because the repository
requires ASCII inside Python sources and these strings are read by Python tests.
Each variety ships 8 example questions, and tools/coverage_report.py runs all of them:
python tools/coverage_report.py --check
RESULT: 0 stale ceilings, 0 sessions with a refuted claim or no decision
over 48 questions (8 per variety, 6 varieties), which ended 40 ANSWERED and 8 NOT_UNDERSTOOD: the
seven and eighth examples of Arabic, Spanish, Hindi and Chinese are the courtesy cases ("the meaning of
life", "predict position and momentum exactly"), and they are reported as not understood rather than
answered. Two of the English examples travel as controlled sentences and are graded PASSTHROUGH.
13. Tests
python -m pytest tests -q
272 tests in nine files, a little under a minute on this machine (53.9 s on the run that wrote this sentence):
| File | Tests | What it refuses |
|---|---|---|
test_topology.py |
30 | a topology whose nodes, edges, executables or seeds do not match the ten node folders; it pins MAX_TURNS_REACHED with the measurement that explains it |
test_lexicon.py |
52 | a variety file with a missing block, an unknown domain, a label key absent from one variety, an unsafe character for an engine |
test_numbers_and_readers.py |
30 | a numeral lost between question and sentence, a claim a solver refutes, a reader that agrees with itself, a spelling repaired that is more than one keystroke away |
test_arbiter_and_decide.py |
106 | every state transition, every ceiling, the abstain vote, the guard for an unknown variety |
test_bridge_mapping.py |
11 | an engine imported instead of launched, a verdict shape unmapped, a ceiling invented rather than measured |
test_render_and_faults.py |
14 | a state with no label in some variety, a geometry record dumped as JSON, a fault kind any node would accept |
test_corpus_file.py |
12 | a corpus that promises a state only a fault can produce, a duplicated id, a typo inside an expect key |
test_engines_and_paths.py |
9 | an adapter whose measured assurance moved; skipped when an engine is not installed |
test_orchestrated_e2e.py |
8 | an orchestrated session whose claims are refuted, whose routing breaks, whose crash is not reported as NONE |
14. What this bundle does not do
Every line below was measured on the checkout that produced this dataset; none of them is a TODO, and all of them are the reason the assurance numbers are what they are.
- No spelling correction beyond the marker phrase. The parent specification gives the normative
example
oi per favvore mi risoolvi sta roba 2*x + 8 = 0 pe la xand expects a reading at assurance 2. This bundle repairs the marker word (risoolvibecomesrisolvi), and still endsNOT_UNDERSTOOD, becausefavvore,sta robaandpe la xare not words of the variety and the marker phrase is broken in more than one place. Measured, all six normative examples of section 3.6 of that specification endNOT_UNDERSTOODhere; the four typo cases have their marker word repaired, and the two boundary cases (risolvi x e y con 5,x^2 - 5x + =) are refused because there is nothing to read, which is the outcome those examples ask for.SPECIFICATION.mdstates this as an amendment rather than pretending the benchmark passes. - Scrambled word order is not read unless the frame declares a pivot, and filler before a marker phrase is not absorbed. A reading assembled by moving words around words nobody recognised would be a guess wearing a ceiling.
- The geometry stratum does not read the canonical geometry sentence (
NOT COVERED, reasonsno_verb; unknown_word, section 6). On the stratum path a geometry question endsOUT_OF_DOMAIN. - The stratum path is never better than the direct path in these measurements, and costs two to three times as long. It is published because it is the path the parent specification names.
- A fault at the boundary node is caught as a moved state, not as a lie.
boundary:dropendsUNKNOWNat 0 under a ceiling of 2: the sentence lost a numeral, the engine was asked another question, and the row reports that the answer no longer follows.closer:inflateandboundary:echoare caught as refuted promises; a reader that inflates is simply not believed, and the reading drops toSINGLEat 1. - No fault-free
CLARIFYorDISPUTEDrow exists with these two readers. Their disagreement always costs a numeral, so it shows up asSINGLE;CLARIFYis reached intools/ablation.pythrough a planted swap. The tie is implemented and tested; what is missing is a natural question that produces it with these two readers, and saying so is part of publishing the table. - A single reader can be internally consistent and still read a conversion backwards. Corpus line
it-18isconverti 1500 m grazie in km, and one reader producedconvert 1500 km to m: the sentence is well formed, every numeral survived, and the reading isSINGLEat assurance 1. That row is published with that expectation, because a benchmark that hides it teaches nothing. - The engines keep their own limits.
sqrt(-1)andlog(0)are refused by the math engine's formalizer,x^2 - 5x + =is not understood, and a circle and a line that do not meet producecount: 0withdiscriminant: -39800. The gateway reports these as its own states with the engine's reason, and does not improve on them. - The reply is localized, the audit trail is not. Labels, reasons and clarifying questions come from the variety file; the module names, states, frame triggers and canonical sentences stay in English, so a bug report is comparable across varieties.
15. Where this folder is published
This dataset is 75 files plus this card: the fourteen modules, the six lexicons, the 70 questions with
their measured expectations, the ten node definitions with their SMT claims, the topology, the six tools,
and the nine test files. The eight engines it calls are not inside it, and section 18 gives the bundle to
download for each of them; a session of ten nodes also needs src/lingologos_orchestrator, which is code
of the repository and is not published as a dataset. Without an engine this folder does not fail quietly:
bridge.installed() reports the adapter missing and the answer is ENGINE_ERROR with the command it
tried to run.
16. The fields of one corpus line
problems/corpus.jsonl holds 70 lines, one JSON object each, and each line was graded against the bundle
in this folder with no fault planted in any node. The fields:
| Field | Lines | What it holds |
|---|---|---|
id |
70 | it-01 to it-23, en-01 to en-11, es-01 to es-08, hi-01 to hi-08, zh-01 to zh-08, ar-01 to ar-08, fr-01, s-01 to s-03 |
lang |
70 | it 24, en 12, es, hi, zh, ar 8 each, it-IT 1 (a variety code with a region, which lexicon.normalize_code folds to it), fr 1 (a variety with no lexicon here) |
kind |
70 | what is being tested: nonsense 9, intersection 8, convert 7, evaluate 6, reactions 6, solve 5, audit 4, pi 4, passthrough 3, unknown_function 2, impossible_conversion 2, stratum 2, and 12 kinds that appear once |
question |
70 | the question, written the way a person writes it |
why |
70 | one English sentence saying why this expectation and not a better-looking one |
path |
3 | stratum on s-01, s-02, s-03; the other 67 lines run on the direct path |
expect.state |
70 | ANSWERED 47, NOT_UNDERSTOOD 14, UNKNOWN 5, REFUSED 3, OUT_OF_DOMAIN 1 |
expect.reading |
70 | AGREED 50, NONE 14, PASSTHROUGH 5, SINGLE 1 |
expect.domain |
70 | physics 21, math 20, geometry 9, structures 6, null on the 14 lines nobody read |
expect.assurance |
70 | 2 on 47 lines, 0 on 20, 3 on 2, 1 on 1 |
expect.sentence |
56 | the controlled sentence the gateway built, exactly as it was sent to an engine |
expect.answer_contains |
48 | a string the answer had to contain |
expect.no_answer |
20 | the line asks that no answer be produced at all |
The 20 lines at assurance 0 are not failures of the bundle: they are the lines where the honest outcome is
no answer, and the card says so in section 1. corpus.unknown_expect_keys reports an expectation key that
no code reads, so a typo in a line cannot look like a pass; tools/corpus_check.py --json prints one graded
record per line.
17. Loading this dataset
The corpus as data:
from datasets import load_dataset
rows = load_dataset("tailot/lingologos-genesis", "corpus")["train"]
print(rows[0]["question"], rows[0]["expect"]["state"], rows[0]["expect"]["assurance"])
The bundle as code is not a package on an index: download the folder, then from inside it
pip install -r requirements.txt
python tools/ask.py "quanto fa 1/2 + 1/3" --lang it
python -m pytest tests -q
The tests that ask an engine end ENGINE_ERROR rather than failing when the engine of section 18 is not
present, and tools/coverage_report.py needs the engines to say anything at all.
18. The eight bundles this gateway calls
The gateway asks for an answer by starting a program in one of eight folders of the project. On the hub each
of them is its own dataset; download it, and put it where bridge.ADAPTERS looks (the folder name is the
last part of the path in the second and third columns).
| Domain | Certainty engine | Published at | Intermediate stratum |
|---|---|---|---|
math |
datasets/math/tools/solve.py |
https://huggingface.co/datasets/tailot/lingologos-math | https://huggingface.co/datasets/tailot/math-stratum |
physics |
datasets/physics/tools/ask.py |
https://huggingface.co/datasets/tailot/lingologos-physics | https://huggingface.co/datasets/tailot/physics-stratum |
structures |
datasets/struc/tools/ask.py |
https://huggingface.co/datasets/tailot/lingologos-struc | https://huggingface.co/datasets/tailot/struc-stratum |
geometry |
datasets/geometry/tools/geometry_runner.py |
https://huggingface.co/datasets/tailot/lingologos-geometry | https://huggingface.co/datasets/tailot/geometry-stratum |
A session of ten orchestrated nodes (section 9) additionally needs src/lingologos_orchestrator, which is
part of the code of the repository and is not published as a dataset. Everything else in this folder runs
from what is here: the two readers, the vote, the numeral audit, the decision rule and the localized answer
need no engine at all.
19. Rights
No license is declared for this dataset, its lexicons, its corpus or its code: reuse is not granted by this
page. The six lexicons, the 70 questions with their measured expectations, the grammar specifications, the
ten node definitions with their SMT claims and the Python sources were written by hand as part of the
LingoLOGOS project. Ask before redistributing or building on them, and expect the answer to be yes for
academic work with attribution. Z3 is a separate product with its own license and is not redistributed here;
z3-solver is only named as a dependency in requirements.txt. The lexicons of Hindi, Arabic and Chinese
describe written varieties as this project needs them for arithmetic, conversion, structures and geometry
questions: they are not a general purpose dictionary of those languages.
20. Citation
@misc{lingologos_genesis,
title = {LingoLOGOS genesis: the gateway between a question in six written varieties and eight engines, with an assurance that includes the reading},
author = {LingoLOGOS project},
year = {2026},
url = {https://huggingface.co/datasets/tailot/lingologos-genesis},
note = {bundle of the genesis folder of the LingoLOGOS repository: 70 questions in six written varieties with
their measured expectations, six lexicons, two independent readers with a one keystroke spelling
tolerance, integer domain votes, a numeral audit and an SMT claim re-derived by a referee, ten
orchestrated nodes, five fault kinds and an ablation of 25 rows, the assurance rule min(engine,
reading), 272 tests}
}
- Downloads last month
- -