@stalfh233/omc-cli 0.6.73 → 0.6.75

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/discovery.js CHANGED
@@ -141,6 +141,50 @@ export function commandIndex(registry) {
141
141
  hint: "裸 commands 是路由索引,不是目录:先按能力展开,别直接拉 --json。",
142
142
  };
143
143
  }
144
+ /**
145
+ * `omc commands --kind <read|write|meta>` — the read/write index (issue 03).
146
+ *
147
+ * 摩擦现场(2026-11-18):为找「读表单/规则/列表视图」试了 7 个 --filter 关键词
148
+ * (≈21.7KB / 7 轮),仍然漏掉 listview.get —— 它只在 `omc capability listview`
149
+ * 可见。kind 是调用方**已经知道**的维度,却是唯一没有查询面的维度。
150
+ *
151
+ * 形状与裸 `commands` 同判例:默认是索引(能力 → 工具名{必填}),完整行是
152
+ * `--json` 的一步。65 个读工具 ≈2.6KB ≈ 7 次 --filter 的 1/8,且一次到位。
153
+ *
154
+ * 编码取舍:`"rule.list{schemaCode}"`(字符串)胜过 `{name, requiredArgs}`
155
+ * 对象(4.4KB)与平铺行(7.8KB)。`{`/`}` 不可能出现在工具名里,解析确定;
156
+ * 与既有 `lanes:"lane:count …"`、`capabilities:"id:count …"` 同一族体例。
157
+ */
158
+ export function commandKindIndex(registry, kind) {
159
+ const index = capabilityRouteIndex(registry);
160
+ // 组顺序 = 能力呈现顺序(routes 的顺序就是 `omc capabilities` 的呈现顺序),
161
+ // 未绑 lane 的治理读工具归 "(unbound)"(如 request.status)。
162
+ const presentation = index.routes.map((route) => route.id);
163
+ const tools = registry.filter((tool) => tool.kind === kind);
164
+ const groups = new Map();
165
+ for (const tool of tools) {
166
+ const key = tool.lane === undefined ? "(unbound)" : (index.routeByLane.get(tool.lane)?.id ?? String(tool.lane));
167
+ groups.set(key, [...(groups.get(key) ?? []), `${tool.name}{${requiredArgs(tool).join(",")}}`]);
168
+ }
169
+ const ordered = [...groups.entries()].sort((left, right) => {
170
+ const li = presentation.indexOf(left[0]);
171
+ const ri = presentation.indexOf(right[0]);
172
+ return (li < 0 ? presentation.length : li) - (ri < 0 ? presentation.length : ri) || left[0].localeCompare(right[0]);
173
+ });
174
+ return {
175
+ discovery: { authoritative: DISCOVERY_AUTHORITY.authoritative, route: DISCOVERY_AUTHORITY.route },
176
+ kind,
177
+ total: tools.length,
178
+ capabilities: ordered.map(([id, entries]) => ({ id, tools: entries })),
179
+ // 花括号是唯一编码,必须在同一信封里自解释(否则 `rule.get{}` 会被读成「不用参数」)。
180
+ legend: "tool{args}=工具+必填参数({} 无必填;条件必填/定位键以 omc describe 为准)",
181
+ next: {
182
+ rows: `omc commands --kind ${kind} --json(完整行 lane/capability/recipes)`,
183
+ detail: "omc describe <tool>(params/firstCall)",
184
+ },
185
+ hint: `全部${kind === "read" ? "只读" : kind}工具一屏列全:别用 --filter 逐个试词`,
186
+ };
187
+ }
144
188
  /**
145
189
  * `omc commands --capability <id>` (r59 M2-1): one capability family, as a
146
190
  * bounded tool index — name + one-line brief + recipe ids.
@@ -151,13 +195,15 @@ export function commandIndex(registry) {
151
195
  * lane → tools, so "which tools does 数据/流程/权限 have, and what do they do"
152
196
  * costs ~1–3 KB instead of the catalogue.
153
197
  */
