Skip to main content
Glama

kb_upsert

Destructive

Create or update a single knowledge-base entity and its relationships, and use dryRun to validate changes before writing.

Instructions

Create or update one entity and its relationships. Use it for modeling, updates and every write kb_record does not take (a newly stated rule is one kb_record call). dryRun:true validates without writing. Model prose with kb_model before hand-writing strict property or predicate facts. An update keeps what it leaves out: send the changed fields (with title and status) and only the links to add. Relationship endpoints must already exist. A requirement that contradicts a current one on the same subject is rejected; to replace it, add a supersedes link from the new requirement and upsert the old one with status closed. For a requirement send the statement as document.body and the reason as why (never invent one: write 'Reason not stated'); give other entities a prose body. A requirement write returns its open kb_check steps as nextActions. Side effects: writes KB; dryRun:true writes nothing.

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": {
      "type": "<type>",
      "id": "<id>",
      "properties": "<properties>"
    },
    "name": "kb_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUnique entity ID named by the behavior it governs (<TYPE>-<area>-<behavior>); an existing ID updates the entity.
whyNoreq only: why it exists, in the asker's words.
typeYesEntity type to create/update. Allowed: req, scenario, test, adr, flag, event, symbol, fact. Example: 'req'.
dryRunNoValidate and preview without writing the KB or workspace; use it as the preflight before the real write.
documentNoOptional source document write; omit body on update to keep it. New requirements take statement, Context, Source.
propertiesYesEntity fields; must include title and status. Fact, symbol, test and proof fields: kibi-usage resource operation-fields.
plannedFactsNodryRun only: fact payloads (e.g. kb_model applyPlan entries) staged before this one, so their links resolve.
implementedByNoreq only: declarations that implement it, each {sourceFile, symbol, coveredBy?}; linked by implements (and covered_by).
relationshipsNoOptional relationship rows to create in the same call; asserts edges in the KB.
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
dataYesCommitted upsert payload, or the validation preview when dryRun:true wrote nothing.
errorNo
statusYes
effectsYes
operationYes
diagnosticsYes
nextActionsYes
kibiProtocolYes
resultVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed113 schema fields changedv0.1.10
    • changedInput schema / properties / document / description
      Previous value: -"Optional source-first document write. Paths are workspace-relative; omit body when updating to preserve the existing body bytes (a requirement whose semantic_text changes gets the new statement in place of the old one, with its context sections kept). For a new requirement pass a sectioned body: statement, '## Context' (why, who asked, constraints), '## Source' (blockquoted excerpt and reference); context never changes the checked meaning, which stays in semantic_text."New value: +"Optional source document write; omit body on update to keep it. New requirements take statement, Context, Source."
    • changedInput schema / properties / dryRun / description
      Previous value: -"Validate the payload and return schema/modeling errors, a normalized preview and the semantic advisor receipt without writing the KB or workspace. Use it as the preflight before the real write."New value: +"Validate and preview without writing the KB or workspace; use it as the preflight before the real write."
    • changedInput schema / properties / id / description
      Previous value: -"Unique entity ID (string). Example: 'REQ-cli-gc'. Name entities by the behavior they govern (<TYPE>-<area>-<behavior>), never by the next free number. Existing ID updates the entity; new ID creates it."New value: +"Unique entity ID named by the behavior it governs (<TYPE>-<area>-<behavior>); an existing ID updates the entity."
    • addedInput schema / properties / implementedBy
      Added value: +{
      +  "description": "req only: declarations that implement it, each {sourceFile, symbol, coveredBy?}; linked by implements (and covered_by).",
      +  "items": {
      +    "properties": {
      +      "coveredBy": {
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "sourceFile": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "symbol": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "sourceFile",
      +      "symbol"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / plannedFacts / description
      Previous value: -"dryRun only. Fact upsert payloads (type, id, properties, optional relationships) that will be written before this payload, typically the applyPlan entries kb_model returned. They are validated in order and staged with the payload, so a requires_predicate or requires_property target that does not exist yet resolves, its claim_key is read from the plan, and the contradiction preview runs against the KB as it would be after the whole batch (result: stagedFacts, whatIf). A conflict the batch would introduce, such as an allow and a deny permission_rule on the same key, is refused as the commit would refuse it. Rejected without dryRun: write the facts first."New value: +"dryRun only: fact payloads (e.g. kb_model applyPlan entries) staged before this one, so their links resolve."
    • changedInput schema / properties / plannedFacts / items / properties / relationships / description
      Previous value: -"Optional relationship rows to create in the same call. For requirement encoding, prefer `constrains` + `requires_property` for strict property facts or `requires_predicate` for ontology predicate facts. Side effect: asserts edges in KB."New value: +"Optional relationship rows to create in the same call; asserts edges in the KB."
    • removedInput schema / properties / plannedFacts / items / properties / relationships / items / properties / type / anyOf
      Removed value: -[
      -  {
      -    "const": "depends_on",
      -    "type": "string"
      -  },
      -  {
      -    "const": "specified_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "verified_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "validates",
      -    "type": "string"
      -  },
      -  {
      -    "const": "implements",
      -    "type": "string"
      -  },
      -  {
      -    "const": "covered_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "executable_for",
      -    "type": "string"
      -  },
      -  {
      -    "const": "constrained_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "constrains",
      -    "type": "string"
      -  },
      -  {
      -    "const": "requires_property",
      -    "type": "string"
      -  },
      -  {
      -    "const": "requires_predicate",
      -    "type": "string"
      -  },
      -  {
      -    "const": "requires_rule",
      -    "type": "string"
      -  },
      -  {
      -    "const": "guards",
      -    "type": "string"
      -  },
      -  {
      -    "const": "publishes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "consumes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "supersedes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "restates",
      -    "type": "string"
      -  },
      -  {
      -    "const": "assumes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "exempts",
      -    "type": "string"
      -  },
      -  {
      -    "const": "relates_to",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / plannedFacts / items / properties / relationships / items / properties / type / description
      Previous value: -"Relationship type enum. Use only supported values. Direction semantics follow KB model (e.g., implements symbol->req, verified_by req/scenario->test, executable_for symbol->test)."New value: +"Relationship type, e.g. implements (symbol->req), verified_by (req/scenario->test), executable_for (symbol->test)."
    • addedInput schema / properties / plannedFacts / items / properties / relationships / items / properties / type / enum
      Added value: +[
      +  "depends_on",
      +  "specified_by",
      +  "verified_by",
      +  "validates",
      +  "implements",
      +  "covered_by",
      +  "executable_for",
      +  "constrained_by",
      +  "constrains",
      +  "requires_property",
      +  "requires_predicate",
      +  "requires_rule",
      +  "guards",
      +  "publishes",
      +  "consumes",
      +  "supersedes",
      +  "restates",
      +  "assumes",
      +  "exempts",
      +  "relates_to"
      +]
    • addedInput schema / properties / plannedFacts / items / properties / relationships / items / properties / type / type
      Added value: +"string"
    • changedInput schema / properties / properties / description
      Previous value: -"Entity fields to persist. Must include title and status. If created_at, updated_at, or source are omitted, server fills defaults."New value: +"Entity fields; must include title and status. Fact, symbol, test and proof fields: kibi-usage resource operation-fields."
    • removedInput schema / properties / properties / properties / aliases
      Removed value: -{
      -  "description": "Optional vocabulary aliases for predicate discovery.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / properties / properties / approved_by / description
      Previous value: -"Requirement-only. The human who approved this exception requirement. An exception that exempts a requirement and is specified_by a success scenario makes that scenario feasible only when approved_by is set."New value: +"Requirement-only: the human who approved this exception requirement."
    • removedInput schema / properties / properties / properties / argument_aliases
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "predicate_schema only: legacy spellings keyed by argument name, each mapped to a declared constant, e.g. {\"severity\": {\"warn\": \"warning\"}}. kibi migrate rewrites facts that still use an alias.",
      -  "properties": {},
      -  "type": "object"
      -}
    • removedInput schema / properties / properties / properties / argument_constants
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "predicate_schema only: allowed constants keyed by argument name, e.g. {\"severity\": [\"warning\", \"info\"]}. Predicate facts must use a listed constant for those arguments; unlisted arguments stay open.",
      -  "properties": {},
      -  "type": "object"
      -}
    • removedInput schema / properties / properties / properties / argument_descriptions
      Removed value: -{
      -  "description": "Optional ordered argument explanations.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / argument_names
      Removed value: -{
      -  "description": "Ordered argument role names for predicate_schema facts.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / argument_types
      Removed value: -{
      -  "description": "Ordered argument types for predicate_schema facts.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / canonical_key
      Removed value: -{
      -  "description": "Optional canonical identity key for predicate or strict fact claims.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / case_waiver
      Removed value: -{
      -  "description": "Fact-only. Why the edge cases derived from this fact are covered some other way or cannot occur. Waives uncovered_case once case_waiver_approved_by is set.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / case_waiver_approved_by
      Removed value: -{
      -  "description": "Fact-only. The person who accepted case_waiver.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / claim_key
      Removed value: -{
      -  "description": "Stable key of the atomic prose clause grounded by this fact, derived from claim_text. Optional: when omitted, Kibi derives it; when sent, it must equal the derived key.",
      -  "pattern": "^CLAIM-[A-F0-9]{16}$",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / claim_span_end
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedInput schema / properties / properties / properties / claim_span_start
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedInput schema / properties / properties / properties / claim_text
      Removed value: -{
      -  "description": "Exact atomic requirement clause represented by this fact, retained for human audit. On a grounding fact Kibi derives claim_key from it; an observation or meta fact quotes the clause it is about without a key.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / closed_world
      Removed value: -{
      -  "description": "Optional closed-world marker for strict fact interpretation.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / properties / properties / dimension_waiver
      Removed value: -{
      -  "description": "Fact-only. Why the quantifier word in claim_text ranges over nothing, so the claim needs no count, set or rule. Waives dimension_unrepresented once dimension_waiver_approved_by is set.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / dimension_waiver_approved_by
      Removed value: -{
      -  "description": "Fact-only. The person who accepted dimension_waiver.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / distinct_from
      Removed value: -{
      -  "description": "subject only: similar defined subject keys this subject was checked to differ from; the body says how. Silences subject-duplicate for those pairs.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / examples
      Removed value: -{
      -  "description": "Optional ground-term examples for a predicate schema.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / exempts_claims
      Removed value: -{
      -  "description": "Requirement-only. Claim keys of the exempted requirement whose constraints this exception waives; omit to waive the whole requirement.",
      -  "items": {
      -    "pattern": "^CLAIM-[A-F0-9]{16}$",
      -    "type": "string"
      -  },
      -  "minItems": 1,
      -  "type": "array",
      -  "uniqueItems": true
      -}
    • removedInput schema / properties / properties / properties / fact_kind
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "subject",
      -      "type": "string"
      -    },
      -    {
      -      "const": "property_value",
      -      "type": "string"
      -    },
      -    {
      -      "const": "observation",
      -      "type": "string"
      -    },
      -    {
      -      "const": "meta",
      -      "type": "string"
      -    },
      -    {
      -      "const": "predicate_schema",
      -      "type": "string"
      -    },
      -    {
      -      "const": "predicate",
      -      "type": "string"
      -    },
      -    {
      -      "const": "rule_schema",
      -      "type": "string"
      -    },
      -    {
      -      "const": "rule",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional fact lane kind for fact entities. Strict lane uses 'subject' and 'property_value'; context lane uses 'observation' or 'meta'; ontology lane uses 'predicate_schema' or 'predicate'. Use kb_model (mode requirement or predicates) when starting from prose."
      -}
    • removedInput schema / properties / properties / properties / failure_side_waiver
      Removed value: -{
      -  "description": "Requirement-only. Why the requirement has no failure side to test (its claims state a capability or output shape). Waives happy_path_only once failure_side_waiver_approved_by is set.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / failure_side_waiver_approved_by
      Removed value: -{
      -  "description": "Requirement-only. The person who accepted failure_side_waiver.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / firmness / anyOf
      Removed value: -[
      -  {
      -    "const": "firm",
      -    "type": "string"
      -  },
      -  {
      -    "const": "default",
      -    "type": "string"
      -  },
      -  {
      -    "const": "exploratory",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / properties / properties / firmness / description
      Previous value: -"req/adr only. firm = a human stated it as a rule (needs origin.ref to their words); its title, meaning or firmness changes only with new human words (a new origin.ref) or by supersede. default = delegated or agent choice; exploratory = flagged guess. Absent = default if an agent wrote it, else firm."New value: +"req/adr only: firm (a human's rule, needs origin.ref), default or exploratory. Absent = default if an agent wrote it."
    • addedInput schema / properties / properties / properties / firmness / enum
      Added value: +[
      +  "firm",
      +  "default",
      +  "exploratory"
      +]
    • addedInput schema / properties / properties / properties / firmness / type
      Added value: +"string"
    • removedInput schema / properties / properties / properties / granularity_reason
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "config-artifact",
      -      "type": "string"
      -    },
      -    {
      -      "const": "module-level-behavior",
      -      "type": "string"
      -    },
      -    {
      -      "const": "extractor-miss",
      -      "type": "string"
      -    },
      -    {
      -      "const": "legacy-link",
      -      "type": "string"
      -    },
      -    {
      -      "const": "test-suite",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist."
      -}
    • removedInput schema / properties / properties / properties / key_arguments
      Removed value: -{
      -  "description": "predicate_schema only: argument names that determine the remaining arguments (a functional dependency), e.g. [\"sensor\"] for reading(sensor, value). Rule contradiction analysis treats two atoms with identical keys as the same fact; without it the predicate is multivalued and opposing rules stay unresolved instead of disjoint.",
      -  "items": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "minItems": 1,
      -  "type": "array",
      -  "uniqueItems": true
      -}
    • removedInput schema / properties / properties / properties / kind_of
      Removed value: -{
      -  "description": "subject only: defined subject keys this subject is a kind of (a read-only review is a kind of review view).",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / logic_claims
      Removed value: -{
      -  "description": "Requirement-only manifest of every atomic normative claim key returned by kb_model mode analyze (CLI: kibi model). A requirement is logic-complete only when every key is grounded by a linked property_value or predicate fact with the same claim_key.",
      -  "items": {
      -    "pattern": "^CLAIM-[A-F0-9]{16}$",
      -    "type": "string"
      -  },
      -  "minItems": 1,
      -  "type": "array",
      -  "uniqueItems": true
      -}
    • removedInput schema / properties / properties / properties / operator
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "eq",
      -      "type": "string"
      -    },
      -    {
      -      "const": "neq",
      -      "type": "string"
      -    },
      -    {
      -      "const": "lt",
      -      "type": "string"
      -    },
      -    {
      -      "const": "lte",
      -      "type": "string"
      -    },
      -    {
      -      "const": "gt",
      -      "type": "string"
      -    },
      -    {
      -      "const": "gte",
      -      "type": "string"
      -    },
      -    {
      -      "const": "matches",
      -      "type": "string"
      -    },
      -    {
      -      "const": "includes",
      -      "type": "string"
      -    },
      -    {
      -      "const": "subset_of",
      -      "type": "string"
      -    },
      -    {
      -      "const": "excludes",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional comparison operator for property_value facts. Example: 'eq'. 'matches' (string facts only): value_string is a JavaScript regular expression (u flag) every value must match as a whole. Set facts only: 'includes' means every member of value_set has the property and other members may have it too; 'subset_of' means every member that has the property is in value_set ('every env var the server reads is one of ...'); 'excludes' means no member of value_set has it ('never imports md5'); 'eq' on a set means exactly those members."
      -}
    • changedInput schema / properties / properties / properties / origin / description
      Previous value: -"Optional provenance: who authored the entity (kind: human, agent, migration, import) and on what authority (ref, approved_by, recorded_at). Omit it to keep an existing entity's origin; a new entity written without one is recorded as {kind: agent, recorded_at: <write time>}. A supplied origin without recorded_at gets the write time."New value: +"Optional provenance: kind (human, agent, migration, import) and authority (ref, approved_by, recorded_at)."
    • changedInput schema / properties / properties / properties / origin / properties / approved_by / description
      Previous value: -"The person who reviewed and approved this entity's content. Distinct from the requirement-level approved_by of an exception."New value: +"The person who reviewed and approved this entity's content, not the approved_by of an exception requirement."
    • removedInput schema / properties / properties / properties / origin / properties / kind / anyOf
      Removed value: -[
      -  {
      -    "const": "human",
      -    "type": "string"
      -  },
      -  {
      -    "const": "agent",
      -    "type": "string"
      -  },
      -  {
      -    "const": "migration",
      -    "type": "string"
      -  },
      -  {
      -    "const": "import",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / properties / properties / origin / properties / kind / enum
      Added value: +[
      +  "human",
      +  "agent",
      +  "migration",
      +  "import"
      +]
    • addedInput schema / properties / properties / properties / origin / properties / kind / type
      Added value: +"string"
    • removedInput schema / properties / properties / properties / owner
      Removed value: -{
      -  "description": "Optional owner name/team. Example: 'platform-team'.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / pair_reviews
      Removed value: -{
      -  "description": "Requirement only: verdicts on stored pairs (a relates_to edge or a shared subject) whose unmodeled claims cannot be modeled. Each entry: with (the other requirement, which a relates_to edge must link), verdict (no_conflict with separated_by naming the condition or term that separates them; interacts with resolved_by naming what resolves it: a scenario either requirement is specified_by, a fact either links, a third current requirement, or a condition or exception claim_key of either, never the two requirements themselves; conflict, which stays blocking until a person decides), claims (the claim_key of each unmodeled claim; a payload_hash is accepted and ignored) and origin (kind human or agent; on a must or firm pair, a verdict whose origin is missing or agent, or that sits on a requirement an agent wrote, counts only with approved_by from a person). Model the claims first; a verdict is the fallback.",
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {},
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / part_of
      Removed value: -{
      -  "description": "subject only: defined subject keys this subject is a part of. A dotted key prefix that is itself a defined subject is broader already.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / polarity
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "require",
      -      "type": "string"
      -    },
      -    {
      -      "const": "forbid",
      -      "type": "string"
      -    },
      -    {
      -      "const": "assert",
      -      "type": "string"
      -    },
      -    {
      -      "const": "deny",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional polarity for property_value or predicate facts."
      -}
    • removedInput schema / properties / properties / properties / predicate_args
      Removed value: -{
      -  "description": "Optional ordered predicate arguments for ontology predicate facts. Prefer kb_model mode predicates before hand-writing predicate_args.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / predicate_arity
      Removed value: -{
      -  "description": "Required arity for predicate_schema facts.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedInput schema / properties / properties / properties / predicate_name
      Removed value: -{
      -  "description": "Optional predicate name for ontology predicate facts. Prefer kb_model mode predicates before hand-writing predicate_name.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / predicate_namespace
      Removed value: -{
      -  "description": "Optional namespace for a project-local predicate schema.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / proof_bindings
      Removed value: -{
      -  "description": "Optional native-runner bindings (native ids, aliases, source coordinates) for proof obligations. Bindings are provenance metadata and never replace the semantic contract.",
      -  "items": {
      -    "properties": {
      -      "aliases": {
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "line": {
      -        "maximum": 9007199254740991,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "native_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "source_file": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "symbol_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "target": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "symbol_id",
      -      "target"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / proof_contract
      Removed value: -{
      -  "description": "Semantic proof contract binding this test to explicit proof obligations executed by one configured integration.",
      -  "properties": {
      -    "constraint_source": {
      -      "description": "arithmetic and smt: the typed numeric property_value facts the certificate's assumptions come from. Kibi checks the assumptions (or the query's assertions) are exactly these facts' constraints, so the proof is about the knowledge base, not numbers the test chose.",
      -      "properties": {
      -        "fact_ids": {
      -          "items": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "minItems": 1,
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "fact_ids"
      -      ],
      -      "type": "object"
      -    },
      -    "domain_source": {
      -      "description": "exhaustive and typecheck: the symbol that defines the finite domain (typecheck: also the type whose fields a required_fields fact names). state_machine: the transition table or next-state function. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent.",
      -      "properties": {
      -        "arg": {
      -          "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      -          "maximum": 9007199254740991,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "export": {
      -          "description": "The name the domain is exported under in the symbol's source file, when the symbol's title is not that name.",
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "field": {
      -          "description": "exhaustive: when the export is a list of records, the field of each record that names a domain member (a catalog's name).",
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "symbol_id": {
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "symbol_id"
      -      ],
      -      "type": "object"
      -    },
      -    "domains": {
      -      "additionalProperties": {},
      -      "description": "rule: the finite domain of each argument type, keyed by type name (an array, Set, Map or object export, or a Python list, set, dict or Enum), or {source} for the members Kibi reads from a project source (every route, every table, every environment variable). state_machine with a next-state function: the `state` and `event` domains it is called on.",
      -      "properties": {},
      -      "type": "object"
      -    },
      -    "initial_source": {
      -      "description": "state_machine: the export holding the initial state (or states), needed for initial_states and reachable_states facts.",
      -      "properties": {
      -        "arg": {
      -          "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      -          "maximum": 9007199254740991,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "export": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "symbol_id": {
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "symbol_id"
      -      ],
      -      "type": "object"
      -    },
      -    "integration": {
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "kind": {
      -      "anyOf": [
      -        {
      -          "const": "e2e",
      -          "type": "string"
      -        },
      -        {
      -          "const": "example",
      -          "type": "string"
      -        },
      -        {
      -          "const": "property",
      -          "type": "string"
      -        },
      -        {
      -          "const": "exhaustive",
      -          "type": "string"
      -        },
      -        {
      -          "const": "typecheck",
      -          "type": "string"
      -        },
      -        {
      -          "const": "arithmetic",
      -          "type": "string"
      -        },
      -        {
      -          "const": "smt",
      -          "type": "string"
      -        },
      -        {
      -          "const": "rule",
      -          "type": "string"
      -        },
      -        {
      -          "const": "state_machine",
      -          "type": "string"
      -        },
      -        {
      -          "const": "regex",
      -          "type": "string"
      -        },
      -        {
      -          "const": "source",
      -          "type": "string"
      -        }
      -      ],
      -      "description": "What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic, smt, rule, state_machine and regex must leave a kibi.code-certificate.v1 that Kibi re-checks before the receipt counts as proved. source reads the contract's source itself: the run may leave {version, kind: source, test_id, source} or nothing, and Kibi stores its own read as the certificate."
      -    },
      -    "pattern_source": {
      -      "description": "regex: the export holding the code's pattern (a RegExp, or a Python re.Pattern) or string constant that a string fact is about.",
      -      "properties": {
      -        "arg": {
      -          "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      -          "maximum": 9007199254740991,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "export": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "symbol_id": {
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "symbol_id"
      -      ],
      -      "type": "object"
      -    },
      -    "predicate_source": {
      -      "additionalProperties": {},
      -      "description": "rule: the code function behind each predicate a claim's rule, predicate or set fact names, keyed by predicate name. Each export takes the predicate's arguments in order and returns a boolean; Kibi calls it on every combination of its argument domains.",
      -      "properties": {},
      -      "type": "object"
      -    },
      -    "proves": {
      -      "description": "Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt, a rule, predicate or set fact for rule and state_machine, a string fact for regex); a claim with no such derivation is only attested and never counts as proved.",
      -      "items": {
      -        "pattern": "^CLAIM-",
      -        "type": "string"
      -      },
      -      "minItems": 1,
      -      "type": "array",
      -      "uniqueItems": true
      -    },
      -    "required_proofs": {
      -      "items": {
      -        "properties": {
      -          "symbol_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "target": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "symbol_id",
      -          "target"
      -        ],
      -        "type": "object"
      -      },
      -      "maxItems": 1000,
      -      "minItems": 1,
      -      "type": "array"
      -    },
      -    "source": {
      -      "additionalProperties": {},
      -      "description": "source: the project source a source proof reads. A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.",
      -      "properties": {
      -        "reader": {
      -          "anyOf": [
      -            {
      -              "const": "json",
      -              "type": "string"
      -            },
      -            {
      -              "const": "yaml",
      -              "type": "string"
      -            },
      -            {
      -              "const": "glob",
      -              "type": "string"
      -            },
      -            {
      -              "const": "openapi",
      -              "type": "string"
      -            },
      -            {
      -              "const": "references",
      -              "type": "string"
      -            },
      -            {
      -              "const": "schema",
      -              "type": "string"
      -            },
      -            {
      -              "const": "routes",
      -              "type": "string"
      -            },
      -            {
      -              "const": "validator",
      -              "type": "string"
      -            },
      -            {
      -              "const": "prolog",
      -              "type": "string"
      -            }
      -          ]
      -        }
      -      },
      -      "required": [
      -        "reader"
      -      ],
      -      "type": "object"
      -    },
      -    "success_policy": {
      -      "anyOf": [
      -        {
      -          "const": "all_required_first_attempt",
      -          "type": "string"
      -        },
      -        {
      -          "const": "own_results_first_attempt",
      -          "type": "string"
      -        }
      -      ]
      -    },
      -    "value_source": {
      -      "description": "arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base. With measure count the value is the size of a list, set, map or object export, so a count claim reads the collection itself. A dotted export (POLICY.eventLimit) reads one field of an object export. An entry {source, measure: count} counts the members Kibi reads from a project source (routes, tables, environment variables).",
      -      "items": {
      -        "properties": {
      -          "arg": {
      -            "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      -            "maximum": 9007199254740991,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "export": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "measure": {
      -            "anyOf": [
      -              {
      -                "const": "value",
      -                "type": "string"
      -              },
      -              {
      -                "const": "count",
      -                "type": "string"
      -              }
      -            ],
      -            "description": "value (default for an export): the export is a number. count (the only measure of a source): the number of members of a list, set, map or object export, or of a source."
      -          },
      -          "source": {
      -            "additionalProperties": {},
      -            "description": "A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.",
      -            "properties": {
      -              "reader": {
      -                "anyOf": [
      -                  {
      -                    "const": "json",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "yaml",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "glob",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "openapi",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "references",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "schema",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "routes",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "validator",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "prolog",
      -                    "type": "string"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "reader"
      -            ],
      -            "type": "object"
      -          },
      -          "symbol_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "minItems": 1,
      -      "type": "array"
      -    },
      -    "version": {
      -      "const": "kibi.proof-contract.v1",
      -      "type": "string"
      -    },
      -    "witness": {
      -      "description": "typecheck: the repository-relative witness file Kibi compiles (an exhaustive switch ending in never, or a mapped type over the domain).",
      -      "properties": {
      -        "path": {
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "path"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "version",
      -    "integration",
      -    "required_proofs",
      -    "success_policy"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / properties / properties / proof_receipts
      Removed value: -{
      -  "description": "Append-only proof evidence. Proof accepts only the newest valid passed receipt bound to the current code snapshot, current contract hash, and effective execution fingerprint within the seven-day freshness window. Ingest rotates the oldest entries at the cap.",
      -  "items": {
      -    "description": "Kibi-derived kibi.proof-receipt.v2 (kibi.proof-receipt.v1 entries are still read). Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.",
      -    "properties": {
      -      "artifact_digest": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "binding_hash": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "certificate": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "certificate_digest": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "certificate_rejection": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "claim_bindings": {
      -        "description": "Certificate kinds: how the certificate binds to each claim its contract names in proves, judged at ingest. derived means Kibi derived the certificate's obligation from the claim's grounding fact and the certificate satisfies it; attested means no derivation exists and the author vouches for it (never proved); rejected names why.",
      -        "items": {
      -          "properties": {
      -            "binding": {
      -              "anyOf": [
      -                {
      -                  "const": "derived",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "attested",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "rejected",
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "claim_key": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "fact_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "obligation": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "reason": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "requirement_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "scope": {
      -              "anyOf": [
      -                {
      -                  "const": "code",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "source",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "harness",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "intent",
      -                  "type": "string"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "claim_key",
      -            "binding"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "code_snapshot": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "command_argv": {
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "contract_hash": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "environment_hash": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "evidence_level": {
      -        "anyOf": [
      -          {
      -            "const": "proved",
      -            "type": "string"
      -          },
      -          {
      -            "const": "tested",
      -            "type": "string"
      -          }
      -        ]
      -      },
      -      "fingerprint": {
      -        "pattern": "^[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "fingerprint_components": {
      -        "properties": {
      -          "bindings": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          "command": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          "contract": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          "integration": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          "producer": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "contract",
      -          "integration",
      -          "command",
      -          "bindings",
      -          "producer"
      -        ],
      -        "type": "object"
      -      },
      -      "finished_at": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "gaps": {
      -        "items": {
      -          "properties": {
      -            "reason": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "symbol_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "target": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "symbol_id",
      -            "target",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "integration_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "kind": {
      -        "anyOf": [
      -          {
      -            "const": "e2e",
      -            "type": "string"
      -          },
      -          {
      -            "const": "example",
      -            "type": "string"
      -          },
      -          {
      -            "const": "property",
      -            "type": "string"
      -          },
      -          {
      -            "const": "exhaustive",
      -            "type": "string"
      -          },
      -          {
      -            "const": "typecheck",
      -            "type": "string"
      -          },
      -          {
      -            "const": "arithmetic",
      -            "type": "string"
      -          },
      -          {
      -            "const": "smt",
      -            "type": "string"
      -          },
      -          {
      -            "const": "rule",
      -            "type": "string"
      -          },
      -          {
      -            "const": "state_machine",
      -            "type": "string"
      -          },
      -          {
      -            "const": "regex",
      -            "type": "string"
      -          },
      -          {
      -            "const": "source",
      -            "type": "string"
      -          }
      -        ]
      -      },
      -      "outcome": {
      -        "anyOf": [
      -          {
      -            "const": "passed",
      -            "type": "string"
      -          },
      -          {
      -            "const": "failed",
      -            "type": "string"
      -          },
      -          {
      -            "const": "errored",
      -            "type": "string"
      -          },
      -          {
      -            "const": "cancelled",
      -            "type": "string"
      -          },
      -          {
      -            "const": "skipped",
      -            "type": "string"
      -          },
      -          {
      -            "const": "timed_out",
      -            "type": "string"
      -          },
      -          {
      -            "const": "interrupted",
      -            "type": "string"
      -          }
      -        ]
      -      },
      -      "producer": {
      -        "properties": {
      -          "name": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "version": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      "proof_results": {
      -        "items": {
      -          "properties": {
      -            "attempts": {},
      -            "binding": {
      -              "anyOf": [
      -                {
      -                  "const": "native_case",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "aggregate_run",
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "native_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "outcome": {
      -              "anyOf": [
      -                {
      -                  "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"
      -                }
      -              ]
      -            },
      -            "symbol_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "target": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "symbol_id",
      -            "target",
      -            "outcome",
      -            "binding",
      -            "attempts"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 1000,
      -        "minItems": 0,
      -        "type": "array"
      -      },
      -      "receipt_id": {
      -        "pattern": "^PR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$",
      -        "type": "string"
      -      },
      -      "run_outcome": {
      -        "anyOf": [
      -          {
      -            "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"
      -          }
      -        ]
      -      },
      -      "scope": {
      -        "anyOf": [
      -          {
      -            "const": "unit",
      -            "type": "string"
      -          },
      -          {
      -            "const": "integration",
      -            "type": "string"
      -          },
      -          {
      -            "const": "end_to_end",
      -            "type": "string"
      -          }
      -        ]
      -      },
      -      "started_at": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "test_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "version": {
      -        "anyOf": [
      -          {
      -            "const": "kibi.proof-receipt.v1",
      -            "type": "string"
      -          },
      -          {
      -            "const": "kibi.proof-receipt.v2",
      -            "type": "string"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "version",
      -      "receipt_id",
      -      "test_id",
      -      "scope",
      -      "outcome",
      -      "code_snapshot",
      -      "environment_hash",
      -      "started_at",
      -      "finished_at",
      -      "artifact_digest",
      -      "contract_hash",
      -      "fingerprint",
      -      "fingerprint_components",
      -      "integration_id",
      -      "producer",
      -      "command_argv",
      -      "run_outcome",
      -      "proof_results"
      -    ],
      -    "type": "object"
      -  },
      -  "maxItems": 50,
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / property_key
      Removed value: -{
      -  "description": "Snake_case only. Optional canonical property key for property_value facts. Example: 'session.timeout_minutes'. Do not use propertyKey in kb_upsert.properties.",
      -  "type": "string"
      -}
    • changedInput schema / properties / properties / properties / rationale / description
      Previous value: -"Requirement-only. Why the requirement exists, in one or two sentences from whoever stated the intent; not part of the checked meaning."New value: +"Requirement-only: why it exists, in the stater's words; send it in the same write when they gave one, never invent one."
    • removedInput schema / properties / properties / properties / required_evidence / anyOf
      Removed value: -[
      -  {
      -    "const": "proved",
      -    "type": "string"
      -  },
      -  {
      -    "const": "tested",
      -    "type": "string"
      -  },
      -  {
      -    "const": "asserted",
      -    "type": "string"
      -  },
      -  {
      -    "const": "unverified",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / properties / properties / required_evidence / description
      Previous value: -"Requirement-only. Weakest evidence level it accepts; the evidence-floor rule fails below it. Absent = tested if firm, else unverified."New value: +"Requirement-only: weakest evidence level it accepts. Absent = tested if firm, else unverified."
    • addedInput schema / properties / properties / properties / required_evidence / enum
      Added value: +[
      +  "proved",
      +  "tested",
      +  "asserted",
      +  "unverified"
      +]
    • addedInput schema / properties / properties / properties / required_evidence / type
      Added value: +"string"
    • removedInput schema / properties / properties / properties / rule_hash
      Removed value: -{
      -  "description": "Deterministic hash of canonical rule_ir.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / rule_ir
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Schema-validated kibi.logic.v1 rule IR. It is persisted as data and never executed as caller-supplied Prolog.",
      -  "properties": {},
      -  "type": "object"
      -}
    • removedInput schema / properties / properties / properties / rule_name
      Removed value: -{
      -  "description": "Stable rule schema name.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / rule_schema_id
      Removed value: -{
      -  "description": "Rule schema fact ID used to validate this rule.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / scope
      Removed value: -{
      -  "description": "Optional scope qualifier for fact entities.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / semantic_clauses
      Removed value: -{
      -  "description": "Optional complete atomic decomposition used by kb_model mode analyze and proposition-complete ingestion. Preserve it when automatic sentence splitting needs a reviewed override.",
      -  "items": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "minItems": 1,
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / semantic_inventory
      Removed value: -{
      -  "description": "Requirement proposition ledger returned by kb_model mode analyze (CLI: kibi model); preserve entries while modeling each assertive span. An unmodeled normative, condition, exception or definition entry must carry `subjects`: the defined subject keys it is about.",
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {},
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / properties / properties / semantic_inventory_version
      Removed value: -{
      -  "const": "kibi.semantic-inventory.v1",
      -  "description": "Requirement-only proposition ledger contract version returned by kb_model mode analyze (CLI: kibi model).",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / semantic_key
      Removed value: -{
      -  "description": "Canonical semantic identity of the normalized logical model.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / semantic_source_field
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "semantic_text",
      -      "type": "string"
      -    },
      -    {
      -      "const": "text_ref",
      -      "type": "string"
      -    },
      -    {
      -      "const": "title",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Requirement field whose exact UTF-8 bytes anchor semantic_inventory spans."
      -}
    • removedInput schema / properties / properties / properties / semantic_source_hash
      Removed value: -{
      -  "description": "SHA-256 of the exact semantic source text returned in the advisor inventory contract.",
      -  "pattern": "^[a-f0-9]{64}$",
      -  "type": "string"
      -}
    • changedInput schema / properties / properties / properties / semantic_text / description
      Previous value: -"Requirement-only authored prose used for semantic inventory hashes and UTF-8 spans. Keep text_ref available for independent document or code evidence."New value: +"Requirement-only authored prose used for semantic inventory hashes and UTF-8 spans."
    • removedInput schema / properties / properties / properties / severity
      Removed value: -{
      -  "description": "Optional severity label. Example: 'critical'.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / source
      Removed value: -{
      -  "description": "Optional provenance string. Example: '.kb/requirements/REQ-cli-gc.md'. Defaults to 'mcp://kibi/upsert'.",
      -  "type": "string"
      -}
    • changedInput schema / properties / properties / properties / status / description
      Previous value: -"Required lifecycle state. Allowed values depend on entity type; backward-compatible legacy statuses are also accepted. Examples: 'open', 'passing', 'accepted', 'active'."New value: +"Required lifecycle state; allowed values depend on the entity type. Examples: 'open', 'passing', 'accepted'."
    • removedInput schema / properties / properties / properties / subject_key
      Removed value: -{
      -  "description": "Snake_case only. Optional canonical subject key for strict fact entities. Example: 'user.session'. Do not use subjectKey in kb_upsert.properties.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / symbol_role / anyOf
      Removed value: -[
      -  {
      -    "const": "behavioral",
      -    "type": "string"
      -  },
      -  {
      -    "const": "structural",
      -    "type": "string"
      -  },
      -  {
      -    "const": "type-shape",
      -    "type": "string"
      -  },
      -  {
      -    "const": "config",
      -    "type": "string"
      -  },
      -  {
      -    "const": "module",
      -    "type": "string"
      -  },
      -  {
      -    "const": "unknown",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / properties / properties / symbol_role / enum
      Added value: +[
      +  "behavioral",
      +  "structural",
      +  "type-shape",
      +  "config",
      +  "module",
      +  "unknown"
      +]
    • addedInput schema / properties / properties / properties / symbol_role / type
      Added value: +"string"
    • removedInput schema / properties / properties / properties / unit
      Removed value: -{
      -  "description": "Optional unit for numeric property_value facts.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / value_bool
      Removed value: -{
      -  "description": "Optional boolean value for property_value facts.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / properties / properties / value_int
      Removed value: -{
      -  "description": "Optional integer value for property_value facts.",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedInput schema / properties / properties / properties / value_number
      Removed value: -{
      -  "description": "Optional number value for property_value facts.",
      -  "type": "number"
      -}
    • removedInput schema / properties / properties / properties / value_set
      Removed value: -{
      -  "description": "Optional exact set of values for property_value facts with value_type set, such as the members a domain must have.",
      -  "items": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "minItems": 1,
      -  "type": "array",
      -  "uniqueItems": true
      -}
    • removedInput schema / properties / properties / properties / value_string
      Removed value: -{
      -  "description": "Optional string value for property_value facts.",
      -  "type": "string"
      -}
    • removedInput schema / properties / properties / properties / value_type
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "string",
      -      "type": "string"
      -    },
      -    {
      -      "const": "int",
      -      "type": "string"
      -    },
      -    {
      -      "const": "number",
      -      "type": "string"
      -    },
      -    {
      -      "const": "bool",
      -      "type": "string"
      -    },
      -    {
      -      "const": "set",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, value_bool, or value_set (set: a list of members, with operator eq, includes, subset_of or excludes); do not use generic value."
      -}
    • removedInput schema / properties / properties / properties / verification_perspective
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "internal",
      -      "type": "string"
      -    },
      -    {
      -      "const": "consumer",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional typed verification perspective for test entities. Example: 'consumer'."
      -}
    • removedInput schema / properties / properties / properties / verification_scope
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "const": "unit",
      -      "type": "string"
      -    },
      -    {
      -      "const": "integration",
      -      "type": "string"
      -    },
      -    {
      -      "const": "end_to_end",
      -      "type": "string"
      -    }
      -  ],
      -  "description": "Optional typed verification scope for test entities. Example: 'end_to_end'."
      -}
    • changedInput schema / properties / relationships / description
      Previous value: -"Optional relationship rows to create in the same call. For requirement encoding, prefer `constrains` + `requires_property` for strict property facts or `requires_predicate` for ontology predicate facts. Side effect: asserts edges in KB."New value: +"Optional relationship rows to create in the same call; asserts edges in the KB."
    • removedInput schema / properties / relationships / items / properties / type / anyOf
      Removed value: -[
      -  {
      -    "const": "depends_on",
      -    "type": "string"
      -  },
      -  {
      -    "const": "specified_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "verified_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "validates",
      -    "type": "string"
      -  },
      -  {
      -    "const": "implements",
      -    "type": "string"
      -  },
      -  {
      -    "const": "covered_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "executable_for",
      -    "type": "string"
      -  },
      -  {
      -    "const": "constrained_by",
      -    "type": "string"
      -  },
      -  {
      -    "const": "constrains",
      -    "type": "string"
      -  },
      -  {
      -    "const": "requires_property",
      -    "type": "string"
      -  },
      -  {
      -    "const": "requires_predicate",
      -    "type": "string"
      -  },
      -  {
      -    "const": "requires_rule",
      -    "type": "string"
      -  },
      -  {
      -    "const": "guards",
      -    "type": "string"
      -  },
      -  {
      -    "const": "publishes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "consumes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "supersedes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "restates",
      -    "type": "string"
      -  },
      -  {
      -    "const": "assumes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "exempts",
      -    "type": "string"
      -  },
      -  {
      -    "const": "relates_to",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / relationships / items / properties / type / description
      Previous value: -"Relationship type enum. Use only supported values. Direction semantics follow KB model (e.g., implements symbol->req, verified_by req/scenario->test, executable_for symbol->test)."New value: +"Relationship type, e.g. implements (symbol->req), verified_by (req/scenario->test), executable_for (symbol->test)."
    • addedInput schema / properties / relationships / items / properties / type / enum
      Added value: +[
      +  "depends_on",
      +  "specified_by",
      +  "verified_by",
      +  "validates",
      +  "implements",
      +  "covered_by",
      +  "executable_for",
      +  "constrained_by",
      +  "constrains",
      +  "requires_property",
      +  "requires_predicate",
      +  "requires_rule",
      +  "guards",
      +  "publishes",
      +  "consumes",
      +  "supersedes",
      +  "restates",
      +  "assumes",
      +  "exempts",
      +  "relates_to"
      +]
    • addedInput schema / properties / relationships / items / properties / type / type
      Added value: +"string"
    • removedInput schema / properties / type / anyOf
      Removed value: -[
      -  {
      -    "const": "req",
      -    "type": "string"
      -  },
      -  {
      -    "const": "scenario",
      -    "type": "string"
      -  },
      -  {
      -    "const": "test",
      -    "type": "string"
      -  },
      -  {
      -    "const": "adr",
      -    "type": "string"
      -  },
      -  {
      -    "const": "flag",
      -    "type": "string"
      -  },
      -  {
      -    "const": "event",
      -    "type": "string"
      -  },
      -  {
      -    "const": "symbol",
      -    "type": "string"
      -  },
      -  {
      -    "const": "fact",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / type / enum
      Added value: +[
      +  "req",
      +  "scenario",
      +  "test",
      +  "adr",
      +  "flag",
      +  "event",
      +  "symbol",
      +  "fact"
      +]
    • addedInput schema / properties / type / type
      Added value: +"string"
    • addedInput schema / properties / why
      Added value: +{
      +  "description": "req only: why it exists, in the asker's words.",
      +  "minLength": 1,
      +  "type": "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."
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "claimKey": {
      -        "description": "For a fact with claim_text: the stored claim_key, derived from claim_text when the payload did not supply it.",
      -        "type": "string"
      -      },
      -      "contradictionCheck": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "created": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "effectFailures": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nextActions": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "relationships_created": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "semanticAdvisor": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "sourceWrites": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "updated": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "warnings": {
      -        "items": {},
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dryRun": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "errorCode": {
      -        "type": "string"
      -      },
      -      "errors": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "normalizedPreview": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "rejection": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "semanticAdvisor": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "skippedEffects": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "stagedFacts": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "valid": {
      -        "type": "boolean"
      -      },
      -      "warnings": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "whatIf": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "valid",
      -      "dryRun",
      -      "skippedEffects"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "claimKey": {
      +        "description": "For a fact with claim_text: the stored claim_key, derived from claim_text when the payload did not supply it.",
      +        "type": "string"
      +      },
      +      "contradictionCheck": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "created": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "effectFailures": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "implementedBy": {
      +        "description": "Each implementedBy entry's symbolId and whether it was created.",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "inventoryApplied": {
      +        "description": "Each claim recorded for a requirement sent without its inventory contract.",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextActions": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "relatedRequirements": {
      +        "description": "Current requirements on the same terms.",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "relationships_created": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "semanticAdvisor": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "siblings": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "sourceWrites": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "updated": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "warnings": {
      +        "items": {},
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dryRun": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "errorCode": {
      +        "type": "string"
      +      },
      +      "errors": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "implementedBy": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "inventoryApplied": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextActions": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "normalizedPreview": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "rejection": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "semanticAdvisor": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "siblings": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "skippedEffects": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "stagedFacts": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "valid": {
      +        "type": "boolean"
      +      },
      +      "warnings": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "whatIf": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "valid",
      +      "dryRun",
      +      "skippedEffects"
      +    ],
      +    "type": "object"
      +  }
      +]
    • 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. Changed7 schema fields changedv0.1.9
    • addedInput schema / properties / properties / properties / distinct_from
      Added value: +{
      +  "description": "subject only: similar defined subject keys this subject was checked to differ from; the body says how. Silences subject-duplicate for those pairs.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / properties / properties / kind_of
      Added value: +{
      +  "description": "subject only: defined subject keys this subject is a kind of (a read-only review is a kind of review view).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / properties / properties / logic_claims / description
      Previous value: -"Requirement-only manifest of every atomic normative claim key returned by kb_model mode analyze (CLI: semantic-advisor). A requirement is logic-complete only when every key is grounded by a linked property_value or predicate fact with the same claim_key."New value: +"Requirement-only manifest of every atomic normative claim key returned by kb_model mode analyze (CLI: kibi model). A requirement is logic-complete only when every key is grounded by a linked property_value or predicate fact with the same claim_key."
    • addedInput schema / properties / properties / properties / pair_reviews
      Added value: +{
      +  "description": "Requirement only: verdicts on stored pairs (a relates_to edge or a shared subject) whose unmodeled claims cannot be modeled. Each entry: with (the other requirement, which a relates_to edge must link), verdict (no_conflict with separated_by naming the condition or term that separates them; interacts with resolved_by naming what resolves it: a scenario either requirement is specified_by, a fact either links, a third current requirement, or a condition or exception claim_key of either, never the two requirements themselves; conflict, which stays blocking until a person decides), claims (the claim_key of each unmodeled claim; a payload_hash is accepted and ignored) and origin (kind human or agent; on a must or firm pair, a verdict whose origin is missing or agent, or that sits on a requirement an agent wrote, counts only with approved_by from a person). Model the claims first; a verdict is the fallback.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / properties / properties / part_of
      Added value: +{
      +  "description": "subject only: defined subject keys this subject is a part of. A dotted key prefix that is itself a defined subject is broader already.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / properties / properties / semantic_inventory / description
      Previous value: -"Requirement proposition ledger returned by kb_model mode analyze (CLI: semantic-advisor); preserve entries while modeling each assertive span."New value: +"Requirement proposition ledger returned by kb_model mode analyze (CLI: kibi model); preserve entries while modeling each assertive span. An unmodeled normative, condition, exception or definition entry must carry `subjects`: the defined subject keys it is about."
    • changedInput schema / properties / properties / properties / semantic_inventory_version / description
      Previous value: -"Requirement-only proposition ledger contract version returned by kb_model mode analyze (CLI: semantic-advisor)."New value: +"Requirement-only proposition ledger contract version returned by kb_model mode analyze (CLI: kibi model)."
  3. Changed9 schema fields changedv0.1.7
    • addedInput schema / properties / properties / properties / proof_contract / properties / domain_source / properties / arg
      Added value: +{
      +  "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / initial_source / properties / arg
      Added value: +{
      +  "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / pattern_source / properties / arg
      Added value: +{
      +  "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / properties / properties / proof_contract / properties / source / description
      Previous value: -"source: the project source a source proof reads. A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location."New value: +"source: the project source a source proof reads. A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location."
    • changedInput schema / properties / properties / properties / proof_contract / properties / source / properties / reader / anyOf
      Previous value: -[
      -  {
      -    "const": "json",
      -    "type": "string"
      -  },
      -  {
      -    "const": "yaml",
      -    "type": "string"
      -  },
      -  {
      -    "const": "glob",
      -    "type": "string"
      -  },
      -  {
      -    "const": "openapi",
      -    "type": "string"
      -  },
      -  {
      -    "const": "references",
      -    "type": "string"
      -  },
      -  {
      -    "const": "schema",
      -    "type": "string"
      -  },
      -  {
      -    "const": "routes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "validator",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "json",
      +    "type": "string"
      +  },
      +  {
      +    "const": "yaml",
      +    "type": "string"
      +  },
      +  {
      +    "const": "glob",
      +    "type": "string"
      +  },
      +  {
      +    "const": "openapi",
      +    "type": "string"
      +  },
      +  {
      +    "const": "references",
      +    "type": "string"
      +  },
      +  {
      +    "const": "schema",
      +    "type": "string"
      +  },
      +  {
      +    "const": "routes",
      +    "type": "string"
      +  },
      +  {
      +    "const": "validator",
      +    "type": "string"
      +  },
      +  {
      +    "const": "prolog",
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / properties / properties / proof_contract / properties / value_source / items / properties / arg
      Added value: +{
      +  "description": "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / properties / properties / proof_contract / properties / value_source / items / properties / source / description
      Previous value: -"A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location."New value: +"A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location."
    • changedInput schema / properties / properties / properties / proof_contract / properties / value_source / items / properties / source / properties / reader / anyOf
      Previous value: -[
      -  {
      -    "const": "json",
      -    "type": "string"
      -  },
      -  {
      -    "const": "yaml",
      -    "type": "string"
      -  },
      -  {
      -    "const": "glob",
      -    "type": "string"
      -  },
      -  {
      -    "const": "openapi",
      -    "type": "string"
      -  },
      -  {
      -    "const": "references",
      -    "type": "string"
      -  },
      -  {
      -    "const": "schema",
      -    "type": "string"
      -  },
      -  {
      -    "const": "routes",
      -    "type": "string"
      -  },
      -  {
      -    "const": "validator",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "json",
      +    "type": "string"
      +  },
      +  {
      +    "const": "yaml",
      +    "type": "string"
      +  },
      +  {
      +    "const": "glob",
      +    "type": "string"
      +  },
      +  {
      +    "const": "openapi",
      +    "type": "string"
      +  },
      +  {
      +    "const": "references",
      +    "type": "string"
      +  },
      +  {
      +    "const": "schema",
      +    "type": "string"
      +  },
      +  {
      +    "const": "routes",
      +    "type": "string"
      +  },
      +  {
      +    "const": "validator",
      +    "type": "string"
      +  },
      +  {
      +    "const": "prolog",
      +    "type": "string"
      +  }
      +]
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "claimKey": {
      -        "description": "For a fact with claim_text: the stored claim_key, derived from claim_text when the payload did not supply it.",
      -        "type": "string"
      -      },
      -      "contradictionCheck": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "created": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "effectFailures": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nextActions": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "relationships_created": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "semanticAdvisor": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "sourceWrites": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "updated": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "warnings": {
      -        "items": {},
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dryRun": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "errorCode": {
      -        "type": "string"
      -      },
      -      "errors": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "normalizedPreview": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "semanticAdvisor": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "skippedEffects": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "stagedFacts": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "valid": {
      -        "type": "boolean"
      -      },
      -      "warnings": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "whatIf": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "valid",
      -      "dryRun",
      -      "skippedEffects"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "claimKey": {
      +        "description": "For a fact with claim_text: the stored claim_key, derived from claim_text when the payload did not supply it.",
      +        "type": "string"
      +      },
      +      "contradictionCheck": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "created": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "effectFailures": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextActions": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "relationships_created": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "semanticAdvisor": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "sourceWrites": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "updated": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "warnings": {
      +        "items": {},
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dryRun": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "errorCode": {
      +        "type": "string"
      +      },
      +      "errors": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "normalizedPreview": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "rejection": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "semanticAdvisor": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "skippedEffects": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "stagedFacts": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "valid": {
      +        "type": "boolean"
      +      },
      +      "warnings": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "whatIf": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "valid",
      +      "dryRun",
      +      "skippedEffects"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed8 schema fields changedv0.1.6
    • addedInput schema / properties / properties / properties / case_waiver
      Added value: +{
      +  "description": "Fact-only. Why the edge cases derived from this fact are covered some other way or cannot occur. Waives uncovered_case once case_waiver_approved_by is set.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / case_waiver_approved_by
      Added value: +{
      +  "description": "Fact-only. The person who accepted case_waiver.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / dimension_waiver
      Added value: +{
      +  "description": "Fact-only. Why the quantifier word in claim_text ranges over nothing, so the claim needs no count, set or rule. Waives dimension_unrepresented once dimension_waiver_approved_by is set.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / dimension_waiver_approved_by
      Added value: +{
      +  "description": "Fact-only. The person who accepted dimension_waiver.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / failure_side_waiver
      Added value: +{
      +  "description": "Requirement-only. Why the requirement has no failure side to test (its claims state a capability or output shape). Waives happy_path_only once failure_side_waiver_approved_by is set.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / failure_side_waiver_approved_by
      Added value: +{
      +  "description": "Requirement-only. The person who accepted failure_side_waiver.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / domain_source / properties / field
      Added value: +{
      +  "description": "exhaustive: when the export is a list of records, the field of each record that names a domain member (a catalog's name).",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / properties / properties / proof_contract / properties / value_source / description
      Previous value: -"arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base. With measure count the value is the size of a list, set, map or object export, so a count claim reads the collection itself. An entry {source, measure: count} counts the members Kibi reads from a project source (routes, tables, environment variables)."New value: +"arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base. With measure count the value is the size of a list, set, map or object export, so a count claim reads the collection itself. A dotted export (POLICY.eventLimit) reads one field of an object export. An entry {source, measure: count} counts the members Kibi reads from a project source (routes, tables, environment variables)."
  5. Changed18 schema fields changedv0.1.5
    • changedInput schema / properties / properties / properties / operator / anyOf
      Previous value: -[
      -  {
      -    "const": "eq",
      -    "type": "string"
      -  },
      -  {
      -    "const": "neq",
      -    "type": "string"
      -  },
      -  {
      -    "const": "lt",
      -    "type": "string"
      -  },
      -  {
      -    "const": "lte",
      -    "type": "string"
      -  },
      -  {
      -    "const": "gt",
      -    "type": "string"
      -  },
      -  {
      -    "const": "gte",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "eq",
      +    "type": "string"
      +  },
      +  {
      +    "const": "neq",
      +    "type": "string"
      +  },
      +  {
      +    "const": "lt",
      +    "type": "string"
      +  },
      +  {
      +    "const": "lte",
      +    "type": "string"
      +  },
      +  {
      +    "const": "gt",
      +    "type": "string"
      +  },
      +  {
      +    "const": "gte",
      +    "type": "string"
      +  },
      +  {
      +    "const": "matches",
      +    "type": "string"
      +  },
      +  {
      +    "const": "includes",
      +    "type": "string"
      +  },
      +  {
      +    "const": "subset_of",
      +    "type": "string"
      +  },
      +  {
      +    "const": "excludes",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / properties / properties / operator / description
      Previous value: -"Optional comparison operator for property_value facts. Example: 'eq'."New value: +"Optional comparison operator for property_value facts. Example: 'eq'. 'matches' (string facts only): value_string is a JavaScript regular expression (u flag) every value must match as a whole. Set facts only: 'includes' means every member of value_set has the property and other members may have it too; 'subset_of' means every member that has the property is in value_set ('every env var the server reads is one of ...'); 'excludes' means no member of value_set has it ('never imports md5'); 'eq' on a set means exactly those members."
    • changedInput schema / properties / properties / properties / proof_contract / properties / domain_source / description
      Previous value: -"exhaustive and typecheck: the symbol that defines the finite domain. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent."New value: +"exhaustive and typecheck: the symbol that defines the finite domain (typecheck: also the type whose fields a required_fields fact names). state_machine: the transition table or next-state function. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent."
    • addedInput schema / properties / properties / properties / proof_contract / properties / domains
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "rule: the finite domain of each argument type, keyed by type name (an array, Set, Map or object export, or a Python list, set, dict or Enum), or {source} for the members Kibi reads from a project source (every route, every table, every environment variable). state_machine with a next-state function: the `state` and `event` domains it is called on.",
      +  "properties": {},
      +  "type": "object"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / initial_source
      Added value: +{
      +  "description": "state_machine: the export holding the initial state (or states), needed for initial_states and reachable_states facts.",
      +  "properties": {
      +    "export": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "symbol_id": {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "symbol_id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / properties / properties / proof_contract / properties / kind / anyOf
      Previous value: -[
      -  {
      -    "const": "e2e",
      -    "type": "string"
      -  },
      -  {
      -    "const": "example",
      -    "type": "string"
      -  },
      -  {
      -    "const": "property",
      -    "type": "string"
      -  },
      -  {
      -    "const": "exhaustive",
      -    "type": "string"
      -  },
      -  {
      -    "const": "typecheck",
      -    "type": "string"
      -  },
      -  {
      -    "const": "arithmetic",
      -    "type": "string"
      -  },
      -  {
      -    "const": "smt",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "e2e",
      +    "type": "string"
      +  },
      +  {
      +    "const": "example",
      +    "type": "string"
      +  },
      +  {
      +    "const": "property",
      +    "type": "string"
      +  },
      +  {
      +    "const": "exhaustive",
      +    "type": "string"
      +  },
      +  {
      +    "const": "typecheck",
      +    "type": "string"
      +  },
      +  {
      +    "const": "arithmetic",
      +    "type": "string"
      +  },
      +  {
      +    "const": "smt",
      +    "type": "string"
      +  },
      +  {
      +    "const": "rule",
      +    "type": "string"
      +  },
      +  {
      +    "const": "state_machine",
      +    "type": "string"
      +  },
      +  {
      +    "const": "regex",
      +    "type": "string"
      +  },
      +  {
      +    "const": "source",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / properties / properties / proof_contract / properties / kind / description
      Previous value: -"What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic and smt must leave a kibi.code-certificate.v1 that Kibi re-checks before the receipt counts as proved."New value: +"What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic, smt, rule, state_machine and regex must leave a kibi.code-certificate.v1 that Kibi re-checks before the receipt counts as proved. source reads the contract's source itself: the run may leave {version, kind: source, test_id, source} or nothing, and Kibi stores its own read as the certificate."
    • addedInput schema / properties / properties / properties / proof_contract / properties / pattern_source
      Added value: +{
      +  "description": "regex: the export holding the code's pattern (a RegExp, or a Python re.Pattern) or string constant that a string fact is about.",
      +  "properties": {
      +    "export": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "symbol_id": {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "symbol_id"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / predicate_source
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "rule: the code function behind each predicate a claim's rule, predicate or set fact names, keyed by predicate name. Each export takes the predicate's arguments in order and returns a boolean; Kibi calls it on every combination of its argument domains.",
      +  "properties": {},
      +  "type": "object"
      +}
    • changedInput schema / properties / properties / properties / proof_contract / properties / proves / description
      Previous value: -"Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt); a claim with no such derivation is only attested and never counts as proved."New value: +"Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt, a rule, predicate or set fact for rule and state_machine, a string fact for regex); a claim with no such derivation is only attested and never counts as proved."
    • addedInput schema / properties / properties / properties / proof_contract / properties / source
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "source: the project source a source proof reads. A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.",
      +  "properties": {
      +    "reader": {
      +      "anyOf": [
      +        {
      +          "const": "json",
      +          "type": "string"
      +        },
      +        {
      +          "const": "yaml",
      +          "type": "string"
      +        },
      +        {
      +          "const": "glob",
      +          "type": "string"
      +        },
      +        {
      +          "const": "openapi",
      +          "type": "string"
      +        },
      +        {
      +          "const": "references",
      +          "type": "string"
      +        },
      +        {
      +          "const": "schema",
      +          "type": "string"
      +        },
      +        {
      +          "const": "routes",
      +          "type": "string"
      +        },
      +        {
      +          "const": "validator",
      +          "type": "string"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "reader"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / properties / properties / proof_contract / properties / value_source / description
      Previous value: -"arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base."New value: +"arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base. With measure count the value is the size of a list, set, map or object export, so a count claim reads the collection itself. An entry {source, measure: count} counts the members Kibi reads from a project source (routes, tables, environment variables)."
    • addedInput schema / properties / properties / properties / proof_contract / properties / value_source / items / properties / measure
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "value",
      +      "type": "string"
      +    },
      +    {
      +      "const": "count",
      +      "type": "string"
      +    }
      +  ],
      +  "description": "value (default for an export): the export is a number. count (the only measure of a source): the number of members of a list, set, map or object export, or of a source."
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / value_source / items / properties / source
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.",
      +  "properties": {
      +    "reader": {
      +      "anyOf": [
      +        {
      +          "const": "json",
      +          "type": "string"
      +        },
      +        {
      +          "const": "yaml",
      +          "type": "string"
      +        },
      +        {
      +          "const": "glob",
      +          "type": "string"
      +        },
      +        {
      +          "const": "openapi",
      +          "type": "string"
      +        },
      +        {
      +          "const": "references",
      +          "type": "string"
      +        },
      +        {
      +          "const": "schema",
      +          "type": "string"
      +        },
      +        {
      +          "const": "routes",
      +          "type": "string"
      +        },
      +        {
      +          "const": "validator",
      +          "type": "string"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "reader"
      +  ],
      +  "type": "object"
      +}
    • removedInput schema / properties / properties / properties / proof_contract / properties / value_source / items / required
      Removed value: -[
      -  "symbol_id"
      -]
    • changedInput schema / properties / properties / properties / proof_receipts / items / properties / claim_bindings / items / properties / scope / anyOf
      Previous value: -[
      -  {
      -    "const": "code",
      -    "type": "string"
      -  },
      -  {
      -    "const": "intent",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "code",
      +    "type": "string"
      +  },
      +  {
      +    "const": "source",
      +    "type": "string"
      +  },
      +  {
      +    "const": "harness",
      +    "type": "string"
      +  },
      +  {
      +    "const": "intent",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / properties / properties / proof_receipts / items / properties / kind / anyOf
      Previous value: -[
      -  {
      -    "const": "e2e",
      -    "type": "string"
      -  },
      -  {
      -    "const": "example",
      -    "type": "string"
      -  },
      -  {
      -    "const": "property",
      -    "type": "string"
      -  },
      -  {
      -    "const": "exhaustive",
      -    "type": "string"
      -  },
      -  {
      -    "const": "typecheck",
      -    "type": "string"
      -  },
      -  {
      -    "const": "arithmetic",
      -    "type": "string"
      -  },
      -  {
      -    "const": "smt",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "e2e",
      +    "type": "string"
      +  },
      +  {
      +    "const": "example",
      +    "type": "string"
      +  },
      +  {
      +    "const": "property",
      +    "type": "string"
      +  },
      +  {
      +    "const": "exhaustive",
      +    "type": "string"
      +  },
      +  {
      +    "const": "typecheck",
      +    "type": "string"
      +  },
      +  {
      +    "const": "arithmetic",
      +    "type": "string"
      +  },
      +  {
      +    "const": "smt",
      +    "type": "string"
      +  },
      +  {
      +    "const": "rule",
      +    "type": "string"
      +  },
      +  {
      +    "const": "state_machine",
      +    "type": "string"
      +  },
      +  {
      +    "const": "regex",
      +    "type": "string"
      +  },
      +  {
      +    "const": "source",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / properties / properties / value_type / description
      Previous value: -"Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, value_bool, or value_set (set: an exact list of allowed values, operator eq or neq); do not use generic value."New value: +"Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, value_bool, or value_set (set: a list of members, with operator eq, includes, subset_of or excludes); do not use generic value."
  6. Changed23 schema fields changedv0.1.4
    • addedInput schema / properties / properties / properties / proof_contract / properties / constraint_source
      Added value: +{
      +  "description": "arithmetic and smt: the typed numeric property_value facts the certificate's assumptions come from. Kibi checks the assumptions (or the query's assertions) are exactly these facts' constraints, so the proof is about the knowledge base, not numbers the test chose.",
      +  "properties": {
      +    "fact_ids": {
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "fact_ids"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / domain_source
      Added value: +{
      +  "description": "exhaustive and typecheck: the symbol that defines the finite domain. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent.",
      +  "properties": {
      +    "export": {
      +      "description": "The name the domain is exported under in the symbol's source file, when the symbol's title is not that name.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "symbol_id": {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "symbol_id"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / kind
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "e2e",
      +      "type": "string"
      +    },
      +    {
      +      "const": "example",
      +      "type": "string"
      +    },
      +    {
      +      "const": "property",
      +      "type": "string"
      +    },
      +    {
      +      "const": "exhaustive",
      +      "type": "string"
      +    },
      +    {
      +      "const": "typecheck",
      +      "type": "string"
      +    },
      +    {
      +      "const": "arithmetic",
      +      "type": "string"
      +    },
      +    {
      +      "const": "smt",
      +      "type": "string"
      +    }
      +  ],
      +  "description": "What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic and smt must leave a kibi.code-certificate.v1 that Kibi re-checks before the receipt counts as proved."
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / proves
      Added value: +{
      +  "description": "Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt); a claim with no such derivation is only attested and never counts as proved.",
      +  "items": {
      +    "pattern": "^CLAIM-",
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / success_policy / anyOf
      Added value: +[
      +  {
      +    "const": "all_required_first_attempt",
      +    "type": "string"
      +  },
      +  {
      +    "const": "own_results_first_attempt",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / properties / properties / proof_contract / properties / success_policy / const
      Removed value: -"all_required_first_attempt"
    • removedInput schema / properties / properties / properties / proof_contract / properties / success_policy / type
      Removed value: -"string"
    • addedInput schema / properties / properties / properties / proof_contract / properties / value_source
      Added value: +{
      +  "description": "arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base.",
      +  "items": {
      +    "properties": {
      +      "export": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "symbol_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "symbol_id"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / properties / properties / proof_contract / properties / witness
      Added value: +{
      +  "description": "typecheck: the repository-relative witness file Kibi compiles (an exhaustive switch ending in never, or a mapped type over the domain).",
      +  "properties": {
      +    "path": {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "path"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / properties / properties / proof_receipts / items / description
      Previous value: -"Kibi-derived kibi.proof-receipt.v1. Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts."New value: +"Kibi-derived kibi.proof-receipt.v2 (kibi.proof-receipt.v1 entries are still read). Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts."
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / certificate
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / certificate_digest
      Added value: +{
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / certificate_rejection
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / claim_bindings
      Added value: +{
      +  "description": "Certificate kinds: how the certificate binds to each claim its contract names in proves, judged at ingest. derived means Kibi derived the certificate's obligation from the claim's grounding fact and the certificate satisfies it; attested means no derivation exists and the author vouches for it (never proved); rejected names why.",
      +  "items": {
      +    "properties": {
      +      "binding": {
      +        "anyOf": [
      +          {
      +            "const": "derived",
      +            "type": "string"
      +          },
      +          {
      +            "const": "attested",
      +            "type": "string"
      +          },
      +          {
      +            "const": "rejected",
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "claim_key": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "fact_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "obligation": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "reason": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "requirement_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "scope": {
      +        "anyOf": [
      +          {
      +            "const": "code",
      +            "type": "string"
      +          },
      +          {
      +            "const": "intent",
      +            "type": "string"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "claim_key",
      +      "binding"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / evidence_level
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "proved",
      +      "type": "string"
      +    },
      +    {
      +      "const": "tested",
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / kind
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "e2e",
      +      "type": "string"
      +    },
      +    {
      +      "const": "example",
      +      "type": "string"
      +    },
      +    {
      +      "const": "property",
      +      "type": "string"
      +    },
      +    {
      +      "const": "exhaustive",
      +      "type": "string"
      +    },
      +    {
      +      "const": "typecheck",
      +      "type": "string"
      +    },
      +    {
      +      "const": "arithmetic",
      +      "type": "string"
      +    },
      +    {
      +      "const": "smt",
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / properties / properties / proof_receipts / items / properties / version / anyOf
      Added value: +[
      +  {
      +    "const": "kibi.proof-receipt.v1",
      +    "type": "string"
      +  },
      +  {
      +    "const": "kibi.proof-receipt.v2",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / properties / properties / proof_receipts / items / properties / version / const
      Removed value: -"kibi.proof-receipt.v1"
    • removedInput schema / properties / properties / properties / proof_receipts / items / properties / version / type
      Removed value: -"string"
    • addedInput schema / properties / properties / properties / required_evidence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "proved",
      +      "type": "string"
      +    },
      +    {
      +      "const": "tested",
      +      "type": "string"
      +    },
      +    {
      +      "const": "asserted",
      +      "type": "string"
      +    },
      +    {
      +      "const": "unverified",
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Requirement-only. Weakest evidence level it accepts; the evidence-floor rule fails below it. Absent = tested if firm, else unverified."
      +}
    • addedInput schema / properties / properties / properties / value_set
      Added value: +{
      +  "description": "Optional exact set of values for property_value facts with value_type set, such as the members a domain must have.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • changedInput schema / properties / properties / properties / value_type / anyOf
      Previous value: -[
      -  {
      -    "const": "string",
      -    "type": "string"
      -  },
      -  {
      -    "const": "int",
      -    "type": "string"
      -  },
      -  {
      -    "const": "number",
      -    "type": "string"
      -  },
      -  {
      -    "const": "bool",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "string",
      +    "type": "string"
      +  },
      +  {
      +    "const": "int",
      +    "type": "string"
      +  },
      +  {
      +    "const": "number",
      +    "type": "string"
      +  },
      +  {
      +    "const": "bool",
      +    "type": "string"
      +  },
      +  {
      +    "const": "set",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / properties / properties / value_type / description
      Previous value: -"Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, or value_bool; do not use generic value."New value: +"Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, value_bool, or value_set (set: an exact list of allowed values, operator eq or neq); do not use generic value."
  7. Changed1 schema field changedv0.1.3
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "claimKey": {
      -        "description": "For a fact with claim_text: the stored claim_key, derived from claim_text when the payload did not supply it.",
      -        "type": "string"
      -      },
      -      "contradictionCheck": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "created": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "effectFailures": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nextActions": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "relationships_created": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "semanticAdvisor": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "sourceWrites": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "updated": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "warnings": {
      -        "items": {},
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dryRun": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "errors": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "normalizedPreview": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "semanticAdvisor": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "skippedEffects": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "stagedFacts": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "valid": {
      -        "type": "boolean"
      -      },
      -      "warnings": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "whatIf": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "valid",
      -      "dryRun",
      -      "skippedEffects"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "claimKey": {
      +        "description": "For a fact with claim_text: the stored claim_key, derived from claim_text when the payload did not supply it.",
      +        "type": "string"
      +      },
      +      "contradictionCheck": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "created": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "effectFailures": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextActions": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "relationships_created": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "semanticAdvisor": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "sourceWrites": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "updated": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "warnings": {
      +        "items": {},
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dryRun": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "errorCode": {
      +        "type": "string"
      +      },
      +      "errors": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "normalizedPreview": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "semanticAdvisor": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "skippedEffects": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "stagedFacts": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "valid": {
      +        "type": "boolean"
      +      },
      +      "warnings": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "whatIf": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "valid",
      +      "dryRun",
      +      "skippedEffects"
      +    ],
      +    "type": "object"
      +  }
      +]
  8. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnly=false and destructive=true; the description adds real behavior the agent could not infer: dryRun writes nothing, updates are additive (omitted fields preserved), relationship endpoints must pre-exist, contradictory requirements are rejected, and a requirement write returns open kb_check steps as nextActions. The supersedes-plus-close workaround for replacing a contradicting requirement is exactly the kind of non-obvious procedure the description should carry.

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

Conciseness4/5

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

Purpose and the dryRun escape hatch are front-loaded, and nearly every sentence encodes a distinct rule. Density is high and a couple of clauses ("every write kb_record does not take") take parsing, but there is little true filler; the side-effects sentence partly restates the destructive annotation.

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

Completeness5/5

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

For a 10-parameter, deeply nested write tool with relationships, provenance and a supersedes workflow, the description covers creation, updating, validation, rejection cases, and the nextActions return. An output schema exists, so return values need no further explanation, and the remaining field-level detail is fully documented in the schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by adding semantics the schema doesn't: minimal-field update behavior, `document.body` holding a requirement's statement with `why` as the reason (and the explicit 'Reason not stated' fallback), and dryRun as preflight rather than a separate mode. It still leaves most per-field meaning to the schema, which is appropriate.

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?

"Create or update one entity and its relationships" gives a precise verb, scope (one entity plus edges) and mutation mode. The second sentence then routes writes that don't belong to kb_record, so an agent can separate this tool from its closest sibling without reading either schema.

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

Usage Guidelines5/5

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

It states explicit routing rules: use kb_record for a newly stated rule, use kb_model for prose before hand-writing strict property/predicate facts, and use dryRun:true as the preflight before a real write. Update semantics are also spelled out (send changed fields plus title/status, only links to add), which is when-to-use guidance at the field level.

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