feat(blocks): publish a machine-readable registry manifest with a regenerate-and-diff guard#171
Merged
Merged
Conversation
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.
Rung 1 of 7 of the interchange-trio ladder (owner-ratified 2026-07-21). Closes #164.
What
A published, machine-readable inventory of the executable block registry, generated FROM the registry so it cannot drift:
tools/reference-catalog/oce-blocks.registry-manifest.json— ordered JSON array, one object perRegistryEntryin CATALOG slice order (133 entries):class_path, typed positional ports of theParamTable::default()-resolved instance (resolved_signature(), not static), awidth_drivenflag (presence ofStructural/StructuralArrayElementsrules), and the complete param-rule list with every embedded guard field (e.g. PIDk/Ti/Td→{"rule":"RealGreaterOrEqual","min":1e-13}).crates/oce-blocks/src/registry/manifest.rs(+ mirrored tests, all#[cfg(test)]) — deterministic generator + hand-written serializer matchingParamRuleexhaustively with no wildcard arm: a new variant fails compilation until the published schema is consciously extended. In-crate placement is load-bearing (ParamRuleis#[non_exhaustive]; a cross-crate match would need a wildcard, silently defeating the guard).Sync guarantee (#164 acceptance)
Registry change without re-bless →
checked_in_manifest_matches_regenerated_bytesfails; newParamRulevariant → compilation fails. Re-bless isUPDATE_EXPECT=1(existing repo convention).Variadic subtlety (red-team-derived)
MultiAnd/MultiOrand the three*VectorFilterentries have EMPTY default-resolved inputs (nindefaults 0) — the manifest records that faithfully and marks themwidth_driven: true; a divergence test pinsresolved_signature()widening to 3 Boolean inputs atnin=3while staticsignature()stays empty (why the manifest reads resolved). Positive controls: extractor/replicator families (defaults 1).Tests
8 new property-named tests (workspace 1181 → 1189): byte golden + double-render identity, coverage oracle (sequence equality with live CATALOG + uniqueness + 133 pin), panic-free 133-constructor sweep, empty-at-default width-flag assertions (logical + vector-filter), non-empty positive controls, variadic divergence, float shortest-round-trip pins (
0.001,0.5,2.0,-1e-37,1e-15byte-exact).Pre-push mutation self-checks (run → caught → reverted): dropped
minfrom theRealGreaterOrEqualarm → byte golden FAIL (line 24); swapped CATALOG slices 0↔1 → byte golden FAIL (line 2).Gates (implementer + independent lead re-run, both green)
fmt · clippy
-D warnings· nextest 1189/1189 · doctests · file-size cap · determinism-matrix mirror 448/448 release.🤖 Generated with Claude Code