Skip to content

Identity aware optimization#45

Merged
gitvishalshetty merged 2 commits into
developfrom
identity-aware-optimization
Jan 29, 2026
Merged

Identity aware optimization#45
gitvishalshetty merged 2 commits into
developfrom
identity-aware-optimization

Conversation

@gitvishalshetty
Copy link
Copy Markdown
Contributor

No description provided.

* Refactor package for Identity-Aware Optimization

- Added `coreason-identity` dependency.
- Implemented `OptimizationClient` in `src/coreason_optimizer/core/client.py` with in-memory state and audit logging.
- Added `StrategySelector` in `src/coreason_optimizer/strategies/selector.py` for identity-aware strategy selection.
- Updated `Dataset` loader in `src/coreason_optimizer/data/loader.py` to enforce `UserContext` and log data access.
- Updated CLI in `src/coreason_optimizer/main.py` to use `UserContext` and the new components.
- Updated existing tests and added `tests/test_identity_enforcement.py` to ensure 100% coverage and compliance.
@gitvishalshetty gitvishalshetty merged commit 287b364 into develop Jan 29, 2026
1 check passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants