Phase C · Application Architecture
Hero Screen — Interactive Mockup
SCR-AUD-001Immutable Audit Trail Explorer
agent:aib-auditHead of Internal Audit
read-onlyAppend-only — no update, no delete. BankG Art. 47 — 10-year retention.
Filters
Actor
agent:aib-*
Event type
all
Date range
2026-04-01 → 2026-06-11
Entity
all
Audit log — 30 entries, showing latest 8
TimestampActorEvent typeEntityEntity IDOutcome
2026-06-10 07:30system:aib-opsnostro_balance_receivednostro_balanceSIM-NB-001recorded
2026-06-10 08:30system:aib-opsnostro_reconciliation_completednostro_accountSIM-NA-001matched
2026-06-01 09:00agent:aib-rmmandate_suspendedmandateSIM-MND-004under_review
2026-05-15 10:00agent:aib-kyckyc_triggeredkyc_reviewSIM-KYC-007in_progress
2026-04-08 09:00agent:aib-riskkri_breach_escalatedkri_readingSIM-KRI-R-011escalated
2026-04-07 09:15agent:aib-ccostr_filedstrSIM-STR-001filed
2026-04-05 10:30agent:aib-ccostr_approvedaml_alertSIM-AML-004approved
2026-04-02 14:00system:aib-amlaml_alert_createdaml_alertSIM-AML-004open
Integrity
Hash chain
verified
Last anchor
2026-06-11 06:00:00Z
Export note
every export is itself audit-logged
Simulation — mock data (SIM-*)Agents propose · humans dispose (P11)

SCR-AUD — Audit & Governance Screens

Version: 1.0 · Date: 2026-06-11 · Owner: Head of Internal Audit (screens 001-003) / CCO (004-006) Related: PROC-010, aib-audit-service-api.md, aib-compliance-service-api.md Primary agent(s): agent:aib-audit, agent:aib-compliance · Human roles: Head of Internal Audit, Audit Committee, CCO, CRO, Senior Management, Board

Function Overview

This function covers the third line of defence and conduct governance: the immutable audit trail (all agent/human/system actions, 10-year retention), the risk-based annual audit plan and 6-phase engagement methodology, findings remediation, whistleblowing (Directive 2019/1937, FL Hinweisgeberschutzgesetz 2023), conduct and conflicts (MiFID II Art. 27(4), Del. Reg. 2017/565, EBA GL on internal governance 2021, CRD Art. 74/91), and the regulatory deadline calendar.

agent:aib-audit operates read-only on operational data (Agent Register: "Read-only (independent)") — it queries audit_log via the aib-audit service API, drafts engagement workpapers, fieldwork samples, and finding texts, and monitors remediation deadlines. agent:aib-compliance drafts conduct/COI assessments and calendar entries via the aib-compliance service API. Per P11 every conclusion is human-disposed: the Head of Internal Audit issues reports, the Audit Committee approves the plan, the CCO disposes conduct cases.

Two structural protections shape these screens: internal audit independence (audit staff and the audit agent never write operational records; management never edits findings) and whistleblower anonymity (identity-free record design, pseudonymous follow-up, access restricted to the assigned investigator).

Screen Map

SCR-AUD-001 — Immutable Audit Trail Explorer

Purpose: Search and inspect the append-only audit_log — every action by every agent, human, and system, with before/after state. Strictly read-only: the screen has no write capability whatsoever. Personas: Head of Internal Audit, audit staff, CCO (investigations), FMA inspection support.

Data Sources

TableRole in screen
audit_logSole source: filter by actor, action, entity, date range, regulatory flag

CRUD Matrix

Tableagent:aib-audit (via API)Head of Internal AuditCCO
audit_logR (GET /audit-log queries only; C is system/trigger-driven)RR

(audit_log is strictly append-only: C by system only — trigger-based per aib-audit-service-api — R for authorized roles, no U, no D ever; retention 10yr, the maximum of all regulatory requirements; records retained per BankG Art. 47)

Key Flows

  1. Investigation query: human selects entity (e.g. a client, order, STR) → chronological mutation history with before_state/after_state JSON diffs, actor_type/actor_id, ip_address, session_id.
  2. Canned compliance checks (from aib-audit-service-api): tipping-off control (GET /audit-log/str/{id}/tipped-off-checks — must return empty), sanctions unfreeze authorization chains.
  3. agent:aib-audit runs continuous anomaly queries (e.g. agent actions without matching approval events — P11 verification) and drafts exceptions for SCR-AUD-002 fieldwork.
  4. Regulatory extract: filter regulatory_event = 1 + regulation_refs for FMA inspection packages — export is logged (an export itself creates an audit_log entry).

