OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Get all audit logs for a trace.
Goal
View complete request trace for debugging.
Context
Request tracing, debugging.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const GetAuditTraceContract = defineQuery({
meta: {
key: 'audit.trace.get',
version: '1.0.0',
stability: 'stable',
owners: ['platform.audit-trail'],
tags: ['audit', 'trace', 'get'],
description: 'Get all audit logs for a trace.',
goal: 'View complete request trace for debugging.',
context: 'Request tracing, debugging.',
},
io: {
input: defineSchemaModel({
name: 'GetAuditTraceInput',
fields: {
traceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
},
}),
output: defineSchemaModel({
name: 'GetAuditTraceOutput',
fields: {
logs: { type: AuditLogModel, isArray: true, isOptional: false },
},
}),
},
policy: {
auth: 'admin',
},
});