Skip to main content

Module harness_evidence

Module harness_evidence 

Source
Expand description

Bounded, content-addressed evidence for governed Tool requests, model-visible run capabilities, and provider-neutral model input.

The snapshots in this module deliberately retain only counters, stable capability facts, and domain-separated digests. They never retain Tool arguments, prompt text, Tool output, source text, vectors, credentials, or provider endpoints.

Structs§

ModelInputSnapshotV1
Immutable, bounded evidence for the arguments submitted to one provider-neutral model call.
ModelPresentationSnapshotV1
Per-call evidence binding a frozen presentation-profile identity to both its canonical source definitions and the definitions actually submitted to the provider-neutral LLM boundary.
ModelUsageSnapshotV1
Immutable per-call correlation between Code’s prompt estimate and the normalized usage report returned by an crate::llm::LlmClient.
RunCapabilitySnapshotV1
Immutable description of the exact capability surface exposed for a model call. The digest excludes itself and remains stable while the surface and retrieval readiness generation remain unchanged.
RunPolicyCeilingSnapshotV1
Run-owned governance bindings, serializable policy identities, and execution ceilings observed for the same run as the model call.
ToolRequestSnapshotV1
Immutable, bounded evidence for one validated Tool request.
ToolResultContextUsageV1
Bounded measurements of Tool-result content visible to one model call.
WorkspaceCapabilitySnapshotV1
Non-sensitive workspace service surface visible to one model call.
WorkspaceRetrievalCapabilitySnapshotV1
Exact semantic readiness and generation identities observed immediately before a model call. Model identity is represented only by a digest of the non-sensitive provider descriptor.

Enums§

HarnessEvidenceError
ModelInputKindV1
Model-call shape used by one provider-neutral crate::llm::LlmClient invocation.
ModelPresentationApplicationV1
Whether a provider-neutral call used the Session’s Tool-presentation profile or a host-owned auxiliary protocol such as structured validation.
ToolRequestOriginV1
Runtime path that submitted a governed Tool request.

Constants§

MODEL_INPUT_SNAPSHOT_V1_SCHEMA
MODEL_PRESENTATION_SNAPSHOT_V1_SCHEMA
MODEL_USAGE_SNAPSHOT_V1_SCHEMA
RUN_CAPABILITY_SNAPSHOT_V1_SCHEMA
TOOL_REQUEST_SNAPSHOT_V1_SCHEMA