Skip to content

pm_audit

Vanguard

The pm_audit tool is the dedicated auditor workflow surface. It’s thinner than pm_review — focused specifically on launching auditor agents, fetching the context they need, and ingesting the seven-dimension score payloads they produce.

Use pm_audit when you’re building audit-specific orchestration. Auditor launch and score-run workflows live here; pm_review stays focused on review lifecycle management and lightweight review scores.

Actions

launch, context, events, score, score_list, help


launch

Launch an auditor session attached to an existing task and source session.

Parameters

FieldTypeRequiredNotes
clientRequestIdstringYesIdempotency key
taskKeystringYesTask the audit is attached to
sourceSessionUlidstringYesThe session being audited
actorstringNoWho is launching
agentId / agentHandlestringNoSpecific auditor agent
providerstringNoProvider type
launcherConfigKeystringNoPreset to use
promptstringNoInitial user message override
systemPromptstringNoSystem prompt override
configobjectNoProvider configuration overrides
rolestringNoAgent role
capabilityKeysstring[]NoHot-loaded capabilities
additionalInstructionsstringNoExtra context
maxRuntimeSecondsnumberNoRuntime cap
runbooleanNoAuto-run after launch

Example

pm_audit {
  action: "launch",
  clientRequestId: "<generated-request-id>",
  taskKey: "MYAPI-42",
  sourceSessionUlid: "01HXYZ...",
  agentHandle: "tyr-v2",
  launcherConfigKey: "auditor-claude"
}

context

Fetch compact audit metadata for a session. Returns everything an auditor needs to get oriented without loading the full transcript.

Parameters

FieldTypeRequired
sessionUlidstringYes

Returns

FieldDescription
capabilitiesAttachedCapabilities that were attached to the audited session
capabilitiesDeclaredCapabilities the agent declared using
promptCapabilitiesParsedParsed capability references from the prompt
scoreTemplateThe scoring template the auditor should apply

events

Fetch paged audit evidence for a session. Unlike pm_session.events, this is shaped for audit consumption — paged, text-length-limited, optionally excluding raw payload JSON.

Parameters

FieldTypeRequiredNotes
sessionUlidstringYes
sinceSeqnumberNoCursor (default -1)
limitnumberNoDefault 50
textMaxLengthnumberNoTruncate long text fields
includePayloadJsonbooleanNoInclude raw payloads

Use textMaxLength and includePayloadJson: false to keep auditor context compact. Pass the returned structuredContent.nextSinceSeq as sinceSeq on the next page; do not use array indexes as cursors.


score

Ingest a complete score-audit payload.

Parameters

FieldTypeRequired
scorePayloadobjectYes

Start from the scoreTemplate returned by context, which provides the required findings[] and criteria[] structure. Fill it from the inspected evidence before submitting it as scorePayload. Valdr validates and saves the seven-dimension scorecard so it appears in dashboards and review history.


score_list

List stored score runs with optional filters.

Parameters

FieldTypeRequiredNotes
taskKeystringNo
scoredSessionUlidstringNoThe audited session
scoredAgentHandlestringNoWho was scored
auditorAgentHandlestringNoWho scored
limitnumberNoDefault 50

help

Return the structured action reference from the running MCP server.

pm_audit { action: "help" }

The help payload is a read-only contract for audit-specific orchestration:

FieldContents
actionsEvery accepted pm_audit action: launch, context, events, score, score_list, and help
whenToUseAction-by-action guidance for launching auditors, loading compact context, paging evidence events, ingesting score payloads, and listing score runs
examplesRepresentative calls such as fetching audit context, paging compact events, and listing recent score runs for a task
cautionsGuardrails for paginating large sessions, carrying nextSinceSeq, validating score payloads, and tying launches to a sourceSessionUlid
compatibilityCompatibility notes for supported calls

Use help when building auditor agents or score dashboards that need to check audit actions and inputs.

Related

  • Reviewable AI Agent Workflows — product-level overview of evidence-backed review, audit, and approval gates
  • pm_review — review lifecycle management, reviewer launches, and lightweight review scores
  • pm_session — lower-level session mechanics