States & Gates

  • No record states: rows are immutable facts. The only UI state is the saved-query workspace.
  • Gate: bulk export requires Head of Internal Audit or CCO role; every query against client-identifying data is itself audit-logged.

Validation

  • audit_log.actor_type CHECK: ('agent','human','system') — explorer facets on exactly these three.
  • audit_log.retain_until NOT NULL — retention is set at write time; no UI override exists.
  • Schema comment enforced in the app layer: "NO UPDATE/DELETE: enforced at application layer" — the screen renders no edit affordance and the service API exposes no mutating endpoint except internal POST /audit-log.

SCR-AUD-002 — Audit Engagement Tracker

Purpose: Manage the annual audit plan and engagements through the 6-phase methodology (planning → fieldwork → testing → analysis → reporting → follow-up). Personas: Head of Internal Audit (lead), audit staff, Audit Committee (plan approval).

Data Sources

TableRole in screen
audit_planAnnual plan (risk-based scope, board approval)
audit_engagementEngagement lifecycle, phases, finding tallies
workflow_issueaudit_engagement issue type — task coordination
audit_logPhase-transition trail

CRUD Matrix

Tableagent:aib-audit (via API)Head of Internal AuditAudit Committee / Board
audit_planC R (draft risk-based scope)R U (finalize)R U (board approval)
audit_engagementC R U (draft workpapers, advance phase data)R U (approve phase gates, issue reports)R
workflow_issueC R U (sync tasks)R UR
audit_logC (system)RR

Key Flows

  1. Planning: agent drafts audit_plan from risk data (KRI breaches, RCSA events, prior findings) with JSON risk_areas; Head of Internal Audit finalizes; Board/Audit Committee approves (board_approved_at/by); available to FMA on request (fma_submitted).
  2. Engagement: agent prepares samples and test evidence per phase; Head of Internal Audit gates each phase transition (phase_start/phase_end).
  3. Reporting: draft report issued (draft_issued_at) → management response window — management_response_deadline, 5-day window per aib-audit methodology → final report (final_report_at).
  4. Finding tallies (findings_critical/high/medium/low) roll up from SCR-AUD-003; engagement closes only when follow-up phase confirms remediation.

States & Gates

  • audit_plan.status: draft → board_approved → in_progress → completed.
  • audit_engagement.phase: planning → fieldwork → testing → analysis → reporting → follow_up → closed; status: open → in_progress → draft_report → management_response → closed.
  • Gate: plan execution cannot start before board approval (committee gate).
  • Gate: final report issuance is Head of Internal Audit only; the agent drafts, never issues.
  • SLA: 5-day management response window; retention retain_until 7yr per aib-audit policy.

Validation

  • audit_plan.status CHECK: ('draft','board_approved','in_progress','completed'); scope_summary NOT NULL.
  • audit_engagement.phase CHECK: ('planning','fieldwork','testing','analysis','reporting','follow_up','closed'); status CHECK: ('open','in_progress','draft_report','management_response','closed').
  • workflow_issue.issue_type includes ('audit_engagement','audit_finding_remediation'); priority CHECK: ('critical','high','medium','low').

SCR-AUD-003 — Findings Register

Purpose: Track audit findings from issuance through management response and remediation; Critical findings escalate to Board + FMA liaison. Personas: Head of Internal Audit (issuer), remediation owners (management), Audit Committee.

Data Sources

TableRole in screen
audit_findingPrimary record (severity, regulation_ref, remediation)
audit_engagementParent engagement context
workflow_issueaudit_finding_remediation tasks with regulatory_deadline
compliance_calendaraudit_finding_remediation deadline entries
audit_logStatus-change trail

CRUD Matrix

Tableagent:aib-audit (via API)Head of Internal AuditRemediation owner (mgmt)
audit_findingC R U (draft text, monitor due dates)R U (issue, verify closure, FMA flags)R U (management_response, remediation fields only)
workflow_issueC R U (create remediation tasks)RR U (progress)
compliance_calendarC R (deadline entries)RR
audit_logC (system)RR

