kibi-cli 2.7.0 → 2.9.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.
Files changed (38) hide show
  1. package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
  2. package/dist/operations/modeling/predicate-applyplan.js +1 -1
  3. package/dist/operations/modeling/predicate-types.d.ts +16 -1
  4. package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
  5. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
  6. package/dist/operations/modeling/suggest-predicates.js +136 -23
  7. package/dist/operations/mutation/validation.d.ts.map +1 -1
  8. package/dist/operations/mutation/validation.js +30 -0
  9. package/dist/operations/mutation/workspace-mutation-lock.d.ts +22 -0
  10. package/dist/operations/mutation/workspace-mutation-lock.d.ts.map +1 -1
  11. package/dist/operations/mutation/workspace-mutation-lock.js +67 -1
  12. package/dist/operations/planning/apply-plan.d.ts.map +1 -1
  13. package/dist/operations/planning/apply-plan.js +149 -7
  14. package/dist/public/operations/catalog.d.ts +7 -2
  15. package/dist/public/operations/catalog.d.ts.map +1 -1
  16. package/dist/public/operations/contracts.d.ts.map +1 -1
  17. package/dist/public/operations/contracts.js +36 -22
  18. package/dist/public/operations/runtime-types.d.ts +12 -0
  19. package/dist/public/operations/runtime-types.d.ts.map +1 -1
  20. package/dist/public/operations/specs/check-rules.generated.d.ts +1 -1
  21. package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -1
  22. package/dist/public/operations/specs/check-rules.generated.js +2 -1
  23. package/dist/public/operations/specs/check.d.ts +1 -1
  24. package/dist/public/operations/specs/planning.d.ts +6 -1
  25. package/dist/public/operations/specs/planning.d.ts.map +1 -1
  26. package/dist/public/operations/specs/planning.js +6 -1
  27. package/dist/public/skills/kibi-bootstrap/SKILL.md +4 -4
  28. package/dist/public/skills/kibi-usage/SKILL.md +9 -4
  29. package/dist/utils/rule-registry.generated.d.ts +5 -0
  30. package/dist/utils/rule-registry.generated.d.ts.map +1 -1
  31. package/dist/utils/rule-registry.generated.js +6 -0
  32. package/package.json +2 -2
  33. package/src/public/operations/contracts.ts +38 -22
  34. package/src/public/operations/runtime-types.ts +14 -0
  35. package/src/public/operations/specs/check-rules.generated.ts +2 -1
  36. package/src/public/operations/specs/planning.ts +7 -1
  37. package/src/public/skills/kibi-bootstrap/SKILL.md +4 -4
  38. package/src/public/skills/kibi-usage/SKILL.md +9 -4
@@ -675,7 +675,7 @@ async function executeSourceRecovery(args, context, onCommitted = () => undefine
675
675
  },
676
676
  };
677
677
  }
