Repository navigation
Bump fluree-doc-parse: fluree doc ledgers move to its new graph on next ingest; add fluree doc parse - #2137
Conversation
The pinned engine revision (407daa0) predates the Excel, transcript and email readers and a round of changes to the DoCO graph. Moving to 3806873 brings those readers in and changes what the structure graph looks like, so the pipeline that builds on it follows: - Node IRIs are `<doc>-element-N`, not `<doc>/element/N`. Fluree keeps one namespace per distinct IRI prefix, and the slash form cost one per document and kind of node. Chunks, mentions and relations are now minted the same way (`-chunk-N`, `-mention-N`, `-relation-N`). - The root is `foaf:Document` and a list item is the `doco:Paragraph` its `doco:List` contains. A title the file declares is a `doco:Title` the root holds as its header, after the body in `po:contains`; the chunker now walks a node's `po:containsAsHeader` child first so the title still reads first. - Table cells are no longer stamped `doc:sourceDocument`. The re-ingest sweep reaches them through their table; without that a changed table left its old cells behind. - The root carries Dublin Core terms from what the file declares, so the sweep owns `dcterms:title`, `creator`, `created` and `modified`. - The transaction merges the engine's JSON-LD context instead of replacing it. The engine's context now defines `foaf:`, `dcterms:` and several `@id` coercions this crate does not repeat. `fluree doc ingest` reads .xlsx, .vtt, .srt, .eml and .msg, and a .txt holding a transcript or a saved email is read as one. The root records the file's SHA-256 and name, and what a run cannot read (unread PDF pages, an email's attachments) is reported per document. Crops are now chosen by `fluree_doc_pdf::escalate::plan` from the document as extracted, the engine's one implementation of that choice. The parse-cache fingerprint includes the engine revision, so the first run after this re-parses and re-ingests every document once.
With a vision model configured, a PDF is analysed with `[[VLM…]]` splice anchors so readings can replace the regions they mark. The splice also drops every anchor nothing read, but it only ran when at least one crop came back. A document over `--max-crops` reads none, so its anchors reached the text projection, the chunks and the embeddings as literal tokens: 44 of 45 table fixtures did this with the cap at zero. The splice now runs whenever a reader is configured. The regression test parses a table PDF from the engine's fixtures with a cap of zero and fails without the fix.
`fluree doc parse <FILE>` prints the structure graph `fluree doc ingest` would write for a file, as the engine's own JSON-LD, or with `--format text` the plain-text projection its NIF offsets index into. It writes nothing and needs no project. Where a project or global config exists, its `[doc.vlm]` slot and parse cache are used as they are for ingest, so the output is what ingest would have written. Document IRIs default to ingest's (`--base-iri` plus the file name); `--doc-iri` names the document in full. Warnings go to stderr so they never mix with the graph, and the output inserts as it is with `fluree insert <ledger> -f`. `fluree_db_doc::parse_file` is the cached parse `prepare` now calls before chunking, so the two commands share one path.
The help text still described an HNSW index and reciprocal-rank fusion. `fluree doc ingest` builds a full-text index only, and the vector lane scores every chunk's embedding exactly; hybrid search fuses calibrated scores, not ranks. The ingest summary, `--no-index` and `--mode` now say so. The benchmark figures move to the 2026-10-07 measurement of the pinned engine revision (0.934 cascade, 0.895 deterministic). They also stop crediting `fluree doc` with the cascade's first place: the cascade arbitrates with a layout detector and reads with Gemini, and the CLI runs no layout detector and reads with whatever model is configured, a combination that has not been scored. The deterministic engine is what every install runs. The pages also say that the engine's rows come from running the public harness, not from the benchmark's leaderboard. The install page drops `cargo install fluree-db-cli`, which fails because the crate is not on crates.io, for Homebrew and the release installers.
aaj3f
left a comment
There was a problem hiding this comment.
@bplatz this is a really nice bump, and following the engine's graph rather than reshaping it here is the right altitude: one parse_file behind both prepare and parse, crop selection through the engine's own plan, and the engine's context merged in, with a test that keeps it that way. I also ran the upgrade itself (an ingest from a main build, then re-ingests from this branch), and the retraction holds: every triple the old revision wrote is retracted, cells included, and the cell hop catches both a changed table and a removed one. Two headline notes:
(1) solo is already on 3806873 (solo#1412) with this same graph, and its cleanup_transaction reaches cells through their table the same way retract_update now does, so both products write and retract one shape, which is great. It does mean the rule "every node the engine mints except a doc:TableCell carries doc:sourceDocument" now lives as a hand-written copy in two repos, and solo's comment already says a new unstamped kind has to be added there by hand. I wonder if the engine should own that rule, either by stamping cells after all or by exporting its unstamped kinds (or the retraction pattern) for both consumers to derive from. That's the engine's call more than this PR's, so not for this PR.
(2) The first ingest after this rewrites the graph every existing fluree doc ledger holds (doco:Document becomes foaf:Document, doco:ListItem goes away, every minted IRI moves). That reads to me more like a graph-shape change than a dependency bump. I think it's fine on main, since ingest migrates on its own, but maybe worth saying in the title or the release note, along with the one thing the upgrade can't carry over: a triple a user hung on a chunk or relation node stays on the old IRI. In my run, an ex:note on rates.md/chunk/0 was the only thing left at an old IRI. Curation on the document node is unaffected, since that IRI doesn't move.
The one thing I'd hold the merge for is the .md sniffing below.
Full review below:
✅ Approving to unblock you — with 1 thing that needs to be addressed before this merges.
Thanks for this, @bplatz. The bump is followed all the way through (the chunker's header-first walk, the context merge, the cell hop, Dublin Core owned term by term), and each of the three fixes I reverted (anchor splice, cell branch, context merge) turned its test red.
Must address before merge:
refinealso re-reads.mdfiles (fluree-db-doc/src/parse.rs:72).SourceKind::Markdowncoversmd | markdown | txt | text, so the email/transcript sniff runs on every Markdown file, not only on.txtas the body and the doc comment say. A Markdown memo that opens withFrom:/To:/Subject:lines comes out as adoc:Messagewith no sections and no table cells, and since this bump re-ingests every document, a memo like that already in a ledger gets rewritten that way (I ran the upgrade on one: four cells before, none after). The fix is to refine only fortxt/text(details and my run inline).
Should address:
docs/unstructured/cli/parse.md:9(anddocs/cli/doc.md:166): inside a project,parsedoes write (the parse cache), and with no project and no global config it still calls a model whenFLUREE_DOC_VLM_*/FLUREE_DOC_LLM_*are set. I ran both. I think the code is right and the sentence needs to change (suggested wording inline).
Optional, but I'd rather see them folded in now than lost in the backlog: -f for --format collides with the rest of the CLI's -f / --file (fluree-db-cli/src/cli.rs:4150); the extra doc.clone() before plan (fluree-db-doc/src/parse.rs:321); and running every_emitted_predicate_is_owned over more than the one HTML fixture (fluree-db-doc/src/graph.rs:438).
What I checked on the parts I was most worried about:
- Upgrade and re-ingest retraction. I built the CLI at
main(04e1a6d37, engine407daa0) and at this head, ingested a folder with two tables using the old build, then re-ingested with the new one. Every one of the 22 old-IRI nodes (elements, sections, chunks and the old revision's stamped cells) lost all its pipeline triples on the first new ingest, including the unchanged file, which re-ingests because the parser revision is in the skip check. The full-text index synced+2 −2and an old-only value stopped matching. Two more ingests with a changed table and then no table at all left only the current cells. Removing the cell branch makesdoc_ingest_reingest_retracts_the_cells_of_a_changed_tablefail with 8 rows instead of 2, as the body says. - IRI scheme. I can't find a collision. The engine mints
element,section,table,cell,link,mailbox,messageandsignature; this crate mintschunkandrelation(andmentionunder a chunk), so there's no overlap within a document. And a document IRI keeps its file extension, so it can never equal another document's…-<kind>-<n>. Retraction matchesdoc:sourceDocumentexactly, so one IRI being a string prefix of another doesn't matter. Embeddings live on the chunk nodes and go with them. - Context merge. Today nothing collides (the shared prefixes map to the same namespaces), the pipeline's terms win on a clash, and
transaction_keeps_the_engines_contextfails if one ever redefines an engine term (I reverted the merge: it fails onpo:containsAsHeader). The retraction is SPARQL with its ownPREFIXes and the transaction carries its own@context, so no project or user context can redirect either one. fluree doc parse. Warnings go to stderr, a closed pipe isn't an error, and an unsupported file is a usage error with a non-zero exit. A configured model is announced on stderr before anything is sent, with--no-escalatenamed, which is consistent withingest.fluree-db-docis only linked into the CLI binary (notfluree-db-api, the server or wasm), so the new readers (cfbplus four engine crates) only grow the CLI.- The anchor fix. Gating the splice back behind
!readings.is_empty()makesover_the_crop_cap_no_anchor_reaches_the_textfail with[[VLMTAB:p0:t0]]in the text. I couldn't reproduce the 44-of-45 count, since those fixtures live in the engine's eval set.
Adherence to repo commitments:
- Patterns/abstractions: ✔ follows the engine instead of re-deriving it (
escalate::plan, the engine's emitter in the chunker tests, oneparse_file). The cross-repo copy of the stamping rule is in the headline note. - Performance (speed first, memory second): ✔ CLI and document pipeline only, nothing in the query or transaction engine. The re-ingest sweep gains one bounded
UNIONbranch per document. On the vision-model path a PDF is now analysed twice (the engine'splananalyses its own copy) and copied once more than it needs to be (nit inline). Both are per document and small next to the model calls. No performance-degradation risk to the database. - Deployment targets: ✔ n/a:
fluree-db-docreaches only theflureeCLI binary; solo doesn't depend on it (solo pins the engine itself, already at3806873), and the server and wasm builds don't link it. - Testing: ✔ all six named tests and the new unit tests ran by name in CI's
testjob and locally; I reverted each fix (anchor splice, cell branch, context merge) and the matching test went red. The predicate guard only sees HTML (nit inline). - Conventions: ✔ four well-factored commits with full bodies; docs, help text and
SUMMARY.mdupdated.⚠️ the docs overstate "writes nothing / no network", and the title undersells the graph-shape change (headline note 2).
Verified locally at 3647c30c1: cargo test -p fluree-db-cli --test integration -- doc_ (15 passed) and cargo test -p fluree-db-doc --lib (77 passed); three mutations red, then restored; the main-to-head upgrade run above; and the head binary on a no-project parse with and without FLUREE_DOC_VLM_*, inside a project, and on a .md memo with email-style header lines.
Approving so you can merge once the .md sniffing is scoped to text files. The rest are small, and none of them should hold the merge.
| /// has no registered type on most systems, and a mail client saves a | ||
| /// message under whatever name it likes. | ||
| pub fn refine(self, data: &[u8]) -> Self { | ||
| if self != Self::Markdown { |
There was a problem hiding this comment.
🔴 Must address before merge: this guard lets .md files through too, so a Markdown memo that opens with From: / To: / Subject: lines is ingested as an email and loses its sections and tables.
SourceKind::Markdown covers md | markdown | txt | text (parse.rs:51), so refine runs the transcript and email sniffs on every Markdown file, not only where "the name says only 'text'" as the doc comment says (or "a .txt holding a transcript or a saved email", as the body puts it). The engine's eml::looks_like accepts any file whose first line is a header field and that has a From plus a To, Subject or Date, which is exactly how a memo opens.
I ran it with the binary from this head. A memo.md with From: / To: / Subject: lines, then # Q3 plan, a two-row table and a ## Next steps list, comes out of fluree doc parse as one doc:Message, two doc:Mailbox and seven doco:Paragraph, with no doco:Section, no doco:Table and no doc:TableCell. The same file without the three header lines parses as two sections, a table with four cells, and a list. ingest goes through the same parse_file, and because the parser revision changes, the first ingest after upgrading re-reads every document. I ran that too: the same memo ingested with a main build holds two doco:Section, a doco:Table and four doc:TableCell; re-ingested with this head, the ledger holds a doc:Message, two doc:Mailbox and seven paragraphs, and the table is gone.
The narrowest fix is to refine only when the extension is txt / text, for example (illustrative):
// ingest.rs, parse_file
let ext = path.extension().and_then(|e| e.to_str()).map(str::to_ascii_lowercase);
let kind = SourceKind::from_path(path)
.ok_or_else(|| DocError::Unsupported(path.display().to_string()))?;
let kind = if matches!(ext.as_deref(), Some("txt" | "text")) { kind.refine(&data) } else { kind };(or give from_path a separate Text kind that parses as Markdown and is the only kind refine touches), plus a case in a_transcript_or_an_email_saved_as_text_is_read_as_one showing a .md memo stays Markdown.
| fluree doc parse <FILE> [OPTIONS] | ||
| ``` | ||
|
|
||
| Nothing is written, and no project is needed: it runs in any directory. Where there is a project, or a global Fluree config, its `vlm` slot reads the pages and regions the deterministic pass could not, and its parse cache is used, as for `ingest`. With neither, the parse is deterministic and makes no network connection. |
There was a problem hiding this comment.
🟠 Should address: two claims in this sentence don't hold. parse does write (the parse cache), and it can reach a model with no project and no global config.
Inside a project, fluree doc parse report.pdf writes .fluree/cache/doc/parse/<sha>-<fingerprint>/{doco.jsonld,meta.json,text.txt} (parse_file calls store_parse). That's what I'd expect it to do, but "Nothing is written" (here, at docs/cli/doc.md:166, and in the PR body) says it doesn't.
The second one matters more to me, because it's a statement about where a document's content goes. With no project and no global config, run_parse uses DocConfig::default().with_env() (fluree-db-cli/src/commands/doc.rs:1133), and with_env builds the vlm (or llm) slot from FLUREE_DOC_VLM_URL / FLUREE_DOC_VLM_MODEL. I ran it from an empty HOME with those two set to http://127.0.0.1:9/v1: it printed → vision model probe-model reads what the parser cannot and then failed with Connection refused on /v1/chat/completions. So "with neither, the parse is deterministic and makes no network connection" isn't true for anyone who has those variables in their shell.
I think the code is right (honoring the environment is consistent with ingest), so this is a wording fix. Something like: "No ledger is written and no project is needed … Where there is a project or a global config, its [doc.vlm] slot and its parse cache are used, and FLUREE_DOC_VLM_* / FLUREE_DOC_LLM_* configure a model anywhere. With none of these, the parse is deterministic and makes no network connection." The same edit applies at docs/cli/doc.md:166.
|
|
||
| /// `doco` prints the structure graph; `text` prints the plain-text | ||
| /// projection its `nif:beginIndex`/`nif:endIndex` offsets index into | ||
| #[arg(short = 'f', long, value_enum, default_value_t = DocParseFormat::Doco)] |
There was a problem hiding this comment.
🟡 Optional / nit: -f means --file everywhere else in the CLI.
insert, upsert, update, query and the rest use -f for --file (cli.rs:494, :540, :585, :636, …), and no other --format has a short flag. The docs in this PR even put the two next to each other: fluree doc parse … -o memo.jsonld, then fluree insert docs -f memo.jsonld. Dropping the short flag keeps -f meaning one thing:
| #[arg(short = 'f', long, value_enum, default_value_t = DocParseFormat::Doco)] | |
| #[arg(long, value_enum, default_value_t = DocParseFormat::Doco)] |
(plus the -f, --format rows in docs/unstructured/cli/parse.md and docs/cli/doc.md). It's minor and non-blocking, but it's a lot easier to change before anyone scripts against it, so I'd rather see it folded in now.
| }; | ||
| // Crops are chosen from the document as extracted: analysis changes the | ||
| // pages it reads, and the engine plans from what it was given. | ||
| let extracted = opts.vlm.is_some().then(|| doc.clone()); |
There was a problem hiding this comment.
🟡 Optional / nit: I think this clone can go if plan runs before analyze_with.
escalate::plan (engine crates/fluree-doc-pdf/src/escalate.rs:166-179) already clones the document it's given and runs its own analysis on that copy, and CropJobs is owned. So calling it on &doc before analyze_with(&mut doc, …) gives the same jobs without keeping a third copy of every page's glyphs around for the rest of the parse. Only the vision-model path pays for this, once per document, so it's memory-second territory and not a hot path, but it's a small reorder (illustrative):
let jobs = opts.vlm.is_some().then(|| {
fluree_doc_pdf::escalate::plan(&doc, &outline, &analyze_opts, &CropHints::default())
});
let mut analysis = fluree_doc_pdf::document::analyze_with(&mut doc, &outline, &analyze_opts);
// …
if let (Some(vlm), Some(jobs)) = (&opts.vlm, jobs) {
let readings = match vlm.read_pdf(&raw, &doc, jobs) { /* as now */ };This is minor and non-blocking, but if you agree it's right, I'd rather see it folded in now than lost in the backlog.
| use crate::parse::{parse_bytes, ParseOptions, SourceKind}; | ||
|
|
||
| let doc_iri = "urn:fluree:doc:guard.md"; | ||
| let doc_iri = "urn:fluree:doc:guard.html"; |
There was a problem hiding this comment.
🟡 Optional / nit: this guard only sees what HTML emits, and the next engine bump is exactly when it needs to see the other formats.
every_emitted_predicate_is_owned is what should catch a rev bump adding a term the sweep doesn't own. With one HTML fixture it saw dcterms:title and dcterms:creator. But created / modified are owned because you listed them, not because the guard saw them, and it never sees the email emitter's doc:Message / doc:Mailbox / doc:Signature nodes, a transcript's turns, a workbook, or a PDF root. I checked the 3806873 emitter, and today all of those are doc:* or already listed. But a future engine rev that, say, adds foaf:mbox to a mailbox would leave this test green and leak on every email re-ingest, since foaf: is deliberately not owned.
Running the same two assertions over a few more inline fixtures would cover it cheaply: an .eml like the one in an_email_names_the_attachments_it_does_not_read, a short VTT, and testdata/probe-booktabs.pdf for a PDF root. It's minor and non-blocking, but if you agree, I'd rather see it in this PR than lost in the backlog.
| {{\n \ | ||
| {{ ?s doc:sourceDocument <{iri}> . ?s ?p ?o }}\n \ | ||
| UNION\n \ | ||
| {{ ?x doc:sourceDocument <{iri}> . ?x po:contains ?s . ?s a doc:TableCell . ?s ?p ?o }}\n \ |
There was a problem hiding this comment.
👍 I ran this one across the upgrade, since it's where an old extraction would survive if anything did.
I ingested a folder with two Markdown tables using a main build (407daa0, where cells are still stamped), added a user triple to the document node and one to rates.md/chunk/0, then re-ingested with this head. Every pipeline triple on all 22 old-IRI nodes was retracted (the unchanged file too), the document node kept its triple, and the only thing left at an old IRI was the user's note on the old chunk (that's headline note 2). Two more ingests, with a changed table and then with no table, left exactly the current cells. Removing this branch makes doc_ingest_reingest_retracts_the_cells_of_a_changed_table fail with 8 rows instead of 2.
`refine` ran the transcript and email sniffs on every file `from_path` called Markdown, which includes `.md`. A Markdown memo that opens with `From:`, `To:` and `Subject:` lines was read as an email: one `doc:Message`, its heading and table gone. Because this bump re-ingests every document, a memo like that already in a ledger would have been rewritten that way. `SourceKind::detect` replaces `from_path` + `refine` at the one call site and checks content only for `.txt` and `.text`. Every other name is trusted.
- The parse docs said nothing is written and, without a project, no network is used. Inside a project the parse cache is written, and `FLUREE_DOC_VLM_*` / `FLUREE_DOC_LLM_*` configure a model anywhere. They now say so. - `--format` loses its `-f` short flag; everywhere else in the CLI `-f` is `--file`. - Crops are planned on the document before analysis rather than on a copy kept for the purpose: `escalate::plan` copies it itself. - `every_emitted_predicate_is_owned` runs over an email, a WebVTT transcript and a PDF as well as the HTML document, and pins a term from each. It only saw what the HTML reader writes, so a new term from any other reader would have leaked on every re-ingest with the test still green. `dcterms:created` and `dcterms:modified` are now seen rather than only listed.
fluree doc parsefluree doc ledgers move to its new graph on next ingest; add fluree doc parse
Brings in main through #2137, including #2009's graph scope and explicit SHACL, the storage root lock (#2131) and reasoning limits (#2126). Ported to next's annotation links: - main's annotation lowering (annotation nodes included in their edge's subject, `GraphScope::emit` as the one `f:reifiesGraph` writer) keeps next's link fold: the slots fold into `rdf:reifies` links after the variable-graph refusal, and the fold drops the anchors - a selector-form annotation delete matches the edge through its link, scoped with main's node-level `@graph` - `@reifies` with several triples includes the extra ones in the reifier (main's `@included`) rather than as top-level siblings - triple-term objects keep their shape under main's forward/reverse edge classification, and `rdf:reifies` stays refused as a key - main's parser tests that read `f:reifies*` slots and anchors read the link and the annotation's graph instead Also: - JSON-LD expansion keeps next's triple-term `@id` and value-object `@annotation` under main's `Path`; CONSTRUCT templates keep `TripleTermValue` - the JSON-LD adapter keeps next's quads, `@reverse` and `@included`, and refuses `@graph` for a sink without named graphs with main's error - file builds migrate the nameservice after main's WAL replay, with the root lock held - the cross-ledger shape cache key keeps `model_instance` - the error table counts both sides' variants; consensus and the server map Fenced, LifecycleConflict and ConfigUnavailable - main's new tests await next's async `genesis_ledger`; a next SHACL test enables SHACL, as #2009 requires; the reasoning-limit tests suffix the ledger name, not the branch
…ferences Brings in #2137, #2118 and #2109. The one conflict is stage.rs's fluree_db_core import: #2109 dropped `FlakeMeta` from it, and this branch added the dataset-reference types. #2109's FactIdentity DELETE naming and fold, and this branch's typed graph resolution for USING / WITH and the write table, sit in separate hunks and merge as both wrote them.
Moves the document pipeline to the current fluree-doc-parse (
407daa0→3806873), adjustsfluree docto the graph that revision writes, and addsfluree doc parsefor getting one document's DoCO graph without a ledger.Parser bump and what follows from it
The new revision adds Excel, WebVTT/SubRip and email (
.eml,.msg) readers, and changes the DoCO graph in ways the pipeline depends on:fluree-db-docdoes now<doc>-element-Nrather than<doc>/element/N, so a document's nodes share its IRI's namespace<doc>-chunk-N,<chunk>-mention-N,<doc>-relation-N. The slash form cost one namespace per document and kind of node.foaf:Document; list items aredoco:Paragraphinsidedoco:List; a declared title is adoco:Titlethe root holds bypo:containsAsHeader, after the bodydoc:sourceDocumentretract_updatereaches cells through their table (?x po:contains ?s . ?s a doc:TableCell). Without this, re-ingesting a changed table left the old cells in the ledger.dcterms:title,creator,created,modified@contextdefinesfoaf:,dcterms:and@idcoercions such aspo:containsAsHeaderanddoc:fromgraph::transactionmerges the engine's context instead of replacing it. Replacing it would have stored those references as strings andfoaf:Documentas an IRI with the schemefoaf.Also:
.txtholding a transcript or a saved email is read as one. Other names are trusted: a.mdmemo that opens withFrom:/To:lines stays Markdown.fluree_doc_pdf::escalate::plan, the engine's single implementation of crop selection.Upgrade effect: this changes the shape of every existing
fluree docgraph. The parse-cache fingerprint includes the engine revision, so the firstfluree doc ingestafter this re-parses and re-ingests every document once, and the ledger moves to the new graph:doco:Documentbecomesfoaf:Document,doco:ListItemgoes away, and every chunk, mention, relation and structure-node IRI moves. Every node the previous revision wrote was stamped with its document, so the old extraction is fully retracted.What the upgrade can't carry over: a triple a user added to a chunk or relation node stays on that node's old IRI. Triples on the document node are unaffected, since its IRI doesn't move.
Fix:
[[VLM…]]anchors in the textThis bug predates the bump. With a vision model configured, a document over
--max-cropsreads no crops, and the splice that drops unread anchors only ran when some crop came back. Raw anchor tokens therefore reached the text projection, the chunks and the embeddings. With the cap at zero, 44 of 45 table fixtures did this. The splice now always runs when a reader is configured.fluree doc parse <FILE>[doc.vlm]slot and writes its parse cache.FLUREE_DOC_VLM_*/FLUREE_DOC_LLM_*configure a model anywhere; with none of these, or with--no-escalate, no model is called.fluree insert <ledger> -f.prepareand the new command sharefluree_db_doc::parse_file.Docs and help text
doco:Captionand nodoc:provenancein the graph. Documented the new classes, the IRI rules and the cell retraction.fluree docwith the cascade's first place: the cascade uses a layout detector and Gemini readings that the CLI does not run. They also say the engine's rows come from running the public harness, not from its leaderboard.cargo install fluree-db-cli(not on crates.io) is replaced with Homebrew and the release installers.Tests
Each new test fails when its fix is reverted:
doc_ingest_reingest_retracts_the_cells_of_a_changed_table(CLI): a table shrinks between runs. Without the cell branch, 8 cells survive instead of 2.over_the_crop_cap_no_anchor_reaches_the_text: uses a 2 KB table PDF copied from the engine's fixtures intofluree-db-doc/testdata/.every_emitted_predicate_is_owned(extended): runs over an HTML document with a title, an author and a table, an email, a WebVTT transcript and a PDF, and pins a term from each reader. It also asserts that every node of the structure graph is one the sweep reaches. Un-owningdcterms:created,doc:speakerordoc:addressturns it red.a_transcript_or_an_email_saved_as_text_is_read_as_one(extended): the same memo sniffs as email under.txtand stays Markdown under.md.transaction_keeps_the_engines_context: every term the engine's context defines reaches the transaction unchanged.engine_graph_keeps_title_lists_and_sections_in_reading_order: runs the chunker againstto_docooutput.doc_parse_prints_the_graph_without_a_project(CLI).