cs: the 1:1 piece↔item gate lands before lever F (#212) - #229
Merged
Conversation
The flat codec re-derives #198-safety from every classifier returning one piece per item or false; nothing asserted it and the package had no tests. TestFlatFallbackReEmitsItemsNotPieces now pins the output properties the invariant protects: a fixed array emits exactly one element loop per direction, a single-scalar fallback (the one fallback path that runs today) emits exactly one per-field serialize per direction, and a nested struct at the run cap never names inner fields on the outer base. Sabotage control: doubling the fallback's item emission goes red (3 serializes detected); restored, green. Co-Authored-By: Claude Fable 5 <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.
Closes #212 (the #208 review's first ask).
internal/codegen/csharpgets its first test file: the C# twin of Go'sTestFlatFallbackReEmitsItemsNotPieces, pinning the three output properties the 1:1 invariant protects — element-loop count on a fixed array, per-field serialize count through the live fallback path (flatWorthwhilerefusing a run of one), and no inner-field-on-outer-base at the 384-bit run cap. Proven discriminating by sabotage (doubling the fallback's item emission → red), green as landed. Lever F cannot make classification 1:N without answering to it.🤖 Generated with Claude Code