# E378-Q Final Report — Quorum-Side Digest Index

**AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL**

## Question

Can the QaaS deduplicate by `(tenant, digest, configuration)` and return the first receipt and
sequence, while a different tenant or digest orders normally, and the old two-sequence behaviour
returns when the index is disabled?

## Result

**QUORUM_DIGEST_INDEX_SUPPORTED.** The replay returned sequence **1** both times; the second answer
was marked `idempotent_replay` with `digest_index=hit`, and the receipts are identical. A different
digest received sequence **2**, a different tenant **3**,
and the disabled control received **4 / 5**.
Every receipt verifies with the standalone verifier.

## What changed

- `platform-gateway/qaas_digest_index.py`: SQLite index keyed by tenant+digest+configuration, with a
  hit counter; failures fail open to ordering.
- `platform-gateway/routers/quorum_qaas.py`: `notarize_indexed()` wraps `notarize()`; the route uses it.
- Per-tenant and per-cluster scope; no cross-tenant receipt reuse.

## Honest limits

- In-process quorum: four real PBFT engines over the in-process fabric, not the live WAN cluster.
- The digest index stores the first receipt per (tenant, digest, configuration_hash); the returned receipt keeps the first request's request_id.
- The index is a service-side cache: a lost index falls back to ordering (a new sequence), never to a wrong answer.
- An index hit returns the stored receipt; the caller should still verify it offline against the pinned membership.
- Tenant ids are pseudonymised in the receipt; the index is keyed by the internal tenant id and is never exposed.
- 0 model calls; external reviewer NOT OBTAINED; no third-party audit.

## Hypotheses

- **H1_replay_same_sequence** — SUPPORTED
- **H2_replay_marked** — SUPPORTED
- **H3_tenant_scope** — SUPPORTED
- **H4_distinct_digest_new_sequence** — SUPPORTED
- **H5_control_without_index** — SUPPORTED
- **H6_receipts_verify_offline** — SUPPORTED
- **H7_external_review** — BLOCKED

## Evidence

- Bundle: <https://clawx.click/evidence/e378q-digest-index-2026-11-26/>
- Verifier: `verify_e378q_offline.py`
- Generated: 2026-11-26T17:17:02Z
