Skip to content

OSFI Phase 2: forward agent-registry hints via clearance context#2

Open
mazinal-ani wants to merge 1 commit into
mainfrom
feat/osfi-compliance
Open

OSFI Phase 2: forward agent-registry hints via clearance context#2
mazinal-ani wants to merge 1 commit into
mainfrom
feat/osfi-compliance

Conversation

@mazinal-ani

@mazinal-ani mazinal-ani commented Jun 9, 2026

Copy link
Copy Markdown
Member

OSFI E-23 / B-10 / B-13 compliance — coordinated cross-repo change

One of 7 coordinated PRs (all on branch feat/osfi-compliance) implementing the OSFI compliance plan, phases 0–6: vault · llm-judge · frontend · admin-dash · docs · python-sdk · typescript-sdk.

All changes are additive/backward-compatible. Deploy order: Supabase RBAC migration → vault → llm-judge → frontend + admin-dash → SDK publishes → docs. No ledger event-hash changes (compliance themes + SDK hints are derived/non-hashed). Not yet runtime-tested end-to-end (needs AWS Secrets Manager / RDS / Bedrock).

This repo (typescript-sdk)

Phase 2 (optional/additive)VaultConfig.modelProvider/modelId/environment (env LEDGIX_MODEL_PROVIDER/_MODEL_ID/_ENVIRONMENT) injected into the clearance request context (snake_case keys, survive toSnakeCaseKeys). Caller-supplied context wins.
Branched off main, independent of the in-flight 0.5.0 working-tree changes. Needs a version bump + publish.
Verified: npm run build clean, 105 tests pass.

🤖 Generated with Claude Code


Note

Low Risk
Additive, opt-in metadata on clearance context only; no auth, policy, or clearance decision logic changes.

Overview
Adds optional OSFI agent-registry hints on VaultConfig (modelProvider, modelId, environment, via LEDGIX_MODEL_PROVIDER / LEDGIX_MODEL_ID / LEDGIX_ENVIRONMENT or constructor overrides).

During clearance, _enrichRequest merges any set hints into the request context as model_provider, model_id, and environment so they align with the Vault RequestContext and pass through toSnakeCaseKeys. Per-request context values override config hints. If none of the three are configured, behavior is unchanged.

Reviewed by Cursor Bugbot for commit 33f16d4. Bugbot is set up for automated code reviews on this repo. Configure here.

…ironment)

Optional VaultConfig fields (LEDGIX_MODEL_PROVIDER/MODEL_ID/ENVIRONMENT) injected into the clearance request context (snake_case keys, survive toSnakeCaseKeys) so the Vault can auto-populate the OSFI agent inventory. Additive; caller-supplied context wins. npm run build clean, 105 tests pass. Branched off main (independent of the in-flight 0.5.0 work).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant