Repository navigation
Feat/fixtures events config versioning - #204
Merged
github-actions[bot] merged 3 commits intoOct 4, 2026
Merged
github-actions[bot] merged 3 commits into
github-actions[bot] merged 3 commits into
Conversation
Code Review & Auto-Merge — @dorismaduegbunam 🚀Thank you @devfoma for your contribution!
Verified code changes and repository requirements. Merging pull request. |
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 #118
Closes #116
Closes #113
Summary
This pull request resolves three high-priority infrastructure and platform stability issues for the Trellis API:
Design Decisions & Tradeoffs
1. Local Deterministic Fixture Generator (#118)
SeededRandomusing a Mulberry32 PRNG algorithm. This guarantees 100% stable, identical output across different environments when given the same seed (e.g.--seed=42).STANDARD_USER: Valid user, clean state, active Stellar balance.HIGH_VOLUME_OPERATOR: Institutional operator with high transaction throughput and rate-limit edge states.CORRUPT_PAYLOAD: Malformed input modeling invalid field types and schema validation errors.AUTH_EXPIRED_OR_INVALID: Unauthorized state modeling expired JWT tokens and signature mismatches.UNINDEXED_OR_BOUNDARY_STATE: Edge state with boundary values (MAX_SAFE_INTEGER balance) and lagging indexer blocks.2. Structured Domain Event Schemas (#116)
DomainEventProducervalidates all event payloads against theDomainEventRegistryprior to dispatch, throwingDomainEventValidationErrorif mandatory fields are missing or types mismatch.schemaVersionon allDomainEventEnvelopepayloads.VersionedDomainEventConsumerdispatches events to registered version handlers. If a specific version handler is missing, it falls back to registered fallback handlers or throwsUnknownEventVersionError.3. Protocol Configuration Versioning (#113)
semverrange evaluation (minSupportedVersiontomaxSupportedVersion) viavalidateProtocolConfigandassertProtocolCompatibility.IncompatibleProtocolVersionErrorimmediately prior to executing dependent operations.Test Results & Output
All 3 automated test suites (15 total tests) pass cleanly: