|
1 | 1 | label: log_audit_event |
2 | | -mapping: | |
3 | | - root = { |
4 | | - "audit_id": uuid_v4(), |
5 | | - "timestamp": now(), |
6 | | - "event_type": "dispute_investigation", |
7 | | - "transaction_id": this.transaction_id, |
8 | | - "customer_id": this.customer_id, |
9 | | - "agent_decision": this.decision, |
10 | | - "risk_score": this.risk_score, |
11 | | - "evidence_reviewed": this.evidence, |
12 | | - "outcome": this.outcome, |
13 | | - "escalated": this.escalated, |
14 | | - "compliance_notes": this.notes, |
15 | | - "logged_by": "dispute-resolution-agent", |
16 | | - "status": "recorded" |
17 | | - } |
| 2 | +processors: |
| 3 | + - mapping: | |
| 4 | + root = { |
| 5 | + "audit_id": uuid_v4(), |
| 6 | + "timestamp": now(), |
| 7 | + "event_type": "dispute_investigation", |
| 8 | + "transaction_id": this.transaction_id, |
| 9 | + "customer_id": this.customer_id, |
| 10 | + "agent_decision": this.decision, |
| 11 | + "risk_score": this.risk_score, |
| 12 | + "evidence_reviewed": this.evidence, |
| 13 | + "outcome": this.outcome, |
| 14 | + "escalated": this.escalated, |
| 15 | + "compliance_notes": this.notes, |
| 16 | + "logged_by": "dispute-resolution-agent", |
| 17 | + "status": "recorded" |
| 18 | + } |
| 19 | +
|
| 20 | + - log: |
| 21 | + level: INFO |
| 22 | + message: "Compliance audit event: ${!json()}" |
18 | 23 |
|
19 | 24 | meta: |
20 | 25 | mcp: |
|
0 commit comments