Skip to content

Feature/oracle integration adapter clean#8

Merged
Rajkoli145 merged 3 commits into
mainfrom
feature/oracle-integration-adapter-clean
May 23, 2026
Merged

Feature/oracle integration adapter clean#8
Rajkoli145 merged 3 commits into
mainfrom
feature/oracle-integration-adapter-clean

Conversation

@amankoli09

Copy link
Copy Markdown
Collaborator

Closes #7

amankoli09 and others added 3 commits May 19, 2026 20:33
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
@Rajkoli145 Rajkoli145 merged commit 1ec94c4 into main May 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue 6: ORACLE Integration Adapter

2 participants