Repository navigation
test(rfc0024): red — all seven §5 stubs land, status drafted→red #359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
e252d92
test(rfc0024): red — all seven §5 stubs land, status drafted→red
jensholdgaard fd327ed
docs(rfc0024): mark ourios-testgen as introduced by the green slice
jensholdgaard 47ea171
docs(rfc0024): future-tense testgen paragraph + accurate §7 citation
jensholdgaard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| //! RFC 0024 §5 — calibration extraction + calibrated-generator sanity | ||
| //! (`.1`/`.2`), plus the adversarial umbrella (`.7`). The per-property | ||
| //! scenarios live with the crates that own each invariant: | ||
| //! `.3` (P1 round-trip) in `ourios-parquet`, `.4`/`.5` (P2/P3) in | ||
| //! `ourios-miner`, `.6` (P4 query oracle) in `ourios-querier`. | ||
| //! | ||
| //! Stubs are `#[ignore]`d so the default run stays green while the | ||
| //! RFC is red; each names the green slice that discharges it. | ||
|
|
||
| /// Scenario RFC0024.1 — calibration extraction. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.1 stub — implemented in the calibration green slice"] | ||
| fn rfc0024_1_calibration_extraction_is_deterministic() { | ||
| todo!( | ||
| "RFC0024.1 — `--calibrate` over a corpus produces a byte-identical \ | ||
| manifest on rerun, committed alongside the corpus tag" | ||
| ); | ||
| } | ||
|
|
||
| /// Scenario RFC0024.2 — calibrated generators are shaped by the manifest. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.2 stub — implemented in the calibration green slice"] | ||
| fn rfc0024_2_calibrated_generators_match_manifest_moments() { | ||
| todo!( | ||
| "RFC0024.2 — gross distribution moments of N generated records fall \ | ||
| within documented tolerance of the manifest's" | ||
| ); | ||
| } | ||
|
|
||
| /// Scenario RFC0024.7 — adversarial mode finds nothing today. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.7 stub — implemented in the oracle green slice (the umbrella runs last)"] | ||
| fn rfc0024_7_adversarial_mode_passes_the_full_property_set() { | ||
| todo!( | ||
| "RFC0024.7 — P1-P4 pass at an elevated case count on the adversarial \ | ||
| generators; any failure is a minimal reproducer by construction" | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| //! RFC 0024 §5 — the miner-owned pipeline properties: P2 (no silent | ||
| //! merge, `.4`) and P3 (RFC 0023 bounds, `.5`) over generated OTLP | ||
| //! batches from `ourios-testgen`. See | ||
| //! `crates/ourios-bench/tests/rfc0024_calibration.rs` for the scenario | ||
| //! placement map. | ||
|
|
||
| /// Scenario RFC0024.4 — P2: no silent merge over generated batches. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.4 stub — implemented in the pipeline-properties green slice"] | ||
| fn rfc0024_4_no_silent_merge_over_generated_batches() { | ||
| todo!( | ||
| "RFC0024.4 — every generated record's row carries a template its \ | ||
| line attached to under §6.3, or NO_TEMPLATE with body retained — \ | ||
| never another line's template" | ||
| ); | ||
| } | ||
|
|
||
| /// Scenario RFC0024.5 — P3: RFC 0023 bounds hold over generated streams. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.5 stub — implemented in the pipeline-properties green slice"] | ||
| fn rfc0024_5_bounds_hold_over_generated_streams() { | ||
| todo!( | ||
| "RFC0024.5 — with deliberately tiny bounds, template count / node \ | ||
| fan-out / line length never exceed their caps mid-stream" | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| //! RFC 0024 §5 — the storage-owned pipeline property: P1 (round-trip | ||
| //! fidelity, `.3`) over generated OTLP batches from `ourios-testgen`. | ||
| //! See `crates/ourios-bench/tests/rfc0024_calibration.rs` for the | ||
|
jensholdgaard marked this conversation as resolved.
Resolved
|
||
| //! scenario placement map. | ||
|
|
||
| /// Scenario RFC0024.3 — P1: round-trip fidelity over generated batches. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.3 stub — implemented in the pipeline-properties green slice"] | ||
| fn rfc0024_3_round_trip_fidelity_over_generated_batches() { | ||
| todo!( | ||
| "RFC0024.3 — every generated record round-trips per the RFC 0017/0018 \ | ||
| fidelity contract: string bodies bit-identical, structured bodies \ | ||
| canonical-JSON equal, envelope fields preserved" | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| //! RFC 0024 §5 — the querier-owned pipeline property: P4 (the query | ||
| //! oracle, `.6`) over generated OTLP batches and generated predicates | ||
| //! from `ourios-testgen`. See | ||
| //! `crates/ourios-bench/tests/rfc0024_calibration.rs` for the scenario | ||
|
jensholdgaard marked this conversation as resolved.
Resolved
|
||
| //! placement map. | ||
|
|
||
| /// Scenario RFC0024.6 — P4: the query oracle. | ||
| /// See `docs/rfcs/0024-otlp-envelope-property-testing.md` §5. | ||
| #[test] | ||
| #[ignore = "RFC0024.6 stub — implemented in the oracle green slice"] | ||
| fn rfc0024_6_querier_agrees_with_the_naive_oracle() { | ||
| todo!( | ||
| "RFC0024.6 — for generated batches and generated predicates (every \ | ||
| DSL operator class per field kind, incl. promoted and non-promoted \ | ||
| attribute equality), the querier's count equals a naive linear-scan \ | ||
| evaluator's" | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.