kibi-cli 2.36.0 → 2.38.0
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.
- package/dist/cli-operation-metadata.d.ts +1 -1
- package/dist/cli-operation-metadata.js +1 -1
- package/dist/cli-register-foundation.d.ts.map +1 -1
- package/dist/cli-register-foundation.js +2 -1
- package/dist/cli-register-maintenance.d.ts.map +1 -1
- package/dist/cli-register-maintenance.js +5 -0
- package/dist/cli-validate.d.ts.map +1 -1
- package/dist/cli-validate.js +21 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +16 -1
- package/dist/commands/aggregated-checks.d.ts.map +1 -1
- package/dist/commands/aggregated-checks.js +89 -16
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +56 -35
- package/dist/commands/github-init.d.ts.map +1 -1
- package/dist/commands/github-init.js +4 -2
- package/dist/commands/hook-managers.d.ts +43 -0
- package/dist/commands/hook-managers.d.ts.map +1 -0
- package/dist/commands/hook-managers.js +426 -0
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +40 -5
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +43 -1
- package/dist/commands/telemetry.d.ts +7 -0
- package/dist/commands/telemetry.d.ts.map +1 -0
- package/dist/commands/telemetry.js +23 -0
- package/dist/decision-firmness.d.ts.map +1 -1
- package/dist/decision-firmness.js +11 -14
- package/dist/engine-limits.d.ts.map +1 -1
- package/dist/engine-limits.js +8 -10
- package/dist/entity-body-context.d.ts.map +1 -1
- package/dist/entity-body-context.js +39 -36
- package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
- package/dist/extractors/symbol-coordinates.js +23 -4
- package/dist/firm-decision-edit.d.ts.map +1 -1
- package/dist/firm-decision-edit.js +1 -3
- package/dist/intent-search.d.ts +5 -1
- package/dist/intent-search.d.ts.map +1 -1
- package/dist/intent-search.js +118 -33
- package/dist/logic/ir.d.ts.map +1 -1
- package/dist/logic/ir.js +82 -108
- package/dist/operations/bootstrap/guidance-actions.d.ts.map +1 -1
- package/dist/operations/bootstrap/guidance-actions.js +2 -1
- package/dist/operations/bootstrap/plugin-offers.d.ts +11 -2
- package/dist/operations/bootstrap/plugin-offers.d.ts.map +1 -1
- package/dist/operations/bootstrap/plugin-offers.js +48 -9
- package/dist/operations/proof/claim-bindings.d.ts.map +1 -1
- package/dist/operations/proof/claim-bindings.js +1 -0
- package/dist/operations/proof/code-certificates.d.ts +2 -0
- package/dist/operations/proof/code-certificates.d.ts.map +1 -1
- package/dist/operations/proof/code-certificates.js +34 -14
- package/dist/operations/proof/code-models.d.ts.map +1 -1
- package/dist/operations/proof/code-models.js +19 -5
- package/dist/operations/proof/code-runner.d.ts +16 -0
- package/dist/operations/proof/code-runner.d.ts.map +1 -1
- package/dist/operations/proof/code-runner.js +42 -6
- package/dist/plugins/compose-search-hints.d.ts +29 -0
- package/dist/plugins/compose-search-hints.d.ts.map +1 -0
- package/dist/plugins/compose-search-hints.js +94 -0
- package/dist/plugins/external-allowlist.d.ts +7 -0
- package/dist/plugins/external-allowlist.d.ts.map +1 -1
- package/dist/plugins/external-allowlist.js +11 -0
- package/dist/plugins/registry.d.ts +8 -1
- package/dist/plugins/registry.d.ts.map +1 -1
- package/dist/plugins/registry.js +22 -3
- package/dist/prolog/codec.d.ts.map +1 -1
- package/dist/prolog/codec.js +10 -20
- package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
- package/dist/public/impact/coverage-depth-quality.js +32 -16
- package/dist/public/impact/full-kb-quality.d.ts +6 -0
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +8 -3
- package/dist/public/impact/requirement-quality.d.ts.map +1 -1
- package/dist/public/impact/requirement-quality.js +56 -29
- package/dist/public/operations/catalog.d.ts +13 -3
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/check-executor.d.ts +6 -0
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +34 -2
- package/dist/public/operations/discovery-executors.d.ts +5 -1
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +65 -4
- package/dist/public/operations/evidence-floor.d.ts +8 -1
- package/dist/public/operations/evidence-floor.d.ts.map +1 -1
- package/dist/public/operations/evidence-floor.js +3 -4
- package/dist/public/operations/migration-plan.d.ts.map +1 -1
- package/dist/public/operations/migration-plan.js +41 -10
- package/dist/public/operations/node-ports.d.ts.map +1 -1
- package/dist/public/operations/node-ports.js +3 -1
- package/dist/public/operations/source-analysis-cache.d.ts +22 -0
- package/dist/public/operations/source-analysis-cache.d.ts.map +1 -0
- package/dist/public/operations/source-analysis-cache.js +157 -0
- package/dist/public/operations/specs/discovery.d.ts +7 -2
- package/dist/public/operations/specs/discovery.d.ts.map +1 -1
- package/dist/public/operations/specs/discovery.js +7 -2
- package/dist/public/operations/specs/mutation-schemas.d.ts +6 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/upsert.d.ts +6 -1
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/operations/symbol-granularity-check.d.ts +3 -1
- package/dist/public/operations/symbol-granularity-check.d.ts.map +1 -1
- package/dist/public/operations/symbol-granularity-check.js +21 -7
- package/dist/public/proof-protocol.d.ts +6 -1
- package/dist/public/proof-protocol.d.ts.map +1 -1
- package/dist/public/proof-protocol.js +12 -3
- package/dist/public/proof-sources.d.ts +2 -0
- package/dist/public/proof-sources.d.ts.map +1 -1
- package/dist/public/proof-sources.js +32 -6
- package/dist/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/dist/public/skills/kibi-usage/SKILL.md +42 -3
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +34 -0
- package/dist/public/skills/kibi-usage/resources/proof.md +13 -5
- package/dist/public/skills/kibi-usage/resources/workflows.md +10 -0
- package/dist/relationships/shards.d.ts +2 -0
- package/dist/relationships/shards.d.ts.map +1 -1
- package/dist/relationships/shards.js +25 -1
- package/dist/schemas/entity.schema.json +6 -1
- package/dist/search-answer.js +1 -1
- package/dist/search-hints.d.ts +58 -0
- package/dist/search-hints.d.ts.map +1 -0
- package/dist/search-hints.js +187 -0
- package/dist/search-ranking.d.ts +7 -0
- package/dist/search-ranking.d.ts.map +1 -1
- package/dist/search-ranking.js +54 -56
- package/dist/search-token-cache.d.ts +30 -0
- package/dist/search-token-cache.d.ts.map +1 -0
- package/dist/search-token-cache.js +86 -0
- package/dist/usage-telemetry.d.ts +11 -0
- package/dist/usage-telemetry.d.ts.map +1 -0
- package/dist/usage-telemetry.js +47 -0
- package/dist/utils/branch-resolver.d.ts.map +1 -1
- package/dist/utils/branch-resolver.js +1 -0
- package/package.json +5 -4
- package/src/public/impact/coverage-depth-quality.ts +59 -21
- package/src/public/impact/full-kb-quality.ts +15 -1
- package/src/public/impact/requirement-quality.ts +95 -38
- package/src/public/operations/check-executor.ts +41 -1
- package/src/public/operations/discovery-executors.ts +92 -4
- package/src/public/operations/evidence-floor.ts +15 -3
- package/src/public/operations/migration-plan.ts +41 -9
- package/src/public/operations/node-ports.ts +3 -1
- package/src/public/operations/source-analysis-cache.ts +196 -0
- package/src/public/operations/specs/discovery.ts +8 -2
- package/src/public/operations/symbol-granularity-check.ts +25 -5
- package/src/public/proof-protocol-types.d.ts +1 -1
- package/src/public/proof-protocol.ts +18 -4
- package/src/public/proof-sources.ts +37 -6
- package/src/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/src/public/skills/kibi-usage/SKILL.md +42 -3
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +34 -0
- package/src/public/skills/kibi-usage/resources/proof.md +13 -5
- package/src/public/skills/kibi-usage/resources/workflows.md +10 -0
- package/src/schemas/entity.schema.json +6 -1
|
@@ -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.
|
|
5
|
+
version: 2.36.0
|
|
6
6
|
kibiCompatibility: ">=1.0.0"
|
|
7
7
|
tags:
|
|
8
8
|
- kibi
|
|
@@ -137,7 +137,9 @@ For an edit that keeps the governing rule, limit the consultation before the edi
|
|
|
137
137
|
`unknown`, or `none`, which is not proof), the `exceptions` that exempt it,
|
|
138
138
|
and the `unknowns` the checks could not decide. Those links and verdicts are
|
|
139
139
|
discovery, not proof. Pass `sourceLocations` before changing a source file,
|
|
140
|
-
and `rankingMode: "legacy"` for literal identifier lookups.
|
|
140
|
+
and `rankingMode: "legacy"` for literal identifier lookups. A weak answer
|
|
141
|
+
may add `queryAnalysis.hints` (requirements the question may mean): re-ask
|
|
142
|
+
in their words, never cite a hint as the rule. See
|
|
141
143
|
`resources/workflows.md` for the mode recipe.
|
|
142
144
|
2. Resolve genuine ambiguity with the human; use `kb_model` for deterministic
|
|
143
145
|
interpretation and typed facts.
|
|
@@ -286,7 +288,9 @@ authored. Each one is the order the write path accepts.
|
|
|
286
288
|
its scenario: `specified_by` (req → scenario) is sent in the
|
|
287
289
|
requirement's write, never in the scenario's, so create the scenario
|
|
288
290
|
first, with `assumes` links (scenario → `property_value` fact, sent in
|
|
289
|
-
the scenario's own write) to the values its outcome relies on
|
|
291
|
+
the scenario's own write) to the values its outcome relies on; add a
|
|
292
|
+
rejection scenario that assumes a forbidden value next to the success
|
|
293
|
+
one (see Quantified claims below). Set
|
|
290
294
|
`expects` only on a scenario that has `assumes` links; `expects: success`
|
|
291
295
|
without them only yields `scenario-feasibility-unknown` ("assumes
|
|
292
296
|
nothing"). A
|
|
@@ -442,6 +446,41 @@ predicate bound with `harness_for` (scope `harness`) also counts toward
|
|
|
442
446
|
`proved`; an intent-scope binding stays `tested`. When the `evidence-floor` rule fails, follow Debugging
|
|
443
447
|
proof regressions in `resources/proof.md` and use `kibi proof explain`.
|
|
444
448
|
|
|
449
|
+
## Quantified claims: model the dimension
|
|
450
|
+
|
|
451
|
+
When a claim says every, each, all, any, only, at least, at most, exactly, a
|
|
452
|
+
role, a status or a count, ground it on what varies, never on `= true`: an int
|
|
453
|
+
count or bound (`role_count eq 1`, `uninstrumented_loaded_files eq 0`), a set,
|
|
454
|
+
or a typed rule with a `forall` variable. Keep `value_type: bool` for genuinely
|
|
455
|
+
binary properties (a flag is on). A `shadow_analysis` cue from `kb_model`
|
|
456
|
+
(`mode: "analyze"`) with `kind: quantifier` or `numeric` and `represented:
|
|
457
|
+
false` means the planned grounding hides the dimension. When
|
|
458
|
+
`mode: "predicates"` finds no schema for such a claim, do not stop at the
|
|
459
|
+
ontology-gap observation: call `kb_model` with `mode: "requirement"` and an
|
|
460
|
+
int `subjectKey`/`propertyKey`/`operator`/`value` for the count, and keep the
|
|
461
|
+
gap only when no count, set or rule expresses the claim.
|
|
462
|
+
|
|
463
|
+
Specify the requirement with scenarios that carry their inputs. Each scenario
|
|
464
|
+
sets `expects` and `assumes` its own `property_value` fact: same `subject_key`
|
|
465
|
+
and `property_key` as the grounding, with the scenario's value. These
|
|
466
|
+
assumed-value facts are linked only by the scenario's `assumes`, never by the
|
|
467
|
+
requirement, so a forbidden value does not contradict the grounding; it is
|
|
468
|
+
what makes the scenario a rejection. Write at least:
|
|
469
|
+
|
|
470
|
+
- a success scenario assuming an allowed value (`expects: success`);
|
|
471
|
+
- a rejection scenario assuming a forbidden value (`expects: rejection`, or
|
|
472
|
+
`error`); a scenario that only describes the refusal in prose, without
|
|
473
|
+
`expects` and `assumes`, does not count;
|
|
474
|
+
- for a quantified claim, cases at zero, one and many when they differ.
|
|
475
|
+
|
|
476
|
+
```json
|
|
477
|
+
{"type":"fact","id":"FACT-member-role-count-2","properties":{"title":"Member holds two roles","status":"active","fact_kind":"property_value","subject_key":"organization.member","property_key":"role_count","operator":"eq","value_type":"int","value_int":2}}
|
|
478
|
+
{"type":"scenario","id":"SCEN-member-two-roles-rejected","properties":{"title":"A member with two roles is rejected","status":"active","expects":"rejection"},"relationships":[{"type":"assumes","from":"SCEN-member-two-roles-rejected","to":"FACT-member-role-count-2"}]}
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
Then send `specified_by` to every scenario in the requirement's write.
|
|
482
|
+
Details: `resources/fact-lanes.md`, Model the Dimension, Not the Verdict.
|
|
483
|
+
|
|
445
484
|
## Predicate Ontology Decision Tree
|
|
446
485
|
|
|
447
486
|
Call `kb_model` with `mode: "analyze"` on the complete prose before encoding a clause.
|
|
@@ -15,6 +15,40 @@ Use the advisor-returned atomic inventory as the identity boundary. Trailing pun
|
|
|
15
15
|
|
|
16
16
|
Example compound prose: “Checkout requires payment authorization before order submission, and customer data must be retained for 7 years.” This is two claims, not one. The first becomes `dependency_rule(checkout,payment_authorization,order_submission)`; the second becomes a strict retention property. Both fact records carry different advisor-issued claim keys, and both keys appear in the requirement manifest. A single `requires_predicate` edge is incomplete.
|
|
17
17
|
|
|
18
|
+
## Model the Dimension, Not the Verdict
|
|
19
|
+
|
|
20
|
+
A claim that says every, each, all, any, only, at least, at most, exactly, no more than, a role, a status or a count ranges over something. Ground it on the thing that varies, not on a boolean that says the claim holds:
|
|
21
|
+
|
|
22
|
+
| The claim varies over | Ground it on |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| a count or bound ("at most 5 owners", "exactly one role") | `property_value` with `value_type: int` and `eq`/`lte`/`gte` |
|
|
25
|
+
| each member of a collection ("every loaded file") | an int count of the members that break the rule (`eq 0`), or a typed rule with a `forall` variable over the member |
|
|
26
|
+
| a closed set of values ("only admins and owners") | a canonical string set, or a predicate argument with `argument_constants` |
|
|
27
|
+
| a status or lifecycle ("a closed invoice cannot reopen") | a typed rule over the status, or a `state_machine` proof |
|
|
28
|
+
|
|
29
|
+
Use `value_type: bool` (`= true`) only when the property itself is binary: a flag is on, a feature is enabled. `module.loader.instruments_all_loaded_files = true` restates the claim and gives Kibi nothing that can vary: no boundary, no zero/one/many case, and no contradiction with another requirement that bounds the same count.
|
|
30
|
+
|
|
31
|
+
`kb_model` (`mode: "analyze"`) lists `shadow_analysis` cues. A `quantifier` or `numeric` cue with `represented: false` means the grounding does not carry the dimension yet. Do not ignore it: re-plan the grounding as a count, a rule variable or a set before writing. When no typed shape fits, keep the clause `ontology_gap` rather than downgrading it to a boolean verdict.
|
|
32
|
+
|
|
33
|
+
Example: "Each organization member must hold exactly one role."
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
# Avoid: the verdict
|
|
37
|
+
- { fact_kind: property_value, subject_key: organization.member, property_key: holds_exactly_one_role, operator: eq, value_type: bool, value_bool: true }
|
|
38
|
+
# Prefer: the dimension
|
|
39
|
+
- { fact_kind: property_value, subject_key: organization.member, property_key: role_count, operator: eq, value_type: int, value_int: 1 }
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Scenarios carry their inputs
|
|
43
|
+
|
|
44
|
+
A requirement grounded on a dimension is specified by scenarios that pick values of it. Each scenario `assumes` the `property_value` facts that state its input (same `subject_key` and `property_key` as the requirement's grounding, with the scenario's value) and sets `expects`:
|
|
45
|
+
|
|
46
|
+
- one success scenario whose assumed value the requirement allows (`role_count = 1`, `expects: success`);
|
|
47
|
+
- at least one rejection or error scenario whose assumed value the requirement forbids (`role_count = 2`, `expects: rejection`): a requirement that constrains behavior is not specified by its happy path alone;
|
|
48
|
+
- for a quantified claim, scenarios at zero, one and many of the varying thing whenever those behave differently (no files loaded, one file, several files).
|
|
49
|
+
|
|
50
|
+
Assumed-value facts are ordinary `property_value` facts linked only by the scenario's `assumes`; never link them from the requirement. Only requirement-linked facts are compared for contradictions, so an assumed forbidden value (`role_count = 2` next to the grounding `role_count eq 1`) is not a conflict: it is the input that makes the scenario a rejection. A refusal described only in prose, without `expects` and `assumes`, does not specify anything Kibi can check. Create them and the scenarios before the requirement write that sends `specified_by`. `scenario-feasibility` then checks every success scenario against the requirement, and the `happy_path_only` proof gap reports a requirement none of whose scenarios expects rejection or error while assuming a value that opposes one of its claims.
|
|
51
|
+
|
|
18
52
|
## Predicate Lane (Relational Claims)
|
|
19
53
|
|
|
20
54
|
Call `kb_model` with `mode: "analyze"`, then with `mode: "predicates"`. Apply a candidate only when its schema meaning and ordered arguments fit the claim. Use the returned `applyPlan` rather than hand-writing unsupported predicate names, and link the requirement to the predicate fact with `requires_predicate`.
|
|
@@ -173,7 +173,10 @@ left:
|
|
|
173
173
|
Enum values, dict keys, list/tuple/set items) and rejects a
|
|
174
174
|
certificate that does not cover exactly its members, so a hand-listed or
|
|
175
175
|
partial domain stays `tested`. An import from build output is mapped back
|
|
176
|
-
to its source through `tsconfig.json` `outDir`/`rootDir`.
|
|
176
|
+
to its source through `tsconfig.json` `outDir`/`rootDir`. For a list of
|
|
177
|
+
records (a catalog), add `field: <name>` and pass
|
|
178
|
+
`key: (item) => item.<name>` to `exhaustiveCertificate`; the members are
|
|
179
|
+
that field's values.
|
|
177
180
|
- `typecheck`: a witness file that stops compiling when a domain member
|
|
178
181
|
goes unhandled (a switch ending in a `never` assignment, or a
|
|
179
182
|
`satisfies Record<Domain, ...>` map). Set `witness.path` and
|
|
@@ -195,7 +198,8 @@ left:
|
|
|
195
198
|
evaluates the number export itself and adds `variable eq value` as an
|
|
196
199
|
assumption. For a count claim over a collection ("exactly 32 tools") add
|
|
197
200
|
`measure: count` and name the list, set, map or object export; Kibi uses
|
|
198
|
-
its size, so do not add a number export just for the proof. A
|
|
201
|
+
its size, so do not add a number export just for the proof. A dotted
|
|
202
|
+
export (`POLICY.eventLimit`) reads one field of an object export. A count
|
|
199
203
|
claim needs only `value_source`. Naming the claim's own fact in
|
|
200
204
|
`constraint_source` assumes the claim: without `value_source` Kibi counts
|
|
201
205
|
that derivation as intent only (tested), and with it a code value that
|
|
@@ -244,7 +248,7 @@ left:
|
|
|
244
248
|
`subset_of` and `excludes`. Rules over a machine use `transition`,
|
|
245
249
|
`reachable`, `initial`, `terminal`, `state`.
|
|
246
250
|
- `regex`: set `pattern_source` to a `RegExp`, a Python `re.compile(...)` or
|
|
247
|
-
a string constant. Model "X must match `re`" as a string fact with
|
|
251
|
+
a string constant (`export: BRAND.name` reads one field of an object). Model "X must match `re`" as a string fact with
|
|
248
252
|
`operator: matches` (a JavaScript pattern with the `u` flag, matched
|
|
249
253
|
whole); Kibi decides exact language equality and reports the shortest
|
|
250
254
|
string only one side accepts. Backreferences, lookaround, `\b`, the `g`,
|
|
@@ -254,7 +258,8 @@ left:
|
|
|
254
258
|
- `source`: Kibi reads a project source itself and checks a set fact
|
|
255
259
|
against what it read, so the test only runs the proof (it may write
|
|
256
260
|
nothing, or `sourceCertificate({ testId })`). Set `source: {reader, ...}`:
|
|
257
|
-
`json`/`yaml` (`file`, `path`, `select
|
|
261
|
+
`json`/`yaml` (`file`, `path`, `select`, `field` to read one key of
|
|
262
|
+
each list item, such as the `run` of each workflow step), `glob` (`pattern`, `capture`),
|
|
258
263
|
`openapi` (`file`, `select: operations|unsecured_operations|...`),
|
|
259
264
|
`references` (`files`, `extract: env|imports|calls|string_args|thrown|
|
|
260
265
|
property`), `schema` (`format: drizzle|prisma|sql`, `select:
|
|
@@ -271,7 +276,10 @@ left:
|
|
|
271
276
|
`nullable_fields` (only `eq`/`includes`) with bare members `name` for
|
|
272
277
|
"every table" (it also covers tables added later) or `table.name` for
|
|
273
278
|
one; `middleware` with `includes` for "every route under /p must use M"
|
|
274
|
-
(Kibi checks each route)
|
|
279
|
+
(Kibi checks each route); `precedes` with `includes` and members
|
|
280
|
+
`"A -> B"` for an order in a list ("the gate runs before the push"):
|
|
281
|
+
A and B are both in the list and every A comes before every B. Name
|
|
282
|
+
middleware with `names_from`: a
|
|
275
283
|
zero-argument factory export such as `requireAuth()` names the
|
|
276
284
|
middleware it returns `requireAuth`. Write the fact with `kb_model`
|
|
277
285
|
(requirement mode, `operator` plus a list `value`) or `kb_upsert`. The
|
|
@@ -78,6 +78,16 @@ no-answer, so widen the query or drop to lexical search rather than treating it
|
|
|
78
78
|
as "nothing exists". A literal identifier lookup is still best served
|
|
79
79
|
lexically.
|
|
80
80
|
|
|
81
|
+
When the project activates a `kibi.search-hints.v1` plugin (for example
|
|
82
|
+
`kibi-plugin-search-hints`), a weak or abstained intent answer also carries
|
|
83
|
+
`queryAnalysis.hints`: up to ten current requirements the question may mean,
|
|
84
|
+
found by meaning rather than shared words, each with a `score` and, when it
|
|
85
|
+
was reached through a scenario, test or fact, that entity as `via`. Hints are
|
|
86
|
+
suggestions, never governing requirements, and they never change the results
|
|
87
|
+
or the answer layer. Re-ask `kb_search` in the words of a hint that fits, or
|
|
88
|
+
pass them as `semanticFacets.aliases`, then read the requirement with
|
|
89
|
+
`kb_query`; never cite a hint as the rule. `hints: false` turns them off.
|
|
90
|
+
|
|
81
91
|
On the first page, intent mode also returns an answer layer in `data.answer`
|
|
82
92
|
(`kibi.search-answer.v1`; turn it off with `answer: false`):
|
|
83
93
|
|
|
@@ -831,6 +831,11 @@
|
|
|
831
831
|
"type": "string",
|
|
832
832
|
"minLength": 1,
|
|
833
833
|
"description": "The name the domain is exported under in the symbol's source file, when the symbol's title is not that name."
|
|
834
|
+
},
|
|
835
|
+
"field": {
|
|
836
|
+
"type": "string",
|
|
837
|
+
"minLength": 1,
|
|
838
|
+
"description": "exhaustive: when the export is a list of records, the field of each record that names a domain member (a catalog's name)."
|
|
834
839
|
}
|
|
835
840
|
},
|
|
836
841
|
"additionalProperties": false
|
|
@@ -861,7 +866,7 @@
|
|
|
861
866
|
},
|
|
862
867
|
"value_source": {
|
|
863
868
|
"type": "array",
|
|
864
|
-
"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. An entry {source, measure: count} counts the members Kibi reads from a project source (routes, tables, environment variables).",
|
|
869
|
+
"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).",
|
|
865
870
|
"minItems": 1,
|
|
866
871
|
"items": {
|
|
867
872
|
"type": "object",
|