Skip to main content
Glama

kb_ingest_proof

Destructive

Ingest producer proof-run artifacts to evaluate test proof obligations, revalidate workspace and run evidence, and append idempotent proof receipts.

Instructions

Ingest a producer-emitted kibi.proof-run.v1 artifact and evaluate it against each selected test's kibi.proof-contract.v1 proof obligations. Revalidates the live workspace snapshot, integration command binding, run-level outcome, attempt history, success policy, and append-only proof-receipt history before deriving and appending idempotent kibi.proof-receipt.v1 receipts. Producers report what happened; Kibi evaluates proof. Prefer kibi prove so the configured producer runs automatically; direct ingestion is an integration path for custom producers and agents.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "snapshot": "<snapshot>",
      "artifact": "<artifact>"
    },
    "name": "kb_ingest_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
testIdsNoExisting test entities with proof_contract.v1. Omit to evaluate every test contracted to the artifact's integration.
artifactYesProducer-emitted kibi.proof-run.v1 artifact, from kibi prove or a direct call; Kibi evaluates the obligations.
snapshotYesWorkspace snapshot captured immediately before the run.
workspaceRootNoOptional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo
statusYes
effectsYes
operationYes
diagnosticsYes
nextActionsYes
kibiProtocolYes
resultVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed25 schema fields changedv0.1.10
    • changedInput schema / properties / artifact / description
      Previous value: -"Producer-emitted kibi.proof-run.v1 proof artifact. Producers report what happened; Kibi evaluates proof obligations and policies. Produce it via `kibi prove` or direct kb_ingest_proof calls."New value: +"Producer-emitted kibi.proof-run.v1 artifact, from kibi prove or a direct call; Kibi evaluates the obligations."
    • changedInput schema / properties / artifact / properties / certificates / description
      Previous value: -"kibi.code-certificate.v1 objects the run left for certificate-kind contracts, one per test. Kibi re-checks each before a receipt counts as proved."New value: +"kibi.code-certificate.v1 objects for certificate-kind contracts, one per test; Kibi re-checks each."
    • changedInput schema / properties / artifact / properties / proof_results / items / description
      Previous value: -"One observed proof result. binding distinguishes native-case observations from aggregate-run bindings; attempts must report facts only."New value: +"One observed proof result; attempts report facts only."
    • removedInput schema / properties / artifact / properties / proof_results / items / properties / binding / anyOf
      Removed value: -[
      -  {
      -    "const": "native_case",
      -    "type": "string"
      -  },
      -  {
      -    "const": "aggregate_run",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / artifact / properties / proof_results / items / properties / binding / enum
      Added value: +[
      +  "native_case",
      +  "aggregate_run"
      +]
    • addedInput schema / properties / artifact / properties / proof_results / items / properties / binding / type
      Added value: +"string"
    • removedInput schema / properties / artifact / properties / proof_results / items / properties / outcome / anyOf
      Removed value: -[
      -  {
      -    "const": "passed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "failed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "timed_out",
      -    "type": "string"
      -  },
      -  {
      -    "const": "skipped",
      -    "type": "string"
      -  },
      -  {
      -    "const": "interrupted",
      -    "type": "string"
      -  },
      -  {
      -    "const": "errored",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / artifact / properties / proof_results / items / properties / outcome / enum
      Added value: +[
      +  "passed",
      +  "failed",
      +  "timed_out",
      +  "skipped",
      +  "interrupted",
      +  "errored"
      +]
    • addedInput schema / properties / artifact / properties / proof_results / items / properties / outcome / type
      Added value: +"string"
    • removedInput schema / properties / artifact / properties / run / properties / failure_phase / anyOf
      Removed value: -[
      -  {
      -    "const": "setup",
      -    "type": "string"
      -  },
      -  {
      -    "const": "collection",
      -    "type": "string"
      -  },
      -  {
      -    "const": "execution",
      -    "type": "string"
      -  },
      -  {
      -    "const": "teardown",
      -    "type": "string"
      -  },
      -  {
      -    "const": "infrastructure",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / artifact / properties / run / properties / failure_phase / enum
      Added value: +[
      +  "setup",
      +  "collection",
      +  "execution",
      +  "teardown",
      +  "infrastructure"
      +]
    • addedInput schema / properties / artifact / properties / run / properties / failure_phase / type
      Added value: +"string"
    • removedInput schema / properties / artifact / properties / run / properties / outcome / anyOf
      Removed value: -[
      -  {
      -    "const": "passed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "failed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "errored",
      -    "type": "string"
      -  },
      -  {
      -    "const": "cancelled",
      -    "type": "string"
      -  },
      -  {
      -    "const": "timed_out",
      -    "type": "string"
      -  },
      -  {
      -    "const": "interrupted",
      -    "type": "string"
      -  },
      -  {
      -    "const": "no_results",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / artifact / properties / run / properties / outcome / enum
      Added value: +[
      +  "passed",
      +  "failed",
      +  "errored",
      +  "cancelled",
      +  "timed_out",
      +  "interrupted",
      +  "no_results"
      +]
    • addedInput schema / properties / artifact / properties / run / properties / outcome / type
      Added value: +"string"
    • changedInput schema / properties / workspaceRoot / description
      Previous value: -"Optional absolute path of the workspace this call is about when it differs from the one the server started in, for example the git worktree you are working in. The server answers from that workspace's knowledge base when it is a worktree of the same repository or lies under the client's MCP roots; otherwise it answers from its own workspace and adds a workspace_mismatch diagnostic. Host hooks fill this in automatically where available."New value: +"Optional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's."
    • removedOutput schema / properties / diagnostics / items / properties / severity / anyOf
      Removed value: -[
      -  {
      -    "const": "info",
      -    "type": "string"
      -  },
      -  {
      -    "const": "warning",
      -    "type": "string"
      -  },
      -  {
      -    "const": "error",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / diagnostics / items / properties / severity / enum
      Added value: +[
      +  "info",
      +  "warning",
      +  "error"
      +]
    • addedOutput schema / properties / diagnostics / items / properties / severity / type
      Added value: +"string"
    • removedOutput schema / properties / effects / items / properties / status / anyOf
      Removed value: -[
      -  {
      -    "const": "completed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "failed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "not_applicable",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / effects / items / properties / status / enum
      Added value: +[
      +  "completed",
      +  "failed",
      +  "not_applicable"
      +]
    • addedOutput schema / properties / effects / items / properties / status / type
      Added value: +"string"
    • removedOutput schema / properties / status / anyOf
      Removed value: -[
      -  {
      -    "const": "success",
      -    "type": "string"
      -  },
      -  {
      -    "const": "committed_with_repairs",
      -    "type": "string"
      -  },
      -  {
      -    "const": "error",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / status / enum
      Added value: +[
      +  "success",
      +  "committed_with_repairs",
      +  "error"
      +]
    • addedOutput schema / properties / status / type
      Added value: +"string"
  2. Changed1 schema field changedv0.1.4
    • addedInput schema / properties / artifact / properties / certificates
      Added value: +{
      +  "description": "kibi.code-certificate.v1 objects the run left for certificate-kind contracts, one per test. Kibi re-checks each before a receipt counts as proved.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "maxItems": 1000,
      +  "type": "array"
      +}
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With annotations already present, the description still adds substantial behavior: revalidation of the live workspace snapshot, integration command binding, run outcome, attempt history, success policy, and append-only receipt history, plus the key framing that Kibi evaluates proof rather than trusting producer claims. Two gaps remain: annotations declare destructiveHint=true and idempotentHint=false, but the description never says what state can be destroyed or what fails on a second call, and its claim of 'idempotent' receipts sits in mild tension with idempotentHint=false (defensible, since revalidation of a live snapshot makes repeat calls unsafe, but unexplained).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the action, then the validation surface, then the semantic framing, then the alternative. No filler, and the contrastive line 'Producers report what happened; Kibi evaluates proof' earns its place by clarifying the tool's trust model.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, nested-artifact tool this is close to complete: the evaluation pipeline is spelled out and an output schema covers return values. Remaining gaps are failure semantics (rejection vs partial receipt append), the purpose of workspaceRoot for multi-worktree callers, and the undisclosed destructive dimension flagged by annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents testIds, artifact, snapshot, and the nested run/result fields; the baseline is 3. The description adds some meaning by framing the snapshot as one that is revalidated live and the artifact as something evaluated rather than trusted, but it says nothing about workspaceRoot or about how testIds interacts with the artifact's integration scope beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a precise verb-plus-resource statement: ingest a kibi.proof-run.v1 artifact and evaluate it against per-test kibi.proof-contract.v1 obligations. It also names the concrete validation surface (snapshot, command binding, run outcome, attempt history, success policy, receipt history) and the concrete output it produces (kibi.proof-receipt.v1). An agent knows exactly what this tool does before opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear routing rule: prefer `kibi prove` so the configured producer runs automatically, and use direct ingestion only as an integration path for custom producers and agents. That is real when-to-use/when-not guidance. It stops short of relating the tool to sibling MCP tools (e.g. kb_check, kb_record), so an agent must infer the boundary from names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.