Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ not launder employer-owned code.

### `explorer/` is different

> **Note, 2026-11-24.** `explorer/` was removed from `main` on 2026-11-23 (PR #6), so new explorer work does not land here. The two files that moved out of it, `docs/reference/FORMAT-NGG1.md` and `assets/images/ngm-hero.webp`, are still MIT under the terms below. The live explorer is `publishing-tools/WasmVOWL/modern` in the private visionGraph repository; WebVOWL-general work still goes upstream as described below.

`explorer/` is MIT and is a derivative of WebVOWL by Vincent Link, Steffen Lohmann,
Eduard Marbach, Stefan Negru and Vitalis Wiens. Contributions there need the **DCO
sign-off only** (no `Copyright-Grant` trailer). MIT already permits everything the grant
Expand Down Expand Up @@ -151,7 +153,7 @@ pull request description:
- Bug fixes in `pipeline/`, with a test in `pipeline/tests/` that fails before and passes
after.
- Emitter improvements: correctness of the Turtle, WebVOWL JSON, page API, search index
or NGG1 tier output against its specification. `explorer/FORMAT-NGG1.md` is the NGG1
or NGG1 tier output against its specification. `docs/reference/FORMAT-NGG1.md` is the NGG1
format reference.
- Validation rules that catch a real class of corpus defect, with the count of existing
pages they would flag.
Expand Down
11 changes: 9 additions & 2 deletions docs/BASELINE-narrativegoldmine.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sources:
- pipeline/jsonld_parser.py
- pipeline/validate.py
- docs/reference/FORMAT-NGG1.md
# explorer/ paths: removed from main 2026-11-23 (PR #6); read them at 7815bbcb9f8
- explorer/rust-wasm/src/ngg1.rs
- explorer/modern/src/types/scope.ts
- explorer/modern/src/workers/protocol.ts
Expand All @@ -28,6 +29,10 @@ date: 2026-08-31

The implementation described below is a historical baseline for the pre-archive tree at its declared revision. Since September 2026, `main` retains that corpus and Python pipeline under `archive/logseq-era-2026-09-22/`; the former root build workflow is under `archive/github-workflows/`. Current authoring and publishing are upstream, with the shared compiler owned by Ontomark. This repository is the public `gh-pages` target and historical archive. The [top-level README](../README.md) separates the served dataset from the committed August artefacts. Historical invariants and counts below do not assert that the archived workflow remains active or define the current compiler's contract.

## Explorer retirement update (24 November 2026)

`explorer/` was removed from `main` by PR #6 on 2026-11-23. It was a stale copy of the WasmVOWL explorer, pinning `@dreamlab-ai/vowl-wasm` v0.1.1, that nothing here built or deployed. The live explorer is `publishing-tools/WasmVOWL/modern` in the private visionGraph repository, which builds the site and pushes it to this repository's `gh-pages` branch. Every `explorer/…` path in this document is a historical citation and can be read at `7815bbcb9f8`: the frontmatter `sources`, "The NGG1 tiers", "The explorer" and "Licence split". `docs/architecture/explorer.md` describes that retired copy. `FORMAT-NGG1.md` moved verbatim to `docs/reference/FORMAT-NGG1.md`, together with `ngm-hero.webp`, now at `assets/images/`. Both remain MIT. On 2026-11-24 its consumers line was corrected and its dead `ADR-NG-001`/`DDD-NG-001` links were turned into plain text.

## Purpose

Single governing document for what NarrativeGoldmine **is** at this commit: a
Expand All @@ -44,7 +49,7 @@ authority.

Detailed references this baseline governs, not replaces:
- Pipeline internals — `docs/architecture/pipeline.md`
- Explorer internals — `docs/architecture/explorer.md`
- Explorer internals — `docs/architecture/explorer.md` (the retired `explorer/` copy; see the update above)
- Corpus provenance & generation — `docs/methodology/corpus-generation.md`
- Binary tier contract — `docs/reference/FORMAT-NGG1.md`
- CI gates — `docs/ci-cd/build-and-gates.md`
Expand Down Expand Up @@ -141,7 +146,9 @@ CI glue are **AGPL-3.0-or-later** (`LICENSE`); the `ontology/` corpus is
broken**: from `explorer/` that normalises to *above* the repo root (the
correct depth would be `../docs/adr/…`). Since the target is classified
absent, the link is recorded as a dangling historical citation rather than
repaired to point at nothing.
repaired to point at nothing. *(Note 2026-11-24: the file now lives at
`docs/reference/FORMAT-NGG1.md`, and the dangling link has been replaced by a
plain-text citation with a dated note there.)*
- **The `7,874` figure is stale corpus-wide.** `docs/architecture/pipeline.md`
and `docs/architecture/explorer.md` are written against a 7,874-page corpus,
but the corpus is now **8,138** pages (`EXPECTED_CLASSES: '8138'`,
Expand Down
6 changes: 6 additions & 0 deletions docs/adr/ADR-2002-corpus-is-the-ontology.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ lineage: distils the ADR-NG-001 explorer-architecture reconstruction and the ADR

# ADR-2002 — Fuse corpus and ontology — a Logseq page IS an OWL class

## Retained explorer retired — 2026-11-24

The choice the 2026-11-02 reconciliation below asked for has been made: retirement. PR #6 (`d77a41cfdf0`, merged 2026-11-23) removed `explorer/` from `main`. It was a stale copy pinning vowl-wasm v0.1.1 that nothing in this repository built or deployed. No consumer upgrade was attempted. The tree, and the `explorer/…` paths cited in the sections below, can still be read at `7815bbcb9f8`. The live explorer is `publishing-tools/WasmVOWL/modern` in the private visionGraph repository; its publish workflow pushes the site to this repository's `gh-pages` branch. The NGG1 contract moved verbatim to `docs/reference/FORMAT-NGG1.md`.

The status axes do not change. The decision here is the fusion of corpus page and OWL class, and the retained explorer was only a downstream consumer of it. So `decision_status: accepted`, `implementation_status: complete` and `activation_status: live` are unaffected, and `verified_commit` still records the evidence for the fusion. The sections below are kept as written.

## Retained explorer verification — 2026-11-14

Reviewed the pending buffer repair before publication. The worker admission path still checks the current generation before releasing a return. The regression now exercises twenty rounds with both slots occupied and two structured-clone transfers per buffer, detaching each outbound wrapper. All 26 worker tests pass, including 12 position-transport tests. Replacing only the implementation with remote main's original source makes both transfer regressions fail (10 other position-transport tests pass); the repaired source was restored before the passing run. This verifies the retained copy only: no renderer dependency upgrade, website build or live deployment is claimed.
Expand Down
6 changes: 4 additions & 2 deletions docs/ci-cd/build-and-gates.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ between the parser and the validator, and validation errors were printed as

### 2.2 Gates in this tree that `build.yml` does not run

> **Note, 2026-11-24.** These gates are no longer in this tree. They belonged to `explorer/`, which PR #6 removed from `main` on 2026-11-23. The table below, and the "Rust tests", "Honesty grep" and "Explorer smoke" sections, describe that copy as it was; every `explorer/…` path in them can be read at `7815bbcb9f8`. The live explorer is `publishing-tools/WasmVOWL/modern` in the private visionGraph repository. That repository's publish workflow runs the current equivalents before it deploys to this repository's `gh-pages` branch: the same honesty grep scoped to `publishing-tools/WasmVOWL`, `npm run test` and `npm run build` in `modern/`, and `tests/smoke/graph-smoke.mjs` against the built site. The `explorer/rust-wasm` crate has no successor there: the layout engine is the published `@dreamlab-ai/vowl-wasm` package. The NGG1 golden fixture referenced in this document is now `archive/logseq-era-2026-09-22/pipeline/tests/fixtures/ngg1-3n2e.bin` (writer) and `publishing-tools/WasmVOWL/modern/src/lib/__fixtures__/ngg1-3n2e.bin` in visionGraph (reader). The two are still byte-identical.

The workflow installs Python and nothing else. These six need a Rust or Node
toolchain; they run in the private publishing CI, and locally from a clone with
those toolchains present.
Expand Down Expand Up @@ -532,7 +534,7 @@ must remap:
| Private CI | This repository |
|------------|-----------------|
| `mainKnowledgeGraph/pages` | `ontology/pages` |
| `publishing-tools/WasmVOWL` | `explorer` |
| `publishing-tools/WasmVOWL` | `explorer` (removed 2026-11-23; no counterpart here now) |
| `www` (output) | `dist` (`dist/data` committed, `dist/api` gitignored) |

A separate PR-scoped workflow in the source repository gates changed corpus pages
Expand All @@ -545,7 +547,7 @@ of this extraction and is not reproduced.
every Python number in this document is reproducible from a clone with
`rdflib>=7.0.0` and `pytest`.

The Rust and Node numbers are not, and the gap is worth naming.
The Rust and Node numbers are not, and the gap is worth naming. (Note 2026-11-24: since `explorer/` was retired on 2026-11-23, these numbers are historical; they can be read at `7815bbcb9f8`.)
`explorer/CAPABILITIES.md` records its evidence under a specific combination:
rustc 1.97.0, wasm-pack 0.15.0, node 22.23.1, vite 6.4.3, python 3.12, measured
2026-07-23. Nothing in this repository pins any of them. Two of the counts
Expand Down
17 changes: 12 additions & 5 deletions docs/reference/FORMAT-NGG1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# FORMAT-NGG1 — the canonical binary graph-tier format

**Status:** Contract (frozen for the ng-overhaul sprint) · derives from [ADR-NG-001 §2](../../docs/adr/ADR-NG-001-explorer-architecture.md)
**Consumers:** `pipeline/emit_graph_tiers.py` (writer), `rust-wasm/` crate (`load_csr`), `modern/src/lib/ngg1.ts` (reader).
**Status:** Contract (frozen for the ng-overhaul sprint) · derives from ADR-NG-001 §2 (never checked in to this repository; see the note below)
**Consumers:** the committed `dist/data/graph/*.bin` tiers were written by `archive/logseq-era-2026-09-22/pipeline/emit_graph_tiers.py`. The live reader is the explorer at `publishing-tools/WasmVOWL/modern` in the private visionGraph repository: its `src/lib/nggGraph.ts` decodes through `decodeNgg1` in `@dreamlab-ai/vowl-wasm` (the Rust `ontomark-ngg1` codec), and `NggExplorer` lays the tiers out.

> **Note, 2026-11-24.** This file moved here verbatim from `explorer/FORMAT-NGG1.md` when `explorer/` was retired (PR #6, 2026-11-23). Three things were corrected:
> - **Consumers.** The line above used to name paths relative to that tree: `pipeline/emit_graph_tiers.py` (writer), the `rust-wasm/` crate (`load_csr`) and `modern/src/lib/ngg1.ts` (reader). Those paths resolve at `7815bbcb9f8`. The TypeScript codec `ngg1.ts` no longer exists in the live explorer either.
> - **ADR-NG-001.** The status line linked `../../docs/adr/ADR-NG-001-explorer-architecture.md`, a record that was never written here; ADR-2001 classifies it `historical-absent` ("ADR-NG-001 resolution"). The link is now plain text.
> - **DDD-NG-001.** The links to `DDD-NG-001` below were dead for the same reason (there is no `docs/ddd/` here) and are also plain text now.
>
> The byte layout below is unchanged and still describes the committed tiers.
**Applies to:** `www/data/graph/domain-<slug>.bin` (×6) and `full.bin`. `overview.json` (T0) stays JSON — it is ~40 nodes with pre-baked positions and needs no binary tier.

NGG1 is the anti-corruption layer named in [DDD-NG-001 §4](../../docs/ddd/DDD-NG-001-publication-context.md): WebVOWL's mirror-array vocabulary stops at the compiler; everything downstream reads **only** this format. Parsed zero-copy in Rust and in `ngg1.ts`; JS never materialises edge arrays as objects.
NGG1 is the anti-corruption layer named in DDD-NG-001 §4 (absent here): WebVOWL's mirror-array vocabulary stops at the compiler; everything downstream reads **only** this format. Parsed zero-copy in Rust and in `ngg1.ts`; JS never materialises edge arrays as objects.

---

Expand Down Expand Up @@ -127,7 +134,7 @@ String `s` spans `blob[offset[s] .. (s+1 < count ? offset[s+1] : blob_len)]`.

### Canonical domain ids (§3 `domain`)

Index order is fixed by [DDD-NG-001 §2](../../docs/ddd/DDD-NG-001-publication-context.md) and matches `overview.json` domain order:
Index order is fixed by DDD-NG-001 §2 (absent here) and matches `overview.json` domain order:

| id | slug | label |
|----|------|-------|
Expand Down Expand Up @@ -241,4 +248,4 @@ Section offsets: header 32 → nodes `off_nodes=32` (3×24=72, ends 104) → adj
- `label(1) == "ML"`, `iri(1) == "ng:1"` via `strings[2]`, `strings[3]`.
- Ego graph of n1, radius 1: nodes `{1,0,2}`, edges `{0,1}` with types `{0,1}`.

Any writer whose output matches these 183 bytes for this input is conformant. Fixtures live at `pipeline/tests/fixtures/ngg1-3n2e.bin` (writer golden) and `modern/src/lib/__fixtures__/ngg1-3n2e.bin` (reader golden) — keep them byte-identical.
Any writer whose output matches these 183 bytes for this input is conformant. Fixtures live at `pipeline/tests/fixtures/ngg1-3n2e.bin` (writer golden) and `modern/src/lib/__fixtures__/ngg1-3n2e.bin` (reader golden) — keep them byte-identical. (Note 2026-11-24: the writer golden is now `archive/logseq-era-2026-09-22/pipeline/tests/fixtures/ngg1-3n2e.bin`; the reader golden is `publishing-tools/WasmVOWL/modern/src/lib/__fixtures__/ngg1-3n2e.bin` in visionGraph. They are still byte-identical, SHA-256 `b4580c96…6f0c3f`.)
Loading