Skip to content

feat: CS-18 convert-witness scenario -- planted-call adjudication over the exported ms_convert face (pillar 3) - #131

Merged
ShixiangWang merged 1 commit into
mainfrom
feat/cs18-convert-witness
Nov 24, 2026
Merged

ShixiangWang merged 1 commit into
mainfrom
feat/cs18-convert-witness

Conversation

@ShixiangWang

Copy link
Copy Markdown
Contributor

What this lands

The eighteenth pillar-3 witness: CS-18 convert-witness, adjudicating the
exported opportunity-converter face ms_convert() over planted
signature-and-opportunity calls.

  • bench/scenarios/run_convert_witness.R -- the runner: 38 observation arms
    plus 8 boundary-twin rows replayed live through the canonical pipeline, five
    TSV ledgers committed, dual-kernel sha256 attestation on the plant/spec
    corpora and on each written file.
  • tests/testthat/test-scenario-convert-witness.R -- 10 test_that units,
    233 expectations, 0 failed / 0 error / 0 skipped / 0 warning.
  • bench/scenarios/out/cs18_{laws,specs,precedence,degenerates,scalars}.tsv
    -- the receipts.

What the face demonstrates

One validator serves both option names: the ten-arm resolver
.ms_convert_resolve_opps() runs TWICE, so a bad bundled name speaks
msuiter_error_option under the leading head "from must be a bundled table or
a custom frequency vector" or its "to must be ..." twin (sharing the
[V]-discipline panel bullet verbatim), and every shape, length, label,
positivity and signature-matrix law speaks msuiter_error_input. The 38-row
class census (msuiter_error_input=17, msuiter_error_option=8,
s7:matrix=11, s7:msuiter::MsSignature=1, s7:character=1) is recomputed
from the frozen vectors inside the law file.

Ten precedence discriminators each pin fires-anchor-present against
anti-anchor-absent: signature-shape outranks both option laws, rownames
outranks the to law, from resolves before to, length outranks labels, and
the multi-column law outranks labels.

D11 cross-platform posture (the new thing)

The accepted arms return a REAL float matrix (kernel round-trip error
~1e-16), so under the D11 posture no float payload can ride a byte-committed
column. The accepted renders therefore commit a discrete column-sum glyph
(0/1/? at a 1e-9 threshold, seven orders above the observed error) in
place of the numbers -- the first witness in the series to commit a glyph
rather than a class token for its accepting arms
. Integer, label, logical,
class and clause bytes stay byte-committed; floats are censused finite/in-domain
only.

Honest note from the lane-building

The runner's own degenerate rail caught a drafted-innocent bug before any
witness byte was trusted: the fromopt-vs-toopt boundary contrast had been
written against a clause head literal one word short. head1() splits on
" | " and returns the WHOLE first clause, so the first runner invocation died
on the rail's own stopif. The fix went into BOTH the runner tail and the U7
unit via the assemblers (never hand-edited in place). That is why the
boundary-contrast assertions are " | "-split rather than substring-based -- a
substring rail would have passed the short literal vacuously.

Governance

  • T0 seal moved 626 -> 627, with the generator's refusal witnessed verbatim
    (the DEFECT line naming 627 against the sealed 626) before the deliberate
    re-seal, per the budget law.
  • Reified manifest carries 112 files; the new law file lands on shard 4.
  • Docs quartet landed: new devlog, paper-draft.qmd reference,
    docs-bridge.Rmd row, _pkgdown.yml articles row.
    test-docs-bridge.R nb=15 and test-pkgdown-coherence.R nb=18 both green
    locally (0 failed / 0 error / 0 warning, 1 R-CMD-check-context skip each,
    zero census violations).

Local gate

Frozen 2W/1N baseline, 0 errors, CHECK-EXIT=1 (43m 18.8s):

  • WARNING top-level files -- CITATION.cff non-standard top-level entry
    (pre-existing).
  • WARNING Rust compilation -- "Downloads Rust crates" (pre-existing).
  • NOTE package subdirectories -- CITATION.cff placement (pre-existing).

No new warnings or notes; checking tests ... [34m/34m] OK,
checking re-building of vignette outputs ... [425s/422s] OK.

Test plan

  • CI confirms the committed shard manifest byte-identity gate
    (tools/ci/shard-manifest.tsv regenerated in-workflow)
  • CI confirms the new scenarios leg passes on the runner roster
  • Post-merge master push run attested

🤖 Generated with Claude Code

…r the exported ms_convert face (pillar 3)

The eighteenth pillar-3 witness. bench/scenarios/run_convert_witness.R
replays 38 observation arms plus 8 boundary-twin rows live through the
canonical pipeline and commits five TSV ledgers; the law file carries 10
test_that units (233 expectations, 0 failed / 0 error / 0 skipped /
0 warning). One validator serves both option names -- the ten-arm
resolver runs twice, so a bad bundled name speaks msuiter_error_option
under the "from must be ..." or "to must be ..." head, and every shape,
length, label, positivity and signature-matrix law speaks
msuiter_error_input; ten precedence discriminators pin each fires anchor
present against its anti anchor absent.

D11 cross-platform posture: the accepted arms return a real float
matrix (kernel round-trip error ~1e-16), so the accepted renders commit
a DISCRETE column-sum glyph (0/1/? at 1e-9) in place of the payload --
the first witness in the series to commit a glyph rather than a class
token for its accepting arms. Integer, label, logical, class and clause
bytes are byte-committed; floats are censused finite/in-domain only.

Governance: T0 seal 626 -> 627 (generator refusal witnessed verbatim
before the deliberate re-seal), reified manifest 112 files, new law
file on shard 4. Docs quartet landed (devlog, paper-draft, docs-bridge,
_pkgdown.yml); docs-bridge and pkgdown-coherence green locally.

Local gate: frozen 2W/1N baseline (CITATION.cff top-level + Rust crates
download; CITATION.cff placement NOTE), 0 errors, CHECK-EXIT=1.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@ShixiangWang
ShixiangWang merged commit c2c9159 into main Nov 24, 2026
9 checks passed
@ShixiangWang
ShixiangWang deleted the feat/cs18-convert-witness branch November 24, 2026 23:30
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