Key Flows

  1. Agent drafts findings during the engagement (title, description, root_cause, regulation_ref e.g. 'SPG_ART_9', 'MIFID_ART_25'); Head of Internal Audit assigns severity and issues with finding_ref (e.g. AIB-AUD-2026-001).
  2. Critical severity: immediate escalation to Board + FMA liaison required — fma_liaison_required = 1 (schema comment: always 1 if Critical), fma_notified_at recorded.
  3. Management records management_response and remediation plan (remediation_action/owner/due); agent creates the matching workflow_issue and compliance_calendar entry.
  4. Closure: owner marks work done; agent verifies evidence; Head of Internal Audit sets remediation_complete = 1 — management cannot close its own finding.
  5. Overdue remediation_due items escalate to the Audit Committee pack.

States & Gates

  • Finding lifecycle: drafted (agent) → issued (HoIA) → management response → remediation in progress → verified closed (HoIA).
  • Gate: severity assignment and closure verification are Head of Internal Audit exclusive (independence — management edits are limited to response/remediation fields).
  • Gate: Critical findings auto-set fma_liaison_required = 1; clearing it requires Audit Committee minute reference.
  • Retention: retain_until 7yr.

Validation

  • audit_finding.severity CHECK: ('Critical','High','Medium','Low') — note capitalized scale.
  • audit_finding.risk_type CHECK: ('compliance','operational','financial','reputational','regulatory').
  • title and description NOT NULL; engagement_id NOT NULL — orphan findings impossible.

SCR-AUD-004 — Whistleblower Intake

Purpose: Receive and manage whistleblower reports with anonymity protection (Directive 2019/1937 Art. 9; FL Hinweisgeberschutzgesetz 2023): 7-day acknowledgement, 3-month feedback, pseudonymous follow-up. Personas: Assigned investigator (restricted), Head of Internal Audit (oversight), CCO (category routing). Deliberately NOT: line management, HR, the subject of the report.

Data Sources

TableRole in screen
whistleblower_reportPrimary record — no reporter identity fields beyond optional pseudonym
audit_logAccess log (every view of a case is logged)

CRUD Matrix

Tableagent:aib-compliance (via API)Assigned investigatorHead of Internal Audit
whistleblower_reportC R U (intake from channels, deadline timers; no access to free-text evidence on anonymous cases)R U (assessment, status, outcome)R (oversight metrics, no case detail unless assigned)
audit_logC (system)R (own-case access trail)R

Key Flows

  1. Intake: report arrives via channel (web/phone/post/external authority/direct to FMA); agent creates the record with reporter_anonymous = 1 default and generates a reporter_pseudonym for anonymous-but-trackable follow-up. No IP, no session linkage is stored for the reporting channel.
  2. Acknowledgement clock: acknowledgement_sent_date must be within 7 days of receipt_date (Directive Art. 9) — countdown timer on the queue; agent drafts the acknowledgement, investigator sends.
  3. Assessment → investigation: investigator (assigned via assigned_investigator_id) progresses case_status; evidence referenced via evidence_refs JSON, never inline identity data.
  4. Feedback clock: follow_up_date within 3 months — second timer.
  5. Outcome: closed_substantiated may spawn an audit engagement (SCR-AUD-002) or FMA referral (escalated_to_fma, fma_ref); any inadvertent identity exposure sets confidentiality_breached = 1 and triggers a mandatory review.

States & Gates

  • case_status: received → acknowledged → assessing → investigating → closed_substantiated | closed_unsubstantiated | referred_to_authority.
  • Gate: case detail visible only to assigned_investigator_id; reassignment requires Head of Internal Audit approval and is audit-logged.
  • Gate: anonymity is structural — the UI never prompts for reporter identity; pseudonym is the only correlation key.
  • SLA timers with reg basis: 7-day acknowledgement, 3-month feedback (Directive 2019/1937 Art. 9).

Validation

  • whistleblower_report.channel CHECK: ('internal_web','internal_phone','internal_post','external_authority','direct_to_fma').
  • report_category CHECK: ('aml_cft','fraud','market_abuse','sanctions_breach','data_protection','regulatory_breach','financial_misconduct','other').
  • case_status CHECK: ('received','acknowledged','assessing','investigating','closed_substantiated','closed_unsubstantiated','referred_to_authority').
  • UI rule from schema comments: acknowledgement_sent_date ≤ receipt_date + 7 days; follow_up_date ≤ receipt_date + 3 months — breaches flag the case red.

SCR-AUD-005 — Conduct & COI Console

Purpose: Oversee annual conduct attestations, conflicts of interest, gifts & entertainment, personal account dealing, plus fit-and-proper (approved persons) and key-function succession. Personas: CCO (owner), compliance officers, Senior Management, Board (approved persons, succession).

Data Sources

