Repository navigation
Conversation
…-execution witness composing with base64url to mint credentials Pure-spec seam in std.bytes: random_bytes(count: Int) -> List<UInt8> uses pure_dag_seam_unreachable() as the §2 Realization REQUEST body — the .dag declares the entropy need, the host satisfies it. v1_interpreter handler reads exactly `count` bytes from /dev/urandom via std::io::Read::read_exact (no new dependency; Linux std I/O). Bounds-checked 0..=65536; zero-count path skips the open entirely. Witness (random_bytes_csprng_witness_test.dag, auto-enrolled by naming): - random_bytes_count_holds: count: 16 -> 16 octets (green) - random_bytes_zero_holds: count: 0 -> 0 octets (green) - random_bytes_base64url_mint_16_length_holds: 16 bytes -> 24-char UrlSafe string (green) - random_bytes_base64url_mint_20_length_holds: 20 bytes -> 28-char UrlSafe string (green) The last two witnesses prove the §2 horizontal composition: random_bytes ∘ base64_encode(variant: UrlSafe) mints a URL-safe credential string. Length is the discriminating claim (16 bytes = 5*3+1 -> 24 chars; 20 bytes = 6*3+2 -> 28 chars); a wrong-count handler or wrong alphabet fails both. dsl compile: 463 modules, 0 diagnostics. All 11 existing base64 witnesses still green by execution. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
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.
Auto-opened by session-dashboard for session
neat-boar-71.Pushing to
pr5633advances this PR.Worker attestation
Before flipping this PR to ready for review, confirm each item:
npm test,cargo test) and the result.Closes #Ndirective.Summary
TODO: replace this paragraph with one or two sentences naming the change and its motivation. Reviewers read this first.
Test plan