Repository navigation
Fix: 4 issues (#288, #291, #292, #293) - #483
Merged
OxDev-max merged 2 commits intoOct 23, 2026
Merged
Conversation
Co-authored-by: Simple Agent <agent@simple.dev>
# Conflicts: # docs/threat-model.md # package.json # src/config/configuration.ts # src/config/env.schema.ts # src/db/schema.sql # src/oracle/oracle-reading.ts # src/oracle/oracle.controller.ts # src/oracle/oracle.service.ts # test/integration/jest.integration.config.ts
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 #288
Closes #291
Closes #292
Closes #293
Issues
#288 Model Oracle Attack Cost and Derive Minimum Bond and Quorum Sizing
#291 Make Feed Scheduling and Plausibility Checks Market-Hours and Calendar Aware
#292 Add Consumer-Driven Contract Tests Across Backend, Contracts, and Frontend
#293 Support TEE-Attested Provider Readings for Hardware-Backed Data Provenance
Summary
Keep the attack-cost model as a pure, versioned library so it is reused by both the CLI and startup validation. Use bigint/decimal throughout to avoid overflow and treat unknown source independence as fully dependent. For calendar awareness, inject a single clock and cached calendar resolver everywhere time is evaluated and fail safe (not silently open) when calendars are unavailable. Contract fixtures should be owned by consumers and verified by the producer without a live DB or network. The attestation verifier must be independently testable per TEE type and must never downgrade a failed attestation to unsigned-ok. Some affected files (src/oracle/oracle.service.ts, oracle.controller.ts, oracle.module.ts, package.json) were empty in the provided view; confirm their current contents before editing.
Changes