Execution audit is the foundation for productionizing the UOSE system. Every Agent tool call and key user decision should leave a traceable record for review, compliance, and issue diagnosis.Documentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
Audit Objects
Audit records usually contain:- requestId or taskId.
- traceId.
- tenantId and organizationId.
- resourceId.
- actorType and actorId.
- toolName or actionTypeCode.
- mappingVersion.
- snapshotId.
- status.
- policyDecision.
- decisionSummary.
- evidenceRef.
- input.
- output.
- duration and timestamp.
Audit Entry Points
Users can access audits through:- The execution audit page, filtered by status, resource, or time.
getAuditTrace, used to review one task flow by taskId.- auditRef in approval requests, linking to related execution records.
- Workbench artifacts, used to review execution effects and visualizations.
Evidence References
The evidenceRef in audit records stores structured evidence summaries, such as:- Number of matched entities.
- graphVersion.
- allowed actions.
- denied actions.
- policyId.
- approvalRequestId.
- snapshotId.
- rowCount or result summary.
Audit and Governance Loop
Audit results can improve governance:- If Agents often hit non-unique entities, add aliases or narrow resource scope.
- If certain actions are frequently denied, check whether policies are too strict or documentation is misleading.
- If queries time out, adjust adapter timeout, cache, or sync granularity.
- If write action approval information is insufficient, require expected effect or more detailed parameters.
Best Practices
- Pass a stable taskId for each Agent task.
- Reuse the same taskId across multi-step flows to make tracing easier.
- Record audits for low-risk queries too, so users can review answer sources.
- Keep approval requests and policy hit reasons for high-risk actions.
- Do not store tokens, passwords, cookies, or full sensitive business data in audits.