154
- export function commandCapabilitySlice(registry, capabilityId) {
198
+ export function commandCapabilitySlice(registry, capabilityId, options = {}) {
155
199
  const resolved = resolveCapabilityId(capabilityId);
156
200
  const index = capabilityRouteIndex(registry);
157
201
  const route = resolved === undefined ? undefined : index.routes.find((entry) => entry.id === resolved);
158
202
  if (route === undefined)
159
203
  return undefined;
160
- const tools = registry.filter((tool) => (tool.lane ?? null) === route.lane);
204
+ // `--kind` narrows the family in place (issue 03); `toolCount` follows the
205
+ // filtered width, so "listview has 2 read tools" is what the caller sees.
206
+ const tools = registry.filter((tool) => (tool.lane ?? null) === route.lane && (options.kind === undefined || tool.kind === options.kind));
161
207
  // Briefs are the point of this face, but a 38-tool family would pay ~4 KB
162
208
  // just for prose. Above this width the names+recipes still let the caller pick
163
209
  // and `describe <tool>` is the one deliberate step for the rest.
@@ -798,8 +798,9 @@ function goalRouteInner(registry, goal) {
798
798
  const readish = mode === "read" || mode === "scout";
799
799
  // r60c-F8(真机复现):「按状态分组统计单据条数」被 cue「分组」误路由到 app
800
800
  // 写面(app.create/update/delete,write:true)——纯读问句拿到写工具是危险误路由。
801
- // 聚合/计数问句的正确答案:data 能力**没有 group-by 工具**,诚实指路
802
- // data.list 拉全量 + `--jq` 投影自行计数;跨模型/大结果集才涉及报表章节。
801
+ // 聚合/计数问句的正确答案:data 能力**没有 group-by 工具**,指路
802
+ // size:1+filter→total(r78 步 2:平台无 count/group-by 端点,但 total 是精确的
803
+ // 服务端过滤计数——比拉全量本地数便宜一个数量级);sum/avg 才拉列。
803
804
  // 放在能力打分前,聚合词不再落进任何写阶梯(cue「分组」已从 app 移除)。
804
805
  // r70 探针02-F11:前提曾依赖 readish(mode 已判 read)——「把客户模型的数据按
805
806
  // **创建**人统计条数」被 formula 字段 cue 抢判 build/composer(问公式字段=写面),
@@ -823,7 +824,7 @@ function goalRouteInner(registry, goal) {
823
824
  const dataRoute = routeById.get("data");
824
825
  if (dataRoute !== undefined) {
825
826
  const readTools = readToolsInLane(registry, dataRoute.lane);
826
- const action = readTools.includes("data.list") ? "omc call data.list --args '{\"schemaCode\":\"<模型code>\",\"size\":200}' --jq '.result.items[]'" : "omc commands --capability data";
827
+ const action = readTools.includes("data.list") ? "omc call data.list --args '{\"schemaCode\":\"<模型code>\",\"size\":1,\"filter\":{\"op\":\"eq\",\"field\":\"<字段>\",\"value\":\"<值>\"}}' --jq '.result.total'" : "omc commands --capability data";
827
828
  return {
828
829
  status: "ok",
829
830
  goal,
@@ -834,7 +835,7 @@ function goalRouteInner(registry, goal) {
834
835
  route: {
835
836
  capability: "data",
836
837
  lane: dataRoute.lane,
837
- note: "平台没有 group-by/聚合工具:小结果集用 data.list 拉全量(filter 收窄 + --jq 投影取分组列)后自行计数;跨模型汇总/定时聚合才涉及 report 章节或字段计算(datarule type2)。本路由只读。",
838
+ note: "平台没有 group-by:**计数/分组计数用 data.list size:1 + filter 只读 total**(服务端精确计数,~1.3KB,不拉行);分组=值域×count,值域从 field.list options/字典元数据取;sum/avg 才拉列(all:true cap 1000,超出分片并如实标 complete:false);跨模型/持久看板归 report,写时计算归 datarule type2。本路由只读。",
838
839
  readTools,
839
840
  readiness: DISCOVERY_AUTHORITY.readiness,
840
841
  firstCommands: [action],
@@ -843,9 +844,9 @@ function goalRouteInner(registry, goal) {
843
844
  },
844
845
  firstAnswer: {
845
846
  state: "needs-input",
846
- question: "要统计哪个模型(schemaCode 或业务名)?按哪个字段分组?",
847
+ question: "要统计哪个模型(schemaCode 或业务名)?按哪个字段分组/什么条件?",
847
848
  action,
848
- why: "聚合/计数是纯读问句:data 能力无 group-by 工具,data.list 拉全量 + --jq 投影后本地计数是正路(大结果集见 report 章节)",
849
+ why: "计数用 size:1+filter→total(服务端精确计数、无需拉行);分组计数=值域×count(值域从 field.list/字典元数据取);sum/avg 才需要拉列(all:true cap 1000)",
849
850
  },
850
851
  };
851
852
  }
package/dist/graph.js CHANGED
@@ -1161,6 +1161,121 @@ function openGraphIndex(selector = {}) {
1161
1161
  throw error instanceof GraphIndexError ? error : new GraphIndexUnreadableError(`索引不可读(schema 不匹配或文件损坏):${error instanceof Error ? error.message : String(error)};重跑 omc graph pull`);
1162
1162
  }
1163
1163
  }
1164
+ export const GRAPH_NOT_INDEXED_GRANULARITIES = Object.freeze([
1165
+ Object.freeze({
1166
+ face: "service.method",
1167
+ zh: "服务方法级未索引:索引只到服务 code(methodMapping.serviceCode 边);规则的 methodMapping.serviceMethodCode(如 addOrderLedger)不建边、也不在 services 表——按方法名 0 命中≠没人调用",
1168
+ affects: Object.freeze([
1169
+ "kind=service 按方法码/方法名的 references/impact(含 explore)",
1170
+ "「这方法还有谁在调/能不能删」类结论",
1171
+ ]),
1172
+ how: "逐条读规则体:omc call rule.list --args '{\"schemaCode\":\"<模型>\"}' → omc call rule.get --args '{\"schemaCode\":\"<模型>\",\"ruleCode\":\"<规则>\"}',看 BIZ_ACTION 节点的 methodMapping.serviceMethodCode",
1173
+ }),
1174
+ ]);
1175
+ const GAP_REBUILD = "omc graph pull --path <项目根> --env <env>";
1176
+ /** kind 集合来自 pullRuleGraph 的每一处 `gaps.push`(新增 kind 必须在这里登记)。 */
1177
+ export const GRAPH_GAP_GUIDE = Object.freeze({
1178
+ "field-list": Object.freeze({
1179
+ zh: "字段列表未完整拉取(该模型的已发布面与草稿面都读不到或为空)",
1180
+ affects: Object.freeze(["kind=field 的实体检索与引用面(字段实体缺席)", "form 控件边按字段清单过滤,缺字段的模型的表单控件边会被丢掉"]),
1181
+ rebuild: GAP_REBUILD,
1182
+ surfaces: Object.freeze(["entity.field", "field"]),
1183
+ }),
1184
+ "service-list": Object.freeze({
1185
+ zh: "服务列表未完整拉取(services 实体表可能不全)",
1186
+ affects: Object.freeze(["kind=service 的实体检索(按服务名找 code)", "引用面本身不依赖 services 表:服务边来自规则的 methodMapping.serviceCode"]),
1187
+ rebuild: GAP_REBUILD,
1188
+ surfaces: Object.freeze(["entity.service"]),
1189
+ }),
1190
+ "pull-task": Object.freeze({
1191
+ zh: "拉取任务内部失败(该批模型/规则的读取被中断,具体面不可知)",
1192
+ affects: Object.freeze(["受影响模型/规则的任意引用面(无法判定具体面)"]),
1193
+ rebuild: GAP_REBUILD,
1194
+ surfaces: Object.freeze(["unknown"]),
1195
+ }),
1196
+ "rule-list": Object.freeze({
1197
+ zh: "规则列表未完整拉取(该模型的 ruleList 报错)",
1198
+ affects: Object.freeze(["kind=service/model/field 的 businessrule 引用与影响面(该模型的规则全部缺席)"]),
1199
+ rebuild: GAP_REBUILD,
1200
+ surfaces: Object.freeze(["service", "model", "field"]),
1201
+ }),
1202
+ "datarule-list": Object.freeze({
1203
+ zh: "数据规则列表未完整拉取(该模型的 dataRuleList 报错)",
1204
+ affects: Object.freeze(["kind=field 的引用面(datarule 目标字段与公式 token 边缺席)", "不影响 kind=service/model 的边"]),
1205
+ rebuild: GAP_REBUILD,
1206
+ surfaces: Object.freeze(["field"]),
1207
+ }),
1208
+ "listview-list": Object.freeze({
1209
+ zh: "列表视图列表未完整拉取(该模型的 listQueryList 报错)",
1210
+ affects: Object.freeze(["kind=field 的引用面(视图列/排序/条件边缺席)"]),
1211
+ rebuild: GAP_REBUILD,
1212
+ surfaces: Object.freeze(["field"]),
1213
+ }),
1214
+ "listview-get": Object.freeze({
1215
+ zh: "单张视图详情读取失败或回读为空",
1216
+ affects: Object.freeze(["kind=field 的引用面(该视图的列/排序/条件边缺席)"]),
1217
+ rebuild: GAP_REBUILD,
1218
+ surfaces: Object.freeze(["field"]),
1219
+ }),
1220
+ "workflow-read": Object.freeze({
1221
+ zh: "流程定义读取失败(已发布端点未返回可用定义)",
1222
+ affects: Object.freeze(["kind=field 的引用面(流程路由条件与字段权限边缺席)"]),
1223
+ rebuild: GAP_REBUILD,
1224
+ surfaces: Object.freeze(["field"]),
1225
+ }),
1226
+ "form-read": Object.freeze({
1227
+ zh: "表单定义读取失败(默认表单槽未读到)",
1228
+ affects: Object.freeze(["kind=field 的引用面(表单控件边缺席)"]),
1229
+ rebuild: GAP_REBUILD,
1230
+ surfaces: Object.freeze(["field"]),
1231
+ }),
1232
+ "rule-row-id": Object.freeze({
1233
+ zh: "规则行缺少可用 rowId,无法 businessRuleGet(该规则未展开成边)",
1234
+ affects: Object.freeze(["该模型规则涉及的 service/model/field 全部引用面(这一条规则缺席)"]),
1235
+ rebuild: GAP_REBUILD,
1236
+ surfaces: Object.freeze(["service", "model", "field"]),
1237
+ }),
1238
+ "rule-get": Object.freeze({
1239
+ zh: "单条规则读取失败或回读为空(该规则未展开成边)",
1240
+ affects: Object.freeze(["该规则涉及的 service/model/field 全部引用面(这一条规则缺席)"]),
1241
+ rebuild: GAP_REBUILD,
1242
+ surfaces: Object.freeze(["service", "model", "field"]),
1243
+ }),
1244
+ "rule-graph-parse": Object.freeze({
1245
+ zh: "规则 nodeGraph 解析失败(该规则的边未提取)",
1246
+ affects: Object.freeze(["该规则涉及的 service/model/field 全部引用面(边未提取)"]),
1247
+ rebuild: GAP_REBUILD,
1248
+ surfaces: Object.freeze(["service", "model", "field"]),
1249
+ }),
1250
+ });
1251
+ /** 缺口说明;未登记的 kind 给兜底(带原始 kind,绝不静默)。 */
1252
+ export function graphGapGuide(kind) {
1253
+ return GRAPH_GAP_GUIDE[kind] ?? {
1254
+ zh: `未登记的缺口类型「${kind}」——扫描期未分类的读取失败,无法判定它影响哪一面`,
1255
+ affects: ["任意查询面(未分类缺口,按保守解释视为可能影响本次结论)"],
1256
+ rebuild: GAP_REBUILD,
1257
+ surfaces: ["unknown"],
1258
+ };
1259
+ }
1260
+ /**
1261
+ * 「这个缺口是否影响本次查询面」:true=可能让命中不完整;false=与本次查询面
1262
+ * 无关(仍如实列出,不隐藏);null=无法判定(未分类缺口),调用方按保守解释
1263
+ * 视为可能影响。判定对象是 references/impact 的命中面(实体表按被查/被解析的
1264
+ * 实体 kind 计)。
1265
+ */
1266
+ export function gapAffectsQuery(kind, kinds) {
1267
+ const surfaces = graphGapGuide(kind).surfaces;
1268
+ if (surfaces.includes("unknown"))
1269
+ return null;
1270
+ const wanted = new Set(kinds);
1271
+ for (const surface of surfaces) {
1272
+ if (wanted.has(surface))
1273
+ return true;
1274
+ if (surface.startsWith("entity.") && wanted.has(surface.slice("entity.".length)))
1275
+ return true;
1276
+ }
1277
+ return false;
1278
+ }
1164
1279
  /**
1165
1280
  * r35a-F4 / r35a-F4b(真机 2026-11-06):探针拿 `matches:[]` 差点把一个**被表单引用**
1166
1281
  * 的字段判成「可安全删除」,紧接着发现 `graph impact` 的 `totals` 全 0 也有同样误读风险。
@@ -1186,6 +1301,7 @@ export const GRAPH_COVERAGE = Object.freeze({
1186
1301
  ]),
1187
1302
  note: "零命中/全零 totals 只代表 scanned 面没有命中;notScanned 面(workflow.bindings 与 onlinejs)未扫描,不可据此判定可安全删除或无影响。form 面只扫默认表单槽(sheetCode=schemaCode),多表单模型的其它槽位未扫;workflow 只读已发布端点 get_published(未发布流程回草稿形态,照常入边);流程条件叶子只认 currentDataItem 裸码(未观察到子表/跨模型限定形态,遇到新形态会如实漏)",
1188
1303
  crossFace: "在线对照面:`omc call rule.references`(实时,仅 businessrule,不含条件叶子);本索引(离线快照,businessrule+datarule+listview+form+workflow.condition+workflow.permissions,且含规则条件叶子 rule.condition 边)——条件/表单控件/流程权限里的字段引用离线一次可答;在线面对 workflow/form 没有快查工具(逐条 workflow.get_published / form.get 才能答),离线索引是这两个面的唯一快查面",
1304
+ notIndexedGranularities: GRAPH_NOT_INDEXED_GRANULARITIES,
1189
1305
  });
1190
1306
  /**
1191
1307
  * Zero-hit disambiguation (2026-10-31 capability-test friction, hit twice in
@@ -1418,6 +1534,13 @@ export function readGraphStatus(selector = {}) {
1418
1534
  coveredApplications: summary.coverage.applicationCodes,
1419
1535
  tenantApplications: summary.coverage.tenantApplications ?? summary.coverage.applicationCodes,
1420
1536
  gaps,
1537
+ // issue 10:代号 → 中文说明 + 影响面 + 重建命令(未知 kind 有兜底,绝不静默)。
1538
+ gapDetails: gaps.map((gap) => {
1539
+ const guide = graphGapGuide(gap.kind);
1540
+ return { kind: gap.kind, ref: gap.ref, zh: guide.zh, affects: guide.affects, rebuild: guide.rebuild, ...(gap.note !== null ? { note: gap.note } : {}) };
1541
+ }),
1542
+ // issue 07:status 必须列出「未索引的粒度」,否则 0 命中会被读成「不存在」。
1543
+ notIndexedGranularities: GRAPH_NOT_INDEXED_GRANULARITIES,
1421
1544
  };
1422
1545
  }
1423
1546
  finally {
@@ -1496,7 +1619,7 @@ export function searchGraphRules(term, limit = 20, offset = 0, selector = {}) {
1496
1619
  matches: entityMatches,
1497
1620
  index: summary,
1498
1621
  ...(scoped !== null ? { resolvedScope: { schemaCode: scoped.schemaCode, code: scoped.code } } : {}),
1499
- coverage: { scanned: ["rule.code", "rule.name", "model.code", "model.name", "field.code", "field.name", "service.code", "service.name"], notScanned: ["rule.body", "workflow.bindings", "onlinejs"], answerable: ["rule.code", "rule.name", "model.code", "model.name", "field.code", "field.name", "service.code", "service.name"], mustCheckManually: [{ surface: "rule.body", why: "规则体未检索", how: "omc call rule.list --args '{\"schemaCode\":\"<x>\"}'" }, { surface: "workflow.bindings", why: "流程规则绑定未扫描,规则删除可能留下绑定", how: "omc call workflow.get_published --args '{\"workflowCode\":\"<x>\"}'" }, { surface: "onlinejs", why: "在线 JS 可能通过字符串引用字段", how: "omc call onlinejs.get --args '{\"schemaCode\":\"<x>\"}'" }], note: "检索覆盖规则与实体的 code/name;规则体、流程规则绑定与在线 JS 未检索(表单控件/流程条件与权限里的字段引用已入索引,走 references/impact)" },
1622
+ coverage: { scanned: ["rule.code", "rule.name", "model.code", "model.name", "field.code", "field.name", "service.code", "service.name"], notScanned: ["rule.body", "workflow.bindings", "onlinejs"], answerable: ["rule.code", "rule.name", "model.code", "model.name", "field.code", "field.name", "service.code", "service.name"], mustCheckManually: [{ surface: "rule.body", why: "规则体未检索", how: "omc call rule.list --args '{\"schemaCode\":\"<x>\"}'" }, { surface: "workflow.bindings", why: "流程规则绑定未扫描,规则删除可能留下绑定", how: "omc call workflow.get_published --args '{\"workflowCode\":\"<x>\"}'" }, { surface: "onlinejs", why: "在线 JS 可能通过字符串引用字段", how: "omc call onlinejs.get --args '{\"schemaCode\":\"<x>\"}'" }], note: "检索覆盖规则与实体的 code/name;规则体、流程规则绑定与在线 JS 未检索(表单控件/流程条件与权限里的字段引用已入索引,走 references/impact)", notIndexedGranularities: GRAPH_NOT_INDEXED_GRANULARITIES },
1500
1623
  ...(term.trim() !== "" && !/^[A-Za-z][A-Za-z0-9_.-]*$/.test(term.trim()) ? { note: "疑似业务词;本工具同时检索实体 name/code 与规则 code/name,引用明细请使用匹配到的 code 再查 references/impact" } : {}),
1501
1624
  ...(matches.length === 0 && entityMatches.model.total === 0 && entityMatches.field.total === 0 && entityMatches.service.total === 0
1502
1625
  ? {
@@ -20,6 +20,7 @@ export const B2_WIRE = Object.freeze({
20
20
  deleteShape: "service/delete?id=: resolve the id via get_by_code first, then delete by id, then confirm absence",
21
21
  deleteAbsenceError: "get_by_code answers 500001 业务服务不存在 when the service is gone",
22
22
  methodRowShape: "method rows decode configJson/inputParametersJson/outputParametersJson (BizServiceMethodModel string columns) and carry code/name/serviceCode/referenced; filterFlag=true would strip X-API-TenantId/X-API-AuthToken/X-API-ScenarioCode/apiType/pageIndex/pageSize and mark referenced",
23
+ methodListFace: "method.list: one bizservice/method/list_by_service_code call (filterFlag=false) returns the FULL BizServiceMethodModel rows — configJson plaintext included — so every method's url comes from configJson.url in a single read (BizServiceMethodController.java:335-345 getBizServiceMethods(serviceCode) returns the rows verbatim; EXCLUDE_PROPERTIES only shapes the parameter-model JSON). url/httpType/requestBodyType are always PRESENT keys (null for adapters with no url: DATA_SQL/DATA_TABLE/SAP/KAFKA/INTERNAL) — a missing key would read as 'not read'. filterFlag=true is the only branch that computes referenced AND it rewrites inputParametersJson (BizServiceMethodModel.java:74-77), i.e. a lossy read face, so this face never returns referenced",
23
24
  parameterFaceGate: "the rule publish dry gate (550018 checkBizRuleIsEnable→filterProertyVo) rejects a mapping whose serviceMethodParameterCode is missing from the method's declared parameter face — service.register declares it via methodInputParameters/methodOutputParameters (live 2026-09-12: parameterless shell + inputMappings → 550018)",
24
25
  readCoversExtensionMethods: "extension packages publish into the same bizservice tables via app-package import (importPackageBizService), so service.get reads back 二开-published BizMethods; adapterCode INTERNAL(6) is the local extension adapter (ProtocolAdapterType)",
25
26
  registrationShellBoundary: "a source-evidenced native adapter configuration is complete only when its adapter-specific service config is present; RESTFUL/DATA_SQL/DATA_TABLE/SAP/KAFKA also require their adapter-specific method config for a named method; SOAP methods are WSDL-discovered rather than fixed configJson; INTERNAL method creation remains extension-package import. A fully configured native method is a complete, bindable BizMethod; a name/parameter-face-only registration shell is NOT a published BizMethod and must never be bound",
@@ -69,6 +70,7 @@ export const B2_LANE_CONTRACT = Object.freeze({
69
70
  deleteShape: B2_WIRE.deleteShape,
70
71
  deleteAbsenceError: B2_WIRE.deleteAbsenceError,
71
72
  methodRowShape: B2_WIRE.methodRowShape,
73
+ methodListFace: B2_WIRE.methodListFace,
72
74
  parameterFaceGate: B2_WIRE.parameterFaceGate,
73
75
  readCoversExtensionMethods: B2_WIRE.readCoversExtensionMethods,
74
76
  registrationShellBoundary: B2_WIRE.registrationShellBoundary,
@@ -89,6 +91,7 @@ export const B2_LANE_CONTRACT = Object.freeze({
89
91
  deleteShape: Object.freeze([behaviorBinding("test/b2-method-delete.test.ts#ticket 97: service.delete reads the method list back empty", assertB2Contract)]),
90
92
  deleteAbsenceError: Object.freeze([behaviorBinding("test/b2-method-get-update.test.ts#ticket 94/95: absent method reads back as structured absence; raw method config refuses", assertB2Contract)]),
91
93
  methodRowShape: Object.freeze([behaviorBinding("test/b2-method-get-update.test.ts#ticket 94/95: method.get decodes one method", assertB2Contract)]),
94
+ methodListFace: Object.freeze([behaviorBinding("test/friction-06-method-list.test.ts#method.list returns one row per method with url from configJson.url and two wires", assertB2Contract)]),
92
95
  parameterFaceGate: Object.freeze([behaviorBinding("test/b2-rule-mapping-required.test.ts#ticket 96: required mirrors from the parameter face", assertB2Contract)]),
93
96
  readCoversExtensionMethods: Object.freeze([behaviorBinding("test/b2-writeface-codec.test.ts#ticket 92 compatibility: plain INTERNAL shell registration still works", assertB2Contract)]),
94
97
  registrationShellBoundary: Object.freeze([behaviorBinding("test/b2-rule-mapping-required.test.ts#ticket 96: a RESTFUL registration shell", assertB2Contract)]),
@@ -127,6 +130,10 @@ export const B2_LANE_CONTRACT = Object.freeze({
127
130
  scope: "method readback",
128
131
  description: "按 serviceCode + methodCode 读取单个业务集成方法;解码 configJson 与 input/output 参数面为结构化对象。单条读面:code/name/configJson/inputParameters/outputParameters 内联(参数面是本工具存在意义),其余大字段可外置到 detailArtifactId。",
129
132
  }),
133
+ "method.list": Object.freeze({
134
+ scope: "method list projection",
135
+ description: "列出单个业务集成服务的全部方法(`/bizservice/method/list_by_service_code`,filterFlag=false):一次读回每行的 `url`/`httpType`/`requestBodyType`(取自 `configJson.url`,枚举整数解码为名字)、入参/出参计数与 configKeys;`detail:true` 只把计数换参数 code 数组(0 额外 wire)。**url 恒在**——不适配 url 的适配器(DATA_SQL/DATA_TABLE/SAP/KAFKA/INTERNAL)回 null 而不是缺键。两 wire(get_by_code + 方法列表),服务不存在回 present:false。**name 是人工显示名,可能与 url 语义相反**——判「打到哪个接口」只认 url。本面不算 referenced(删方法前用 rule.references kind=service 核对)。",
136
+ }),
130
137
  "method.update": Object.freeze({
131
138
  scope: "method update readback",
132
139
  description: "原地更新业务集成方法(`/bizservice/method/update`),RESTFUL 参数 position 仅 QUERY_PARAMS|URL_VARIABLE|REQUEST_HEADER|REQUEST_BODY|PATH_PARAMS(写入名字、读回整数索引),非法项一次性全列。方法 configJson 由工具 AES 加密,参数面结构化序列化并回读;保留方法身份与规则引用。",
@@ -255,6 +262,7 @@ export function assertB2Contract() {
255
262
  assertDescriptionCarries(B2_LANE_CONTRACT, "service.register", ["bizservice/service/create", "bizservice/method/create", "500005", "inputParametersJson", "INTERNAL", "注册壳", "AES-128-ECB", "RESTFUL", "DATA_SQL", "DATA_TABLE", "SAP", "KAFKA", "SOAP", "URL_VARIABLE"]);
256
263
  assertDescriptionCarries(B2_LANE_CONTRACT, "service.update", ["service/update", "get_by_code", "serviceConfig", "serviceCategoryId", "userIdList"]);
257
264
  assertDescriptionCarries(B2_LANE_CONTRACT, "method.get", ["serviceCode", "methodCode", "configJson", "参数面"]);
265
+ assertDescriptionCarries(B2_LANE_CONTRACT, "method.list", ["list_by_service_code", "url", "configJson.url", "filterFlag=false"]);
258
266
  assertDescriptionCarries(B2_LANE_CONTRACT, "method.update", ["method/update", "AES", "参数面", "规则引用"]);
259
267
  assertDescriptionCarries(B2_LANE_CONTRACT, "method.create", ["method/create", "已存在", "方法", "service.register"]);
260
268
  assertDescriptionCarries(B2_LANE_CONTRACT, "method.delete", ["method/delete", "500108", "引用", "BizServiceMethodController"]);
@@ -11,6 +11,7 @@ export const B2_COVERAGE = declareLaneCoverage(B2_LANE_CONTRACT.lane, [
11
11
  claim("service.register", T["service.register"].scope),
12
12
  claim("service.update", T["service.update"].scope),
13
13
  claim("method.get", T["method.get"].scope),
14
+ claim("method.list", T["method.list"].scope),
14
15
  claim("method.create", T["method.create"].scope),
15
16
  claim("method.update", T["method.update"].scope),
16
17
  claim("method.delete", T["method.delete"].scope),
@@ -531,6 +531,105 @@ export function registerB2Lane(tools) {
531
531
  },
532
532
  }),
533
533
  }));
534
+ tools.push(defineTool({
535
+ name: "method.list",
536
+ search: { intents: ["方法清单", "列出方法", "服务有哪些方法", "接口清单"] },
537
+ layer: "low",
538
+ kind: "read",
539
+ lane: B2_LANE,
540
+ scope: B2_TOOLS["method.list"].scope,
541
+ description: B2_TOOLS["method.list"].description,
542
+ inputSchema: {
543
+ environment: environmentArg,
544
+ serviceCode: z.string().min(1),
545
+ keyword: z.string().optional().describe("按 code/name/url 过滤(大小写无关包含);命中的是同一个 list 面,不额外发 wire"),
546
+ detail: z.boolean().optional().describe("true=inParams/outParams 给参数 code 数组;默认只给计数(0 额外 wire,参数面本来就在 list 行里)"),
547
+ capability: capabilityArg,
548
+ },
549
+ handler: async (ctx, args, self) => governedRead(ctx, self, args, async (session) => {
550
+ // r79-w2b(issue 06):一次 `method/list_by_service_code` 就回完整
551
+ // BizServiceMethodModel(configJson 明文,含 url)——25 个方法拿 url 曾是
552
+ // service.get(diet 把 methods 压成 code|name) + 25 × method.get(每次 3 wire)。
553
+ // 两次读并行(与 service.get 同款):get_by_code 给 adapterCode(枚举解码
554
+ // 来源)与缺失语义,list 给方法行。
555
+ const serviceRead = wireCall(session, { path: ENDPOINTS.bizServiceGetByCode, query: { serviceCode: args.serviceCode } });
556
+ const methodRead = wireCall(session, { path: ENDPOINTS.bizServiceMethodList, query: { serviceCode: args.serviceCode, filterFlag: "false" } }).catch((error) => error);
557
+ let service;
558
+ try {
559
+ service = await serviceRead;
560
+ }
561
+ catch (error) {
562
+ if (isServiceAbsent(error))
563
+ return {
564
+ serviceCode: args.serviceCode,
565
+ present: false,
566
+ absent: true,
567
+ adapterCode: null,
568
+ methodsCount: 0,
569
+ methods: [],
570
+ note: "服务不存在(get_by_code 500001)——method.list 的空白只说明服务没了,不是「服务没有方法」;先 service.list 核对 serviceCode",
571
+ };
572
+ throw error;
573
+ }
574
+ const serviceRow = service.data;
575
+ const adapterCode = adapterCodeOf(serviceRow);
576
+ const outcome = await methodRead;
577
+ if (outcome instanceof Error)
578
+ throw outcome;
579
+ const rows = wireRows(outcome.data);
580
+ const codeList = (face) => Array.isArray(face)
581
+ ? face.map((parameter) => (parameter && typeof parameter === "object" ? parameter.code : undefined)).filter((code) => typeof code === "string" && code !== "")
582
+ : [];
583
+ const all = rows.map((row) => {
584
+ const config = normalizeMethodConfigReadback(adapterCode, decodeJsonColumn(row.configJson));
585
+ const configRecord = config !== null && typeof config === "object" && !Array.isArray(config) ? config : null;
586
+ const textOrNull = (value) => (typeof value === "string" && value !== "" ? value : null);
587
+ // 恒回键纪律(issue 06 附带要求):不适配 url 的适配器(DATA_SQL/DATA_TABLE/
588
+ // SAP/KAFKA/INTERNAL)回 null,不是缺键——键消失会被读成「没读到」。
589
+ const inputFace = normalizeParameterFaceReadback(adapterCode, decodeJsonColumn(row.inputParametersJson));
590
+ const outputFace = normalizeParameterFaceReadback(adapterCode, decodeJsonColumn(row.outputParametersJson));
591
+ return {
592
+ code: row.code,
593
+ name: typeof row.name === "string" ? row.name : null,
594
+ // url 是运行时真相(configJson.url);name 是人工显示名,语义可能与
595
+ // url 相反(真机实证 name=「统一入口」而 url 指旧接口)。
596
+ url: textOrNull(configRecord?.url),
597
+ httpType: textOrNull(configRecord?.httpType),
598
+ requestBodyType: textOrNull(configRecord?.requestBodyType),
599
+ inParams: args.detail === true ? codeList(inputFace) : Array.isArray(inputFace) ? inputFace.length : 0,
600
+ outParams: args.detail === true ? codeList(outputFace) : Array.isArray(outputFace) ? outputFace.length : 0,
601
+ configKeys: configRecord ? Object.keys(configRecord) : [],
602
+ };
603
+ });
604
+ const keyword = args.keyword?.trim().toLowerCase();
605
+ const methods = keyword
606
+ ? all.filter((row) => [row.code, row.name, row.url].some((value) => typeof value === "string" && value.toLowerCase().includes(keyword)))
607
+ : all;
608
+ return {
609
+ serviceCode: args.serviceCode,
610
+ adapterCode: adapterCode || null,
611
+ present: true,
612
+ methodsCount: methods.length,
613
+ ...(keyword !== undefined && keyword !== "" ? { keyword: args.keyword, totalBeforeFilter: all.length } : {}),
614
+ columnNote: "url 是运行时真相(configJson.url);name 是人工显示名,语义可能与 url 相反(实证 name=「统一入口」而 url 指旧接口)",
615
+ referencedNote: "本面不返回引用标记:filterFlag=false 保住平台注入参数但不算 referenced——删方法前用 rule.references kind=service 核对",
616
+ methods,
617
+ };
618
+ }, {
619
+ // 25 方法 > 2048B 会走通用 compact,而 `methods` 命中 CODE_NAME_LIST_KEYS
620
+ // → 被压成 code|name 对串,url 整个消失(正是本工具要修的坑)。自带
621
+ // compact 保留整行;>40 行 / >8KB 才回 methodsOmitted + artifact,不静默截断。
622
+ compact: (result) => {
623
+ const rows = Array.isArray(result.methods) ? result.methods : [];
624
+ const keep = rows.length <= 40 && Buffer.byteLength(JSON.stringify(rows), "utf8") <= 8192;
625
+ return {
626
+ ...result,
627
+ ...(keep ? {} : { methodsOmitted: true, omittedMethods: rows.length, methodsNote: "方法行超过内联预算(40 行 / 8KB)——完整行含 url/configKeys 在 detailArtifactId;用 keyword 收窄或 artifact get 取回" }),
628
+ methods: keep ? rows : [],
629
+ };
630
+ },
631
+ }),
632
+ }));
534
633
  writeTool({
535
634
  tools,
536
635
  name: "method.update",
@@ -35,7 +35,7 @@ export const RULE_NODE_GRAPH_WIRE = Object.freeze({
35
35
  schedulerSetting: "SCHEDULER 节点无时机字段,调度参数在规则行 schedulerSetting(JSON 字符串,bizRuleType:2);缺 schedulerSetting 则规则保存成功但永不触发",
36
36
  triggerDispatch: "触发分发铁律(ticket 111 源码铁证):数据新增/修改/删除只分发到预置 code 行——DomainServiceImpl.java:226-314 经 getBusinessRuleOfExecutable(schemaCode, DefaultBusinessRuleType.CREATE/UPDATE/DELETE.getCode()) 按 code 字面量精确查询,绝不扫描 bizRuleType=0 的自定义规则;自定义 ruleCode 只能由按钮 targetCode(HistoricalRuleHandler.java:116-145)、流程事件 bizActions BIZ_RULE(InstanceContext.java:421-438)或显式 executeMethod 触发;定时入口强制 bizRuleType=TIMING_TASK(2)(BizRuleScheduling.java:202-205)。要求数据事件自动触发 → 动作必须挂在预置 Create/Update/Delete 行上",
37
37
  systemNodeFamilies: "系统/流程节点 GET_LIST(dataSourceType:GET_LIST 原生列表 / BIZ_SERVICE 绑 BizMethod)、LOAD/CANCEL/AVAILABLE(isSystemNode:true)为平台预置系统节点,模板见 nodeTemplates",
38
- bizMethodMapping: `BIZ_ACTION / GET_LIST(BIZ_SERVICE) 的 methodMapping:{schemaCode,serviceCode,serviceMethodCode,methodCode?,inputMappings[],outputMappings[]};serviceCode+serviceMethodCode 是集成方法存在性对,methodCode 是模型级 BizMethod 注册槽。映射元素 = 8.6.26 MappingModel,codeType 按 int:${RULE_CODE_TYPES.map((t, i) => `${i}=${t}`).join("/")}(1=PROPERTY 须带 bizCode;0=CONST)。映射元素只校验语义键,其余键非语义透传(工具不按版本增删;index/required/displayName/bizCodeName 等 v2 键原样随行、模板不产出);required 以方法参数面为权威自动镜像(面缺席则映射保持缺席,显式矛盾本地拒绝)`,
38
+ bizMethodMapping: `BIZ_ACTION / GET_LIST(BIZ_SERVICE) 的 methodMapping:{schemaCode,serviceCode,serviceMethodCode,methodCode?,inputMappings[],outputMappings[]};serviceCode+serviceMethodCode 是集成方法存在性对,methodCode 是模型级 BizMethod 注册槽。映射元素 = 8.6.26 MappingModel,codeType 按 int:${RULE_CODE_TYPES.map((t, i) => `${i}=${t}`).join("/")}(1=PROPERTY 须带 bizCode;0=CONST);**入参计算规则 = codeType:7(EXPRESSION) + bizCode(JSON 字符串)**:bizCode 形如 {"formula":"{amount}*0.13"} 的 JSON 字符串,{字段code} 引用;平台按 JSON.parse(bizCode).formula 求值(r79 真机 1.1.25:qty=3/price=7 → 服务收到 21.00);不是 expressionValue、也不是对象,缺失/空/非 JSON/无 formula 拒 rule-graph-bizaction-expression-missing——常量/字段/计算规则三选一。映射元素只校验语义键,其余键非语义透传(工具不按版本增删;index/required/displayName/bizCodeName 等 v2 键原样随行、模板不产出);required 以方法参数面为权威自动镜像(面缺席则映射保持缺席,显式矛盾本地拒绝)`,
39
39
  bizMethodValidation: "rule.save 写前 wire 校验:图内每个 methodMapping 的服务+方法必须经 bizservice get_by_code + list_by_service_code 解析存在,且 inputMappings/outputMappings 的 serviceMethodParameterCode 必须命中方法声明的参数面,否则 refused(平台 update/publish 只拦服务缺失 BUSINESS_SERVICE_NOT_EXIST;publish 干门 550018 同语义拒参数面悬空——live 2026-09-12);RESTFUL/DATA_SQL 绑定目标必须带适配器必需 configJson 键——只有名字/参数面的注册壳 refused `rule-graph-bizmethod-registration-shell`(INTERNAL/扩展包方法不受此门)",
40
40
  bizActionPersistence: "BIZ_ACTION 的 outputMappings 结果由 SYSTEM_CREATE/SYSTEM_UPDATE 持久化节点消费,故动作节点必须排在系统节点之前(Start→BizAction→SYSTEM_CREATE→End),否则合并结果不落库(live 2026-09-12 ticket 36 铁证:系统节点在动作前时 echoResult 恒 null,重排后回写生效——IntegrationServiceExecutor.mergeResult 只刷新 _input,SystemCreateActivityBehavior 持久化其 _input 输入);injectDefaultSystemNode 默认把系统节点补在 START 之后,有回写动作时须显式提供系统节点并置于动作之后",
41
41
  triggerConditions: "节点触发条件(平台 i18n 模块 196233 节点属性表;evidence/form-conditions-and-rules-truth.md §4):UPDATE.filterCondition=**查找满足条件的主表数据**(要更新哪条;空 mainConditions=无条件下更新整表,bench23 病灶,干 lint 出 `rule-graph-filter-empty-main` warning)、UPDATE.filterSubCondition=子表条件;CREATE.findMainData=查找满足条件的主表数据(只影响是否新增)、CREATE.filterCondition=存在符合数据则不新增(aggregation 布尔=分组/单条新增);DELETE.filterCondition=删除满足条件的数据;ASSIGN.filterCondition=满足条件时赋值、triggerType∈CURRENT/RULE_VARIABLE;BIZ_ACTION.execConditionGroups=满足条件时执行业务方法;BRANCH.sourceInputMethod(PRE_OUT/OTHER_MODEL)/exitConditionGroups;通用 dataCondition=输入数据满足条件时执行、childTriggerConditionType∈ADD/MODIFY/DELETE;路由 routeCondition/matchType(ANY/ALL/CUSTOM)。除 BRANCH.exitConditionGroups 外,条件组与 filterCondition 同构 [[{targetSchemaDataItem,ruleConditionType,ruleValueType,...}]](DYNAMIC 来源键 currentSchemaDataItem);**BRANCH.exitConditionGroups 例外**:反序列化为 DataFilterCondition,出口叶用 [[{currentSchemaDataItem,ruleDataConditionType,ruleValueType,value}]](照抄 UI 键会 save+publish 过但运行时 50000)。",
@@ -71,7 +71,7 @@ const RULE_SAVE_DESCRIPTION = describeTool("保存业务规则(upsert):`ru
71
71
  "**系统/定时/流程节点(ticket 27)**:GET_LIST/LOAD/AVAILABLE/CANCEL/SCHEDULER/EXCEPTION/HINT 已入已知集并有形状模板;SCHEDULER 必须同时在 `nodeGraph.schedulerSetting` 传规则级调度形状(节点上无时机字段,缺它则规则保存成功但永不触发)。",
72
72
  "**条件执行**:① 单分支→动作节点自身 `filterCondition`(UPDATE/DELETE/ASSIGN 的 `mainConditions`:身份匹配 DYNAMIC + 固定条件 FIXED,同叶组 AND)。② 多路分支→`BRANCH` 节点:出口叶(DataFilterCondition)键为 `{currentSchemaDataItem(左值),ruleDataConditionType(操作符),ruleValueType,value}`,出路由 `routeCondition:true` 走条件、`false` 兜底 else。**别照抄其它条件组的 targetSchemaDataItem+ruleConditionType——未知键 save+publish 过但运行时 50000(lint fail closed `rule-graph-branch-condition-keys`)**。按数据走流程流转用 `ruleConditionGroup`。",
73
73
  "**生命周期铁律(2026-09-11 live 取证)**:update 只写 DRAFT 工作行,get/list 读 PUBLISH 面因此看不到变化——必须再 `rule.enable`(publish 出新版本 + 翻 DRAFT 启用开关)才会生效;数据事件分发:DRAFT 保存不触发,submit(DRAFT→COMPLETED)触发 Create。保存 ≠ 设计器可见:readback 的 `published:false` + nextAction 标明尚未发布;传 `publish:true` 可在同一次调用内发布新版本(仅发布,启用仍走 `rule.enable`)。",
74
- "**BizMethod 绑定(ticket 35/96)**:BIZ_ACTION / GET_LIST(BIZ_SERVICE) 的 methodMapping 须逐键对 8.6.26 DTO(codeType int 0=CONST/1=PROPERTY…;非语义键原样透传);写前 wire 校验服务+方法真实存在(get_by_code + list_by_service_code),悬空即 refused `rule-graph-bizmethod-unresolved`——平台只拦服务不拦方法,绝不用注册壳冒充已发布 BizMethod;RESTFUL/DATA_SQL 方法必须带适配器必需 configJson 键,只有名字/参数面的注册壳 refused `rule-graph-bizmethod-registration-shell`;映射 `required` 以方法参数面为权威镜像(省略→按面填入,面缺席→保持缺席,显式矛盾→本地拒绝零写入)。",
74
+ "**BizMethod 绑定(ticket 35/96)**:BIZ_ACTION / GET_LIST(BIZ_SERVICE) 的 methodMapping 须逐键对 8.6.26 DTO(codeType int 0=CONST/1=PROPERTY…;非语义键原样透传);写前 wire 校验服务+方法真实存在(get_by_code + list_by_service_code),悬空即 refused `rule-graph-bizmethod-unresolved`——平台只拦服务不拦方法,绝不用注册壳冒充已发布 BizMethod;RESTFUL/DATA_SQL 方法必须带适配器必需 configJson 键,只有名字/参数面的注册壳 refused `rule-graph-bizmethod-registration-shell`;映射 `required` 以方法参数面为权威镜像(省略→按面填入,面缺席→保持缺席,显式矛盾→本地拒绝零写入)。**入参可配计算规则(r79 真机定案)**:inputMappings 元素三选一——常量 `codeType:0`(值放 `bizCode`)、字段 `codeType:1`(`bizCode`=源字段 code)、**计算规则 `codeType:7`(`bizCode` 必须是 JSON 字符串,如 `bizCode:\"{\"formula\":\"{amount}*0.8\"}\"`;不是 `expressionValue`、也不是对象)**。平台按 `JSON.parse(bizCode).formula` 求值后作为该入参传给服务(1.1.25 echo 实测:qty=3/price=7 → 服务收到 `21.00`);缺失、空串、非 JSON、formula 为空即拒 `rule-graph-bizaction-expression-missing`。",
75
75
  "**EXPRESSION 值形状**:`ruleValueType:EXPRESSION` 时 `value` 必须是 {\"formula\":\"{字段A}+{字段B}\"}(大括号裸 code);门户设计器的 [code] 方括号式在这里不认。",
76
76
  "**幻影 schema 门(ticket 96 live 事故)**:rule.save 写前先以 bizmodels/get_all 探测模型存在(缺失 → refused `rule-schema-unresolved`,零规则面 wire 调用)——平台的 list/save 面会对任意 schemaCode 自动补建 7 条预置规则且 API 删除不可达(list 即重灌),幻影 schema 必须在写前拒绝。",
77
77
  "**输出回写排序(ticket 36 live 铁证)**:BIZ_ACTION 的 outputMappings 由 SYSTEM_CREATE/SYSTEM_UPDATE 持久化节点消费,动作节点必须排在系统节点之前(`Start→BizAction→SYSTEM_CREATE→End`);工具默认把系统节点补在 START 之后,有回写动作时须显式提供系统节点并置于动作之后,否则合并结果不落库(echoResult 恒 null)。",
@@ -155,7 +155,7 @@ export const BUSINESSRULE_LANE_CONTRACT = Object.freeze({
155
155
  }),
156
156
  "rule.get": Object.freeze({
157
157
  scope: "rule node route readback",
158
- description: "读回一条业务规则的完整定义(businessrule/get?id=),解析并回显 node/route 图 JSON(触发节点、UPDATE/CREATE 动作节点的 targetObjectCode/inputParam/dataActions/filterCondition 等)——规则族读写链的权威读回面,也是对照设计器生成图形的取证入口。",
158
+ description: "读回一条业务规则的完整定义(businessrule/get?id=),解析并回显 node/route 图 JSON(触发节点、UPDATE/CREATE 动作节点的 targetObjectCode/inputParam/dataActions/filterCondition 等)——规则族读写链的权威读回面,也是对照设计器生成图形的取证入口。**摘要/批量扫图**:`summary:true` 回 `nodeDigests[]`(nodeCode/nodeType/methodMapping 两码;正文仍在 nodes,摘要里没有 nodes 键)+ `bytesOmitted` + `methodMappingCount`;同一 schemaCode 的 `ruleCodes[]`(≤50,须配 `summary:true`)一次 list 解析全部图,回 `rules[]`+`partial`/`failed[]`。",
159
159
  }),
160
160
  "rule.references": Object.freeze({
161
161
  scope: "cross-rule reference search",
@@ -183,7 +183,7 @@ export function assertBusinessRuleContract() {
183
183
  assertDescriptionCarries(BUSINESSRULE_LANE_CONTRACT, "rule.save", ["nodeGraph", "rule.enable", "DRAFT", "PUBLISH", "businessrule/update", "schedulerSetting", "methodMapping", "rule-graph-bizmethod-unresolved", "rule-graph-bizmethod-registration-shell", "rule-schema-unresolved", "required", "参数面", "outputMappings", "SYSTEM_CREATE", "publish:true", "published:false", "条件执行", "filterCondition"]);
184
184
  if (!String(BUSINESSRULE_LANE_CONTRACT.wire.compatibilityMatrix).includes("CREATE -> dictionary-backed selection"))
185
185
  throw new Error("businessrule contract must expose the evidence-backed compatibility matrix");
186
- assertDescriptionCarries(BUSINESSRULE_LANE_CONTRACT, "rule.get", ["inputParam", "node/route"]);
186
+ assertDescriptionCarries(BUSINESSRULE_LANE_CONTRACT, "rule.get", ["inputParam", "node/route", "nodeDigests", "ruleCodes"]);
187
187
  assertDescriptionCarries(BUSINESSRULE_LANE_CONTRACT, "rule.node.update", ["schemaCode", "ruleCode", "nodeCode", "patch", "rule.save", "rule.enable"]);
188
188
  assertDescriptionCarries({ tools: { "rule.nodeGraph": { scope: "node graph", description: ruleNodeGraphDescription() } } }, "rule.nodeGraph", [
189
189
  "inputParam",