kibi-cursor 2.9.2 → 2.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.cursor-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +170 -0
  3. package/agent-plugin/plugin.json +1 -1
  4. package/agent-plugin/skills/kibi-bootstrap/SKILL.md +2 -2
  5. package/agent-plugin/skills/kibi-commit-review/SKILL.md +8 -8
  6. package/agent-plugin/skills/kibi-commit-review/resources/staged-gate.md +12 -7
  7. package/agent-plugin/skills/kibi-decisions/SKILL.md +13 -2
  8. package/agent-plugin/skills/kibi-decisions/resources/decision-records.md +9 -1
  9. package/agent-plugin/skills/kibi-freshness/SKILL.md +5 -1
  10. package/agent-plugin/skills/kibi-traceability/SKILL.md +12 -1
  11. package/agent-plugin/skills/kibi-usage/SKILL.md +8 -4
  12. package/agent-plugin/skills/kibi-usage/resources/proof.md +221 -20
  13. package/agent-plugin/skills/kibi-usage/resources/workflows.md +4 -4
  14. package/dist/.cursor-plugin/plugin.json +1 -1
  15. package/dist/skills/.canon-hash.json +10 -10
  16. package/dist/skills/kibi-bootstrap/SKILL.md +2 -2
  17. package/dist/skills/kibi-commit-review/SKILL.md +8 -8
  18. package/dist/skills/kibi-commit-review/resources/staged-gate.md +12 -7
  19. package/dist/skills/kibi-decisions/SKILL.md +13 -2
  20. package/dist/skills/kibi-decisions/resources/decision-records.md +9 -1
  21. package/dist/skills/kibi-freshness/SKILL.md +5 -1
  22. package/dist/skills/kibi-traceability/SKILL.md +12 -1
  23. package/dist/skills/kibi-usage/SKILL.md +8 -4
  24. package/dist/skills/kibi-usage/resources/proof.md +221 -20
  25. package/dist/skills/kibi-usage/resources/workflows.md +4 -4
  26. package/package.json +1 -1
  27. package/skills/.canon-hash.json +10 -10
  28. package/skills/kibi-bootstrap/SKILL.md +2 -2
  29. package/skills/kibi-commit-review/SKILL.md +8 -8
  30. package/skills/kibi-commit-review/resources/staged-gate.md +12 -7
  31. package/skills/kibi-decisions/SKILL.md +13 -2
  32. package/skills/kibi-decisions/resources/decision-records.md +9 -1
  33. package/skills/kibi-freshness/SKILL.md +5 -1
  34. package/skills/kibi-traceability/SKILL.md +12 -1
  35. package/skills/kibi-usage/SKILL.md +8 -4
  36. package/skills/kibi-usage/resources/proof.md +221 -20
  37. package/skills/kibi-usage/resources/workflows.md +4 -4
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kibi-cursor",
3
3
  "displayName": "Kibi",
4
- "version": "2.9.2",
4
+ "version": "2.9.6",
5
5
  "description": "Optional Cursor adapter for Kibi. Requires project-local kibi-cli, kibi-mcp, and kibi-core (SWI-Prolog is bundled on Linux and macOS) before the bundled MCP server can start.",
6
6
  "license": "AGPL-3.0-or-later",
