feat: schema stability, batch git storage, and pairing protocol extraction#27
Merged
feat: schema stability, batch git storage, and pairing protocol extraction#27
Conversation
- Add schemars 0.8 as workspace dependency - Migrate auths-core, xtask, auths-telemetry to workspace schemars dep - Add schema feature to auths-verifier and auths-keri - Add JsonSchema derives to Attestation, IdentityBundle, KERI event types - Manual JsonSchema impls for Ed25519PublicKey/Signature (hex format) - Regenerate telemetry schema.json for schemars 0.8 format
- Create auths-keri fuzz target for import_cesr_to_events - Add .github/workflows/fuzz.yml covering all 5 targets across 3 crates - Nightly schedule with manual dispatch option
- Generate JSON Schema from Attestation, IdentityBundle, IcpEvent types - Validate fixture JSON files against committed schemas - Add auths-verifier (schema feature) and jsonschema deps to xtask
- Regenerate schemas and diff against committed files - Validate test fixtures against schemas - Fails CI if schemas drift from Rust type definitions
Adds atomic batch event appending with in-memory state overlay, single-commit writes, and index-aware validation errors.
Concurrent tests verify parallel batch writers, batch+single interleaving, and CAS failure clarity. Benchmarks compare batch vs sequential for 100-1000 events and mixed-prefix batches.
Transport-agnostic pairing protocol extracted from auths-core. Uses ring directly for Ed25519 sign/verify (no tokio dependency). DeviceDID replaced with String, schemars derives removed.
Deletes token.rs, response.rs, types.rs from auths-core. Rewrites mod.rs to re-export from auths-pairing-protocol. Keeps qr.rs and transport error variants locally. CLI and SDK compile unchanged.
PairingProtocol provides initiate/complete flow with typed state transitions. respond_to_pairing helper for responder side. Adds auths-pairing-protocol to Batch 2 in publish ordering.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The cargo alias from .cargo/config.toml isn't picked up in CI.
…nts in tests Tests using Ed25519KeyPair::generate_pkcs8(&rng) were taking >60s in CI because debug-mode entropy reads are expensive. Pre-generated PKCS8 DER byte arrays eliminate all runtime key generation — from_pkcs8 is just parsing. Documents the pattern in testing-guide.md.
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.
Summary
schemafeature flag withJsonSchemaderives on contract types,cargo xtask generate-schemas/validate-schemascommands, CI schema drift detection, andfuzz_cesr_importfuzz target with nightly CI workflowbatch_append_events()onGitRegistryBackendwith in-memory state overlay, single-commit atomic writes, and index-awareBatchValidationFailederrors. Added concurrent batch writer tests and batch vs sequential benchmarksauths-pairing-protocolcrate with transport-agnostic protocol logic (no axum/tokio deps),PairingProtocolstate machine, ring-direct Ed25519 sign/verify. Convertedauths-core::pairingto a re-export facade. Updated publish orderingTest plan
cargo nextest run -p auths-pairing-protocol— protocol unit testscargo nextest run -p auths-storage -E 'test(batch)'— batch event testscargo nextest run -p auths-storage -E 'test(concurrent_batch)'— concurrent batch testscargo xtask generate-schemas && git diff --exit-code schemas/— schema drift checkcargo build -p auths-cli --all-features— CLI still compiles with facadecargo bench -p auths-storage -- batch— batch benchmarks run