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
rolestringNoAgent role
capabilityKeysstring[]NoHot-loaded capabilities
additionalInstructionsstringNoExtra context
maxRuntimeSecondsnumberNoRuntime cap
runbooleanNoAuto-run after launch

Example

pm_audit {
  action: "launch",
  clientRequestId: "audit-myapi-42-abc",
  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.


score

Ingest a complete score-audit payload.

Parameters

FieldTypeRequired
scorePayloadobjectYes

The payload is the full seven-dimension scorecard structure the auditor produces. Valdr validates and persists it so it shows up 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

pm_audit { action: "help" }

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