7
7
  "author": {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,175 @@
1
1
  # kibi-cursor
2
2
 
3
+ ## 2.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 90e1657: Source proofs no longer prove false claims about module paths, routes and file captures, and they read real projects' schemas, validators and middleware.
8
+
9
+ Fixed, where a false claim could be proved:
10
+ - Set fact members that contain a slash (`rxjs/operators`, `node:fs/promises`, `GET /api/users`, `finance/de`) were cut to their last path segment before Kibi compared them, so "the app must never import rxjs/operators" could prove while the app imported it. Members are now compared whole.
11
+ - The environment extractor now reads through `as`, `<T>` and `satisfies` casts, so `(import.meta as X).env.FOO` is read and an environment object (or `import.meta` itself) handed to a variable fails the read instead of hiding later reads.
12
+ - A glob that matches no file, and SQL migrations with no `CREATE TABLE`, now fail the read, so a mistyped pattern cannot decide a `subset_of` or `excludes` fact over an empty set.
13
+ - A `required_fields` or `nullable_fields` fact with `subset_of` or `excludes` is refused with a reason instead of being compared with whatever members the contract selected.
14
+
15
+ Readers:
16
+ - The SQL migration replay reads quoted and schema-qualified names (`"public"."messages"`), several actions per `ALTER TABLE`, `ADD PRIMARY KEY` and `DROP CONSTRAINT` of a foreign key, keeps `$$` function bodies whole, and skips actions that change no column, nullability or foreign key (row level security, triggers, ownership, defaults, column types). Supabase migration folders now read.
17
+ - The validator reader reads valibot objects, and any field that is a Standard Schema.
18
+ - `names_from` names middleware that a zero-argument factory export makes (`requireAuthentication()`) after the factory.
19
+ - The `thrown` extractor reads `throw createX()` as `createX`.
20
+ - A glob `capture` with `**` reads `finance/de` instead of `finance/de/`.
21
+ - A source read's dependencies follow tsconfig `extends` and workspace packages linked into `node_modules`, so a change in a sibling package stales the receipt.
22
+ - A claim a source proof derives is bound with the new scope `source`.
23
+
24
+ Modeling:
25
+ - "Every X must have Y" becomes a `required_fields` fact only when the sentence names a schema (a table, object, model and similar, or the words field, column or property), so "Every organization must have an owner" stays a behavioural claim.
26
+ - "A member can never become owner" models `member->owner` (the article was read as the state), and the machine may go unnamed.
27
+ - Scoped package names (`@supabase/supabase-js`), "must be exactly A and B" sets and "at least 30 routes under /api/orgs" counts are recognised.
28
+ - `kb_model` in requirement mode accepts the `includes`, `subset_of`, `excludes` and `matches` operators and a list `value` for set facts.
29
+
30
+ The kibi-usage skill (2.32.0) and the proof guide describe the reader details, the empty-read rule and the minimum kibi-cli for the certificate builders.
31
+
32
+ ## 2.9.5
33
+
34
+ ### Patch Changes
35
+
36
+ - c118085: Formal proofs now reach the claims real services make about their routes, database schemas, configuration and code. A new `source` certificate proof kind lets Kibi read a project source itself and check a set fact against what it read, so the test only has to run:
37
+ - `json` and `yaml` read keys, values or items at a path; `glob` reads matching files (or what each `*` matched); `openapi` reads operations, unsecured operations, security schemes or responses.
38
+ - `references` reads environment variables, imports, calls, string arguments, thrown errors or property accesses from TypeScript, JavaScript and Python files. A member Kibi cannot read statically, such as a computed environment variable name, fails the read with its location instead of leaving it out.
39
+ - `schema` reads tables, columns, required or nullable columns and foreign keys from Drizzle, Prisma or SQL migrations.
40
+ - `routes` reads a Hono or Express app's routes and the middleware each route runs, including mounted routers.
41
+ - `validator` reads a zod or pydantic schema's fields, required fields or optional fields.
42
+
43
+ A receipt for a source proof goes stale when any file the read touched changes.
44
+
45
+ Set facts gain the `subset_of` ("must be one of") and `excludes` ("must never use") operators alongside `eq` and `includes`. Field claims (`required_fields`, `nullable_fields`) accept `table.field` members, and a `middleware` fact with `includes` requires every matching route to run the listed middleware.
46
+
47
+ State machine proofs decide temporal claims: a `reachable_pairs` fact with `excludes` ("a cancelled invoice can never become paid") and a `required_waypoints` fact ("every path from draft to paid must pass through approved"). Every machine projection accepts the four set operators.
48
+
49
+ A `rule` contract can take a domain from a project source, and a predicate with `harness_for: [SYM-...]` proves its claim at the new `harness` scope when the predicate is a test harness that drives real code. `value_source` accepts `{source, measure: count}`.
50
+
51
+ The semantic advisor and `kibi model` turn these sentence shapes into the matching facts. `kibi-cli/proof-certificates` adds `sourceCertificate` and `readProjectSource`.
52
+
53
+ The kibi-usage skill (2.31.0) explains the new kind and operators. kibi-traceability (2.3.0) lists every certificate kind that reaches proved and the code or harness scope it needs, kibi-freshness (2.3.0) says a changed file a source proof read also leaves its receipt pending re-proof, and kibi-decisions (1.4.0) says a firm rule a certificate kind can check is proved by a certificate test.
54
+
55
+ ## 2.9.4
56
+
57
+ ### Patch Changes
58
+
59
+ - 4d55860: Claim-bound proofs are easier to adopt on an existing project.
60
+ - A count claim over a collection reads the collection itself: a `value_source` entry with `measure: count` uses the size of a list, set, map or object export, so "exactly 32 tools" no longer needs a number export added beside the list just for the proof.
61
+ - `kibi migrate`'s claim-binding reviews now list every modeled claim the test reaches through its scenarios, with the binding a certificate of its kind would get (provable, attested only, or why the kind cannot express the fact), instead of an empty list when no claim was provable as modeled.
62
+ - The semantic advisor models "every member of S has P" requirements as a set fact named for P whose value is S, so the property stays in the requirement instead of only in the test.
63
+
64
+ Deleting an `implements` relationship now also removes the target from a symbol's legacy `links:` list in `symbols.yaml` (dropping the list when it empties), so the deleted edge no longer comes back on the next `kibi sync --rebuild`.
65
+
66
+ The kibi-usage skill (2.28.0) explains count measures and every-member claims.
67
+
68
+ - 42566ee: Formal proofs now reach claims that are not numbers. Three new certificate proof kinds read their model from the code and decide the claim exactly:
69
+ - `rule`: Kibi calls the code's predicate functions (`predicate_source`) on every combination of the finite domains the code exports (`domains`) and model checks the claim's fact against that table. A `kibi.logic.v1` rule must hold for every assignment of its variables, a predicate fact (including decision predicates such as `permission_rule`) must be decided as it says, and a set fact whose property names a predicate needs it to hold for every member. A failure names the assignment that breaks the rule.
70
+ - `state_machine`: Kibi reads a transition table or a `next(state, event)` function and checks the transitions, states, initial, terminal or reachable states a set fact names, exactly. Rules over a machine can use `transition`, `reachable`, `initial`, `terminal` and `state`.
71
+ - `regex`: Kibi decides whether the code's pattern (a JavaScript `RegExp` or a Python `re.compile`) accepts exactly the strings a fact's pattern describes, with each engine's own semantics for anchors, `.`, `\d` and case folding, and reports the shortest string only one side accepts. Patterns outside the regular subset (backreferences, lookaround, word boundaries and similar) are refused with the reason. A string constant is checked against an exact string fact the same way.
72
+
73
+ String facts gain the `matches` operator, and the semantic advisor models "X must match `re`", "X must be `value`" and "X transitions must be one of a -> b, ..." (and terminal, initial or reachable states) as facts these kinds prove. A `typecheck` proof of a set fact with `property_key: required_fields` checks that every member is a required, non-nullable field of the domain type. `kibi-cli/proof-certificates` adds `ruleCertificate`, `stateMachineCertificate`, `regexCertificate` and `failedCalls`.
74
+
75
+ The kibi-usage skill (2.29.0) explains the new kinds.
76
+
77
+ - 4f06fd5: The kibi-usage skill (2.27.1) now links the full proof reference to its published page, https://looted.github.io/kibi/reference/proving.html, instead of a repository path that does not exist in the projects using Kibi.
78
+ - 03197d8: The kibi-usage skill (2.29.3) lists all seven certificate proof kinds (`exhaustive`, `typecheck`, `arithmetic`, `smt`, `rule`, `state_machine` and `regex`) where it explains which tests reach `proved`.
79
+ - c99f89b: Fixes for the certificate proof kinds and for running Kibi from inside a repository:
80
+ - `kibi` run from a subdirectory of a Kibi workspace now uses the workspace's knowledge base (the nearest enclosing `.kb/manifest.json`), the way git finds its repository. Before, it compiled a second, empty branch store in the subdirectory, so queries returned nothing and `kibi prove` reported no proof integration. Relative `--input`, `--output`, `--certificates` and `--write-certificates` paths still resolve from where the command was typed. `kibi init` and an explicit `KIBI_WORKSPACE` keep the current directory.
81
+ - A receipt whose certificate re-checks but derives none of the claims it names now records `evidence_level: tested`, the level coverage reports, instead of `proved`. The same holds for the `kibi prove` result rows.
82
+ - Kibi compiles typecheck witnesses with the import resolution of the nearest `tsconfig.json` (`module`, `moduleResolution`, `paths` and similar), while the checking options stay fixed and strict. A project that resolves like a bundler no longer needs `.js` extensions in witness imports.
83
+ - TypeScript is loaded from the package nearest the witness first. TypeScript 7, which ships without the compiler API, is skipped for an older install further up, and named in the rejection when there is none ("add typescript@6 as a dev dependency"), instead of being reported as missing.
84
+ - A rejected `required_fields` claim names each field that breaks it ("deletedAt is optional or nullable", "x is not a field"), also when the test's own witness failed to compile.
85
+ - A rejected arithmetic certificate, including a `measure: count` claim, names a value that satisfies the assumptions and breaks the claim ("count = 5 satisfies them and breaks it").
86
+ - The typecheck exhaustiveness check reads the witness's syntax tree: a `never` type or a `satisfies` map counts, the word "never" in a comment does not. It now applies only to contracts without `proves`; with `proves`, Kibi checks each claim with its own witness.
87
+ - Set facts gain the `includes` operator for "every member of the set has the property" claims, which the semantic advisor now proposes. Two `includes` facts on the same property never contradict, and one contradicts an `eq` set only when it names a member the `eq` set leaves out. Before, "every role in owner and admin can invite" and "every role in owner, admin and member can invite" were refused as a value conflict. The KB consistency certificates model `includes` as containment.
88
+
89
+ The kibi-usage skill (2.29.1) describes the `includes` operator and the typecheck changes.
90
+
91
+ - bcbeebe: Follow-up fixes for the certificate proof kinds:
92
+ - A `rule` certificate now derives an `includes` set fact ("every role in owner and admin can invite"), checking the property on each listed member, so a true every-member claim reaches `proved`. Before, an `includes` fact was never read as a set and every binding to it was only attested. A `typecheck` certificate derives an `includes` fact on `required_fields`; the kinds that compare the whole set (`exhaustive`, a set-equality `typecheck`, `state_machine`) reject one, since they would read "at least these" as "exactly these".
93
+ - An arithmetic certificate whose assumptions contradict each other, such as a code count of 5 against a fact of exactly 4, is rejected with both values ("the assumptions contradict each other (count = 4 and count = 5) ...") instead of "the claim holds vacuously".
94
+ - A typecheck certificate whose own compile failed is rejected with the first error Kibi's compile of the witness reports, or with a note that Kibi's compile accepts it, instead of only "the type checker did not accept the witness". The declaration files the nearest `tsconfig.json` includes (a `reset.d.ts`, for example) are now part of the witness program.
95
+ - A receipt whose only derived claims are intent-scope (derived from the knowledge base's facts, with no value read from the code) records `evidence_level: tested`, the level coverage reports, instead of `proved`.
96
+
97
+ The kibi-usage skill (2.29.2) describes these and how to wire a count claim.
98
+
99
+ ## 2.9.3
100
+
101
+ ### Patch Changes
102
+
103
+ - 94dc89d: A certificate now proves the requirement claims it names, and `proved` says which claims a requirement's certificates cover.
104
+
105
+ A certificate-kind proof contract (`exhaustive`, `typecheck`, `arithmetic`, `smt`) names the claim keys it proves in the new `proves` field. For each named claim Kibi derives what the certificate has to establish from the claim's grounding fact, so the author never states it:
106
+ - A set fact (the new `value_type: set` with `value_set`) gives a set-equality obligation. An `exhaustive` certificate meets it when its domain, read from the code, is exactly the set and the domain symbol is covered by the test; a `typecheck` certificate meets it when Kibi's own witness, which compares the domain type with the set both ways, compiles.
107
+ - A numeric fact gives a constraint. An `arithmetic` or `smt` certificate meets it when its assumptions are the fact's constraints; a new `value_source` field names the code constants that bound the variable, which `constraint_source` used to require.
108
+ - A fact with no derivation (a behavioral claim) gives an attested binding, which counts as `tested`.
109
+
110
+ `kibi prove` records one binding per claim in the receipt's `claim_bindings` (derived, attested or rejected, with the reason) and prints it. Kibi re-judges each binding against the current KB when it reports, so a binding goes stale when its fact changes. A requirement reports `proved` only when every applicable claim has a derived, code-scope binding from a fresh certificate that re-checks.
111
+
112
+ The semantic advisor now models closed lists ("must be one of red, green or blue") as set facts. KB consistency certificates support set facts.
113
+
114
+ `kibi coverage`, `kibi proof explain` and the HTML report show claim-level evidence (`claimSummary`, `claimEvidence`, "n/m claims proved"), and the `proved` floor gap lists the unproved claims. The new blocking `proof-contract-claims` check reports a certificate contract that names no claims, names a key that is no current claim, or names a claim its kind cannot express. The kibi-usage (2.27.0) and kibi-traceability (2.2.0) skills explain claim binding to agents.
115
+
116
+ **Migration (breaking):** KB schema 12. `kibi migrate` pins `proves` on every certificate contract with exactly one claim it could prove and lists the rest for review; until a contract names its claims, `proof-contract-claims` blocks and its certificate proves nothing. A requirement that reported `proved` from a certificate before reports `tested` until its claims are bound and re-proved. The requirement proof payload is now `kibi.requirement-proof.v5`. Facts with a legacy `allowed_values` list are read as sets; nothing is rewritten.
117
+
118
+ - a71798f: Proof contracts can now earn `proved` evidence with certificate proof kinds that Kibi re-checks itself.
119
+
120
+ A proof contract sets `kind` to one of the runner kinds `e2e`, `example` or `property`, which support `tested`, or to a certificate kind, which supports `proved`:
121
+ - `exhaustive` runs a check on every member of a finite domain the code defines. The contract names the domain with `domain_source`; the proof must import that symbol, and Kibi loads the export itself and rejects a certificate that does not cover exactly its members.
122
+ - `typecheck` names a `witness` file that stops compiling when a domain member goes unhandled (an exhaustive switch ending in a `never` check, or a mapped type over the domain). Kibi compiles the witness itself, strict and with the workspace's TypeScript, and checks it is the workspace file and imports the domain.
123
+ - `arithmetic` states a claim about one integer or real variable. Its assumptions must be exactly the constraints of the typed numeric facts the contract names in `constraint_source`, and Kibi decides the claim exactly: the facts must be satisfiable and entail it for every value.
124
+ - `smt` carries an SMT-LIB query that asserts the `constraint_source` facts and the claim's negation. Kibi re-runs z3 or cvc5 on it and accepts only `unsat`.
125
+
126
+ `arithmetic` and `smt` prove that the knowledge base's facts entail a claim, not that code follows those facts.
127
+
128
+ Tests build certificates with the new `kibi-cli/proof-certificates` helpers and leave them in the directory `kibi prove` names in `KIBI_PROOF_CERTIFICATES`; outside `kibi prove` writing a certificate does nothing. A requirement reports `proved` when it is `tested` and every scenario has a test whose fresh receipt carries a certificate that still re-checks. `kibi coverage`, `kibi proof explain` and the report show the new certificate evidence, the report counts requirements proved by certificate, and a stored certificate that stops re-checking is listed with its reason under `certificateRejections`.
129
+
130
+ **Receipts:** `kibi prove` now writes `kibi.proof-receipt.v2`, which adds the contract kind, the evidence level, the certificate, its digest and, when a certificate is rejected, the reason. Existing `kibi.proof-receipt.v1` receipts stay valid and support `tested`. Older Kibi versions do not read v2 receipts, so upgrade every checkout that proves requirements together. The kibi-usage skill (2.26.0) explains certificate kinds to agents.
131
+
132
+ - 0d68081: Requirements now state the evidence they need, and `kibi check` fails any current requirement whose evidence is below it.
133
+
134
+ A requirement can set `required_evidence` to `proved`, `tested`, `asserted` or `unverified`. Without it, a firm requirement needs `tested` evidence and any other requirement needs none. The new canonical `evidence-floor` rule of `kibi check` and `kb_check` reports every current requirement whose evidence level is below its floor, with the level, the floor, where the floor comes from and the proof gaps to fix. Requirements whose only gaps are receipts older than the code count as pending re-proof and pass; `kibi check --fresh-evidence`, meant for CI right after `kibi prove --all`, fails them and also needs a clean proof snapshot.
135
+
136
+ The floor replaces snapshot files of every requirement's proof gaps: a pull request that adds a requirement no longer edits a shared baseline, and the floor sits in the requirement a reviewer reads. `kibi proof impact`, which compared coverage with such a baseline, is removed; use `kibi check --rules evidence-floor` and `kibi proof explain <id>`.
137
+
138
+ **Migration:** the knowledge-base schema moves to version 11. `kibi migrate` writes `required_evidence: asserted` on every current firm requirement that has no scenario verified by an end-to-end test with a proof contract and a passing receipt, so an upgraded knowledge base passes; raise a floor to `tested` once the requirement has an end-to-end proof. Requirements that keep `tested` are listed, and `kibi check --rules evidence-floor` shows any whose proof still has gaps, such as a stale receipt. For the same reason, requirements `kibi bootstrap` imports from a person's documents are recorded with `required_evidence: asserted`, so a freshly bootstrapped knowledge base passes `kibi check`. A knowledge base below schema 11 is not judged by `evidence-floor` until it is upgraded. The kibi-usage skill (2.25.0) explains floors to agents.
139
+
140
+ - 1fea8f6: Fixes from running the formal-proof lane on two test projects.
141
+
142
+ **Migration note:** a type-shape symbol (interface, type alias, enum) covered by a unit test now counts as covered only while that unit test has a current passing receipt; an authored `status: passing` is no longer enough. After upgrading, give those unit tests a `proof_contract` and run `kibi prove --stale`. Until then coverage lists the symbols in `uncoveredSymbols` with `structural_unit_receipt_not_current`.
143
+ - `kibi migrate` pins a `tested` floor only where the proof ladder would accept it (newest receipt, every gap), so a migrated project no longer starts with dozens of `evidence-floor` violations.
144
+ - `kibi check` prints the evidence-floor suggestion in text output without `--fix`, and the suggestion names the failing receipts, uncovered symbols and missing coordinates.
145
+ - `kibi coverage --status` judges receipts with the same per-contract binding as the unfiltered report.
146
+ - Certificate domains: `domain_source.export` names the export when it differs from the symbol title; TypeScript domains load through bun, the workspace's tsx, or node with a resolve hook for extensionless and `.js` imports; imports of compiled output map back to sources through `tsconfig.json`; Python domains (`Enum`, `dict`, list, tuple, set) load with `python3`.
147
+ - An exported constant matched by name is judged as a narrow symbol by the upsert granularity check, as the staged gate and `kibi check` already did.
148
+ - `kibi prove` no longer prints a raw `git show` error for a newly added test document, attributes a valid all-pass test report per test, and stops the producer's whole process group on Ctrl-C.
149
+ - New `kibi prove --stale` reruns only tests without a current passing receipt.
150
+ - New `success_policy: own_results_first_attempt` judges each obligation by its own native-case result when a run failed only in execution, so one unrelated failing Playwright case no longer fails every receipt of the suite. The Playwright reporter now marks global errors (`setup`), global timeouts (`timed_out`) and interruptions as run-level failures, which still refuse every obligation.
151
+ - `kibi prove` prints each integration it starts and ingests on stderr, records ingested integrations in `.kb/proof/runs/prove-progress.json`, and `kibi prove --resume` skips integrations an interrupted run already ingested at the same snapshot.
152
+ - With `--test`, `--requirement` or `--stale`, a direct `playwright test` integration runs only the selected tests' `proof_bindings[].source_file` spec files; every producer receives them as `KIBI_PROOF_SOURCE_FILES`.
153
+ - New `kibi proof run-steps` runs `proof/steps.json` as a `command` integration and writes the per-test report.
154
+ - Receipt binding ignores a test document's `links`, so adding a link no longer stales its receipts; receipts bound the earlier way stay current.
155
+ - The tree-sitter analyzer keeps a file with more than 64 decorated declarations decorator-only (the last diagnostic summarizes the rest), so `kibi sync --refresh-symbol-coordinates` no longer aborts on it.
156
+ - `kibi sync --refresh-symbol-coordinates` counts refreshed symbols against the stored coordinate artifact.
157
+ - New `coarse_anchor_only_review` diagnostic for requirements implemented only by whole-file anchors.
158
+ - `kibi proof inspect` detects `node --test` and `bun test` in root and workspace scripts.
159
+ - `kibi doctor` warns instead of failing when an augment-mode plugin's secret is missing, and the merge-driver setup names the project's package manager.
160
+ - `kibi coverage` text output groups traceability and proof counts.
161
+ - Claim texts that differ only in whitespace or trailing punctuation match.
162
+ - `pack:all -- --dev-version` stamps local packs `<version>-dev.<sha>`.
163
+
164
+ - 26bfdd6: Close the remaining proof-lane issues.
165
+ - `kibi upsert` keeps the properties an update leaves out in the compiled store, as the authored file already did. A relationship-only upsert no longer drops `required_evidence` (or `priority`, `owner`, `tags` and the rest) from the stored requirement, so `evidence-floor` stops judging it by firmness until a `kibi sync --rebuild`.
166
+ - A Python certificate domain loads with `KIBI_PYTHON`, the active virtualenv, or a `.venv`/`venv` from the domain file's directory up to the workspace root before `python3` on `PATH`, so a domain that imports project dependencies is checked. A failed load quotes the traceback's exception line (`ModuleNotFoundError: ...`) instead of its header.
167
+ - The `kibi coverage` summary carries `linkCoverageScope: "priority_must"`, and the table titles the link counts `Links (priority: must)`, so `evaluated: 0` on a KB without must-priority requirements no longer reads as if nothing was proved.
168
+ - `kibi sync` counts distinct relationships in both summary blocks: an edge stated in front matter and again in a symbol manifest or shard counts once, so the imported count no longer exceeds the KB total.
169
+ - After an applied migration, `remainingPlan` is a `kibi.migration-plan-digest.v2`: it lists the first 20 automatic actions as `{ id, code, state, autoApplicable, dependsOn }` and counts all of them under `automaticSummary` (`total`, `ready`, `blocked`, `omitted`), instead of embedding every automatic action with its full input.
170
+
171
+ - e421be0: Skills describe evidence levels and floors. kibi-decisions and kibi-bootstrap record an untested firm rule with `required_evidence: asserted` so `kibi check` passes until an end-to-end proof covers it. kibi-traceability and kibi-freshness report `evidenceLevel` and `evidenceFloor` from coverage. The kibi-commit-review staged gate reference lists `kb-consistency` and notes that `evidence-floor` runs only in a full check. The kibi-usage receipt workflow runs `kibi prove` and appends `kibi.proof-receipt.v2` receipts instead of deriving them by hand.
172
+
3
173
  ## 2.9.2
4
174
 
5
175
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "kibi",
4
- "version": "2.9.2",
4
+ "version": "2.9.6",
5
5
  "description": "Repo-local, per-branch, queryable knowledge base. Portable Agent Plugin packaging Kibi's Agent Skills and MCP server.",
6
6
  "author": { "name": "Kibi" },
7
7
  "homepage": "https://looted.github.io/kibi/",
@@ -2,7 +2,7 @@
2
2
  id: kibi-bootstrap
3
3
  name: kibi-bootstrap
4
4
  description: "Use for any Kibi bootstrap or onboarding task: seeding a new or thin knowledge base; reviewing a bootstrap or onboarding plan, preview, or evidence; judging approval readiness or coverage; diagnosing a blocked, partial, or failed bootstrap or its repair; applying an approved bootstrap plan; or asking the human which knowledge sources hold intent. Covers kb_status first, source interview, cited intent claims, read-only kb_plan_bootstrap preview, explicit approval, exact-plan kb_apply_plan, and repair-safe close-out."
5
- version: 3.16.0
5
+ version: 3.17.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -43,7 +43,7 @@ Seed branch-local Kibi knowledge from cited product intent, without creating a p
43
43
  9. **Read back** with `kb_query` and `kb_search` to confirm writes and citations.
44
44
  10. **Close out** with `kb_check`, then `kb_status`.
45
45
  11. **Deepen.** Bootstrap is complete; the KB is now half-way, holding cited `req` entries and review facts but no scenarios, tests or predicates. Load `kibi-usage` and continue in the normal Kibi workflow, one area at a time, telling the human what you author:
46
- - **Unplanned claims.** For every claim suppressed as `invalid_write` and every `sourceOnlySignals` entry ("Author requirement …"), restate the claim's statement and citation (`sourceId:reference`), model it with `kb_model` (`mode: "requirement"`, or `mode: "predicates"` for domain claims), and write the result with `kb_upsert` (`dryRun: true` first) with `origin: {kind: "import", ref: "<sourceId:reference>"}` and `firmness: "firm"`, as the plan does for the claims it writes. Without an explicit origin `kb_upsert` records the requirement as the agent's own `default` choice, which a later agent may supersede without asking.
46
+ - **Unplanned claims.** For every claim suppressed as `invalid_write` and every `sourceOnlySignals` entry ("Author requirement …"), restate the claim's statement and citation (`sourceId:reference`), model it with `kb_model` (`mode: "requirement"`, or `mode: "predicates"` for domain claims), and write the result with `kb_upsert` (`dryRun: true` first) with `origin: {kind: "import", ref: "<sourceId:reference>"}` and `firmness: "firm"` and `required_evidence: "asserted"`, as the plan does for the claims it writes; raise the floor (drop `required_evidence`) only once an end-to-end proof covers the requirement. Without an explicit origin `kb_upsert` records the requirement as the agent's own `default` choice, which a later agent may supersede without asking.
47
47
  - **Scenarios.** Write scenarios from the cited ticket's acceptance criteria, one scenario per criterion, not bulk drafts from the requirement title; ask the human when the source states none. Give each a plain title, the scenario prose in `document.body` (never in `properties`), and `assumes` links to the `property_value` facts whose values the scenario relies on. Set `expects` only when the scenario links `assumes` facts (or its criterion names concrete values that become them); `expects` without `assumes` only yields a feasibility-unknown warning, so a draft tagged `needs-human-review` omits `expects`. Then link the requirement with `specified_by` (upsert the `req` with its stored `title`, a `status` and that relationship only). Example: criterion "Given an annotation in draft state, when the user deletes it, the draft is cleared" becomes `{"type":"scenario","id":"SCEN-annotation-delete-clears-draft","properties":{"title":"Deleting a draft annotation clears the draft","status":"active","expects":"success"},"document":{"body":"Given an annotation in draft state, when the user deletes it, then the draft is cleared and nothing is published.\n\nThe acceptance criterion comes from the cited ticket; reviewers asked for it so a deleted draft never reappears after reload.\n"},"relationships":[{"type":"assumes","from":"SCEN-annotation-delete-clears-draft","to":"FACT-annotation-state-draft"}]}`, where the assumed fact is a `property_value` (`annotation.state` `eq` `draft`). Link existing tests that exercise it; never invent test evidence.
48
48
  - **Predicates.** Run `kb_model` with `mode: "predicates"` and `requirementId` on each persisted requirement and apply a returned plan with `requires_predicate` to its `relationshipTarget` (the planned `FACT-PRED-…` id, never a `SUGGEST-…` candidate id), or record the `review:ontology-gap` observation it returns, with its prose in `document.body`. A non-empty `existingGrounding` means the bootstrap already grounded that claim: on `replace_grounding` leave it unless the human wants the `replacementPlan` swap; on `provide_argument_bindings` retry with the listed arguments bound; on `record_ontology_gap` still write the returned gap observation, which is not a grounding link. Count what `kb_query` shows afterwards, not the calls you made.
49
49
  - **Unrecorded ambiguity.** Record any conflict or open question you found but did not declare in step 3 as a cited `fact_kind: observation` tagged `review:conflict` or `review:open-question`.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  id: kibi-commit-review
3
3
  name: kibi-commit-review
4
- description: "Use when kibi check --staged or the Kibi pre-commit hook blocks a commit (kibi_impact_evidence_missing, symbols_manifest_stale, symbol_granularity_violation, symbol-coverage, kibi check-generated drift, Staged impact review failed), or when preparing a commit or pull-request impact review. Covers reading the per-file Detail lines, authoring .kb/symbols.yaml symbol entries through kb_upsert, kibi sync --refresh-symbol-coordinates, staging the tracked Kibi evidence with git add, kb_prepare_impact_review for a staged or diff scope, the kibi signoff requirements summary to show before a commit, and how merge commits and migration renames are judged."
5
- version: 1.2.1
4
+ description: "Use when kibi check --staged or the Kibi pre-commit hook blocks a commit (kibi_impact_evidence_missing, symbols_manifest_stale, symbol_granularity_violation, symbol-coverage, kibi check-generated drift, Staged impact review failed), or when preparing a commit or pull-request impact review. Covers reading the per-file Detail lines, authoring .kb/symbols.yaml symbol entries through kb_upsert, staging the tracked Kibi evidence with git add (symbol coordinates are derived and never staged), kb_prepare_impact_review for a staged or diff scope, the kibi signoff requirements summary to show before a commit, and how merge commits and migration renames are judged."
5
+ version: 1.3.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -55,17 +55,17 @@ Never read or open any file under `.kb`, not even read-only with a file tool to
55
55
  - New or uncovered symbols: author a `symbol` entity per listed symbol
56
56
  through `kb_upsert` (`title` = the member the extractor names,
57
57
  `sourceFile`, `status: active`, `symbol_role: behavioral`, `implements`
58
- to the requirement, `covered_by` to the test). Then run
59
- `kibi sync --refresh-symbol-coordinates`.
60
- - Only coordinates moved: `kibi sync --refresh-symbol-coordinates`.
58
+ to the requirement, `covered_by` to the test).
59
+ - Only lines moved: nothing to do. Symbol coordinates are derived locally
60
+ by every sync and never committed.
61
61
  - No behavior change (a genuine false positive): see the audited
62
62
  no-impact note in `resources/staged-gate.md`; it never covers a real
63
63
  behavior change.
64
64
  4. **Stage the evidence.** Kibi authors tracked files but never Git-stages or
65
65
  commits them. `git status --short .kb` lists what it wrote; `git add` the
66
- entity Markdown, `.kb/relationships/` shards, `.kb/symbols.yaml` and
67
- `.kb/symbol-coordinates.yaml` that belong to this change (use `git add -p`
68
- when the files hold unrelated edits).
66
+ entity Markdown, `.kb/relationships/` shards and `.kb/symbols.yaml` that
67
+ belong to this change (use `git add -p` when the files hold unrelated
68
+ edits). `.kb/symbol-coordinates.yaml` is gitignored; never stage it.
69
69
  5. **Re-run** `kibi check --staged` (and `kibi check-generated --staged` when it
70
70
  failed) until it passes. Never bypass the hook (`--no-verify`) unless the
71
71
  person says so.
@@ -8,10 +8,10 @@ not the working tree, so a fix counts only once it is staged.
8
8
  ## Reading a finding
9
9
 
10
10
  ```text
11
- symbols_manifest_stale: .kb/symbol-coordinates.yaml is stale or missing for staged source files: src/billing/refund.ts
11
+ symbols_manifest_stale: .kb/symbols.yaml does not cover the declarations of staged source files: src/billing/refund.ts
12
12
  Detail: src/billing/refund.ts — extraction finds 4 symbol(s), evidence covers 3.
13
13
  Not in .kb/symbols.yaml: approveRefund (line 42)
14
- Suggestion: Author .kb/symbols.yaml entries for the uncovered symbols (kibi upsert, with implements/covered_by links), then run kibi sync --refresh-symbol-coordinates && git add .kb/symbol-coordinates.yaml .kb/symbols.yaml, then re-run kibi check --staged.
14
+ Suggestion: Author .kb/symbols.yaml entries for the uncovered symbols (kibi upsert, with implements/covered_by links). Stage .kb/symbols.yaml with the behavior edit, then re-run kibi check --staged.
15
15
  ```
16
16
 
17
17
  - Detail lines name every symbol, never a shortened list. `Evidence without a
@@ -24,17 +24,22 @@ symbols_manifest_stale: .kb/symbol-coordinates.yaml is stale or missing for stag
24
24
 
25
25
  | Id or message | Cause | Fix |
26
26
  | --- | --- | --- |
27
- | `kibi_impact_evidence_missing` | A staged behavior edit (changed lines in exported or behavior-bearing code, not comments or formatting) has no staged Kibi evidence. Test-only edits do not need it unless they add executable test symbols. | Query the owning knowledge; update it when behavior changed; stage entity Markdown under `.kb/`, authored `.kb/symbols.yaml` entries for the listed symbols, or refreshed `.kb/symbol-coordinates.yaml`. |
28
- | `symbols_manifest_stale` | Extraction output changed and the staged coordinates (or manifest) do not match it. | Author entries for the listed symbols first, then `kibi sync --refresh-symbol-coordinates`, then stage both manifests. |
27
+ | `kibi_impact_evidence_missing` | A staged behavior edit (changed lines in exported or behavior-bearing code, not comments or formatting) has no staged Kibi evidence. Test-only edits do not need it unless they add executable test symbols. | Query the owning knowledge; update it when behavior changed; stage entity Markdown under `.kb/` or authored `.kb/symbols.yaml` entries for the listed symbols. A file whose every declaration already has a `.kb/symbols.yaml` entry needs nothing more. |
28
+ | `symbols_manifest_stale` | A staged behavior file declares symbols `.kb/symbols.yaml` has no entry for, or an entry names a declaration that is gone. | Author entries for the listed symbols, re-point or retire entries whose declaration is gone, and stage `.kb/symbols.yaml`. Coordinates are derived locally and never staged. |
29
29
  | `symbol_granularity_violation` | A changed behavioral member is owned only by a coarse class or module symbol while a narrower declaration exists. | Add a symbol for the member itself (`title` = `Class.method` or the exported function) with its own links; use `granularity_reason` (`config-artifact`, `module-level-behavior`, `extractor-miss`, `legacy-link`, `test-suite`) only when it is true. |
30
30
  | `symbol-coverage` | A changed symbol, or a symbol whose staged manifest entry changed, fails the full-check rule on the staged knowledge. | The symbol `implements` the requirement and is `covered_by` a test that verifies it: through the requirement's scenario (`verified_by` scenario -> test) when it has one, else `verified_by` requirement -> test. A direct requirement -> test link does not count while a scenario exists. The finding's suggestion names the missing link (see `kibi-traceability`). |
31
31
  | `kibi_impact_override_missing_rationale` | A `Kibi-Impact: none` declaration has no `Rationale:` line. | Add the rationale, or drop the declaration and stage real evidence. |
32
32
  | `entity-context-missing` (staged entity) | A staged requirement, scenario, test, ADR or observation fact has fewer than 12 words of context. | Upsert a sectioned `document.body` (see `kibi-usage`, Entity body contract). |
33
- | `domain-contradictions`, `scenario-feasibility`, `exception-claim-keys` (staged `.kb/` change) | The staged knowledge introduces a violation the last commit did not have. | Fix the knowledge; a contradiction with a recorded rule goes to the person (`kibi-decisions`). |
33
+ | `domain-contradictions`, `kb-consistency`, `scenario-feasibility`, `exception-claim-keys` (staged `.kb/` change) | The staged knowledge introduces a violation the last commit did not have. `kb-consistency` also catches facts that contradict only together and names their requirements. | Fix the knowledge; a contradiction with a recorded rule goes to the person (`kibi-decisions`). |
34
34
  | Proposition-complete ingestion | A staged requirement's semantic inventory is missing or no longer matches its prose. | Re-derive it (`kb_model` analyze with the complete prose) or run `kibi migrate` for drift. |
35
- | `kibi check-generated --staged` drift | The staged `.kb/symbols.yaml` or `.kb/symbol-coordinates.yaml` differs from a refresh computed from the index. | `kibi sync --refresh-symbol-coordinates`, review the diff, stage only the intended hunks (`git add -p`). |
35
+ | `kibi check-generated --staged` drift | The staged `.kb/symbols.yaml` is not in the layout sync writes, or `.kb/symbol-coordinates.yaml` is tracked. | `kibi sync --refresh-symbol-coordinates`, review the diff, stage only the intended hunks (`git add -p`); untrack a tracked coordinates file with `kibi migrate` (or `git rm --cached`). |
36
36
  | `Staged impact review failed: impact_review_invalid: ...` | The base commit has `.kibi/impact-policy.json` and the staged `.kibi/impact-review.json` is missing, stale or incomplete. The message names the cause (missing review path, stale fingerprint, ...). | Prepare a fresh record (below). Any later staged change makes the fingerprints stale again, so prepare it last. |
37
37
 
38
+ The staged gate does not judge evidence levels: the `evidence-floor` rule
39
+ runs only in a full `kibi check`. A firm requirement staged without an
40
+ end-to-end proof passes the commit and fails that check later (see
41
+ `kibi-decisions` for `required_evidence`).
42
+
38
43
  ## Advisory findings
39
44
 
40
45
  These warn but do not block. Read them; they are often the real review.
@@ -93,6 +98,6 @@ does not prove it. Put the person's id there only when they reviewed it.
93
98
  npx --no-install kibi check --staged # the gate
94
99
  npx --no-install kibi check --staged --format json # with full evidence
95
100
  npx --no-install kibi check-generated --staged # manifest drift
96
- npx --no-install kibi sync --refresh-symbol-coordinates # refresh coordinates
101
+ npx --no-install kibi sync --refresh-symbol-coordinates # rebuild local coordinates
97
102
  git status --short .kb # what Kibi wrote
98
103
  ```
@@ -2,7 +2,7 @@
2
2
  id: kibi-decisions
3
3
  name: kibi-decisions
4
4
  description: "Use when the person states a rule or decision (must, never, always, from now on, we decided), when a Kibi hook asks to confirm or warns about an edit to code that implements a firm requirement, when the Stop hook says source files changed but nothing was recorded, when kb_check quotes requirement_statement_unverified, or when a request conflicts with a recorded requirement or ADR. Covers reading firmness and origin, recording a person's rule as firm with origin.ref, superseding with a Why this changed section, the kb_compile_intent unresolved/reviewCandidates/conflictReviews loop, asking before overriding a firm rule, and putting decisions to the person as one numbered kibi signoff --questions view."
5
- version: 1.2.1
5
+ version: 1.4.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -74,6 +74,16 @@ name the missing capability. Never read or edit `.kb/` files directly.
74
74
  quoting their words and where they said them, a sectioned `document.body`,
75
75
  a scenario, and an `implements` link from the code that enforces it. Use
76
76
  `kb_compile_intent` first when the rule may touch several requirements.
77
+ A firm rule needs `tested` evidence by default, so `kb_check`'s
78
+ `evidence-floor` rule fails on it until an end-to-end test proves its
79
+ scenario. When the change includes that test, give it a proof contract and
80
+ run `kibi prove`. Otherwise set `required_evidence: asserted`, say in the
81
+ body that no end-to-end test proves the rule yet, and report it as
82
+ asserted, not tested. Kibi's bootstrap and migration give an untested firm
83
+ rule the same floor. When the rule is a claim a certificate kind checks
84
+ (allowed values, transitions, a pattern, a rule over roles, a config,
85
+ route or schema read), a certificate test proves it instead: see
86
+ Certificate proof kinds in kibi-usage `resources/proof.md`.
77
87
  - **The person changes a rule:** supersede it (new requirement linked
78
88
  `supersedes` new -> old, `firmness: firm` when the old one was firm, a
79
89
  `## Why this changed` section of at least 12 words naming their instruction
@@ -124,7 +134,8 @@ Validation is not completion. When a request conflicts with a recorded rule and
124
134
 
125
135
  End with `kb_check` (and `kb_status` when freshness matters) and say:
126
136
 
127
- - which rules you followed, asked about, recorded or changed (ids, firmness);
137
+ - which rules you followed, asked about, recorded or changed (ids, firmness,
138
+ evidence level);
128
139
  - under "Decisions I changed", each supersede and its evidence;
129
140
  - the open question, if a conflict is waiting on the person;
130
141
  - or, when the session made no decision, one line saying so.
@@ -43,7 +43,7 @@ says it, link to it instead of restating it. Otherwise write the scenario
43
43
  first, then the requirement (the requirement's write sends `specified_by`):
44
44
 
45
45
  ```json
46
- {"type":"req","id":"REQ-billing-refund-approval","properties":{"title":"Refunds above 500 EUR need a finance approval","status":"open","priority":"must","firmness":"firm","origin":{"kind":"agent","ref":"session request: \"from now on refunds above 500 EUR must be approved by finance\""}},"relationships":[{"type":"specified_by","from":"REQ-billing-refund-approval","to":"SCEN-billing-refund-approval"}],"document":{"body":"Refunds above 500 EUR need a finance approval.\n\n## Context\n\nThe person asked for this rule while changing the refund flow; reason not stated.\n\n## Source\n\n> from now on refunds above 500 EUR must be approved by finance\n\nSession request."}}
46
+ {"type":"req","id":"REQ-billing-refund-approval","properties":{"title":"Refunds above 500 EUR need a finance approval","status":"open","priority":"must","firmness":"firm","required_evidence":"asserted","origin":{"kind":"agent","ref":"session request: \"from now on refunds above 500 EUR must be approved by finance\""}},"relationships":[{"type":"specified_by","from":"REQ-billing-refund-approval","to":"SCEN-billing-refund-approval"}],"document":{"body":"Refunds above 500 EUR need a finance approval.\n\n## Context\n\nThe person asked for this rule while changing the refund flow; reason not stated. No end-to-end test proves it yet.\n\n## Source\n\n> from now on refunds above 500 EUR must be approved by finance\n\nSession request."}}
47
47
  ```
48
48
 
49
49
  Then link the enforcing symbol with `implements` (and its test with
@@ -58,6 +58,14 @@ validation, not the write.
58
58
  `origin.approved_by` to the person.
59
59
  - A rule from a document, test or ticket a person wrote is `firm` too, with
60
60
  `origin.ref` to that source.
61
+ - `required_evidence: asserted` keeps an untested firm rule from failing
62
+ the `evidence-floor` check while it is recorded. Drop it (the floor goes
63
+ back to `tested`) once an end-to-end test with a proof contract and a
64
+ passing `kibi prove` receipt covers the rule's scenario; never set it below
65
+ `asserted` on a firm rule. A rule that a certificate kind checks (allowed
66
+ values, transitions, a pattern, a rule over roles, a config, route or
67
+ schema read) can instead be proved by a certificate test; see Certificate
68
+ proof kinds in kibi-usage `resources/proof.md`.
61
69
  - Your own choice is `default`; a guess is `exploratory`. Write the value
62
70
  explicitly whenever you record a decision.
63
71
  - For strict modeling (claim keys, predicate facts) follow `kibi-usage`,
@@ -2,7 +2,7 @@
2
2
  id: kibi-freshness
3
3
  name: kibi-freshness
4
4
  description: Check exact Git attachment, branch migration/quarantine, compiled-store freshness, source linkage, and repair state before decisions or writes.
5
- version: 2.1.0
5
+ version: 2.3.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -66,6 +66,10 @@ For every freshness, branch, or completion question, call `kb_status` first, the
66
66
  evidence-dependent closeout. Name the exact paths/symbol IDs and whether the
67
67
  result is fixed, accepted, or deferred.
68
68
  - If entities look stale, refresh context through an approved Kibi capability and then re-query.
69
+ - When asked whether a requirement is proven, quote its `evidenceLevel` and
70
+ `evidenceFloor` from `kb_coverage`. `pending_reproof` (receipts older than
71
+ the code, or than a file a `source` proof read) is stale evidence, not proof; `kibi prove` refreshes it, and
72
+ `kibi check --fresh-evidence` is the check that fails on it.
69
73
  - Preserve source-file traceability by carrying `sourceFile`, text references, and validation evidence through discovery, mutation, and completion.
70
74
  - Do not read or edit files inside `.kb` directly; use the selected Kibi interface instead.
71
75
  - Kibi authors tracked files but never Git-stages or commits them; ordinary Git workflows remain responsible for review and commit.
@@ -2,7 +2,7 @@
2
2
  id: kibi-traceability
3
3
  name: kibi-traceability
4
4
  description: Maintain source-first requirement, scenario, test, symbol, and proof traceability through Kibi's peer interfaces.
5
- version: 2.0.0
5
+ version: 2.3.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -64,3 +64,14 @@ stale snapshots, unavailable receipts, and incomplete grounding explicit.
64
64
  Fresh proof requires a current verification snapshot, the exact contracted E2E
65
65
  command, an append-only receipt, and current symbol coordinates. Structural
66
66
  coverage and a green check are not proof by themselves.
67
+
68
+ Report each requirement's `evidenceLevel` from `kb_coverage` as it is:
69
+ `proved` only when certificate proofs (exhaustive, typecheck, arithmetic,
70
+ smt, rule, state_machine, regex, source) bound at code or harness scope
71
+ derive every applicable claim (intent-scope bindings stay `tested`), named in each contract's `proves`
72
+ (`claimSummary` and `unprovedClaims` say which are missing), `tested` for fresh passing E2E receipts,
73
+ `asserted` when only a person stands behind it, `unverified` otherwise. Its
74
+ `evidenceFloor` says what `kb_check`'s `evidence-floor` rule requires:
75
+ `below` is a traceability gap to close with links, tests and `kibi prove`;
76
+ `pending_reproof` means the receipts are older than the code and need
77
+ `kibi prove`. Never lower `required_evidence` to clear either.
@@ -2,7 +2,7 @@
2
2
  id: kibi-usage
3
3
  name: Kibi Usage
4
4
  description: Use Kibi's source-first, exact-Git, migration-aware, proof-aware operations safely across MCP or the trusted local CLI, including partial completion repair.
5
- version: 2.24.0
5
+ version: 2.32.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -434,9 +434,13 @@ safe normative claims; use `observation` or `meta` for bug/workaround notes and
434
434
  tests, symbol ownership, and fresh proof-bearing receipts before claiming proof.
435
435
  For an existing product KB that needs semantic backfill, read
436
436
  `resources/kb-improvement.md`, and `resources/proof.md` for the proof workflow.
437
- When a proof ratchet fails, follow Debugging proof regressions in
438
- `resources/proof.md`: use `kibi proof explain` and compare current proof state
439
- to committed `proof/baseline.json` with `kibi proof impact`.
437
+ Each current requirement has an evidence floor (`required_evidence`, else
438
+ `tested` when firm); certificate proof kinds (exhaustive, typecheck,
439
+ arithmetic, smt, rule, state_machine, regex, source) reach `proved` for the claims their contract names in
440
+ `proves`, and a requirement is proved only when every claim is. A rule
441
+ predicate bound with `harness_for` (scope `harness`) also counts toward
442
+ `proved`; an intent-scope binding stays `tested`. When the `evidence-floor` rule fails, follow Debugging
443
+ proof regressions in `resources/proof.md` and use `kibi proof explain`.
440
444
 
441
445
  ## Predicate Ontology Decision Tree
442
446