Feature/oracle integration adapter clean#8
Merged
Conversation
Build normalized ORACLE integration adapter for the MAIN Agent. - oracle_schema.py: versioned NormalizedOracleOutput contract with ObservableSignal, NormalizedVivaTarget, FailureScenario, InconsistencySignal — no ORACLE internal types leak to MAIN - validation.py: strict schema validation, rejects malformed payloads with OraclePayloadValidationError, surfaces soft warnings - payload_normalizer.py: stateless normalization functions, merges both viva target lists, maps failure_paths + runtime_risks, preserves all evidence links intact - compatibility.py: shim pipeline for schema evolution (legacy project_graph key, flat string failure_paths, missing evidence lists, lowercase severity values) - oracle_adapter.py: single public entry point OracleAdapter with from_context() and from_dict() — never raises, always returns safe fallback with adapter_warnings on failure - tests/test_oracle_adapter.py: 30 tests across 6 categories: normalization, rejection, compatibility, evidence regression, determinism, isolation Closes #7
- Added node_modules/ to .gitignore - Removed backend/node_modules from git cache (should never be committed) - Added backend/cloned_repos/ to .gitignore
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 #7