# Sovereign Fiduciary Triad — Architecture & Divergence Notes

## Overview
This standalone bundle contains the complete, production-ready implementation of the **Sovereign Fiduciary Triad**, co-developed with and inspired by the seminal research of **Prof Scott McLachlan** and the **Eidolon AI Platform Architecture**.

---

## Key Divergences & Generalisations Relative to Baseline Models

### 1. Generalised Multi-Domain Adapter Pattern (`domain_adapters.py`)
- **Original Baseline**: Primarily targeted Clinical and Healthcare contexts (Mental Capacity Act 2005, Gillick Minors, EHR).
- **EidOS Generalisation**: Generalised to a foundational, domain-agnostic mathematical substrate using the GoF Adapter Pattern:
  - **🏥 Healthcare**: Mental Capacity Act 2005 (ss 1–3), Gillick/Fraser, Common Law Medical Emergency.
  - **⚖️ Legal & Judicial**: *Banks v Goodfellow (1870)* Testamentary Capacity, SRA Code of Conduct, High Court Inherent Jurisdiction & Crime-Fraud LPP Exception.
  - **🏛️ Financial & Wealth**: FCA Consumer Duty (FG21/1), MiFID II Investor Suitability, POCA/SAMLA Asset Freezes.
  - **🤖 Robotics & IoT**: IEEE 7000 Ethical Autonomous Systems, ISO 13849 Safety Interlocks, ISO 13850 Emergency E-Stop.
  - **🎓 Education & Safeguarding**: Keeping Children Safe in Education (KCSIE 2026), Children Act 1989 s 47 Emergency Disclosure.
  - **🏢 Corporate Governance**: Companies Act 2006 (ss 171–177) Directors' Duties, PIDA 1998 Protected Whistleblowing.

### 2. Six-Dimensional Computable Dynamic Calculus (`shared/consent/types.py`)
- **Dimensions**: Evaluates dynamic validity across (S, P, I, J, M, delta_t) — Data Source, Processing Purpose, Identifiability Level, Legal Jurisdiction, Practical Consent Model, and Duration Horizon.
- **Monotonic Revocation Invariant**: Append-only event sequence preserving non-repudiable audit replay.

### 3. W3C PROV-O Glass Wall Audit Ledger (`api.py` / `domain_adapters.py`)
- Every emergency override receipt emits a cryptographic SHA-256 tamper-proof hash and canonical W3C PROV-O Activity URI.

### 4. Bell v Tavistock [33] Clinician Safeguard
- Mandatory structured clinical/assessor reasoning validation with length threshold guards to prevent automated clinician overuse in minor competence assessments.

---

## Feedback & Collaborative Requests
If you have new requirements, statutory updates (e.g. Australian NSW Fraser variations vs Scottish Age of Legal Capacity Act), or domain adapters to submit:
- Submit requests to: scott@mclachlandigital.com / kuda@eidolonai.co.uk
- Live App Console: https://eidolonai.co.uk/caas/app/
