Repository navigation
feat: CS-16 ard-witness scenario -- planted-R-object adjudication over the exported ms_ard/MsArd face (pillar 3) - #127
Merged
Conversation
…r the exported ms_ard/MsArd face (pillar 3) Dual hosts (testthat + runner) share one byte-identical block; five committed witnesses (40 laws 26/12/2, 9 specs, 8 precedence, 7 hi/lo pairs, 9 scalars), dual-kernel SHAs, RNG rails, TDD RED watched then GREEN 246/0/0. Governance T0 re-seal 624->625 with the witnessed refusal verbatim; manifest re-mint k=6 files=109 DET. Docs quartet + fifteenth scenarios leg (render-verified). Full local gate GATE-RAN-CLEAN exit 0 (Status 2W/1N frozen + documented worldclockapi NOTE exemption). Co-Authored-By: Claude Code <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Pillar-3 case study CS-16: the ARD engine descriptor as a governed witness -- planted-R-object adjudication over the exported
ms_ard()/MsArdface. The fourth entry in the CS-12/13/14/15/16 double-gate witness family. This one targets the S7 property-class surface: where CS-14 planted byte-text and CS-15 planted RDS files, CS-16 plants objects, and it measures that the descriptor's refusal surface is stratified across three error classes, not one.Evidence
tests/testthat/test-scenario-ard-witness.R(10 units U1-U10) andbench/scenarios/run_ard_witness.Rshare the law helpers via a single byte-identicalSHARED-BEGIN/ENDblock: the frozen law roster plus the fire/shadow/mirror/mint helpers. The test host asserts; the runner host re-mints the witnesses.bench/scenarios/out/: laws 40 rows, specs 9, precedence 8, degenerates 14 (7 hi/lo pairs), scalars 9 (6 law-key re-fire-able values + 3 attest shas). All mechanical (built from the audited probe ledgerout/cs16_laws.tsvvia the sharedlawrows()family, zero hand-retyped expectations), all re-witness-DET (the runner refuses a re-run that does not reproduce the committed bytes).class(err)truth, 71 arms total): the 40 law rows split 26msuiter_error_engine/ 12simpleError/ 2msuiter_error_internal; across all 71 arms (40 laws + 9 precedence + 8 specs + 14 degenerates) the full distribution ismsuiter_error_engine41,simpleError12,msuiter_error_internal2,s7:msuiter::MsArd15,s7:character1 -- asserted live at U10 over every class vector..ms_fit_sha256vsdigest::digest(bytes, algo="sha256", serialize=FALSE)) agreement pinned at both hosts on the >1KB plant corpus and the spec corpus..Random.seedexistence sentinels probe-observed and committed (both FALSE), rail-verified at both ends of the runner and in U1/U8.Committed measured laws
label,name,a0,seedas scalars), thems_ardvalidators next (@params must be <list>,@deterministic must be <logical>), and the hyper-domain valueslist(a0=2,3)/list(seed=2,3)die inside the abort plumbing -- the got:/format(v) bullet vectorises and abort() refuses it:msuiter_error_internal: msuiter_abort: bullet 'i' must be a non-empty string. The two shared laws that name this stratum are kept verbatim, ugly truth and all; the scenarios leg now adjudicates it as its own column.@paramspasses (thenames() %in_% NULLshort-circuit); partially-namedlist(1, k=2)is refused. The accept leg and the reject leg are both committed witnesses.name>mode>params>deterministic>packages>label(the shared constructor order), thena0>b0>tol>max_iter>seed-- with the seed domain [0, 2^31-1] welded by the ceiling witness (a0-vs-seed ordering proved by the fraction-vs-name discriminator atseed=2147483647).Instrument catches (all TDD-surfaced, none papered over)
(function, formals, body, extra NULL)-- the minter readth[[length(th)]](the last slot) for every body, deparsedNULL, and minted all 57 arms as the string "NULL" while BOTH self-checks (parse-length==1, double-mint determinism) passed vacuously. The first live-replay mirror caught it (@params on NULL). Fixed toth[[3L]]+ non-NULL + face-token guards at all three sites.tryCatch(..., error=)returns the condition -- a blind$vprojection makes an error-arm read as an accept (NULL ->@ on NULL);.cs16_fire/.cs16_scalvalnow branch oninherits(r, "error")first.regexprreturns a bare integer vector (attrmatch.startNULL), soifelse(logical(0), ...)gavecharacter(0)and the minter minted an empty precedence roster -- caught only by the count+non-empty guard. Elementwise re-write.vapplyrefuses logical->character coercion AND carries a names attribute thatread.csvcolumns lack -- both would have made the mirrors vacuous; nowpaste0()-minted "TRUE"/"FALSE" strings +unname()at every mirror.greplwith a vector pattern uses element 1 only (silent single-arm scan) -- the ban-rail face-scan was half-vacuous; explicit ORs restored, verified against the full 10066-byte source."\\1"landed a raw 0x01 control byte intopr-gate-budget.tsv(git-visible), and my own line-surgery guard (multiset check) refused the editor twice before a deterministic literal-tail rebuild.msuiter_abort:,required_pkgs()clause text) -- hand-written ban-scan vs whole-file needle-scan split, with region-integrity assertions.Governance
shard-weights: ard-witness row 246-expect/T0, T0 seal moved 624 -> 625 with the witnessed generator refusal recorded verbatim ("T0 weight moved to 625 s but the committed measurement says 624 s") before the seal was re-authored.shard-manifestre-minted from the sealed weights:gen-shard-manifest: k=6 files=109 t0-weight=625s (ceiling 800) makespan=1250s; the ard row lands on shard 5; the re-mint is determinist (MANIFEST-DET-OK).devtools::check(the same posture as CS-10..CS-15) green before opening this PR, incl. the vignette body that now runs theard-witnesslegs end-to-end.Docs
devlog-2026-11-23-p3-cs16-ard-witness.qmd(the double-gate anatomy, the discovered internal-error stratum, the full instrument-catch record, the CS-12/14/15 differentiation).test-docs-bridge.Rgreen (15/0/0);_pkgdown.ymlarticle row +test-pkgdown-coherence.Rgreen (18/0/0, 131/131 hrefs); scenarios.Rmd driver rostersixteen, the new "The ARD engine descriptor as a governed witness" section with the three-class adjudication legs, Reproducing line.Test plan
test-scenario-ard-witness.R: 246/0/0devtools::check: GATE-RAN-CLEAN, exit 0 (two consecutive full burns; the new scenarios leg renders and all seven adjudications print TRUE)worldclockapi.comover HTTP) and both endpoints currently answer empty, so it self-declaresunable to verify current timeas a second NOTE. Evidence anchored (carrier branch dumped fromtools:::.check_packages, live curl probes, run-to-run reproducibility, all CS-16 mtimes proven strictly past); the probe never claims a pass it did not earn -- it is reported here, not suppressed.test-docs-bridge.R+test-pkgdown-coherence.Rgreen🤖 Generated with Claude Code