Guard
Policy-based access control with 'AI Context Scoping'. Acts as a firewall for LLMs, ensuring agents only see data they are legally allowed to access.
Overview
FintraOS Guard is designed to be the security and governance sentinel. It will ensure that no sensitive data is ever exposed to unauthorised services or users.
Core Responsibilities:
Core Entities
`ConsentGrant`
Will record the legal basis for processing.
`KeyMetadata`
Internal record of encryption keys (keys themselves are in KMS/HSM).
`IdentityRecord`
The "Master Patient Index" mapping physical humans to digital profiles.
Architecture
Identity Resolution Logic
When a new user signs up, Guard will attempt to match them against the IdentityRecord database.
National ID + Country. -> Auto-Merge.Full Name + DOB + Email. -> Prompt User ("Is this you?").Phone Number only. -> Do nothing (could be a family plan).The "Guard Sidecar"
Every FintraOS microservice (Core, Intelligence, Pulse) will run with a Guard Sidecar.
AI Context Scoping (The "Ringfence")
Guard will govern the Context Window for GenAI features. It will ensure the AI only "sees" what the tenant is allowed to see.
* Scenario: Tenant A (NeoBank) asks the AI: "How is this user's financial health?" * Policy Check: * Does Tenant A have READ_GLOBAL_PROFILE scope? * YES: Guard injects data from *all* linked accounts (Credit Cards, Loans from other banks). * NO: Guard filters the Context Window to *only* show data originating from Tenant A. * Mechanism: The Guard Sidecar will intercept the RAG retrieval and apply a hard filter: WHERE tenant_id = 'org_neobank'.
Agent Skill Governance
When the AI Agent attempts to invoke a Skill (e.g., transfer_money), Guard will intercept the request.
* Check 1: Skill Authorisation: Does the Tenant have this Skill enabled? * Check 2: User Consent: Has the user explicitly granted the EXECUTE_TRANSACTIONS scope? * Check 3: Policy Limits: Are the parameters within safe limits? (e.g., "Max Transfer < £500"). * Check 4: Risk Analysis: Calls [[Specs/Module-Intelligence|Intelligence]] to assess if this transaction fits the user's normal pattern.
Events
Deletion Workflow (GDPR)
DELETE /v1/profiles/{id}.ConsentGrant as REVOKED.KeyMetadata for that user.Vault is now permanent ciphertext.Interfaces
Access Policy
Will be defined using OPA (Open Policy Agent) or similar.
Ready to integrate Guard?
Get full access to the Guard SDK and start building the future of finance today.