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
44 changes: 32 additions & 12 deletions docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,37 @@ that would falsify it.

The thresholds were pinned before any number was measured; if we miss
them on representative corpora, the thesis is wrong and a pillar
changes. As of **2026-06-12** the gates have authoritative numbers on
the §1 hardware baseline (§9.4): **B1, B2, C1, C2 pass; A1 fails** and
is the open gate.
changes. As of **2026-06-14** the four gating thesis-gates **B1, B2, C1,
C2 all pass** on the §1 hardware baseline (§9.4/§9.6). **A1 fails but no
longer gates** — RFC 0011 (`accepted`) reclassified the
compression-vs-zstd ratio as a recorded diagnostic (its failure is
structural; see §2 / the §7 table).
Comment thread
jensholdgaard marked this conversation as resolved.
Resolved

## 0. How to read this document

Every goal below carries two labels.

- **Scope** — `thesis-gate` or `tuning-goal`.
- **Scope** — `thesis-gate`, `tuning-goal`, or `diagnostic`.
- A `thesis-gate` failing on representative corpora means a pillar
(`CLAUDE.md` §2) is wrong. The response is an RFC, not a sprint.
- A `tuning-goal` failing means the design is sound but the
implementation needs work. The response is a PR.
- **Bar** — `must-win`, `should-win`, or `stretch`.
- A `diagnostic` is measured and recorded but gates nothing — it
characterises a property or guards against regression. A1 was
reclassified here by RFC 0011 (`accepted`); see §2.
- **Bar** — `must-win`, `should-win`, `stretch`, or `informational`.
- `must-win` — shipping without it is shipping a broken claim.
- `should-win` — expected on representative corpora; explained when
missed.
- `stretch` — aspirational; missing is not a bug.
- `informational` — a `diagnostic`'s bar: the number is recorded for
insight, never blocks.

A goal with scope `thesis-gate` and bar `must-win` is load-bearing for
the whole project. There are five of those below, marked `[THESIS]`.
the whole project. **Four** of those below are gating — B1, B2, C1, C2,
each marked `[THESIS]`. A1 keeps the `[THESIS]` tag (a thesis-relevant
measurement) but RFC 0011 (`accepted`) set its **scope to `diagnostic`**:
it is recorded, not gating (see its section below and the §7 table).

## 1. Corpora and methodology

Expand Down Expand Up @@ -93,8 +103,16 @@ codecs run.

### A1 `[THESIS]` — End-to-end compression ratio vs. zstd-alone

- **Scope**: thesis-gate.
- **Bar**: must-win.
> **Demoted to a diagnostic (RFC 0011, `accepted`).** A1 is refuted on
> every corpus class — including the maximally-templated one — for
> structural reasons, so it no longer gates any RFC's `validated`. It is
> still measured and recorded (§7 table / §9 series) as the columnar
> queryability premium and a codec-regression guard. The scope, bar,
> target, and falsifier below are retained as the diagnostic's reference
> line — now **informational**, not gating.

- **Scope**: diagnostic (RFC 0011; originally `thesis-gate`).
- **Bar**: informational (RFC 0011; originally `must-win`).
- **Metric**: `bytes(raw_corpus) / bytes(ourios_parquet_directory)`
compared to `bytes(raw_corpus) / bytes(zstd_compressed_corpus)`.
- **Target**: Ourios ratio ≥ **3×** the zstd-alone ratio, on every
Expand Down Expand Up @@ -394,10 +412,12 @@ every gate measured on the §1 hardware (`baseline-8vcpu-32gib`),
recorded per the maintainer's 2026-06-12 authorization. B1, B2,
C1, and C2 **pass authoritatively**; on that basis RFC 0007
flipped to `validated` (its gates, per `docs/verification.md` §3,
are the querier-pillar ones — B1/B2). **A1 fails authoritatively**
and is the open thesis gate; it gates the compression pillar
(RFC 0006's remit), not RFC 0007, and carries a new
hardware-sensitivity caveat (§9.4).
are the querier-pillar ones — B1/B2). **A1 fails authoritatively** and
carries a hardware-sensitivity caveat (§9.4). *(A1 was subsequently
reclassified a recorded **diagnostic**, not a gate — RFC 0011,
`accepted` 2026-06-14. The A1 readings throughout §9 are diagnostic; A1
gates nothing, and the "open gate" / "must-win" framing in the dated
entries below is superseded.)*

Reviewers: a PR that materially affects the hot path must either
(a) cite the benchmark result and its delta against the relevant
Expand Down
20 changes: 15 additions & 5 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,30 @@ critical path as short and honest as possible.

## 2. The MVP gate: thesis benchmarks

Five `[THESIS]`-marked goals in
**Four** gating `[THESIS]` goals in
[`benchmarks.md`](./benchmarks.md) define MVP-done. Hitting all
five on a representative corpus means the thesis holds; missing
four on a representative corpus means the thesis holds; missing
any of them means a pillar (`CLAUDE.md` §2) is wrong and a PR
won't fix it — an RFC will.
Comment thread
jensholdgaard marked this conversation as resolved.
Resolved

| Gate | What it measures | Why it matters |
|---|---|---|
| **A1** | End-to-end compression ratio vs. zstd-alone over flat text | Pillar 1 (Parquet) + Pillar 2 (template mining) stack, or they don't |
| **B1** | Predicate-pushdown query latency on time/template/tenant filters | Pillar 1 (footer reads + min/max stats skip row groups) actually skips |
| **B2** | Template-exact query latency (`where template_id = X`) | Pillar 2's `template_id` column is a usable index, not a curiosity |
| **C1** | Bit-identical reconstruction rate over the corpus | The hardest invariant (`CLAUDE.md` §3.3) holds in practice, not just in unit tests |
| **C2** | Template-count convergence (Drain finds a small, stable number of templates) | Pillar 2 (template mining) extracts the structure we believed was there |

**A1** (end-to-end compression vs. zstd-alone) *was* a fifth gating
goal, but **RFC 0011 (`accepted`) demoted it to a recorded
diagnostic**: it is refuted on every corpus class — including the
maximally-templated one — for structural reasons (the more templated a
corpus, the more a whole-stream byte codec captures the same
redundancy), so template mining's compression value is *logical* /
query-pruning, captured by B1/B2, not on-disk bytes vs a codec. A1 is
still measured and recorded (`benchmarks.md` §7/§9 — the columnar
queryability premium + a codec-regression guard) but **does not block
MVP-done or any RFC's `validated`**.

`A2`, `B3`, `C3`, `C4`, `D*`, `E*` in `benchmarks.md` are
relevant but not MVP-blocking — they're tuning goals, honesty
goals, or post-MVP shipping concerns.
Expand Down Expand Up @@ -151,11 +161,11 @@ What the code does today:
ingester, server, and full snapshot mechanism are deferred
post-MVP; the querier and bench are the Phase 3 work.

What's specifically remaining for the thesis gates:
What's specifically remaining for the thesis gates (B1, B2, C1, C2 — A1
is a recorded diagnostic per RFC 0011, not a gate):

| Gate | Blocker(s) |
|---|---|
| **A1** | `ourios-bench` corpus runner driving the miner → Parquet path; A1's compression ratio is measured by the bench. Writer + reader are in place. |
| **B1** | `ourios-querier` (DataFusion table provider over the Parquet partition layout); predicate-pushdown wiring against `time_unix_nano` / `tenant_id`. Reader already enforces row-vs-path validation. |
| **B2** | Same as B1 plus `template_id` as a queryable column (the column is in the schema and is the §3.6 bloom-filter target — the wiring is what's missing). |
| **C1** | Bench harness that exercises the H7.1 reconstruction property on a corpus end-to-end (the unit-level property test is green; the gate measures it at corpus scale). |
Expand Down
Loading