about summary refs log tree commit diff
AgeCommit message (Collapse)Author
11 daysMerge pull request #3 from Alexanderlacuna/schema/readme mainAlexander Kabui
README: the schema has one table and one stamp
11 daysMerge pull request #2 from Alexanderlacuna/schema/stampAlexander Kabui
schema: stamp the index and check it on open
11 daysMerge pull request #1 from Alexanderlacuna/schema/one-tableAlexander Kabui
schema: one table, shared by the writer and the reader
11 days* README.md (schema): one table, one stamp, and how to change them.Alexander Kabui
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.
11 days* crates (schema): stamp the schema into the index and check it on open.Alexander Kabui
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.
11 days* crates (schema): one table, shared by the writer and the reader.Alexander Kabui
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.
11 days* README.md: index builds as a section, and what the schema is.Alexander Kabui
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.
11 days* README.md: name the engine values.Alexander Kabui
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.
12 days* README.md: drop the docs pointer.Alexander Kabui
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.
12 days* docs: keep them local; the repository carries the README only.Alexander Kabui
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.
12 days* README.md: tighten to essentials.Alexander Kabui
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.
12 days* README.md (dependency): a pinned revision, not a path.Alexander Kabui
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.
12 days* docs (limits): the unproven claims moved out of the README.Alexander Kabui
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.
12 days* README.md (usage, limits): how GN4 consumes the crate.Alexander Kabui
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.
12 days* crates/indexer (writer): the index builder moved in from GN4.Alexander Kabui
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.
12 days* crates (workspace): schema and engine split apart, one version.Alexander Kabui
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.
12 days* src/native.rs (engine): the native search engine moved in from GN4.Alexander Kabui
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.
12 days* docs/VERIFY-FINAL.md (F4, verdict): dated corrections, additions only.Alexander Kabui
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.
12 days* README.md, docs (claims): the gate's preconditions, the widening path.Alexander Kabui
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.
12 days* tests/parity_corpus.rs (report): name the absence this build has.Alexander Kabui
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.
12 days* docs/WORKER-REMAINING.md (report): the four remaining items, closed.Alexander Kabui
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.
12 days* README.md, docs (gate): the feature build is not the evidence gate.Alexander Kabui
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.
12 days* src (clippy): nine lint fixes, one recorded as debt.Alexander Kabui
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.
12 days* docs (correction): the pre-fix red gate in two review reports.Alexander Kabui
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.
12 days* Cargo.lock (deps): pin the two offline-resolvable dependencies.Alexander Kabui
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.
12 days* docs (gn-search): the scout reports, decisions, and what is not done.Alexander Kabui
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.
12 days* src/bin/gn-search.rs (serve): an optional dev server behind a feature.Alexander Kabui
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.
12 days* tests (parity): grade the committed corpus without building GN4.Alexander Kabui
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.
12 days* src (index): the xapian pre-checks and the sidecar manifest reader.Alexander Kabui
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.
12 days* src (gn-search): the engine seam with a fixture backend.Alexander Kabui
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.