Agentic AI Atlasby a5c.ai
OverviewWikiGraphFor AgentsEdgesSearchWorkspace
/
GitHubDocsDiscord
i.3Wiki
Agentic AI Atlas · Trace Identifiers And Evidence
docs/testing/trace-identifiers-and-evidencea5c.ai
Search the atlas/
Wiki · linked records

Article and nearby pages

I.Current articlepp. 1 - 1
Agent Adapter And Runtime E2ECoverage And ReportingCurrent Test Command InventoryHarness And Plugin E2EImplementation RoadmapMock And Fixture Contracts
I.
Wiki article

docs/testing/trace-identifiers-and-evidence

Reading · 7 min

Trace Identifiers And Evidence reference

Use this document as the evidence checklist for tests described in Primary Flow Data Paths(./primary-flow-data-paths.md). A scenario should not be marked E2E unless it records the identifiers needed to join the agent session, hook events, Babysitter run state, and transport trace.

Page nodewiki/docs/testing/trace-identifiers-and-evidence.mdNearby pages · 11Documents · 0

Continue reading

Nearby pages in the same section.

Agent Adapter And Runtime E2ECoverage And ReportingCurrent Test Command InventoryHarness And Plugin E2EImplementation RoadmapMock And Fixture ContractsPipeline IntegrationPrimary Flow Data PathsQuality GatesStack PermutationsTest Lanes

Trace Identifiers And Evidence

Use this document as the evidence checklist for tests described in Primary Flow Data Paths. A scenario should not be marked E2E unless it records the identifiers needed to join the agent session, hook events, Babysitter run state, and transport trace.

Identifier Spine

IdentifierOwnerWhere it appearsWhy it matters
agentMuxRunId / runIdAdaptersCLI result, gateway runtime state, event log filename or event bodyJoins adapters session events to launch/transport evidence
agentMuxSessionId / sessionIdAdapters/external harnessCLI args, session runtime, harness transcriptProves continuity across prompts, plugin command, and hook events
babysitterRunId / SDK runIdBabysitter SDK and agent-platformrun:create output, .a5c/runs/<runId>/, agent-platform progress eventsPrimary key for SDK journal, tasks, and terminal state
runDirBabysitter SDKrun:create output, agent-platform progress eventsFilesystem root for journal, tasks, outputs, and replay state
babysitterSessionIdSDK session binding or harness adaptersession:init, session:associate, run-create session block, hooks envJoins harness session to SDK run loop
effectIdBabysitter SDKrun:iterate next actions, task:list, task:post, tasks/<effectId>/Joins requested work to posted results
taskId / stepIdBabysitter process runtimetask:list, task definition refsNames process step semantics independently of generated effect ID
UnifiedHookEvent.execution.sessionIdHooks-adapterNormalized hook event JSONJoins native hook event to agent or Babysitter session
UnifiedHookEvent.execution.toolCallIdHooks-adapter/native harnessTool hook payloads and normalized eventJoins tool call ready/result pairs and handler decisions
event.seqAdapters gateway event logpackages/adapters/gateway/src/runs/event-log.ts event entriesOrders session events and detects gaps/truncation
Transport request/trace IDTransport-adapterProxy request logs, trace query/headers, upstream metadataJoins provider request/stream to adapters launch/session

Environment And Hook Context

Variable or payload fieldProduced byConsumed byRequired assertion
AGENT_SESSION_IDHooks-adapter bootstrap/session persistence or SDK harness adapterHook handlers, child commands, SDK session bindingEquals the scenario session ID and is stable across hook invocations
AGENT_ADAPTERHooks-adapter normalized execution contextHook handlers and trace artifactsEquals selected adapter such as claude, codex, or gemini
AGENT_WORKSPACE_ROOTHooks-adapter execution contextHook handlers and subprocessesEquals expected workspace/cwd
AGENT_TRANSCRIPT_PATHHarness-native payload where availableHook handlers and evidence collectorPoints to redacted transcript artifact when available
AGENT_CAPABILITIES_JSONHooks-adapter handler runnerHook handlersCaptures adapter capability gate decisions
HOOKS_PROXY_EVENTHooks-adapter handler runnerHook handlersJSON equals the normalized event given on stdin
CLAUDE_ENV_FILEClaude native hook environmentHooks-adapter propagation backendContains exported persisted env after bootstrap or handler result
HOOKS_PROXY_ENV_FILEGeneric hooks-adapter env propagationHooks-adapter propagation backendContains persisted env when native env file is not provider-specific
HOOKS_PROXY_SESSION_IDAdapter enrichment/fallbackNormalizerMatches native session ID when adapter enriches env from stdin
HOOKS_PROXY_TOOL_NAME / HOOKS_PROXY_TOOL_CALL_IDAdapter enrichmentNormalizer/handler envMatches native tool payload values

Evidence Bundles By Flow

Agent-Adapter Plugin Path

A passing artifact bundle should include:

  • adapters invocation: command, selected adapter, model, cwd, prompt digest, runId, session mode.
  • Adapters event log: ordered seq, ts, source, event type, session/run IDs, terminal event.
  • Harness/plugin setup: babysitter harness:install <harness> and babysitter harness:install-plugin <harness> output or a cached precondition artifact.
  • Plugin command transcript: user command such as /babysitter:call, plugin dispatch evidence, assistant/tool result.
  • Babysitter SDK run evidence: runId, runDir, run:iterate output, task:list, task:post, terminal journal state.
  • Hook evidence: normalized session/tool/stop event, stop-hook decision, handler env snapshot with secrets redacted.

