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
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,4 @@ articles:
- articles/devlog-2026-11-23-p3-cs14-segments-witness
- articles/devlog-2026-11-23-p3-cs15-refdb-witness
- articles/devlog-2026-11-23-p3-cs16-ard-witness
- articles/devlog-2026-11-23-p3-cs17-catalog-witness
9 changes: 9 additions & 0 deletions bench/scenarios/out/cs17_degenerates.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pair side arm mode cls msg
empty-boundary hi empty-queue-hi accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|0|double|TRUE|FALSE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 0 samples
empty-boundary lo zero-channels-lo reject msuiter_error_catalog counts must carry both channel labels (rownames) and sample labels (colnames) | labels are the only legal matching key (never position) | rownames missing: TRUE; colnames missing: FALSE | name the matrix dimensions before constructing MsCatalog
rowlaw-split hi rowlabel-uniqueness-hi reject msuiter_error_catalog channel and sample labels must be unique | duplicated labels make label matching ambiguous | duplicated channel labels: 'CH1'; duplicated sample labels: (none) | de-duplicate or rename labels
rowlaw-split lo rownames-missing-lo reject msuiter_error_catalog counts must carry both channel labels (rownames) and sample labels (colnames) | labels are the only legal matching key (never position) | rownames missing: TRUE; colnames missing: FALSE | name the matrix dimensions before constructing MsCatalog
minimal-vs-empty hi minimal-1x1-hi accept s7:msuiter::MsCatalog msuiter::MsCatalog|1|1|double|TRUE|TRUE|e10fea09c4590dfbcf05149c6d3157db|<MsCatalog> CS17T: 1 channels x 1 samples
minimal-vs-empty lo empty-4x0-lo accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|0|double|TRUE|FALSE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 0 samples
skipped-tail hi skipped-tail-hi accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples; skipped 7/42 variants
skipped-tail lo core-nontail-lo accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples
43 changes: 43 additions & 0 deletions bench/scenarios/out/cs17_laws.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
arm mode cls msg
G1-channels-nonlist reject simpleError <msuiter::MsCatalog> object properties are invalid: | - @channels must be <list>, not <character>
G2-samples-noncharacter reject simpleError <msuiter::MsCatalog> object properties are invalid: | - @samples must be <character>, not <integer>
G3-provenance-nonlist reject simpleError <msuiter::MsCatalog> object properties are invalid: | - @provenance must be <list>, not <character>
V1-counts-vector reject msuiter_error_catalog counts must be a numeric matrix (channels x samples) | MsCatalog stores one count per channel and sample | received: numeric | tally variants with ms_tally() to obtain a count matrix
V1b-counts-character-matrix reject msuiter_error_catalog counts must be a numeric matrix (channels x samples) | MsCatalog stores one count per channel and sample | received: matrix | tally variants with ms_tally() to obtain a count matrix
V2-rownames-missing reject msuiter_error_catalog counts must carry both channel labels (rownames) and sample labels (colnames) | labels are the only legal matching key (never position) | rownames missing: TRUE; colnames missing: FALSE | name the matrix dimensions before constructing MsCatalog
V2b-colnames-missing reject msuiter_error_catalog counts must carry both channel labels (rownames) and sample labels (colnames) | labels are the only legal matching key (never position) | rownames missing: FALSE; colnames missing: TRUE | name the matrix dimensions before constructing MsCatalog
V3-rowlabels-dup reject msuiter_error_catalog channel and sample labels must be unique | duplicated labels make label matching ambiguous | duplicated channel labels: 'CH1'; duplicated sample labels: (none) | de-duplicate or rename labels
V3b-collabels-dup reject msuiter_error_catalog channel and sample labels must be unique | duplicated labels make label matching ambiguous | duplicated channel labels: (none); duplicated sample labels: 'S1' | de-duplicate or rename labels
V4-count-NA reject msuiter_error_catalog counts must not contain NA or non-finite values | the FFI contract rejects NA; the catalog layer adds no pseudo-counts | offending cells: '2' | fix the upstream tally output
V4b-count-Inf reject msuiter_error_catalog counts must not contain NA or non-finite values | the FFI contract rejects NA; the catalog layer adds no pseudo-counts | offending cells: '7' | fix the upstream tally output
V4c-count-NaN reject msuiter_error_catalog counts must not contain NA or non-finite values | the FFI contract rejects NA; the catalog layer adds no pseudo-counts | offending cells: '4' | fix the upstream tally output
V5-count-negative reject msuiter_error_catalog counts must be non-negative | negative mutation counts are impossible | offending cells: '5' | check the tally pipeline for subtraction errors
V6-snap-missing-hash reject msuiter_error_catalog the channel snapshot must be a list with fields name, labels, hash | the snapshot keeps the registry's canonical labels and their digest | received fields: 'name', 'labels' | construct the catalog through ms_catalog(), which slices the snapshot
V6b-snap-missing-name reject msuiter_error_catalog the channel snapshot must be a list with fields name, labels, hash | the snapshot keeps the registry's canonical labels and their digest | received fields: 'labels', 'hash' | construct the catalog through ms_catalog(), which slices the snapshot
V6c-snap-extra-field reject msuiter_error_catalog the channel snapshot must be a list with fields name, labels, hash | the snapshot keeps the registry's canonical labels and their digest | received fields: 'name', 'labels', 'hash', 'extra' | construct the catalog through ms_catalog(), which slices the snapshot
V6d-snap-empty-list reject msuiter_error_catalog the channel snapshot must be a list with fields name, labels, hash | the snapshot keeps the registry's canonical labels and their digest | received fields: (none) | construct the catalog through ms_catalog(), which slices the snapshot
V7-name-empty reject msuiter_error_catalog the channel snapshot field 'name' must be a single non-empty string | the table name identifies the channel set (e.g. SBS96) | received: '' | pass the registry table name, e.g. name = "SBS96"
V7b-name-NA reject msuiter_error_catalog the channel snapshot field 'name' must be a single non-empty string | the table name identifies the channel set (e.g. SBS96) | received: 'NA' | pass the registry table name, e.g. name = "SBS96"
V7c-name-noncharacter reject msuiter_error_catalog the channel snapshot field 'name' must be a single non-empty string | the table name identifies the channel set (e.g. SBS96) | received: '5' | pass the registry table name, e.g. name = "SBS96"
V8-labels-NA-handhash reject msuiter_error_catalog channel labels in the snapshot must be a character vector without NA | channel labels are canonical identities | received: character of length 4 with anyNA = TRUE | pass the canonical labels from the channel registry
V8b-labels-numeric reject msuiter_error_catalog channel labels in the snapshot must be a character vector without NA | channel labels are canonical identities | received: integer of length 4 with anyNA = FALSE | pass the canonical labels from the channel registry
V8c-label-empty-string reject msuiter_error_catalog channel labels in the snapshot must be a character vector without NA | channel labels are canonical identities | received: character of length 4 with anyNA = FALSE | pass the canonical labels from the channel registry
V9-snap-labels-dup reject msuiter_error_catalog channel labels in the snapshot must be unique | duplicated channel labels are not canonical order | duplicated: 'CH1' | use the canonical registry ordering
V13-hash-nonhex reject msuiter_error_catalog the channel snapshot field 'hash' must be an md5 hex digest | the digest pins the channel table inside snapshot summaries (A5) | received: 'ZZzz0000000000000000000000000000' | let ms_catalog() compute the hash; do not set it by hand
V13b-hash-noncharacter reject msuiter_error_catalog the channel snapshot field 'hash' must be an md5 hex digest | the digest pins the channel table inside snapshot summaries (A5) | received: '42' | let ms_catalog() compute the hash; do not set it by hand
V13c-hash-NA reject msuiter_error_catalog the channel snapshot field 'hash' must be an md5 hex digest | the digest pins the channel table inside snapshot summaries (A5) | received: 'NA' | let ms_catalog() compute the hash; do not set it by hand
V13d-hash-short-hex reject msuiter_error_catalog the channel snapshot field 'hash' must be an md5 hex digest | the digest pins the channel table inside snapshot summaries (A5) | received: 'd3b77a574c1e6afda429f0e14afcf4d' | let ms_catalog() compute the hash; do not set it by hand
V14-hash-foreign reject msuiter_error_catalog the stored channel hash does not match the stored labels | snapshot hashes must be derived, not asserted | stored: 2b947f5f7703ed9896680aa8bbe27a7a | rebuild the catalog with ms_catalog()
V10-nrow-vs-labels reject msuiter_error_catalog counts dimensions disagree with the registry snapshot or the samples | counts is channels x samples | nrow = 3 vs 4 labels; ncol = 2 vs 2 samples | align the count matrix with the registry labels and sample ids
V10b-ncol-vs-samples reject msuiter_error_catalog counts dimensions disagree with the registry snapshot or the samples | counts is channels x samples | nrow = 4 vs 4 labels; ncol = 3 vs 2 samples | align the count matrix with the registry labels and sample ids
V11-rowlabel-decoy-permuted reject msuiter_error_catalog channel labels of counts do not match the registry snapshot | matching is by label, element by element, never by position | first offending labels: 'CH2', 'CH1' | reorder or rename counts rows to the canonical registry labels
V12-colnames-vs-samples reject msuiter_error_catalog sample labels of counts do not match the samples property | matching is by label, element by element, never by position | first offending labels: 'SX' | align colnames(counts) with the samples vector
V15-sample-empty reject msuiter_error_catalog sample labels must be non-empty strings without NA | sample ids are identities matched by label | offending labels: '' | provide one non-empty id per sample
V15b-sample-NA reject msuiter_error_catalog sample labels must be non-empty strings without NA | sample ids are identities matched by label | offending labels: 'NA' | provide one non-empty id per sample
V16-prov-unnamed reject msuiter_error_catalog catalog provenance must be a named list | provenance carries the genome build and tally context | received: list | provide at least genome = "<build>"
V16b-prov-emptyname reject msuiter_error_catalog catalog provenance must be a named list | provenance carries the genome build and tally context | received: list | provide at least genome = "<build>"
V17-genome-missing reject msuiter_error_catalog catalog provenance must carry the genome build as 'genome' | the build is required to query reference signatures | received: (none) | record the build, e.g. provenance = list(genome = "GRCh38")
V17b-genome-empty reject msuiter_error_catalog catalog provenance must carry the genome build as 'genome' | the build is required to query reference signatures | received: '' | record the build, e.g. provenance = list(genome = "GRCh38")
X1-errorinput-autohash-NAlabels reject msuiter_error_input channel labels to hash must be a character vector without NA | the label digest is only defined for plain label vectors | received: character with anyNA = TRUE | pass the canonical channel labels (character, NA free)
E2-NAinteger-label-trap reject msuiter_error_input channel labels to hash must be a character vector without NA | the label digest is only defined for plain label vectors | received: character with anyNA = TRUE | pass the canonical channel labels (character, NA free)
U1-hashhelper-via-factory-listlabels reject msuiter_error_catalog counts dimensions disagree with the registry snapshot or the samples | counts is channels x samples | nrow = 4 vs 2 labels; ncol = 2 vs 2 samples | align the count matrix with the registry labels and sample ids
11 changes: 11 additions & 0 deletions bench/scenarios/out/cs17_precedence.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
arm mode cls msg fires_ok anti_ok
PR1-anchor-gate-over-validator reject simpleError <msuiter::MsCatalog> object properties are invalid: | - @samples must be <character>, not <integer> TRUE TRUE
PR1-anti-validator-alone reject msuiter_error_catalog counts must be a numeric matrix (channels x samples) | MsCatalog stores one count per channel and sample | received: numeric | tally variants with ms_tally() to obtain a count matrix TRUE TRUE
PR2-anchor-dims-over-labelmatch reject msuiter_error_catalog counts dimensions disagree with the registry snapshot or the samples | counts is channels x samples | nrow = 3 vs 4 labels; ncol = 2 vs 2 samples | align the count matrix with the registry labels and sample ids TRUE TRUE
PR2b-anchor-uniqueness-over-dims reject msuiter_error_catalog channel and sample labels must be unique | duplicated labels make label matching ambiguous | duplicated channel labels: 'CH1'; duplicated sample labels: (none) | de-duplicate or rename labels TRUE TRUE
PR3-anchor-uniqueness-over-finiteness reject msuiter_error_catalog channel and sample labels must be unique | duplicated labels make label matching ambiguous | duplicated channel labels: 'CH1'; duplicated sample labels: (none) | de-duplicate or rename labels TRUE TRUE
PR4-anchor-hashshape-over-truth reject msuiter_error_catalog the channel snapshot field 'hash' must be an md5 hex digest | the digest pins the channel table inside snapshot summaries (A5) | received: 'nothex00000000000000000000000000' | let ms_catalog() compute the hash; do not set it by hand TRUE TRUE
PR5-anchor-namedlaw-over-genomelaw reject msuiter_error_catalog catalog provenance must be a named list | provenance carries the genome build and tally context | received: list | provide at least genome = "<build>" TRUE TRUE
PR5-anti-genomelaw-alone reject msuiter_error_catalog catalog provenance must carry the genome build as 'genome' | the build is required to query reference signatures | received: (none) | record the build, e.g. provenance = list(genome = "GRCh38") TRUE TRUE
PR6-anchor-collabel-mismatch-over-samplesanity reject msuiter_error_catalog sample labels of counts do not match the samples property | matching is by label, element by element, never by position | first offending labels: 'NA' | align colnames(counts) with the samples vector TRUE TRUE
PR6-anti-samplesanity-alone reject msuiter_error_catalog sample labels must be non-empty strings without NA | sample ids are identities matched by label | offending labels: 'NA' | provide one non-empty id per sample TRUE TRUE
11 changes: 11 additions & 0 deletions bench/scenarios/out/cs17_scalars.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
key value
gate-class simpleError
storage-double double
storage-integer integer
hash-canonical d3b77a574c1e6afda429f0e14afcf4d1
hash-minimal e10fea09c4590dfbcf05149c6d3157db
format-core <MsCatalog> CS17T: 4 channels x 2 samples
tail-int <MsCatalog> CS17T: 4 channels x 2 samples; skipped 7/42 variants
tail-dbl <MsCatalog> CS17T: 4 channels x 2 samples; skipped 7/42 variants
rng-before FALSE
rng-after FALSE
7 changes: 7 additions & 0 deletions bench/scenarios/out/cs17_specs.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
arm mode cls msg
A1-accept-core accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples
A2-accept-skipped-tail-int accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples; skipped 7/42 variants
A3-accept-skipped-tail-dbl accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples; skipped 7/42 variants
A5-accept-1x1-minimal accept s7:msuiter::MsCatalog msuiter::MsCatalog|1|1|double|TRUE|TRUE|e10fea09c4590dfbcf05149c6d3157db|<MsCatalog> CS17T: 1 channels x 1 samples
A4-accept-int-plant accept s7:msuiter::MsCatalog msuiter::MsCatalog|4|2|integer|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples
sp-replay-identity accept s7:character msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples==msuiter::MsCatalog|4|2|double|TRUE|TRUE|d3b77a574c1e6afda429f0e14afcf4d1|<MsCatalog> CS17T: 4 channels x 2 samples
Loading
Loading