TableRole in screen
conduct_attestationAnnual attestation campaign per staff/type
conflict_of_interestCOI cases with management measures
gift_entertainment_recordG&E register vs CHF 150 firm threshold
personal_account_dealingPAD pre-clearance and post-trade disclosure (Del. Reg. Art. 9(3))
approved_person_registerFit-and-proper / FMA approval (CRD Art. 91)
succession_planKey-function succession and key-person risk
audit_logDecision trail

CRUD Matrix

Tableagent:aib-compliance (via API)CCOSenior Management / Board
conduct_attestationC R U (campaign generation, overdue flags)R U (clear exceptions)R
conflict_of_interestC R U (draft assessments)R U (management measure, resolution)R
gift_entertainment_recordC R U (threshold/cumulative computation)R U (compliance decision)R
personal_account_dealingC R U (checks: restricted list, holding period)R U (pre-clearance decision)R
approved_person_registerC R U (draft fit-and-proper dossier)RR U (appointment, FMA filing)
succession_planC R U (draft, review reminders)RR U (board review)
audit_logC (system)RR

Key Flows

  1. Attestations: agent generates the annual campaign (one row per staff × attestation_type), tracks attestation_due_date and overdue; declared exceptions route to CCO (exception_reviewed_by, exception_cleared).
  2. COI: agent drafts the case with conflict_category; CCO selects the management_measure (NOT NULL — a case cannot exist unmanaged) and, where required, client disclosure (disclosure_made_to_client, disclosure_method).
  3. G&E: agent computes value_chf vs firm_threshold_chf (default 150.0) and the rolling-12-month cumulative; exceeds_threshold = 1 or cumulative_exceeds_policy = 1 requires a CCO compliance_decision.
  4. PAD: staff request pre-clearance; agent runs restricted_list_checked, inside_information_check, conflict_of_interest_check; CCO disposes pre_clearance_decision; post-trade, holding_period_breach (min 30 days) triggers compliance_action_taken.
  5. Fit-and-proper: agent assembles the CRD Art. 91 criteria flags (knowledge/reputation/conflicts/time commitment, directorship count vs Art. 91(3) limit); Board appoints; FMA approval tracked (fma_approval_status).
  6. Succession: agent flags single_point_of_failure = 1 or key_person_risk_rating in (high,critical) for Board review (board_reviewed).

States & Gates

  • conflict_of_interest.status: open → managed → resolved (or escalated); material conflicts auto-set escalated_to_cco.
  • approved_person_register.fma_approval_status: pending → approved | conditionally_approved | rejected | withdrawn; appointment effective only at approved.
  • Gate: PAD pre-clearance decisions and G&E decisions are CCO/compliance only; staff cannot self-approve (the requesting staff_ref is excluded from the approver pool).
  • Gate: succession plans and approved-person appointments require Board action; interim appointments may need FMA approval (interim_appointment_requires_fma_approval).

Validation

  • conduct_attestation.attestation_type CHECK: 10 values incl. ('code_of_conduct','personal_account_dealing_declaration','conflicts_of_interest_declaration','gift_and_hospitality_policy','market_abuse_awareness'); UNIQUE (legal_entity_id, staff_ref, attestation_year, attestation_type).
  • conflict_of_interest.management_measure CHECK (NOT NULL): ('decline_activity','information_barrier','disclosure_to_client','independent_oversight','recusal','policy_restriction','accepted_minor').
  • gift_entertainment_record.compliance_decision CHECK: ('approved','approved_with_conditions','declined_return_required','declined_donated_to_charity','not_reviewed_below_threshold'); estimated_value and value_chf NOT NULL.
  • personal_account_dealing.pre_clearance_decision CHECK: ('approved','approved_with_conditions','rejected','not_required'); holding_period_min_days default 30.
  • approved_person_register.function_category CHECK: ('management_body_management','management_body_supervisory','senior_management','key_function_holder','other_material_risk_taker').
  • succession_plan.key_person_risk_rating CHECK: ('low','medium','high','critical'); UNIQUE (legal_entity_id, function_category) — one plan per key function.

SCR-AUD-006 — Compliance Calendar

Purpose: Single deadline view for all regulatory obligations — STR filing, DORA incident clocks, ICAAP submission, KYC reviews, finding remediation — plus governance meeting and new-product approval schedules. Personas: CCO (owner), CRO, Head of Internal Audit, Senior Management.

Data Sources

