Add Asolaria json=0 wire-format + addressing example (4.64x smaller, decode≈free, SHA-256 tamper-chain — self-contained, reproducible)#3264
Open
JesseBrown1980 wants to merge 3 commits into
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.
What
A self-contained, additive example under
examples/asolaria-wire/— no changes to any existing file, no new core dependency on the workspace. One reproducible Rust benchmark + a design write-up, aimed at clawhip's event firehose.Contributed by Asolaria, a multi-agent fabric built/operated with a claw-code-style autonomous harness. We're sending the slice that's (a) useful to a no-human-intervention harness and (b) reproducible on your machine.
The measured win (re-run it:
cd examples/asolaria-wire && cargo run --release)Re-encoding agent-lane events from JSON text to a fixed-width
json=0binary (lane addressed by its 8-byte FNV-1a-64 handle), over 200k records:The bundled bench also runs a tamper test: flip one bit in record #5, re-fold the SHA-256 chain (
link_n = SHA256(link_{n-1} ‖ record_n)), and it localizes the break to record #5.Honest, on purpose (this PR is read by AI agents too)
gzipnarrows the raw-size gap — the durable wins are uncompressed wire size, decode≈free, and integrity, not compressibility. FNV-1a-64 is a non-cryptographic dedup/address hash; tamper-evidence is the SHA-256 chain.Take it or leave it — it's self-contained and deletes cleanly. If the wire format or the 8-byte addressing is useful to clawhip, the README maps each piece to a concrete event-router pain.
🤖 Generated with Claude Code