678
- async function executeBootstrapPlan(args, context, recovery = false, remainingActions, priorResults = [], onCommitted = () => undefined) {
678
+ async function executeBootstrapPlan(args, context, recovery = false, remainingActions, priorResults = [], onCommitted = () => undefined, carry = {}) {
679
679
  const actions = recovery
680
680
  ? [...(remainingActions ?? args.plan.actions)]
681
681
  : validateBootstrapPlanShape(args);
@@ -754,9 +754,37 @@ async function executeBootstrapPlan(args, context, recovery = false, remainingAc
754
754
  if (!context.fs)
755
755
  return;
756
756
  await context.fs.mkdir(path.dirname(journalPath));
757
- await context.fs.writeFile(journalPath, `${JSON.stringify({ version: 2, kind: "bootstrap", plan: args.plan, state, checkpoint: currentCheckpoint, ...(activeActionId ? { activeActionId } : {}), results }, null, 2)}\n`);
757
+ await context.fs.writeFile(journalPath, `${JSON.stringify({
758
+ version: 2,
759
+ kind: "bootstrap",
760
+ plan: args.plan,
761
+ state,
762
+ checkpoint: currentCheckpoint,
763
+ ...(activeActionId ? { activeActionId } : {}),
764
+ results,
765
+ ...(carry.lockReclaims?.length
766
+ ? { lockReclaims: carry.lockReclaims }
767
+ : {}),
768
+ ...(carry.interruptedActions?.length
769
+ ? { interruptedActions: carry.interruptedActions }
770
+ : {}),
771
+ }, null, 2)}\n`);
758
772
  };
759
773
  await writeJournal("applying", undefined, initialCheckpoint);
774
+ const totalActions = priorResults.length + actions.length;
775
+ const reportProgress = (message) => {
776
+ try {
777
+ context.onProgress?.({
778
+ progress: results.filter((row) => row.outcome === "applied").length,
779
+ total: totalActions,
780
+ message,
781
+ });
782
+ }
783
+ catch {
784
+ // Progress is advisory: a failing listener never stops the apply.
785
+ }
786
+ };
787
+ reportProgress(`Bootstrap plan ${args.plan.planHash.slice(0, 12)}: applying ${actions.length} of ${totalActions} action(s).`);
760
788
  try {
761
789
  for (const action of actions) {
762
790
  try {
@@ -823,6 +851,7 @@ async function executeBootstrapPlan(args, context, recovery = false, remainingAc
823
851
  stepsApplied: results.filter((row) => row.outcome === "applied").length,
824
852
  sourceHashesChecked: Object.keys(args.plan.expected.sourceHashes).length,
825
853
  notes: [
854
+ ...(carry.notes ?? []),
826
855
  "Bootstrap stopped after an authoritative action committed with derived repair effects.",
827
856
  ],
828
857
  },
@@ -849,6 +878,7 @@ async function executeBootstrapPlan(args, context, recovery = false, remainingAc
849
878
  lastCheckpoint = await checkpoint();
850
879
  activeActionId = undefined;
851
880
  await writeJournal("applying", undefined, lastCheckpoint);
881
+ reportProgress(`Applied ${action.id}.`);
852
882
  }
853
883
  catch (error) {
854
884
  const detail = error instanceof Error ? error.message : String(error);
@@ -886,6 +916,7 @@ async function executeBootstrapPlan(args, context, recovery = false, remainingAc
886
916
  sourceHashesChecked: Object.keys(args.plan.expected.sourceHashes)
887
917
  .length,
888
918
  notes: [
919
+ ...(carry.notes ?? []),
889
920
  deterministic
890
921
  ? "Bootstrap stopped at a deterministic action failure; the journal is terminal. Re-plan from the current state."
891
922
  : "Bootstrap application stopped at a repairable action failure.",
@@ -944,6 +975,7 @@ async function executeBootstrapPlan(args, context, recovery = false, remainingAc
944
975
  sourceHashesChecked: Object.keys(args.plan.expected.sourceHashes)
945
976
  .length,
946
977
  notes: [
978
+ ...(carry.notes ?? []),
947
979
  "Bootstrap application stopped before its full action graph completed.",
948
980
  ],
949
981
  },
@@ -992,6 +1024,7 @@ async function executeBootstrapPlan(args, context, recovery = false, remainingAc
992
1024
  sourceHashesChecked: Object.keys(args.plan.expected.sourceHashes)
993
1025
  .length,
994
1026
  notes: [
1027
+ ...(carry.notes ?? []),
995
1028
  "Bootstrap actions applied sequentially through the shared plan executor.",
996
1029
  ],
997
1030
  },
@@ -1016,6 +1049,23 @@ async function executeApplyPlanUnlocked(args, context, onCommitted = () => undef
1016
1049
  }
1017
1050
  return withRecoveryReport(result, recovered);
1018
1051
  }
1052
+ /**
1053
+ * The action a bootstrap process was executing when it died: the journal is
1054
+ * still `applying`, names that action as active, and holds no result for it.
1055
+ * Only then may recovery attribute drift since the last checkpoint to the
1056
+ * action and re-apply it; every other drift stays a refusal.
1057
+ */
1058
+ // implements REQ-bootstrap-apply-long-running
1059
+ function interruptedBootstrapAction(journal, actionIds) {
1060
+ const active = journal.activeActionId;
1061
+ if (journal.state !== "applying" || typeof active !== "string")
1062
+ return undefined;
1063
+ if (!actionIds.has(active))
1064
+ return undefined;
1065
+ if ((journal.results ?? []).some((row) => row.actionId === active))
1066
+ return undefined;
1067
+ return active;
1068
+ }
1019
1069
  // implements REQ-kibi-change-to-proof-plan-compiler-v2, REQ-agent-guided-migration-orchestration
1020
1070
  async function dispatchApplyPlan(args, context, onCommitted, recovered) {
1021
1071
  if ("recoveryJournalId" in args) {
@@ -1065,12 +1115,43 @@ async function dispatchApplyPlan(args, context, onCommitted, recovered) {
1065
1115
  ? recoveryWorkspace.snapshot.hash
1066
1116
  : "unavailable",
1067
1117
  };
1068
- if (liveCheckpoint.branch !== journal.checkpoint.branch ||
1118
+ const actionIds = new Set(ordered.map((action) => action.id));
1119
+ const drifted = liveCheckpoint.branch !== journal.checkpoint.branch ||
1069
1120
  liveCheckpoint.kbSnapshotId !== journal.checkpoint.kbSnapshotId ||
1070
1121
  liveCheckpoint.workspaceSnapshot !==
1071
- journal.checkpoint.workspaceSnapshot)
1122
+ journal.checkpoint.workspaceSnapshot;
1123
+ const interruptedActionId = drifted
1124
+ ? interruptedBootstrapAction(journal, actionIds)
1125
+ : undefined;
1126
+ if (drifted &&
1127
+ (interruptedActionId === undefined ||
1128
+ liveCheckpoint.branch !== journal.checkpoint.branch))
1072
1129
  throw new Error("Bootstrap recovery refused: repository state changed since the last action checkpoint");
1073
- const actionIds = new Set(ordered.map((action) => action.id));
1130
+ const recordsOf = (value) => Array.isArray(value)
1131
+ ? value.filter((row) => row !== null && typeof row === "object" && !Array.isArray(row))
1132
+ : [];
1133
+ const interruptedActions = [
1134
+ ...recordsOf(journal.interruptedActions),
1135
+ ...(interruptedActionId === undefined
1136
+ ? []
1137
+ : [
1138
+ {
1139
+ actionId: interruptedActionId,
1140
+ recoveredAt: context.clock().toISOString(),
1141
+ checkpoint: journal.checkpoint,
1142
+ liveCheckpoint,
1143
+ },
1144
+ ]),
1145
+ ];
1146
+ const carry = {
1147
+ lockReclaims: recordsOf(journal.lockReclaims),
1148
+ interruptedActions,
1149
+ notes: interruptedActionId === undefined
1150
+ ? []
1151
+ : [
1152
+ `Action ${interruptedActionId} was interrupted before its checkpoint; the state drift since the last checkpoint is attributed to it and the action was re-applied idempotently.`,
1153
+ ],
1154
+ };
1074
1155
  const applied = new Set();
1075
1156
  for (const row of journal.results ?? []) {
1076
1157
  if (typeof row.actionId !== "string" || !actionIds.has(row.actionId))
@@ -1095,7 +1176,7 @@ async function dispatchApplyPlan(args, context, onCommitted, recovered) {
1095
1176
  },
1096
1177
  ]
1097
1178
  : []
1098
- : []), onCommitted);
1179
+ : []), onCommitted, carry);
1099
1180
  }
1100
1181
  return executeSourceRecovery(args, context, onCommitted);
1101
1182
  }
@@ -1874,13 +1955,74 @@ function withRecoveryReport(result, recovered) {
1874
1955
  }
1875
1956
  return { content, structuredContent: result.structuredContent };
1876
1957
  }
1958
+ /**
1959
+ * The journal path of the bootstrap recovery this call requests, when that
1960
+ * journal is still `applying` (its process died mid-plan). Only such a
1961
+ * recovery may reclaim a lock whose holder process is dead.
1962
+ */
1963
+ // implements REQ-bootstrap-apply-long-running
1964
+ async function applyingBootstrapJournal(args, context) {
1965
+ if (!context.fs || !("recoveryJournalId" in args))
1966
+ return undefined;
1967
+ if (!/^bootstrap-[a-f0-9]{16}$/.test(args.recoveryJournalId))
1968
+ return undefined;
1969
+ const journalPath = path.join(context.workspaceRoot, ".kb", "recovery", `${args.recoveryJournalId}.json`);
1970
+ try {
1971
+ const journal = JSON.parse(await context.fs.readFile(journalPath));
1972
+ return journal.kind === "bootstrap" && journal.state === "applying"
1973
+ ? journalPath
1974
+ : undefined;
1975
+ }
1976
+ catch {
1977
+ return undefined;
1978
+ }
1979
+ }
1980
+ /** Record reclaimed dead lock holders in the bootstrap journal. */
1981
+ // implements REQ-bootstrap-apply-long-running
1982
+ async function recordBootstrapLockReclaims(context, journalPath, reclaimed) {
1983
+ if (!context.fs)
1984
+ return;
1985
+ const journal = JSON.parse(await context.fs.readFile(journalPath));
1986
+ const earlier = Array.isArray(journal.lockReclaims)
1987
+ ? journal.lockReclaims
1988
+ : [];
1989
+ await context.fs.writeFile(journalPath, `${JSON.stringify({
1990
+ ...journal,
1991
+ lockReclaims: [
1992
+ ...earlier,
1993
+ ...reclaimed.map((row) => ({
1994
+ holderPid: row.pid,
1995
+ holderAcquiredAt: new Date(row.acquiredAt).toISOString(),
1996
+ reclaimedAt: new Date(row.reclaimedAt).toISOString(),
1997
+ reclaimedByPid: row.reclaimedByPid,
1998
+ })),
1999
+ ],
2000
+ }, null, 2)}\n`);
2001
+ }
1877
2002
  // implements REQ-agent-guided-migration-orchestration, REQ-cli-canonical-runtime, REQ-KIBI-BOOTSTRAP-PLAN, REQ-kibi-change-to-proof-plan-compiler-v2, REQ-kibi-predicate-vocabulary-migration
1878
2003
  export async function executeApplyPlan(args, context) {
1879
2004
  if (isBootstrapApplyArgs(args))
1880
2005
  preflightBootstrapActions(validateBootstrapPlanShape(args), context);
1881
2006
  if (!context.fs || context.sourceMutationLockHeld === true)
1882
2007
  return executeApplyPlanUnlocked(args, context);
1883
- const lock = await acquireWorkspaceMutationLock(context.workspaceRoot);
2008
+ const applyingJournal = await applyingBootstrapJournal(args, context);
2009
+ const lock = await acquireWorkspaceMutationLock(context.workspaceRoot, applyingJournal === undefined
2010
+ ? {}
2011
+ : {
2012
+ // The interrupted bootstrap this call recovers left its lock
2013
+ // behind; a dead holder's lock is reclaimed and recorded instead
2014
+ // of demanding operator recovery. A live holder still blocks.
2015
+ reclaimDeadHolder: () => true,
2016
+ });
2017
+ if (applyingJournal !== undefined && lock.reclaimed !== undefined) {
2018
+ try {
2019
+ await recordBootstrapLockReclaims(context, applyingJournal, lock.reclaimed);
2020
+ }
2021
+ catch (error) {
2022
+ releaseWorkspaceMutationLock(lock, { error });
2023
+ throw error;
2024
+ }
2025
+ }
1884
2026
  let operationFailure;
1885
2027
  let committed = false;
1886
2028
  try {
@@ -1717,7 +1717,7 @@ export declare const OPERATION_CATALOG: readonly [{
1717
1717
  readonly type: "string";
1718
1718
  readonly enum: readonly string[];
1719
1719
  };
1720
- readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.";
1720
+ readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, related-requirement-unmodeled, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.";
1721
1721
  };
1722
1722
  readonly sourceFiles: {
1723
1723
  readonly type: "array";
@@ -2103,7 +2103,12 @@ export declare const OPERATION_CATALOG: readonly [{
2103
2103
  readonly recoveryJournalId: {
2104
2104
  readonly type: "string";
2105
2105
  readonly pattern: "^[A-Za-z0-9._-]+$";
2106
- readonly description: "Typed recovery journal identifier returned by a committed_with_repairs result or a PLAN_APPLY_RECOVERY_REQUIRED error. Recovery replays only the immutable journal and never the original plan request; a compile-plan journal (plan-apply-*) is completed or rolled back deterministically and reports which.";
2106
+ readonly description: "Typed recovery journal identifier returned by a committed_with_repairs result or a PLAN_APPLY_RECOVERY_REQUIRED error. Recovery replays only the immutable journal and never the original plan request; a compile-plan journal (plan-apply-*) is completed or rolled back deterministically and reports which. A bootstrap journal left `applying` by a process that died mid-action is resumed without edits: the interrupted action is re-applied and a source lock held by the dead process is reclaimed and recorded in the journal.";
2107
+ };
2108
+ readonly async: {
2109
+ readonly type: "boolean";
2110
+ readonly default: false;
2111
+ readonly description: "MCP only. When true, start the apply as a background job and return a kibi.job.v1 receipt immediately instead of holding the request open; poll kb_job_status with the returned jobId for the final result. Use for large bootstrap plans (hundreds of actions) that can outlast a client's request timeout. The MCP server registers kb_job_status only when KIBI_MCP_OPTIONAL_TOOLS includes it; otherwise async applies synchronously. A synchronous apply sends notifications/progress after each bootstrap action when the request carries a progressToken. The CLI ignores this field.";
2107
2112
  };
2108
2113
  };
2109
2114
  };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/public/operations/catalog.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,CAAA;CAAE,EAAE,EAClD,YAAY,EAAE,MAAM,GACnB,IAAI,CAIN;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,SAAS,eAAe,EAAE,GAClC,SAAS,0BAA0B,EAAE,CAoBvC"}
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/public/operations/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,oEAAoE;AACpE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAsZpE;;uEAEuE;AACvE,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,mBAAmB,GAC1B,mBAAmB,CAMrB;AAsWD,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAa3C,CAAC;AAmDF,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,EAClD,YAAY,EAAE,MAAM,GACnB,IAAI,CAIN;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,SAAS,eAAe,EAAE,GAClC,SAAS,0BAA0B,EAAE,CAoBvC"}
@@ -306,8 +306,8 @@ const impactReviewAuthorship = objectData({
306
306
  "recordTemplate",
307
307
  ]);
308
308
  /**
309
- * kibi.job.v1 receipt returned by async-mode operations (kb_check with
310
- * `async: true`) instead of the synchronous payload. Agents poll
309
+ * kibi.job.v1 receipt returned by async-mode operations (kb_check and
310
+ * kb_apply_plan with `async: true`) instead of the synchronous payload. Agents poll
311
311
  * kb_job_status with the jobId. Declared as a union member of the operation
312
312
  * data contract so hosts validating tool output against the declared schema
313
313
  * accept the receipt without weakening the synchronous payload contract.
@@ -460,11 +460,19 @@ const BASE_DATA_SCHEMAS = {
460
460
  "provide_argument_bindings",
461
461
  "resolve_schema_reference",
462
462
  "record_ontology_gap",
463
+ "review_nonlogical",
464
+ "already_grounded",
463
465
  ],
464
466
  },
465
467
  recommendedPredicateSchema: { type: ["object", "null"] },
466
468
  applyPlan: recordArray,
467
469
  relationshipPlan: { type: ["object", "null"] },
470
+ relationshipTarget: {
471
+ type: ["string", "null"],
472
+ description: "The planned predicate fact id (FACT-PRED-...) that a requires_predicate link must target. Candidate ids (SUGGEST-...) are never relationship targets.",
473
+ },
474
+ existingGrounding: recordArray,
475
+ replacementPlan: { type: ["object", "null"] },
468
476
  warnings: stringArray,
469
477
  }),
470
478
  kb_plan_bootstrap: objectData({
@@ -599,26 +607,32 @@ const BASE_DATA_SCHEMAS = {
599
607
  diagnostics: stringArray,
600
608
  capabilityPlugins: recordValue,
601
609
  }),
602
- kb_apply_plan: objectData({
603
- version: stringValue,
604
- outcome: stringValue,
605
- planHash: stringValue,
606
- changedEntities: integerValue,
607
- changedRelationships: integerValue,
608
- changedPaths: stringArray,
609
- finalSnapshots: recordValue,
610
- validationSummary: recordValue,
611
- recoveryJournalId: { type: ["string", "null"] },
612
- deleted: integerValue,
613
- sourcePaths: stringArray,
614
- actionResults: recordArray,
615
- notes: stringArray,
616
- remainingPlan: recordValue,
617
- closeout: recordValue,
618
- status: stringValue,
619
- effectFailures: recordArray,
620
- nextActions: recordArray,
621
- }),
610
+ kb_apply_plan: {
611
+ description: "Synchronous apply result, or a kibi.job.v1 receipt when async:true detached the apply into a background job (poll kb_job_status with the jobId).",
612
+ anyOf: [
613
+ objectData({
614
+ version: stringValue,
615
+ outcome: stringValue,
616
+ planHash: stringValue,
617
+ changedEntities: integerValue,
618
+ changedRelationships: integerValue,
619
+ changedPaths: stringArray,
620
+ finalSnapshots: recordValue,
621
+ validationSummary: recordValue,
622
+ recoveryJournalId: { type: ["string", "null"] },
623
+ deleted: integerValue,
624
+ sourcePaths: stringArray,
625
+ actionResults: recordArray,
626
+ notes: stringArray,
627
+ remainingPlan: recordValue,
628
+ closeout: recordValue,
629
+ status: stringValue,
630
+ effectFailures: recordArray,
631
+ nextActions: recordArray,
632
+ }),
633
+ jobReceiptData,
634
+ ],
635
+ },
622
636
  kb_ingest_proof: objectData({
623
637
  artifactDigest: stringValue,
624
638
  environmentHash: stringValue,
@@ -165,6 +165,14 @@ export interface NetworkPort {
165
165
  fetch(input: string | URL, init?: RequestInit): Promise<Response>;
166
166
  }
167
167
  export type Clock = () => Date;
168
+ /** One progress report from a long-running operation (for example one applied plan action). */
169
+ export type OperationProgress = Readonly<{
170
+ progress: number;
171
+ total?: number;
172
+ message?: string;
173
+ }>;
174
+ /** Host callback for progress reports; MCP forwards them as notifications/progress. */
175
+ export type ProgressReporter = (progress: OperationProgress) => void;
168
176
  export type RuntimeOptions = {
169
177
  readonly workspaceRoot?: string;
170
178
  readonly signal?: AbortSignal;
@@ -175,6 +183,8 @@ export type RuntimeOptions = {
175
183
  readonly net?: NetworkPort;
176
184
  /** Optional injectable capability registry (or lazy factory). */
177
185
  readonly plugins?: OperationPlugins;
186
+ /** Optional progress sink for long-running operations. */
187
+ readonly onProgress?: ProgressReporter;
178
188
  };
179
189
  export type OperationContext = {
180
190
  readonly workspaceRoot: string;
@@ -198,6 +208,8 @@ export type OperationContext = {
198
208
  readonly plugins?: OperationPlugins;
199
209
  /** Lazily materialize the workspace capability registry. */
200
210
  readonly ensurePlugins?: () => Promise<CapabilityRegistry>;
211
+ /** Progress sink a long-running operation reports to; absent when the host does not listen. */
212
+ readonly onProgress?: ProgressReporter;
201
213
  };
202
214
  export interface RuntimeOperationSpec<TInput = unknown, TResult = unknown> {
203
215
  readonly name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-types.d.ts","sourceRoot":"","sources":["../../../src/public/operations/runtime-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAA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AC5E;AAGD,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,OAAO,EACpD,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3C,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,OAAO,CAAC,CAclB"}
@@ -1,5 +1,5 @@
1
1
  /** Every selectable kb_check rule name, registry order. */
2
2
  export declare const SELECTABLE_RULE_NAMES: readonly string[];
3
3
  /** Comma-separated "Allowed:" fragment for the kb_check rules description. */
4
- export declare const SELECTABLE_RULES_ALLOWED = "must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged";
4
+ export declare const SELECTABLE_RULES_ALLOWED = "must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, related-requirement-unmodeled, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged";
5
5
  //# sourceMappingURL=check-rules.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-rules.generated.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/check-rules.generated.ts"],"names":[],"mappings":"AAUA,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EA4ClD,CAAC;AAGF,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,+7BACy5B,CAAC"}
1
+ {"version":3,"file":"check-rules.generated.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/check-rules.generated.ts"],"names":[],"mappings":"AAUA,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EA6ClD,CAAC;AAGF,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,89BACw7B,CAAC"}
@@ -35,6 +35,7 @@ export const SELECTABLE_RULE_NAMES = [
35
35
  "predicate-verifiability",
36
36
  "strict-readiness",
37
37
  "semantic-completeness",
38
+ "related-requirement-unmodeled",
38
39
  "proof-contract-symbols",
39
40
  "entity-id-style",
40
41
  "domain-redundancy",
@@ -55,4 +56,4 @@ export const SELECTABLE_RULE_NAMES = [
55
56
  ];
56
57
  // implements REQ-006
57
58
  /** Comma-separated "Allowed:" fragment for the kb_check rules description. */
58
- export const SELECTABLE_RULES_ALLOWED = "must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged";
59
+ export const SELECTABLE_RULES_ALLOWED = "must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, related-requirement-unmodeled, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged";
@@ -12,7 +12,7 @@ export declare const checkSpec: {
12
12
  readonly type: "string";
13
13
  readonly enum: readonly string[];
14
14
  };
15
- readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.";
15
+ readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, domain-contradictions, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness, related-requirement-unmodeled, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.";
16
16
  };
17
17
  readonly sourceFiles: {
18
18
  readonly type: "array";
@@ -283,7 +283,12 @@ export declare const applyPlanSpec: {
283
283
  readonly recoveryJournalId: {
284
284
  readonly type: "string";
285
285
  readonly pattern: "^[A-Za-z0-9._-]+$";
286
- readonly description: "Typed recovery journal identifier returned by a committed_with_repairs result or a PLAN_APPLY_RECOVERY_REQUIRED error. Recovery replays only the immutable journal and never the original plan request; a compile-plan journal (plan-apply-*) is completed or rolled back deterministically and reports which.";
286
+ readonly description: "Typed recovery journal identifier returned by a committed_with_repairs result or a PLAN_APPLY_RECOVERY_REQUIRED error. Recovery replays only the immutable journal and never the original plan request; a compile-plan journal (plan-apply-*) is completed or rolled back deterministically and reports which. A bootstrap journal left `applying` by a process that died mid-action is resumed without edits: the interrupted action is re-applied and a source lock held by the dead process is reclaimed and recorded in the journal.";
287
+ };
288
+ readonly async: {
289
+ readonly type: "boolean";
290
+ readonly default: false;
291
+ readonly description: "MCP only. When true, start the apply as a background job and return a kibi.job.v1 receipt immediately instead of holding the request open; poll kb_job_status with the returned jobId for the final result. Use for large bootstrap plans (hundreds of actions) that can outlast a client's request timeout. The MCP server registers kb_job_status only when KIBI_MCP_OPTIONAL_TOOLS includes it; otherwise async applies synchronously. A synchronous apply sends notifications/progress after each bootstrap action when the request carries a progressToken. The CLI ignores this field.";
287
292
  };
288
293
  };
289
294
  };
@@ -1 +1 @@
1
- {"version":3,"file":"planning.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/planning.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,EACjB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAGL,oBAAoB,EACrB,MAAM,gDAAgD,CAAC;AAGxD,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,oBAAoB,GACrB,MAAM,gDAAgD,CAAC;AACxD,YAAY,EACV,aAAa,EACb,eAAe,GAChB,MAAM,4CAA4C,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAGtF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4KsC,CAAC;AAGrE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDwC,CAAC"}
1
+ {"version":3,"file":"planning.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/planning.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,EACjB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAGL,oBAAoB,EACrB,MAAM,gDAAgD,CAAC;AAGxD,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,oBAAoB,GACrB,MAAM,gDAAgD,CAAC;AACxD,YAAY,EACV,aAAa,EACb,eAAe,GAChB,MAAM,4CAA4C,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAGtF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4KsC,CAAC;AAGrE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DwC,CAAC"}
@@ -198,7 +198,12 @@ export const applyPlanSpec = {
198
198
  recoveryJournalId: {
199
199
  type: "string",
200
200
  pattern: "^[A-Za-z0-9._-]+$",
201
- description: "Typed recovery journal identifier returned by a committed_with_repairs result or a PLAN_APPLY_RECOVERY_REQUIRED error. Recovery replays only the immutable journal and never the original plan request; a compile-plan journal (plan-apply-*) is completed or rolled back deterministically and reports which.",
201
+ description: "Typed recovery journal identifier returned by a committed_with_repairs result or a PLAN_APPLY_RECOVERY_REQUIRED error. Recovery replays only the immutable journal and never the original plan request; a compile-plan journal (plan-apply-*) is completed or rolled back deterministically and reports which. A bootstrap journal left `applying` by a process that died mid-action is resumed without edits: the interrupted action is re-applied and a source lock held by the dead process is reclaimed and recorded in the journal.",
202
+ },
203
+ async: {
204
+ type: "boolean",
205
+ default: false,
206
+ description: "MCP only. When true, start the apply as a background job and return a kibi.job.v1 receipt immediately instead of holding the request open; poll kb_job_status with the returned jobId for the final result. Use for large bootstrap plans (hundreds of actions) that can outlast a client's request timeout. The MCP server registers kb_job_status only when KIBI_MCP_OPTIONAL_TOOLS includes it; otherwise async applies synchronously. A synchronous apply sends notifications/progress after each bootstrap action when the request carries a progressToken. The CLI ignores this field.",
202
207
  },
203
208
  },
204
209
  },
@@ -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.4.0
5
+ version: 3.5.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -38,13 +38,13 @@ Seed branch-local Kibi knowledge from cited product intent, without creating a p
38
38
  5. **Narrow with filters, not caps.** Read the `tldr` and the `Suppressed candidates by reason` diagnostic before individual rows. If the output is too large or mostly tooling or metadata, re-preview with `entityTypes` or declared `sourceOfTruthPaths`. Generic Markdown is off by default once you declare intent claims; set `includeGenericMarkdown: true` only for repository docs the human named. Keep confirmed intent claims: they are never capped and never use `maxCandidates`, which is the separate budget for candidates Kibi discovers (symbols, tests, repository docs). Raise it only when discovered candidates you need are `over_limit`. Read the per-source `Knowledge source …` diagnostics; if a source has claims not planned, report them per source and restate them before approval, or carry them to step 11 with their citation.
39
39
  6. **Request approval.** Show the complete `structuredContent.plan`, the full hash (never abbreviated), which candidates cite which sources, what was omitted, the open questions and declared conflicts it records for the human to decide, and any claim that contradicts code. If you find an undeclared contradiction now, add it to `conflicts` and preview again rather than resolving it. With no answer, stop as "awaiting approval." If declined, replan and ask again with the new hash.
40
40
  7. **Pre-apply check.** The plan you send must equal the returned plan: every top-level field, including `suppressedCandidates`, `diagnostics`, `candidates`, `actions`, and `expected`, with every array the same length and order. Never rebuild it from preview fields. If the host cannot pass the exact object, stop and say so.
41
- 8. **Apply once** with `kb_apply_plan`, the exact plan, and `approvedPlanHash`. The operation owns dependency ordering, source-first writes, sequential mutation, and recovery journaling.
41
+ 8. **Apply once** with `kb_apply_plan`, the exact plan, and `approvedPlanHash`. The operation owns dependency ordering, source-first writes, sequential mutation, and recovery journaling. A plan with hundreds of actions can run for minutes: pass a `progressToken` (Kibi sends progress after each action) with a client that resets its timeout on progress, or pass `async: true` and poll `kb_job_status` when the host has it. If the apply is cut off, call `kb_apply_plan` with only the `recoveryJournalId` from `kb_status` or the error; it resumes an action interrupted mid-write and reclaims a lock left by a dead process. Never edit or delete `.kb/recovery` files; if recovery is refused, stop and report it.
42
42
  9. **Read back** with `kb_query` and `kb_search` to confirm writes and citations.
43
43
  10. **Close out** with `kb_check`, then `kb_status`.
44
44
  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:
45
45
  - **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).
46
- - **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, `expects`, and `assumes` links to the `property_value` facts whose values the scenario relies on, 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"},"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.
47
- - **Predicates.** Run `kb_model` with `mode: "predicates"` on each persisted requirement and apply a returned plan with `requires_predicate`, or record the `review:ontology-gap` observation it returns.
46
+ - **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, `expects`, the scenario prose in `document.body` (never in `properties`), and `assumes` links to the `property_value` facts whose values the scenario relies on, 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.
47
+ - **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`. `already_grounded` means the bootstrap already grounded that claim; leave it unless the human wants the `replacementPlan` swap. Count what `kb_query` shows afterwards, not the calls you made.
48
48
  - **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`.
49
49
  Finish with `kb_check` and `kb_status`.
50
50
  12. **Report** calls made, result statuses, applied scope, what step 11 authored, gaps, and follow-ups. Classify as complete, partial, awaiting approval, or blocked.
@@ -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.4.0
5
+ version: 2.5.0
6
6
  kibiCompatibility: ">=1.0.0"
7
7
  tags:
8
8
  - kibi
@@ -263,10 +263,15 @@ prose. Bind them from the claim's own words and call again with the same
263
263
  ```
264
264
 
265
265
  When the retry returns `apply_requires_predicate`, write its `applyPlan` fact,
266
- then the `relationshipPlan` `requires_predicate` row. Record an ontology gap
266
+ then the `relationshipPlan` `requires_predicate` row; its target is
267
+ `relationshipTarget` (the planned `FACT-PRED-…` id), never a candidate's
268
+ `SUGGEST-…` id. `already_grounded` means the requirement already grounds the
269
+ claim (for example a bootstrap `requires_property` fact): a second grounding
270
+ link would fail, so keep it or follow `replacementPlan`. Record an ontology gap
267
271
  only when no returned schema fits the claim, not because bindings were missing.
268
- A review note is an observation that quotes its claim without `claim_key`:
269
- `{"type":"fact","id":"FACT-review-<area>-<behavior>","properties":{"title":"Review: ...","status":"active","fact_kind":"observation","text_ref":"<sourceId>:<reference>","tags":["review:invalid-write"],"claim_text":"<the claim>"}}`.
272
+ A review note is an observation that quotes its claim without `claim_key`, with
273
+ its prose in `document.body`:
274
+ `{"type":"fact","id":"FACT-review-<area>-<behavior>","properties":{"title":"Review: ...","status":"active","fact_kind":"observation","text_ref":"<sourceId>:<reference>","tags":["review:invalid-write"],"claim_text":"<the claim>"},"document":{"body":"<why it needs review, who raised it, the source>"}}`.
270
275
 
271
276
  To add `specified_by` (or another relationship) to an existing requirement,
272
277
  upsert it with its stored `title`, a `status` and the relationship only; Kibi
@@ -128,6 +128,11 @@ export declare const GENERATED_RULES: readonly [{
128
128
  readonly description: "Every inventoried assertive proposition is modeled or explicitly classified";
129
129
  readonly enforcementClass: "migration";
130
130
  readonly category: "integrity";
131
+ }, {
132
+ readonly name: "related-requirement-unmodeled";
133
+ readonly description: "A current requirement with unresolved (missing) propositions that relates_to a current requirement modeled with strict property or ground predicate facts; its claims are never compared by domain-contradictions until they are modeled against the same subject or predicates, or it supersedes that requirement";
134
+ readonly enforcementClass: "canonical";
135
+ readonly category: "integrity";
131
136
  }, {
132
137
  readonly name: "proof-contract-symbols";
133
138
  readonly description: "Detect unresolved required_proofs.symbol_id values, type-shape required proofs, and proof_bindings.source_file disagreement with the named symbol sourceFile";