record_decision
Record an AI decision to an immutable audit ledger. Stores model version, hashed inputs, structured output, and human-review flag for compliance with EU AI Act and FCA regulations.
Instructions
Record an AI decision to the audit ledger. Stores model version, hashed inputs, structured output, and human-review flag. The record is immutably sealed in S3 Object Lock for 7 years and queryable for the lifetime of the decision. Use this immediately after any AI decision that may need to be audited later — credit, hiring, fraud, customer routing, content moderation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_version | Yes | The model and version that produced the decision (e.g. 'claude-sonnet-4.7', 'gpt-4o-2024-08-06'). Required for traceability and model risk audits. | |
| raw_system_prompt | Yes | The system prompt used. Hashed locally before transit — the raw text never leaves this MCP server. | |
| raw_user_input | Yes | The user input the model decided on (CV text, transaction, customer message, etc.). Hashed locally before transit — raw PII never leaves this MCP server. | |
| ai_decision_output | Yes | The structured decision the model produced. Stored verbatim. Should NOT contain raw PII — only the decision itself (score, classification, recommendation, reasoning summary). | |
| human_in_loop | Yes | Whether a human reviewed or approved this decision before it took effect. Critical for EU AI Act Article 14 (human oversight) compliance. | |
| event_id | No | Optional UUID v4 to identify this decision. Auto-generated if omitted. Useful when the calling system already has its own decision ID. | |
| timestamp | No | Optional ISO 8601 timestamp of when the decision was made. Defaults to the current time. Use this only if recording a backfilled decision. |