TG-AUDIT-LOG
TrustGate Audit Log Engine
0. Identity
Depends on module:
1. Purpose
The TrustGate Audit Log Engine records immutable audit events across the TrustGate runtime.
It captures the operational evidence needed to reconstruct who did what, which engine executed, which policy applied, which data artifact was affected, which decision was issued, which reviewer action occurred, and which downstream assurance systems received the resulting event.
The engine is the operational memory of TrustGate.
It ensures that every material TrustGate action becomes part of an auditable, replay-aware, DAL-anchorable evidence trail that supports OARM, AAE, VIZZ, AII, FAGF governance, regulator inspection, and third-party assurance.
The Audit Log Engine does not decide trust, compute scores, validate data, or anchor ledgers directly. It records the evidence required to prove that those actions happened correctly.
2. Position within TrustGate Runtime
All TrustGate Engines
│
▼
──────────────────────────────────────────
Audit Log Engine
──────────────────────────────────────────
│
├── Runtime Audit Event
├── Reviewer Action Record
├── Policy Action Record
├── Evidence Chain Record
├── Security Event Record
├── DAL Anchor Candidate
└── AII / DSAIL Telemetry
The Audit Log Engine receives events from the entire TrustGate runtime, including:
- Signal Parser;
- Structure Validation Engine;
- Signal Normalizer;
- Context Enrichment Engine;
- Rule Evaluation Engine;
- Policy Resolution Engine;
- Trust Scoring Engine;
- Decision Engine;
- Quarantine Manager;
- Replay Engine;
- Attestation Engine;
- DAL Anchor Engine;
- Federation Exchange Engine;
- AI Feedback Engine.
3. Canonical Identity
| Property | Value |
|---|---|
| MEID | MEID_TRUST_MONITOR_AUDIT |
| CMI | vera.TG-AUDIT.ENGINE.LOGGER.1_0_0 |
| KIND | ENGINE |
| Owner Module | Verification & Assurance |
| Runtime Tier | Tier-0 Assurance Runtime |
| Engine Category | MONITOR |
| Engine Domain | trust |
| ZAR Registration | Required |
| Replay Support | Native |
| DAL Anchoring | Policy-based / Critical Events Required |
| Federation Aware | Yes |
The MEID identifies the stable logical audit logging engine.
The CMI identifies this specific versioned executable artifact.
4. Runtime Responsibilities
| Responsibility | Description |
|---|---|
| Runtime Audit Logging | Record all material TrustGate runtime actions. |
| Evidence Chain Construction | Connect audit events into a coherent evidence chain. |
| Reviewer Action Logging | Record manual review, override, release, rejection, and escalation actions. |
| Policy Action Logging | Record which policy bundles and thresholds influenced runtime outcomes. |
| Security Event Logging | Record authentication, authorization, signature, and identity events. |
| Replay Context Logging | Record replay creation, replay result, and replay drift evidence. |
| DAL Candidate Creation | Emit anchor candidates for audit records requiring tamper-evident integrity. |
| Federation Audit Logging | Record cross-ECO imports, exports, verifications, and conflicts. |
| AII Telemetry | Provide audit coverage and evidence completeness metrics. |
| Governance Reporting | Support FAGF audits, OARM replay, and VIZZ audit dashboards. |
The engine must preserve audit event immutability.
5. Audit Event Classes
TrustGate audit events are grouped into canonical classes.
| Audit Class | Description |
|---|---|
RUNTIME_EVENT | Engine execution, state transition, or pipeline action. |
VALIDATION_EVENT | Validation result, validation failure, or rule outcome. |
SCORING_EVENT | Trust score calculation and confidence output. |
DECISION_EVENT | Accept, route, review, quarantine, reject, or abort decision. |
REVIEWER_ACTION | Human review, approval, rejection, override, or escalation. |
POLICY_ACTION | Policy resolution, threshold application, or policy override. |
REPLAY_EVENT | Replay manifest creation, result, or drift. |
DAL_EVENT | Anchor submission, verification, failure, or proof retrieval. |
FEDERATION_EVENT | Cross-ECO import, export, verification, or conflict. |
SECURITY_EVENT | Authentication, authorization, DID, signature, or access-control event. |
AI_EVENT | AI recommendation, feedback, calibration, or suppression event. |
GOVERNANCE_EVENT | FAGF-controlled action, approval, or compliance checkpoint. |
6. Audit Severity Levels
| Severity | Meaning |
|---|---|
info | Routine operational audit event. |
notice | Important but expected system action. |
warning | Non-blocking issue requiring visibility. |
error | Failed operation requiring follow-up. |
critical | High-impact assurance, security, replay, or governance issue. |
blocking | Event prevents safe continuation of processing. |
Severity should align with the platform-wide Validation Rule Registry and FAGF policy profiles.
7. Runtime Processing Pipeline
Receive Runtime Event
│
▼
Classify Audit Event
│
▼
Validate Audit Schema
│
▼
Attach Identity and Engine Context
│
▼
Attach Policy and Lineage Context
│
▼
Assign Severity and Retention Class
│
▼
Create Immutable Audit Record
│
▼
Emit Evidence Chain Link
│
▼
Queue DAL Anchor Candidate if Required
│
▼
Publish Telemetry
The Audit Log Engine must be non-destructive and append-only.
8. Processing Algorithm
function audit(event):
audit_class = classify_event(event)
validate_schema(event, audit_class)
context = resolve_context(
event.signal_id,
event.eco_number,
event.engine_cmi,
event.policy_bundle
)
severity = resolve_severity(event, audit_class, context.policy)
retention = resolve_retention(event, severity, context.policy)
audit_record = create_audit_record(
event,
audit_class,
context,
severity,
retention
)
evidence_link = link_to_evidence_chain(audit_record)
if requires_dal_anchor(audit_record):
queue_dal_anchor_candidate(audit_record)
publish_audit_telemetry(audit_record)
return audit_record
Audit record generation must be deterministic for identical event input and policy context.
9. Evidence Chain Model
The Audit Log Engine links audit events into evidence chains.
An evidence chain represents the ordered assurance history of a signal, assessment, replay, attestation, or federation package.
Signal Received
│
▼
Parsed
│
▼
Validated
│
▼
Normalized
│
▼
Enriched
│
▼
Scored
│
▼
Decisioned
│
▼
Replay Manifest Created
│
▼
Attested
│
▼
DAL Anchored
│
▼
Federated
Each audit event includes:
- previous audit event hash;
- current audit event hash;
- signal identifier;
- engine CMI;
- MEID;
- policy context;
- timestamp;
- actor or service identity.
This creates an internal hash-linked operational audit trail.
10. Audit Hashing Model
Audit event hashes are computed over canonical audit records.
Evidence chain links may be calculated as:
Where:
$H_{audit}$is the current audit record hash;$H_{previous}$is the previous chain hash;$H_{chain}$is the resulting evidence chain hash.
Critical audit events should be anchored in DAL.