Skip to content

feat: CS-17 catalog-witness scenario -- planted-byte adjudication over the exported ms_catalog/MsCatalog face (pillar 3) - #129

Merged
ShixiangWang merged 5 commits into
mainfrom
bench/cs17-catalog-witness
Nov 24, 2026
Merged

ShixiangWang merged 5 commits into
mainfrom
bench/cs17-catalog-witness

Conversation

@ShixiangWang

Copy link
Copy Markdown
Contributor

Summary

CS-17 (catalog-witness) — the seventeenth witness scenario, adjudicating the EXPORTED ms_catalog() factory and its MsCatalog S7 container over planted catalog calls. Pillar 3 (application case studies); the final CS-N witness in the current roster.

The lane commits only machine-stable facts: the error CLASS always, and the message CLAUSES verbatim. The container is pure R — no file path, clock or RNG touches its verdicts — so the committed witnesses were DET-proved byte-stable across probe reruns. Nothing here needed the stable3 bullet-subset posture CS-13/CS-14 required for file paths, nor the payload-census posture CS-6 required for ill-conditioned floats.

What the face demonstrates

  • The double gate, measured at its true boundary. Three arms (channels, samples, provenance with the wrong type) die as simpleError at the S7 property gates before any validator arm runs. The fourth property, counts, is gated class_any: a character matrix and a bare numeric vector both REACH the validator and are refused there as msuiter_error_catalog. The lane caught its own planned expectation mid-build — a scalar-count gate arm had been drafted as a fourth simpleError, and the live fire refused that claim; it was committed as the measured 42-arm census 37 validator + 3 property-gate + 2 shared-digest-input.
  • The reversed typed-NA trap. The CS-13-era fixture trick of feeding the label field as as.character(NA_integer_) REVERSES on this face: the real typed NA survives as.character, rides the factory's auto-hash path, and the shared digest helper refuses it as the second error class msuiter_error_input. Both twins are committed side by side.
  • The snapshot law (fields name/labels/hash; extras and absences each named), the derived-hash law ("snapshot hashes must be derived, not asserted"), the identity laws (rownames vs labels, colnames vs samples, finiteness and integrality), and ten precedence discriminators each pinned fires-anchor-PRESENT / anti-anchor-ABSENT. One ordering was committed against the lane's own plan: the colnames-vs-samples law outranks the sample-sanity law.
  • Acceptance specs. The canonical 4x2 double container renders its full identity line; the skipped tail (n_skipped 7 of n_variants 42) renders IDENTICALLY under integer and double provenance payloads; the integer plant keeps its storage-mode glyph; replaying the committed spec through ms_catalog() reproduces it byte-for-byte.

Committed receipts

receipt committed bytes
cs17_laws.tsv 42 arms: class census MEASURED 37 validator + 3 property-gate + 2 shared-digest-input
cs17_specs.tsv 6 accepted arms incl. the s7:character replay identity
cs17_precedence.tsv 10 discriminators, fires/anti anchors pinned per row
cs17_degenerates.tsv 4 boundary pairs (8 rows): 5 accepted / 3 refused
cs17_scalars.tsv 10 keys: gate-boundary class token, both storage glyphs, two canonical digests, format line, dual-kernel tail pair, both RNG-purity rails

Governance

  • T0 seal 625 -> 626 with the generator's refusal witnessed verbatim (the DEFECT line naming 626 against the sealed 625) before the deliberate re-seal, per the budget law. The reified manifest carries 110 files; gen-shard-manifest.R reproduces it byte-identically at the current weights (re-measured this session).
  • Devlog quartet complete: devlog .qmd, docs-bridge.Rmd row, _pkgdown.yml articles row, paper-draft.qmd CS-17 entry.
  • Prose-vs-measured repair (follow-up commit). Three sites carried plan-draft numerals the committed bytes refute (39/2/1 and "4 accepted, 4 refused"). The US-H2 prose audit cannot catch these — single digits are never audited and "39" is census-bound elsewhere — so they were repaired by hand against the measurement, the same defect class as the CS-14 anchor and CS-16 invented-columns findings.

Test plan

  • Local devtools::check(".", cran = TRUE, vignettes = TRUE, error_on = "note") — Status: 2 WARNINGs, 2 NOTEs, frozen posture (top-level CITATION.cff WARNING, "Downloads Rust crates" WARNING, future-timestamp NOTE, CITATION.cff placement NOTE); tests 19m OK, vignette rebuild 227s OK, 0 errors.
  • test-scenario-catalog-witness.R — 265 expectations across 10 units, 0 failed / 0 error / 0 warning, frozen class vector identical.
  • Scenario leg render-verified standalone: all four adjudication lines print TRUE.
  • Docs suites green: docs-bridge (116 roster-hrefs, 0 violations), pkgdown-coherence (132/132, 0 violations), scenarios-gallery (88 cards, 88 stamps), docs-scenarios-prose (violations=0), site-claim-gate (0 violations), ci-shard-map.
  • Witness re-mint: OVERALL PASS, all five TSVs byte-unchanged, dual-kernel checksums stable.

🤖 Generated with Claude Code

ShixiangWang and others added 5 commits November 24, 2026 12:20
Ten law units over the exported ms_catalog()/MsCatalog face, minted from
the audited probe ledger (42 law arms, 6 acceptance specs, 10 precedence
discriminators, 8 boundary contrast rows, 10 scalars). Witnessed RED for
the right reasons: the five committed witnesses under bench/scenarios/out/
do not exist yet (U2-U8 red), while the rails, the live law-arm replay,
the dual-kernel corpus agreement and the frozen-roster self-shape already
speak (U1/U4/U9/U10 green).
…r the exported ms_catalog/MsCatalog face (pillar 3)

Five committed witnesses (laws/specs/precedence/boundary contrasts/scalars)
minted by the dual-kernel attested runner; two independent mint runs speak
byte-identical TSVs; the law file replays every arm live and the injected
frozen and shared regions are byte-identical across the pair.
- shard-weights: test-scenario-catalog-witness.R 1 s / 265 measured
  expects; manifest re-mint k=6 files=110, new law file on shard 4;
  generator refusal witnessed verbatim at the pre-seal attempt (DEFECT
  line naming 626 against the sealed 625) before the deliberate re-seal.
- docs quartet: paper-draft CS-17 bullet + Fig. 5 roster; sixteenth
  scenarios leg (render-verified standalone, seven adjudications TRUE on
  the committed bytes); docs-bridge row; pkgdown articles entry; dated
  devlog with the measured census 37/2/3, the five-accept boundary
  census, the reversed typed-NA fixture trap and the single-source
  build story.

Co-Authored-By: Claude Code <noreply@anthropic.com>
…esses

Three sites carried plan-draft numerals that the committed CS-17 bytes
refute. The 42-arm law roster splits 37 validator + 3 property-gate +
2 shared-digest-input (not 39/2/1), and the four boundary pairs stand
5 accepted / 3 refused (not 4/4).

The US-H2 prose audit cannot catch these: single digits are never
audited and "39" is census-bound elsewhere, so the stale strings read
green vacuously. Repaired by hand against the measured census, the
same defect class as the CS-14 anchor and CS-16 invented-columns
findings.

Sites: devlog receipt row (cs17_laws.tsv), scenarios.Rmd catalog-witness
chunk cat lines.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@ShixiangWang
ShixiangWang merged commit eb1e15b into main Nov 24, 2026
9 checks passed
@ShixiangWang
ShixiangWang deleted the bench/cs17-catalog-witness branch November 24, 2026 15:40
ShixiangWang added a commit that referenced this pull request Nov 24, 2026
…the mandatory i/j/c bullets (#129 sibling) (#130)

The ms_convert() `from`/`to` opportunity guard was the last site still relying on a defaulted i/j/c bullet. This sweep restores the mandatory three bullets at every msuiter_abort() site so the error contract holds uniformly.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant