Repository navigation
spec(port): trios merkle.rs to specs/port/trios/crates/trios-rainbow-bridge/src/merkle.t27 - #12917
Merged
gHashTag merged 2 commits intoNov 3, 2026
Conversation
…bridge/src/merkle.t27 (Closes Trinity-S-AI-DNA#12573)
Contributor
Author
Red non-required checks: neither is this PR
Required checks are green: Self-check of the diff: two added files (the spec and its seal), nothing else; |
This was referenced Oct 31, 2026
Merged
docs(skills): worktree-lane names the low-disk path that needs no second tree (Closes #12949)
#12950
Merged
Merged
Merged
Merged
Merged
This was referenced Nov 2, 2026
Merged
Merged
Merged
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 #12573
What
Ports
crates/trios-rainbow-bridge/src/merkle.rs(gHashTag/trios at78671ba79482, 103 lines) tospecs/port/trios/crates/trios-rainbow-bridge/src/merkle.t27, roadmap stage 6 (goal #4548).Seven functions under the names the issue lists:
MerkleChain_new,MerkleChain_root,MerkleChain_root_hex,MerkleChain_len,MerkleChain_is_empty,MerkleChain_append,hex_encode.Ported decision, not plumbing
MerkleChain_appendtakes the resulting digest instead of&RainbowEvent: serialising the event and hashingroot || byteswith blake3 is the caller's side of the boundary.hex_encodewrites into a fixed 64-byte buffer instead of allocating aString: .t27 in this corpus has no allocator, and the chain root is the only caller (line 34).Acceptance criteria (run from the repository root)
test -f specs/port/trios/crates/trios-rainbow-bridge/src/merkle.t27present7t27c gen ... | grep -c 'not yet implemented'/| wc -l0/158t27c spec-status ...IMPLEMENTEDtestblocks9t27c test-report ... | grep -c BLOCKED0t27c test-report: 9 tests, 9 pass, 0 FAIL, 0 vacuous (34+3+3+1+2+64+6+4+5 runtime asserts).Seal
t27c seal --saveproduced.trinity/seals/src_port::trios::crates::trios_rainbow_bridge::src::merkle.json:spec_path=specs/port/trios/crates/trios-rainbow-bridge/src/merkle.t27spec_hash=sha256:ab3c433363935a7b20e5b59f6ef1cd7be3925f6ce8b1095f985a6ec3db084b88(recomputed and matched)tests={passed: 9, total: 9, failed: 0, vacuous: 0}Boundary
The spec plus its generated seal. No other spec, no scratch file, no edit to the original.
Not verified
t27c gen-rustoutput for this spec was not compiled against the trios crate; the generated Rust is not wired intocrates/trios-rainbow-bridgeby this PR.