Babysitter-Agent Runtime Path

A passing artifact bundle should include:

  • agent-platform call or agent-platform create-run command and parsed options.
  • Progress events for planning/process path, run creation, session binding, iteration start, effect resolution, and completion.
  • Selected harness/backend: agent-core for internal primary tests, external harness name for bridge tests.
  • Generated/provided process path and process fingerprint or file digest.
  • SDK runId, runDir, session binding result, pending effects, posted task results, terminal state.
  • Redacted model/provider trace for model-backed runs, or mock transcript for no-model runs.

SDK Run/Session Loop

A passing artifact bundle should include:

  • babysitter run:create --json output with runId, runDir, entry, processId, and session block if bound.
  • .a5c/runs/<runId>/ file listing or archived subset: metadata, journal/events, tasks.
  • babysitter run:iterate --json outputs for each iteration.
  • babysitter task:list --pending --json before each post.
  • babysitter task:post --json output for every effectId resolved by the test.
  • Final run:status or terminal journal event proving completion/failure.

Hooks-Adapter Path

A passing artifact bundle should include:

  • Raw native hook fixture or redacted live stdin payload.
  • CLI command: a5c-hooks-adapter bootstrap or a5c-hooks-adapter invoke --adapter <name> --native-event <event>.
  • Adapter capabilities and mapping support level (native, lossy, unsupported).
  • Normalized UnifiedHookEvent with adapter, phase, rawEventName, supportLevel, and execution fields.
  • Handler plan and child-process result; include stdout/stderr and timeout status.
  • Merged hook result, persisted env/context diff, and native renderer output.

Transport-Adapter Path

A passing artifact bundle should include:

  • Adapters launch decision: native provider vs transport proxy, proxyNeeded, reason, route, and redacted env diff.
  • Transport-adapter route request: method, path, query/trace flag, upstream target, status code.
  • Stream evidence: first byte/event, at least one delta, final event, cancellation/timeout case where applicable.
  • Correlation to adapters runId or session ID.
  • Explicit statement that Babysitter completion is out of scope unless a babysitterRunId and SDK terminal state are also present.

Redaction Rules

  • Never store provider API keys, OAuth tokens, cookies, or raw auth headers.
  • Store model/provider names, endpoint family, status code, request shape, token counts, and timing metadata only after redaction.
  • Prompt/transcript artifacts may store prompt digests and bounded excerpts; full live transcripts require a fixture-safe redaction pass.
  • Hook env snapshots must include AGENT_* and HOOKS_PROXY_* correlation variables but remove credential variables.

Failure Classification

Failure classExampleHow to report
Setup failureHarness/plugin install failsMark setup lane failed; do not claim runtime E2E attempted
Capability skipCodex plugin manager unsupportedMark skipped with adapter capability artifact
Session correlation failureHook event session ID differs from adapters session IDFail E2E and attach both IDs plus raw/normalized hook evidence
SDK run failurerun:iterate emits RUN_FAILEDFail Babysitter run path; attach journal and last effect result
Hook normalization failureNative event maps to wrong phase/support levelFail hooks-adapter lane; attach raw payload and UnifiedHookEvent
Transport failureProxy stream times out or loses final eventFail transport lane; attach route trace and adapters session state
Provider failureLive model returns auth/quota errorMark model-backed infra failure; keep no-model lane separate

Minimal Artifact Naming

Use deterministic artifact names so CI and local runs can be compared:

ArtifactSuggested name
Adapters event logadapters-events-<agentMuxRunId>.ndjson
Babysitter run summarybabysitter-run-<babysitterRunId>.json
Babysitter task bundlebabysitter-tasks-<babysitterRunId>.json
Hook normalized eventhooks-adapter-<adapter>-<nativeEvent>-<sessionId>.json
Hook handler resulthooks-adapter-handler-<effect-or-tool-id>.json
Transport tracetransport-adapter-trace-<agentMuxRunId>.json
Redaction reportredaction-report-<scenario-id>.json

Scenario Completion Checklist

Before a scenario is labeled complete, verify:

  • [ ] The primary path is declared: adapters plugin, agent-platform runtime, SDK run loop, hooks-adapter fixture, or transport-adapter route.
  • [ ] All required identifiers for that path are present and joinable.
  • [ ] The terminal condition is owned by the correct layer.
  • [ ] Any capability gate or model credential requirement is explicit.
  • [ ] Redaction completed before artifacts are uploaded.
  • [ ] The scenario names which permutation IDs from Stack Permutations and which primary flow IDs from Primary Flow Data Paths it covers.

Trail

Wiki
Babysitter Docs
Testing Strategy

Trace Identifiers And Evidence

Continue reading

Agent Adapter And Runtime E2E
Coverage And Reporting
Current Test Command Inventory
Harness And Plugin E2E
Implementation Roadmap
Mock And Fixture Contracts
Pipeline Integration
Primary Flow Data Paths

Page record

Open node ledger

wiki/docs/testing/trace-identifiers-and-evidence.md

Documents

No documented graph nodes on this page.