Level 4: The Architect (Annex IV Generation)
Goal: Automate the creation of 50+ page regulatory documents.
Prerequisite: Level 3 (The Auditor)
1. The Bottleneck: “Technical Documentation”
Section titled “1. The Bottleneck: “Technical Documentation””According to Article 11 and Annex IV of the EU AI Act, High-Risk systems (like Credit Scoring) require comprehensive Technical Documentation. Writing this manually takes weeks.
2. The Solution: Generative Compliance
Section titled “2. The Solution: Generative Compliance”We use your Policies (Level 1 & 2) and Evidence (Level 2/3) to prompt an LLM to draft the document for you.
Venturalitica supports:
- Cloud: Mistral (via API).
- Local: Ollama (General purpose).
- Sovereign (NEW): ALIA (Spanish Native GGUF via Llama.cpp) - Experimental.
The Upgrade
Section titled “The Upgrade”We continue working on the “Loan Scoring” project.
Run the High-Risk Audit
Section titled “Run the High-Risk Audit”Ensure you have run the collection steps:
import venturalitica as vlfrom venturalitica.quickstart import load_samplefrom sklearn.model_selection import train_test_split
# 1. Load Datadf = load_sample("loan")train_df = df.sample(frac=0.8, random_state=42)val_df = df.drop(train_df.index)
# 2. Run the Article 10 (Data) & Article 15 (Model) Assurance Auditwith vl.monitor("loan_annex_audit"): # 2.1 Verify Training Data (Art 10) # Download data_policy.oscal.yaml from: # https://github.com/venturalitica/venturalitica-sdk-samples/blob/main/scenarios/loan-credit-scoring/policies/loan/data_policy.oscal.yaml vl.enforce( data=train_df, target="class", gender="Attribute9", age="Attribute13", policy="data_policy.oscal.yaml" )
# 2.2 Verify Model Performance (Art 15) # Download model_policy.oscal.yaml from: # https://github.com/venturalitica/venturalitica-sdk-samples/blob/main/scenarios/loan-credit-scoring/policies/loan/model_policy.oscal.yaml vl.enforce( data=val_df.assign(prediction=val_df["class"]), # Simulated model target="class", prediction="prediction", gender="Attribute9", policy="model_policy.oscal.yaml" )3. Generate the Document
Section titled “3. Generate the Document”-
Open the Dashboard:
venturalitica ui. -
Go to the “Annex IV Generator” tab.
-
Select Provider: Cloud (Mistral), Local (Ollama), or Sovereign (ALIA - Experimental).
-
Click “Generate Annex IV”.

The Generation Process
Section titled “The Generation Process”Watch the logs. The System is acting as a Team of Agents:
- Scanner: Reads your
trace.json(The Evidence). - Planner: Decides which sections of Annex IV apply to your specific model type.
- Writer: Drafts “Section 2.c: Architecture” using the
summary()from your actual Python code. - Critic: Reviews the draft against the ISO 42001 standard.
Result: A markdown file (Annex_IV.md) that cites your specific accuracy scores (e.g., Demographic Parity: 0.92) as proof of safety.
4. Selecting your LLM
Section titled “4. Selecting your LLM”| Feature | Cloud (Mistral API) | Local (Ollama) | Sovereign (ALIA - Experimental) |
|---|---|---|---|
| Privacy | Encrypted Transport | 100% Offline | Hardware Locked |
| Sovereignty | Hosted in EU | Generic | Spanish Native |
| Speed | Fast (Large Model) | Slower | Slow (Experimental) |
| Use Case | Final High-Quality Polish | Iterative Testing | Research Only |
We currently offer ALIA as an experimental feature for organizations piloting Spanish-native sovereign AI.
5. Export to PDF
Section titled “5. Export to PDF”By default, we generate Annex_IV.md (Markdown) for version control. To convert this to a regulatory-grade PDF:
Python (mdpdf):
uv pip install mdpdfuv run mdpdf Annex_IV.mdPandoc (Advanced):
pandoc Annex_IV.md -o Annex_IV.pdf --toc --pdf-engine=xelatex6. Take Home Messages
Section titled “6. Take Home Messages”- Documentation is a Function:
f(Evidence) -> Document. Never write what you can generate. - LiveTrace: If your accuracy drops tomorrow, regenerate the document. It will reflect the current state, preventing “Documentation Drift”.
- The Full Loop: You have gone from Code -> Policy (L1) -> Ops (L2) -> Evidence (L3) -> Legal Document (L4).
Congratulations!
Section titled “Congratulations!”You have completed the Venturalitica Academy. You are now ready to integrate this into your own CI/CD pipeline.
References
Section titled “References”- Full Lifecycle — The entire flow in one copy-paste page
- Dashboard Guide — Detailed Dashboard and Phase 4 walkthrough
- Metrics Reference — All 35+ metrics available for policies
- Policy Authoring — Write custom OSCAL policies