Immutable agent audit trails: action logging, input/output hashing, tamper detection, compliance reporting and forensic