TableRole in screen
compliance_calendarPrimary record: typed deadlines with reminders and escalation
governance_meeting_minutesCommittee meeting schedule and minute approval status
new_product_approvalNPA pipeline with sign-off and post-launch review dates
workflow_issueLinked tasks (regulatory_deadline)
audit_logCompletion/waiver trail

CRUD Matrix

Tableagent:aib-compliance (via API)CCOSenior Management / Committees
compliance_calendarC R U (auto-create from source events, mark overdue)R U (complete, waive with rationale)R
governance_meeting_minutesC R U (draft minutes, agenda assembly)RR U (approve, sign)
new_product_approvalC R U (assemble sign-off dossier)R U (compliance sign-off)R U (committee/CEO/board approval)
workflow_issueC R U (sync)R UR
audit_logC (system)RR

Key Flows

  1. Agent auto-creates calendar entries from source records (STR 5-day filing, DSR 30-day, DORA incident 4h/72h/1m via SCR-ICT-001, ICAAP 31 Oct, audit-finding remediation due dates) with reminder_days_before JSON defaults [1,3,7].
  2. Escalation: entries past due_date flip to overdue (overdue_since); the assigned agent escalates to the owning human; waivers (status = 'waived') require CCO rationale in notes and are audit-logged.
  3. Governance meetings: agent assembles agenda packs from pending approvals (ICAAP, limits, plans) and drafts minutes; quorum check (quorum_met); minutes approved at next meeting (approved_at_next_meeting, approval_date) then signed.
  4. NPA: agent tracks the sign-off lattice (compliance/risk/legal/tax/operations reviews, stress test per ESMA GL 2023/22 §4.2); committee → CEO → Board approvals where required; post_launch_review_due auto-creates a future calendar entry (ESMA GL §4.4).

States & Gates

  • compliance_calendar.status: open → in_progress → completed | overdue | waived.
  • governance_meeting_minutes.status: draft → approved → signed; signing requires chair (chair_ref).
  • new_product_approval.status: draft → under_review → conditionally_approved | approved → launched (or withdrawn); launch blocked until all required sign-offs are 1 and, where flagged, board_approval = 1.
  • Gate: waiving a deadline is CCO-only with documented rationale; deadline types tied to statutory clocks (str_filing, dora_incident_*, breach_notification) cannot be waived, only completed.

Validation

  • compliance_calendar.deadline_type CHECK includes ('str_filing','dsr_response','breach_notification','icaap_submission','dora_incident_initial','dora_incident_intermediate','dora_incident_final','audit_finding_remediation','fma_response', …); status CHECK: ('open','in_progress','completed','overdue','waived'); due_date NOT NULL.
  • governance_meeting_minutes.committee_type CHECK: ('board','audit_committee','risk_committee','alco','credit_committee','remuneration_committee','management_board','compliance_committee','product_committee','it_steering'); quorum_required, attendees, agenda_items NOT NULL; UNIQUE (legal_entity_id, committee_type, meeting_date).
  • new_product_approval.product_type CHECK: 10 values incl. ('structured_product','fund','mandate_strategy','derivative','crypto_asset'); stress_test_outcome CHECK: ('pass','pass_with_conditions','fail'); status CHECK: ('draft','under_review','conditionally_approved','approved','launched','withdrawn').

Access Control Notes

  • Internal audit independence: Head of Internal Audit and agent:aib-audit are read-only on all operational data (Agent Register tier "Read-only (independent)"); management roles cannot edit audit_finding severity or closure; audit screens (001-003) report functionally to the Audit Committee, not the CEO line.
  • Whistleblower anonymity: SCR-AUD-004 case detail restricted to the assigned investigator; oversight roles see metrics only; every access is audit-logged; no identity fields exist in the record (pseudonym only).
  • Conduct SoD: PAD/G&E approvers are compliance roles excluded when they are the declaring staff_ref; COI cases involving the CCO escalate to the Board.
  • agent:aib-compliance: propose/query tier — drafts and timers only; all dispositions human.
  • audit_log: strictly append-only — C by system only, R for authorized roles, no U, no D ever; 10-year retention.

Cross-References

  • Processes: PROC-010 (DORA incident deadlines feeding SCR-AUD-006), PROC-002 (AML investigation → STR filing deadlines)
  • Service APIs: aib-audit-service-api.md, aib-compliance-service-api.md, aib-reporting-service-api.md
  • Governance: aib-agent-register.md, aib-governance-charter.md, aib-raci-matrix.md, aib-escalation-sop.md
  • Data ownership: aib-data-ownership-matrix.md

References

Referenced by