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
32 changes: 32 additions & 0 deletions crates/ourios-ingester/tests/rfc0025_quarantine.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//! RFC 0025 §5 — the sink-owned scenarios: the permanent-encode-error
//! quarantine (`.4`) and its telemetry (`.5`). See
//! `crates/ourios-parquet/tests/rfc0025_absent_body.rs` for the
//! scenario placement map.
//!
//! Stubs are `#[ignore]`d so the default run stays green while the
//! RFC is red; each names the green slice that discharges it.

/// Scenario RFC0025.4 — the sink no longer wedges.
/// See `docs/rfcs/0025-absent-body-representation.md` §5.
#[test]
#[ignore = "RFC0025.4 stub — implemented in the quarantine green slice"]
fn rfc0025_4_sink_quarantines_instead_of_wedging() {
todo!(
"RFC0025.4 — a permanently-rejected record (timestamp overflow) in \
a partition buffer is quarantined to the audit stream with a \
record_quarantined event; the healthy records persist; subsequent \
flushes of the partition succeed"
);
}

/// Scenario RFC0025.5 — quarantine telemetry.
/// See `docs/rfcs/0025-absent-body-representation.md` §5.
#[test]
#[ignore = "RFC0025.5 stub — implemented in the quarantine green slice"]
fn rfc0025_5_quarantine_telemetry() {
todo!(
"RFC0025.5 — a quarantine increments the existing flush-error \
counter with error.type set to the BatchError variant; no new \
metric name is introduced"
);
}
33 changes: 33 additions & 0 deletions crates/ourios-parquet/tests/rfc0025_absent_body.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//! RFC 0025 §5 — the storage-owned scenarios: absent-body round-trip
//! (`.1`) and old-file parity (`.2`). Rendering (`.3`) lives in
//! `crates/ourios-querier/tests/rfc0025_rendering.rs`; the sink
//! quarantine (`.4`/`.5`) in
//! `crates/ourios-ingester/tests/rfc0025_quarantine.rs`.
//!
//! Stubs are `#[ignore]`d so the default run stays green while the
//! RFC is red; each names the green slice that discharges it.

/// Scenario RFC0025.1 — absent bodies round-trip.
/// See `docs/rfcs/0025-absent-body-representation.md` §5.
#[test]
#[ignore = "RFC0025.1 stub — implemented in the schema green slice"]
fn rfc0025_1_absent_bodies_round_trip() {
todo!(
"RFC0025.1 — a BodyKind::Absent record writes under body_kind \
ordinal 2 with a NULL body cell and reads back with every \
RFC 0005 §3.2 column intact; the RFC 0024 P1 pinned-rejection \
arm for absent bodies flips to a round-trip assertion"
);
}

/// Scenario RFC0025.2 — old files unaffected.
/// See `docs/rfcs/0025-absent-body-representation.md` §5.
#[test]
#[ignore = "RFC0025.2 stub — implemented in the schema green slice"]
fn rfc0025_2_old_files_unaffected() {
todo!(
"RFC0025.2 — a pre-amendment committed fixture reads identically \
under the amended reader (the RFC 0021 §6 committed-fixture \
parity discipline)"
);
}
18 changes: 18 additions & 0 deletions crates/ourios-querier/tests/rfc0025_rendering.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//! RFC 0025 §5 — the query-owned scenario: rendering distinguishes
//! absent from empty (`.3`). See
//! `crates/ourios-parquet/tests/rfc0025_absent_body.rs` for the
//! scenario placement map.
//!
//! The stub is `#[ignore]`d so the default run stays green while the
//! RFC is red.

/// Scenario RFC0025.3 — rendering distinguishes absent from empty.
/// See `docs/rfcs/0025-absent-body-representation.md` §5.
#[test]
#[ignore = "RFC0025.3 stub — implemented in the read-path green slice"]
fn rfc0025_3_rendering_distinguishes_absent_from_empty() {
todo!(
"RFC0025.3 — a row with body = \"\" renders with an empty string \
body; a body_kind = Absent row renders with no body field at all"
);
}
2 changes: 1 addition & 1 deletion docs/rfcs/0025-absent-body-representation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
rfc: 0025
title: Absent-body representation and permanent-encode-error quarantine (RFC 0005 amendment)
status: specified
status: red
author: Jens Holdgaard Pedersen <jens@holdgaard.org>
drafting-assistance: Claude
created: 2026-07-05
Expand Down