| Age | Commit message (Collapse) | Author |
|
README: the schema has one table and one stamp
|
|
schema: stamp the index and check it on open
|
|
schema: one table, shared by the writer and the reader
|
|
The page said nothing enforced the layout. It now names the two mechanisms - the
table compiled by both crates, and the digest a build writes and a reader checks -
and says what to do when an entry changes meaning: bump the version and rebuild.
|
|
An index now records which schema wrote it and when, and the engine compares that
digest before it opens the database, so a reader that does not implement the
layout refuses by name instead of answering from the wrong slot. An index built
before the stamp still serves: absence is treated as unknown, not as a match.
|
|
The prefixes and value slots were typed twice - once in the indexer's schema
module and once in the engine's parser - so they agreed only because someone kept
them in step. They now live in gn-search-schema, which both crates already depend
on, together with a version, a canonical rendering and a digest of the table.
|
|
How to build an index was a three-line afterthought; it is now a worked example
with the environment it needs, the three modes, what the build leaves on disk and
how to read a document back. A short schema section names the prefixes, terms and
slots a writer and a reader must agree on, and says plainly that nothing stamps
that agreement into the index yet.
|
|
A reader of this crate is told how GN4 selects it, so the three names belong
next to the usage: crate, the former name native, and the gn3 proxy forward that
lives in GN4 and is deleted with gn3. An unrecognised value is refused by name.
|
|
The notes are not published, so the front page cannot point at them; the status
line now says plainly what has been tested and what has not.
|
|
The design notes, the limits and the corpus-runner write-up were written to
explain decisions on this machine, not to ship with the crates. The README now
stands alone.
|
|
The page had grown long enough that the dependency and the usage were hard to
find. It now carries the layout, the dependency, one usage example, what GN4
retains, the build command and the measured counts; the reasoning lives in docs.
|
|
GN4 already consumes its xapian bindings as a public git dependency pinned by
revision, and this repository is GeneNetwork work under the same licence, so it
follows that precedent rather than asking builders for a sibling checkout.
|
|
The front page should say what the crate is and how to use it; three sections of
failure analysis buried it. They are now docs/LIMITS.md, and the README points at
them in four lines. The dependency snippet also states the honest choice between
a path, a pinned revision and vendoring, with the reason a path cannot survive
into a repository other people build.
|
|
The usage section now shows the adapter, the error and hit translation, the
engine switch and what stays in GN4, because that is what a reader needs before
trusting the seam. The three gaps are written as the failures they cause:
parity across two snapshots, no schema stamp, and an index path rather than a
generation.
|
|
Writer and reader now live in one repository at one version, which is the only
structural cure for a schema that either side can drift from. The indexer keeps
the environment keys GN4 used, so an operator's setup is unchanged; it carries
its own 40-line config and a one-query database probe rather than the web
application's configuration and data layer.
|
|
A consumer that only searches should not link a database driver or an index
writer, so the vocabulary moved into a crate with no heavy dependencies and the
reader kept the xapian dependency. Both ship at one version, which is what makes
a writer and a reader agree at compile time rather than by luck.
|
|
Extraction means moving the code, not re-declaring its grammar, so the query
parser, the index pre-checks and the hit decode are copied from GN4 verbatim
and the hand-rendered grammar is demoted to the fixture backend's selector.
The xapian binding is pinned to GN4's rev, which end the serde-only promise.
|
|
The review's F4 and its verdict still assert README staleness ("Not with
cargo", "27 unit tests", "the feature gate is red in seven tests") as current
fact, and a reader who opens this file alone is misled by text that the tree
already answered. Corrected the way section 1 was: a dated
[CORRECTED 2026-11-15] block under each claim, the original words untouched, so
the finding still reads and the correction is visible next to it.
|
|
Three claims a maintainer would act on were wrong. The source table said the
xapian stub makes "three pre-checks" while src/index/xapian.rs makes five,
contradicting the README's own "What is stubbed" four paragraphs later, so the
count is gone rather than restated in two places. The gate block and the 84/0
table are true only on the pinned 1.88.0 toolchain and only where the corpus is
reachable at DEFAULT_CORPUS (an absolute path into GN4's checkout), so both
preconditions are now stated with the recovery path the parity target already
honours (GN4_PARITY_FIXTURES) — otherwise the default gate is red on a fresh
machine and reads as a broken crate. And the corpus-runner doc said the runner
"needs no change" for a real backend, when FIXTURE_BACKEND is
cfg!(not(feature = "xapian")): the feature that brings the backend is the one
that switches grading off, so the corpus would still grade nothing. That section
now says what must change (a real inventory behind the same Index trait, and the
FIXTURE_BACKEND gate removed) and is marked as the next step.
|
|
The summary line attributed every SKIP to "the missing xapian backend's" in
both builds, so the --features xapian run — the build where xapian IS compiled
in and the fixture is the thing absent — reported the absence of the component
it has. The sentence is now per build (SKIP_ATTRIBUTION: the missing xapian
index by default, the missing fixture inventory under the feature), and the
exit rule follows the same rule: the default build prints the MIN_GRADED floor
it applies, the feature build prints the rule that build actually enforces
(any FAIL, or a graded match set in a build with no inventory to grade one
against) instead of a floor the same function then says it does not apply.
Both lines are quoted as evidence in the README and in the corpus-runner doc,
so the corrected lines are pasted back where they were quoted and the wrong
attribution is gone rather than repeated.
|
|
Recorded with the file and line each change landed on, re-read from the tree
rather than carried from a draft, plus the gate counts measured after it and the
three leftovers this pass deliberately left alone, so the next reader does not
have to diff to find out what changed.
|
|
Green runs the wrong way: --features xapian has no fixture in the build, so the
corpus grades zero match-set comparisons and the MIN_GRADED floor is skipped.
Both summary lines are now quoted verbatim and the default build is named as the
evidence gate. The phrase class gets the section it lacked: Q04/Q11/Q12 recorded
0 hits on a positionless index, so the class is skipped by name and only a real
backend handing phrases to xapian's parser can answer it.
|
|
A warning wall reads as "nobody looked", so the gate has to be zero: three
map_or(false, ..) became is_some_and, the unparseable-position branch an
unwrap_or_default, Display a single match, two &PathBuf the slice form, and the
duplicated inner #![cfg] on the xapian module went away because its declaration
is already gated. The one survivor, parse_range's nested Option type, is allowed
at the site and argued in docs/KNOWN-DEBT.md: the nesting is the three-state
contract, and a bounds struct would refactor the rendering seam, not remove a
warning.
|
|
WORKER-BLOCKERS.md §8.4/§8.5 and VERIFY-FINAL.md §1 measured the tree before
the gate-truth fix, so a maintainer reading them before README believed the
xapian gate was red in seven places when it is green at 88/0. Dated banners
point at docs/VERIFY-GATE-TRUTH.md §1 for the measured table; the false numbers
stay as history with a marker beside them, so the findings that drove the fix
still read.
|
|
The build must work with no network, so the lock file records exactly which
serde and serde_json the gate ran against. Without it "84 passed" is a claim
about whatever the registry happened to hold.
|
|
The extraction has more uncertainty than code, so the reasoning is committed
with it: the three layer maps, the seam decision, the measured gate table, and
the open questions that belong to the project owner rather than to us.
|
|
A second consumer needs the same engine without linking GN4, but the seam
returns the full match set, so the server is a feature rather than the default
wiring. It answers a missing index with a named reason, never an empty array.
|
|
The acceptance test for the extraction cannot depend on this machine building
the whole web app, so the runner reads the 54 recorded shapes directly. It
fails when too few shapes actually grade evidence, and it reports what it
cannot grade as a skip rather than a pass.
|
|
The xapian binding aborts the process on a bad path, so the checks run before
it is touched; iamglass alone is not an index. The sidecar reader treats a
missing manifest as absent rather than an error, so an old index still serves.
|
|
The extraction needs a crate GN4 can link behind its existing Engine trait, so
this lands the four-tuple search, the hit type with unknown keys preserved, the
error variants GN4 already maps, and an in-memory index over five recorded
hits. A build with no index backend refuses a non-empty index path, because a
fixture that answered a real path would fabricate results.
* src/grammar.rs (query rendering): the recorded xapian grammar as data.
The grammar was re-implemented three times inside GN4; declaring it as data
keeps the prefixes, slots and stemming in one reviewable table. Unconsumed
field tokens split into words rather than dropping the label, since the corpus
records "position:" matching the word itself.
|