semantic-atlas 4.1.2 → 5.1.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 (54) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +63 -25
  2. package/.agents/skills/semantic-atlas/agents/openai.yaml +1 -1
  3. package/.agents/skills/semantic-atlas/references/boundary-design.md +1 -1
  4. package/.agents/skills/semantic-atlas/references/diagram-design.md +55 -16
  5. package/.agents/skills/semantic-atlas/references/map-authoring.md +25 -3
  6. package/.agents/skills/semantic-atlas/references/reconciliation.md +3 -2
  7. package/README.md +41 -25
  8. package/README.zh-CN.md +33 -21
  9. package/dist/application/map-application.d.ts +1 -0
  10. package/dist/application/map-application.d.ts.map +1 -1
  11. package/dist/application/map-application.js +61 -15
  12. package/dist/application/map-application.js.map +1 -1
  13. package/dist/cli/run-cli.js +3 -1
  14. package/dist/cli/run-cli.js.map +1 -1
  15. package/dist/contracts/cli.d.ts +13 -20
  16. package/dist/contracts/cli.d.ts.map +1 -1
  17. package/dist/contracts/flow-navigation.d.ts +21 -11
  18. package/dist/contracts/flow-navigation.d.ts.map +1 -1
  19. package/dist/contracts/observation.d.ts +3 -3
  20. package/dist/contracts/query-context.d.ts +34 -0
  21. package/dist/contracts/query-context.d.ts.map +1 -0
  22. package/dist/contracts/query-context.js +2 -0
  23. package/dist/contracts/query-context.js.map +1 -0
  24. package/dist/contracts/query-location.d.ts +14 -0
  25. package/dist/contracts/query-location.d.ts.map +1 -0
  26. package/dist/contracts/query-location.js +2 -0
  27. package/dist/contracts/query-location.js.map +1 -0
  28. package/dist/index.d.ts +2 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/map/business-graph.d.ts +0 -2
  31. package/dist/map/business-graph.d.ts.map +1 -1
  32. package/dist/map/business-graph.js +0 -15
  33. package/dist/map/business-graph.js.map +1 -1
  34. package/dist/query/context-query-service.d.ts +14 -2
  35. package/dist/query/context-query-service.d.ts.map +1 -1
  36. package/dist/query/context-query-service.js +111 -15
  37. package/dist/query/context-query-service.js.map +1 -1
  38. package/dist/query/flow-navigation-service.d.ts +1 -2
  39. package/dist/query/flow-navigation-service.d.ts.map +1 -1
  40. package/dist/query/flow-navigation-service.js +0 -21
  41. package/dist/query/flow-navigation-service.js.map +1 -1
  42. package/dist/query/query-source-locator.d.ts +19 -0
  43. package/dist/query/query-source-locator.d.ts.map +1 -0
  44. package/dist/query/query-source-locator.js +125 -0
  45. package/dist/query/query-source-locator.js.map +1 -0
  46. package/dist/rendering/flow-projector.js +4 -1
  47. package/dist/rendering/flow-projector.js.map +1 -1
  48. package/dist/rendering/viewer-page.js +3 -0
  49. package/dist/rendering/viewer-page.js.map +1 -1
  50. package/docs/architecture.md +64 -42
  51. package/docs/evaluation.md +119 -19
  52. package/docs/map-format.md +65 -39
  53. package/docs/product-contract.md +73 -51
  54. package/package.json +1 -1
@@ -28,9 +28,10 @@ MapDocumentLoader -> MapValidator -> BusinessFlowValidator -> BusinessGraph
28
28
  Calling Agent
29
29
  -> activates from business task meaning
30
30
  -> probes the graph, including the map-not-found outcome
31
- -> treats available map results as investigation hypotheses
32
- -> confirms decisive behavior in current repository evidence
33
- -> updates affected code and business flows in the same branch
31
+ -> uses confirmed business flows as the intended business contract
32
+ -> checks implementation and runtime evidence against that contract
33
+ -> classifies discrepancies without automatically rewriting flows to match code
34
+ -> expresses business changes in flows before implementing them in the same branch
34
35
 
35
36
  published package Skills bundle
36
37
  |
@@ -120,28 +121,38 @@ product evidence decide whether the described business path is current.
120
121
  Holds normalized immutable nodes, relations, flows, aliases, containment
121
122
  indexes, and incoming/outgoing relation indexes for one command. It exposes
122
123
  domain operations in terms of business concepts and scenario paths rather than
123
- file layout or parser objects. Related flows are derived from scenario
124
- containment and step concept references.
124
+ file layout or parser objects. 流程导航与局部查询分别使用图中的归属、关系和步骤引用,
125
+ 按各自职责派生目录或业务摘要。
125
126
 
126
127
  ### ContextQueryService
127
128
 
128
- Resolves a concept by stable ID, name, or alias and returns the smallest useful
129
- business neighborhood: ancestors, direct children, incoming and outgoing
130
- relations, referenced concepts, summaries, navigation anchors, and complete
131
- related flows. It reports ambiguity explicitly rather than selecting a hidden
132
- match. It preserves bound symbol anchors as structured file paths and
133
- declaration names; source location and behavior confirmation belong to the
134
- calling Agent's repository tools.
129
+ 按稳定 ID、名称或别名解析概念,歧义时显式报告候选。`query` 返回单独的 `selected`、
130
+ 祖先与直接子概念 ID,并复用 `summarize` 提供查询摘要:唯一概念详情、显式关系和
131
+ 流程所属/步骤引用位置。所选概念不再重复放入 `concepts`。
132
+
133
+ `summarize` 以选定概念为种子,先取直接关系,再补充直接关系涉及的共享数据、接口与
134
+ 规则的其他非归属关系;普通动作不继续递归。关联摘要保留类型、业务原因、端点 ID 与
135
+ 维护位置,相关流程只提供 ID、名称、所属场景与具体引用。`scope: "recorded"` 约束其
136
+ 含义为已记录知识,不推导当前变更影响。完整步骤由指定 ID 的 `flows` 单独投影。
137
+
138
+ ### QuerySourceLocator
139
+
140
+ 每次查询创建一个定位器,缓存生命周期限定在本次调用。定位器读取当前 YAML AST,
141
+ 按概念/流程/步骤 ID 及关系三元组找到唯一声明,从解析器行列计数取得 `map` 位置;
142
+ 没有位置时保留文件。位置为查询派生信息,不写回业务文件,不进入持久模型。
143
+
144
+ 源码锚点使用文件元数据确认路径是否存在及类型。文件和文档的 `located` 指向文件
145
+ 开头;存在的符号、目录及搜索线索保持 `hint`,预期本地路径不存在或类型不符为
146
+ `missing`。文件绑定符号保留 `file` 与 `value`,声明位置和行为由调用 Agent 使用
147
+ 仓库工具核实;不扫描文本猜代码行号。跨项目搜索提示也不自动变成跨仓关系。
135
148
 
136
149
  ### ConceptSearchService
137
150
 
138
- Ranks every normalized business node against one natural-language query and
139
- returns at most five deterministic candidates. It compares names, aliases,
140
- stable IDs, and summaries through local lexical similarity, keeps scores within
141
- `0–1`, and uses stable IDs to break ties. The score expresses relevance within
142
- that query rather than truth or selection confidence. Candidate retrieval owns
143
- no graph expansion or source-evidence judgment; callers pass the selected stable
144
- ID to `ContextQueryService`.
151
+ 用自然语言查询对所有概念的名称、别名、稳定 ID 和说明做本地词面排序,最多返回五个
152
+ 候选。分数处于 `0–1`,同分按稳定 ID 排列,只表达本次查询的相对相关度。服务负责
153
+ 候选检索,不判断业务正确性,也不扩展关系或确认源码。
154
+ `MapApplication` 在排序后只给第一候选附上 `summarize` 摘要,用 `contextFor` 明确
155
+ 所属;搜索服务本身不持有位置或扩展逻辑。调用者选定其他候选时按稳定 ID 读取。
145
156
 
146
157
  ### MapProjector 与流程导航
147
158
 
@@ -179,6 +190,8 @@ Dagre 确定层级和位置,正交走线保持水平或垂直并使用圆角
179
190
  比例,避免少量节点被过度放大。没有常驻目录、关系模式、图例或导出按钮。
180
191
 
181
192
  详情默认关闭,点击正文只显示业务备注;节点角标直接进入子流程,多目标先选择。
193
+ `FlowProjector` 从最终采用的非空备注派生信息标识,含步骤自己的备注或继承的概念备注;
194
+ 没有备注不显示。它放在标题旁,与进入子流程的叠层角标区分,不增加持久字段或点击入口。
182
195
  详情不放进入按钮。正文无备注时保持原样。源码锚点保留在业务文件和 CLI,Web 数据只包含业务阅读所需内容。
183
196
  浏览历史保存图编号、视野与选中节点;切项目时清空。浏览器不提供内容编辑或写入。
184
197
 
@@ -272,16 +285,18 @@ and public language behavior. Runtime language scope is owned by the
272
285
  AI 根据业务含义选择结果;没有语义向量索引,不将分数解释为业务正确性。
273
286
  缺少上下文时才补看上层、子流程与协作,不强制总览或固定搜索顺序。
274
287
 
275
- 根据源码、产品决定和运行证据确定业务行为,沿流程步骤上的概念锚点定位文件、类
276
- 和方法。业务变化在当前分支同步代码和图,检查正常路径、条件和结果。纯实现改动
277
- 不强制重画。合并冲突按最终代码的业务含义重新梳理受影响图,不做机械文本拼接。
288
+ 已确认流程与业务决定定义期望行为,沿概念锚点定位文件、类和方法,检查实现是否
289
+ 兑现规范。发现差异先判断实现缺陷、图误写或意图变化,不自动改图迁就代码。缺图
290
+ 时调查当前实现形成候选,并注明待定差异。业务变化先在图中表达,再同分支实现;
291
+ 纯实现改动不重画。合并先确定共同生效的业务规则,再核对最终代码,不做机械拼接。
278
292
 
279
293
  流程设计、业务边界和文件编写资料在同一 Skill 中按需读取。旧候选与观察仅在明确
280
294
  处理历史资料时使用,不作为普通工程的默认动作或合入后的前置工作。
281
295
 
282
- 画图指导先按业务决定平级图的范围,再组织各图的主线和必要详图。独立业务不强行
283
- 合并,相关过程不因有场景引用就继续分层;讲解验收同时检查图的边界、过程与交接,
284
- 以及详图增加的解释。
296
+ 画图指导先按读者要理解的业务目标确定范围,再组织完整主线与必要详图。独立操作、
297
+ 接口或场景身份不自动成为顶层入口,多个独立业务仍可平级。AI 主审流程源文件中的
298
+ 边界、连通片、过程、交接与自然语言,确认详图确实增加解释,并用业务代码核实事实。
299
+ 网页用于核对渲染呈现与必要导航。
285
300
  规则依据见[流程设计](../.agents/skills/semantic-atlas/references/diagram-design.md),
286
301
  新上下文作者与独立验收的证据边界见[评估](evaluation.md#讲解质量验收)。
287
302
 
@@ -291,8 +306,11 @@ AI 根据业务含义选择结果;没有语义向量索引,不将分数解
291
306
  浏览器的级联菜单与 AI 的 `flows` 命令使用同一目录,AI 可以直接读取任意编号。
292
307
  菜单从标题旁左对齐向右展开,鼠标悬停整行时只更新右侧列,保留当前行 DOM 和焦点,
293
308
  避免名称点击被展开打断。键盘和触屏保留明确的展开操作,窄屏在菜单内横向滚动。
294
- 流程详情包含本层步骤、转换、子流程、概念与源码锚点;没有锚点时如实为空。
295
- `search --flows` 复用现有词面检索,直接返回流程候选;普通 `search` 保留概念检索。
309
+ 内部流程导航继续服务 Viewer;CLI 将指定图投影为本层步骤、转换与父/子流程 ID,
310
+ 步骤只引用概念 ID,同一响应的 `concepts` 唯一提供详情与源码锚点;没有锚点时如实为空。
311
+ `search --flows` 复用现有词面检索,返回流程候选与命中步骤位置。`MapApplication` 只用
312
+ 第一候选的场景及命中步骤概念形成摘要,以该流程 ID 标出 `contextFor`;普通 `search`
313
+ 以第一概念 ID 标出摘要归属。没有命中时省略 `contextFor`,摘要为空。
296
314
  目录支持共享子流程;循环引用保留一个可达入口,菜单沿当前路径停止重复展开。
297
315
 
298
316
  ### ManagedSkillsInstaller
@@ -483,8 +501,11 @@ semantic-atlas reconcile candidates [--repo <path>]
483
501
  semantic-atlas --version
484
502
  ```
485
503
 
486
- Map commands resolve and report the repository root and map-document set they
487
- used. `project add` defaults to the current directory, validates the complete
504
+ 查询命令 `search`(含 `--flows`)、`context`、`flows` 在成功或错误结果包含仓库信息时,
505
+ 只保留 `repository.root`,不输出全库地图文件列表;存在定位的条目各自带 `map`。
506
+ CLI 边界将这三类命令序列化为紧凑 JSON;其他命令保持原有输出形式。
507
+ `validate` 和 `render` 等地图命令继续报告所用仓库及文档集合。
508
+ `project add` defaults to the current directory, validates the complete
488
509
  map, and reports `added` or `already_exists`. Parameterless `web` reads the
489
510
  registered list; `web --repo` uses only its explicit temporary paths. `web`
490
511
  reports its loopback URL and repository count without exposing roots to the
@@ -492,24 +513,24 @@ browser. Observation commands report the derived repository identity, while
492
513
  package lifecycle commands remain repository-independent. Machine output uses
493
514
  a versioned envelope with a stable success or error discriminant.
494
515
 
495
- `search --flows` 直接检索流程及其业务步骤,按流程去重返回命中步骤。`flows <id>`
496
- 只读取指定图及源码锚点,省略编号时才提供目录。
516
+ `search --flows` 按流程去重返回命中步骤与维护位置;随附摘要只属于 `contextFor`
517
+ 指向的第一候选,不表示已选定业务。`flows <id>` 只展开指定图的完整本层内容及局部
518
+ 关联摘要,省略编号时只提供目录。流程中的概念和父/子流程以 ID 引用。
497
519
 
498
520
  `validate`、`search`、`flows`、`context`、`render` 与 `web` 均支持
499
521
  `--project <name-or-id>`,从登记目录解析目标,与当前工作目录无关;它与显式 `--repo`
500
522
  互斥。两项均未提供时,地图命令仍使用当前目录,`web` 仍使用完整登记清单。
501
523
 
502
- `search` returns at most five ranked nodes from every business-node kind. A
503
- successful empty result means the map has no sufficiently related vocabulary;
504
- it is not a repository failure. Each candidate includes `rank`, a `0–1`
505
- query-relative `score`, stable identity, node kind, supplying document, and
506
- `matchedFields`. Exact ID, name, or alias matches score `1`; ties use stable ID.
524
+ `search` 从所有概念类型返回最多五个候选;成功的空结果表示词汇不足以命中。
525
+ 每项有 `rank`、本次查询相对 `score`、稳定身份、概念类型、所属文档、`matchedFields`
526
+ 和当前声明的 `map`。第一候选的概念 ID 为 `contextFor`,调用者仍负责选择符合业务
527
+ 的候选。精确 ID、名称或别名命中记为 `1`,同分按稳定 ID 排列。
507
528
 
508
- `context` returns ambiguity when multiple concepts match a compatibility
509
- selector. Callers can then use a stable ID. A missing concept is a bounded map
510
- result and routes the Agent to a bounded current-evidence business model; it is
511
- not a repository failure. A successful result includes every flow related
512
- through scenario containment or direct step concept references.
529
+ `context` 的兼容选择器有多个匹配时返回歧义,调用者再用稳定 ID 选择。概念缺失是
530
+ 有界地图结果,引导 Agent 转向当前证据调查。成功时返回所选概念、祖先与直接子概念
531
+ 身份、已记录局部关系与流程引用摘要;不会展开所有后代场景或完整相关流程。具体字段
532
+ 及有界扩展语义见
533
+ [查询投影](map-format.md#context-projection)。
513
534
 
514
535
  `setup`, `upgrade`, and `--version` do not discover a repository or load a
515
536
  business map. Their results expose the package version and managed Skill paths
@@ -618,7 +639,8 @@ relationship direction, labeled branch outcomes, and whether the update belongs
618
639
  in the shared map.
619
640
 
620
641
  业务行为变化时,同分支更新代码与受影响流程,使用正常 Git 差异、验证与审阅一起合入。
621
- 纯实现改动不强制改图。多个 Agent 的合并冲突依据最终代码重审业务含义,不机械拼接。
642
+ 纯实现改动不强制改图。多个 Agent 合并时先确定共同生效的业务流程,再核对最终代码
643
+ 是否实现这些规则,不机械拼接。
622
644
  旧观察与候选工具仅用于明确请求的历史资料处理,不决定普通开发何时维护图。
623
645
 
624
646
  统一的 semantic-atlas Skill 独立于任务编排器,根据业务任务选择直接定位、调查、实现
@@ -1,6 +1,6 @@
1
1
  # Semantic Atlas Evaluation
2
2
 
3
- This page defines how the initial product proves that an advisory business map
3
+ This page defines how the product proves that a shared business-flow contract
4
4
  improves engineering accuracy and reduces routine human supervision. It applies
5
5
  to the CLI, renderer, Agent Skill, and real-project evaluation.
6
6
 
@@ -10,6 +10,31 @@ current source candidate and still needs longitudinal real-task evidence.**
10
10
 
11
11
  ## Evaluation Question
12
12
 
13
+ 当前以已确认业务流程图作为业务规范,代码与运行证据用于核对实现。早期评估使用
14
+ 过“地图仅作线索、源码优先”的方法;历史结果保留当时语义,不能据此证明新的规范
15
+ 优先工作流已经通过。业务确认与实现事实分别核验。
16
+
17
+ ## 业务规范与实现差异验收
18
+
19
+ 规则应在实际行为中生效,不能只检查序言是否出现“一等公民”:
20
+
21
+ - 已确认流程与代码不一致:从既有业务决定核对期望,保留正确流程,定位并在获准范围修实现;代码现状及其测试不能自动覆盖业务规则。
22
+ - 图是草稿或确有误写:依据任务、产品决定及必要使用方修候选图,不将每张未确认草稿当作不可更改的规则。
23
+ - 用户改变业务要求:先在图中明确新期望,再实现并对照验收,同分支维护。
24
+ - 尚无流程:调查当前实现建立最小候选,明确哪些规则已有确认、哪些只是现状或待定;发现代码缺陷不把缺陷确立为业务要求。
25
+ - 尚未运行:分别报告图的规范、源码实现和未验证的运行状态,不把清楚的图当作生产成功证据。
26
+
27
+ 不引入逐节点审批或新的持久确认字段;依靠已有任务、产品决定和评审记录判断依据。
28
+ 新上下文应在自然业务请求中实际选择正确的冲突处理,单纯通过格式或既有代码测试
29
+ 不足以证明该能力。私有项目资料与运行证据留在所属任务中。
30
+
31
+ 2026-11-24 的隔离样例试作给出退款少退投诉与必要环境。已确认流程及产品决定要求
32
+ 发货前全额退款,实现与旧测试却扣固定费。新上下文自行查询业务流程、核实差异,
33
+ 修复金额逻辑与业务断言,保留正确流程和决定;金额低于原固定费时也全额退回,已
34
+ 发货仍拒绝取消。三项业务检查、图校验和独立审查通过。没有修改真实业务项目,
35
+ 没有测量基线收益;此结果只证明该次保留规范、修实现的实际选择。独立文字审查另
36
+ 发现两处合并指引仍代码优先,由规则作者修正并复审关闭。
37
+
13
38
  The primary question is:
14
39
 
15
40
  > Does the business-understanding Skill lead an agent to a correct,
@@ -24,25 +49,63 @@ not the Skill's activation boundary.
24
49
  The evaluation observes investigation cost, but cost does not substitute for
25
50
  correctness.
26
51
 
52
+ ## AI 查询验收
53
+
54
+ 以真实业务问题检查首次查询能否支持下一步调查:命中有当前维护位置,相关概念有
55
+ 源码入口、规则与备注,关系类型和业务说明能解释关联原因,流程引用能定位可能需要
56
+ 核对的图与步骤。保留 YAML 作为持久来源;查询仅在当前调用派生摘要与位置。
57
+
58
+ 对同一候选分别检查概念搜索、流程搜索、`context` 和指定 `flows`:
59
+
60
+ - 搜索最多列五个候选,各自有维护位置;摘要只属于 `contextFor` 的第一候选,不把
61
+ 其他候选的邻域混入。调用者选择其他业务时,应按 ID 取得其资料,而非默认第一项。
62
+ - `concepts` 按 ID 唯一提供详情;`context.selected` 不重复放入概念表。关系和步骤
63
+ 使用 ID 引用,完整本层步骤只在明确读取流程时展开;普通流程摘要保留引用位置。
64
+ - 关联覆盖直接关系,以及共享数据、接口、规则的其他已记录使用方;无关业务不因
65
+ 普通动作邻接而递归加入。`scope: "recorded"` 不得被当作影响范围已经完整的证明。
66
+ - YAML 行列能定位当前声明,并在文件移动声明后跟随变化。代码符号仍是文件与声明
67
+ 提示,缺失路径可识别,不以猜测的行号或 `located` 证明业务正确性。
68
+ - 查询使用紧凑 JSON,`repository` 只含 `root`;不重复全库地图目录。概念、业务规则、
69
+ 关系原因、维护位置和必要入口仍完整可得,不能只以响应变短证明查询质量。
70
+
71
+ CLI 断言与代表性实际调用证明字段、定位和扩展契约。还需在新上下文中给予自然业务
72
+ 请求,让 AI 自行选入口、打开当前源码、判断关联与需同步的图,再由独立验收核实
73
+ 结论。字段齐全不证明 AI 已正确使用;未执行新上下文或长期试用时,明确保留该边界。
74
+ 跨项目线索需要分别查询和查源码,不以本轮结果证明已建立跨仓关系模型。
75
+
76
+ 2026-11-24 当前源码候选完成了一次新上下文的真实业务调查。执行者只接收自然业务
77
+ 请求,自行使用 `search --flows`、`flows`、`context` 与当前源码,找出请求所涉的既有
78
+ 复用路径,并区分需要核实的协作与只有业务规则变化时才需维护的关联图。搜索把较宽
79
+ 的场景排在更贴合问题的细图之前;执行者按业务含义选择了后一个候选,没有把第一
80
+ 候选的 `contextFor` 摘要当作已确认目标。维护行号与文件绑定符号帮助定位资料和
81
+ 实现,地图中未记录的关系仍通过源码补齐。
82
+
83
+ 同一候选的完整 `release:verify` 通过,包含 173 项测试及构建、渲染、打包与安装后
84
+ 产品验证。自动检查证明当前字段与产品回归,新上下文调查证明该任务中实际发生了
85
+ 自主候选选择、源码核实与有边界的维护判断。该任务没有实施业务修改,不能据此证明
86
+ 图更新后的实际效果、所有查询的排序质量或长期调查收益;一次成功也不构成稳定性
87
+ 统计结论。私有业务资料与原始运行证据保留在所属任务中,公共记录只保留脱敏结果。
88
+
27
89
  ## 讲解质量验收
28
90
 
29
- 先检查图的边界:独立业务可直接成为多张平级图,不要求专门的项目全貌或共同父图;
30
- 默认打开哪张不决定它的业务范围。相关主线不应被拆成零散接口,无关业务也不应
31
- 为了集中展示被堆到同一画布。
91
+ 先读取实际顶层目录及各流程源文件,核对每个入口服务谁、为何发生、对象怎样改变、
92
+ 结果怎样使用。独立接口、管理角色或返回记录不是独立顶层业务的充分理由。相关主线
93
+ 应完整,多个独立业务可以平级,不强制全项目父图,也不以图数、节点数或层数判断质量。
32
94
 
33
- 再逐张代入主讲人,用图与业务备注向新同事说明该业务的主要过程、重要条件、状态
34
- 变化、交接与结果使用。必要主线缺失是表达问题;独立业务切换平级图,复杂局部进入
35
- 详图取得新解释。图数、节点数、深度和适应一屏均不是质量指标。结构与交互通过不能
36
- 替代边界判断,错误组织不能仅记作阅读器布局缺口。
95
+ 作者写完一个业务分块后主动自审,新证据改变理解时立即重构;交付前再从头检查整组
96
+ 资料。直接检查 `startsAt`、`steps` 与 `transitions` 中的孤立节点、弱连通分量、分支与结果去向。
97
+ 多分量只是诊断线索:补清真实联系或调整图的范围,不能为连通而编造先后。逐句检查
98
+ 主体、动作、对象、条件和结果,用自然中文讲不清就重写;再按当前业务代码核实事实。
37
99
 
38
100
  检查指导能否独立生效时,让新上下文作者只接收普通用户的自然业务请求与必要定位
39
- 信息,从实际安装的 Skill 读取方法。具体画法、预期节点、固定层数与验收答案留在
40
- 评估端。规则作者验收产物及必要源码;图的修改由画图作者处理,避免验收者补画后
41
- 再将结果归因于原指导。需要纠正时保留初次结果、具体问题与后续修改的区别。
101
+ 信息,从 Skill 读取方法。具体画法、预期分组、节点、图数与验收答案留在评估端。
102
+ 验收者独立审查完整产物与必要源码,不代画后声称指导成功。需要返修时保留初稿问题、
103
+ 指导变化与作者后续修正的区别;不只核对用户圈出的几个节点。
42
104
 
43
- 文件结构检查证明格式与引用,源码核实证明业务事实,实际阅读证明是否讲清。独立
44
- 任务通过可证明这次新上下文的行为,不能推断所有业务的长期效果。私有项目的业务
45
- 文件和证据保留在所属仓库,公开产品只记录可复用的方法与脱敏结果。
105
+ 逻辑主审基于流程源文件,网页或导出核对渲染布局、线条、文本显示及必要导航,已有
106
+ 证据仍有效时复用,不要求每次逐页操作。格式、业务事实、语义表达和呈现分别核验。
107
+ 独立任务通过只证明该次行为,不推断所有业务的长期效果。私有业务文件与原始证据
108
+ 保留在所属仓库,公共产品只保留脱敏方法与结果。
46
109
 
47
110
  2026-11-23 的一次私有持续监控业务试用,作者的新上下文仅接收一条简短业务请求,
48
111
  从已安装的候选 Skill 获取指导,自行核实前端和后端并重整主图。主要过程、重要入口
@@ -89,6 +152,42 @@ correctness.
89
152
  数据字段;多个顶层图由既有模型与导航承载。未逐张重验所有旧细图,也不以目录图数
90
153
  证明边界正确;本次结果支持当前组织方式的改善,后续业务仍按实际内容判断。
91
154
 
155
+ 2026-11-24,用户重新检查上述产物,发现多项内部操作仍直接成为顶层入口,没有解释
156
+ 它们服务谁、结果如何使用;主图又混入多段没有交代联系的局部流程。节点措辞把内部
157
+ 处理词拼在一起,业务人员难以理解。前轮代表性检查通过不足以证明整体交付达标,
158
+ 本次按业务组织与表达验收失败记录,不能继续把旧结论当作全部业务图已完成的证据。
159
+
160
+ 直接分析原流程源文件即可识别多块不相连的内容。对照业务代码还发现权限和配置生效
161
+ 时点的误述,说明结构诊断不能代替业务核实。原指导已有画后检查要求;此次失误同时
162
+ 暴露了顶层业务判定含糊和验收执行不足。候选修订将业务目标、源文件自审、连通片的
163
+ 逐项解释、自然语言复述与独立语义审查合入原方法。
164
+
165
+ 随后以一条普通业务请求启动新上下文作者,只提供候选 Skill 与必要仓库环境。首块
166
+ 自审后仍只移除零碎入口,必要运营参与只在备注中点名;独立审查未通过。作者重新
167
+ 核实实际管理页面及客户使用方,补回接入、积分和后续使用的联系,并重审其余业务。
168
+ 此过程包含验收反馈,不能当成零干预的独立成功。
169
+
170
+ 进一步直接审查整组流程源文件与业务代码,发现共用结束节点把单分支跳过误述为整轮
171
+ 停止、配置权限与邮件触发范围混写,以及账期起点、采购资格和授权有效性被误述。
172
+ 另一个上下文通读所有可见文字和继承备注,发现实现对象及参数直接进入正文。原作者
173
+ 负责返修,验收者未代画。复核还发现,删去细图后有必要时间规则只剩在不可见的概念
174
+ 摘要中,以及本店现成分析和共享分析被错误合为同一保存路径;这些问题由作者继续
175
+ 修正,文件编写指导也补清了实际可见字段和裁图后的规则保留责任。
176
+
177
+ 最终候选的顶层目标、全组可见文字、已报告问题及关键源码路径复核通过,格式、引用、
178
+ 代表性业务查询和渲染检查通过。结构诊断帮助发现不相连片段,未被用作业务质量阈值;
179
+ 本轮没有新增正式检查命令、持久结构或业务运行代码。没有运行真实供应商或逐项验证
180
+ 全部辅助接口,较大流程仍需要缩放阅读。此结果证明本次产物在包含独立反馈的返修后
181
+ 满足既定范围,不能证明作者初稿可靠、指导零干预成功或长期稳定收益。发布与安装
182
+ 状态仍单独报告。
183
+
184
+ 同日针对节点文字与详情继续改进:标题与可见补充采用写作预算,具体动作和决定路径
185
+ 的条件保持可见,清单与解释放既有备注。阅读器根据实际备注显示信息标识。原作者在
186
+ 已有上下文中定向调整一组连接流程,验收核对实际业务代码与文字分工;这次没有再次
187
+ 运行新的自然任务,不能推断指导已能独立稳定约束所有节点。既有30项相关检查、构建
188
+ 与独立审查通过;实际页面检查了说明发现、正文打开、子流程进入与返回和标识不重叠。
189
+ 较大图整体适应后仍需放大阅读,信息标识不能消除这个限制。
190
+
92
191
  ## 当前持续建图试用边界
93
192
 
94
193
  2026-11-20 的新上下文私有项目试用按三个源码分块逐步保存 3、6、9 条身份业务流程。
@@ -162,9 +261,9 @@ business change produces an explicit flow-maintenance decision.
162
261
 
163
262
  ### Evidence accuracy
164
263
 
165
- Every claim that controls the change is confirmed in current source, tests,
166
- tracked product documents, or required runtime evidence. Map statements are not
167
- reported as current implementation facts without confirmation.
264
+ 业务要求以已确认流程及业务决定为依据;实现与运行事实分别核对源码、测试及必要
265
+ 运行证据。不因代码存在推翻规范,也不把流程中的应有保证宣称为已经实现。未决
266
+ 差异、候选误写和实现缺陷应能清楚区分。
168
267
 
169
268
  ### Implementation accuracy
170
269
 
@@ -197,7 +296,8 @@ The first real-project suite contains at least:
197
296
  source-supported business model.
198
297
  6. A stale-anchor case where the business meaning remains useful but the source
199
298
  location changed.
200
- 7. A contradicted-relation case where current evidence must override the map.
299
+ 7. A discrepancy case that distinguishes an implementation defect from a flow
300
+ error or a later confirmed business decision.
201
301
  8. A code-quality case where the first runnable implementation would create an
202
302
  unclear responsibility or unnecessary mechanism.
203
303
  9. A branch-sensitive refactor where a broad implementation still appears to
@@ -260,7 +360,7 @@ When practical, run each case in two fresh contexts with the same model,
260
360
  repository revision, task wording, tool availability, and acceptance oracle:
261
361
 
262
362
  - `ordinary`: normal repository discovery without the map or its Skill;
263
- - `map-assisted`: the package-managed Skill with the tracked advisory map.
363
+ - `map-assisted`: the package-managed Skill with the tracked business flows.
264
364
 
265
365
  The task oracle remains unavailable to both task agents. An independent review
266
366
  compares their source-supported conclusions and implementation candidates.
@@ -127,8 +127,8 @@ invariant
127
127
  interface
128
128
  ```
129
129
 
130
- Every node is advisory. The format does not assign a numeric truth score or
131
- pretend that one confidence value can replace task-time evidence.
130
+ 已确认的节点与流程承载业务规范;未决解释在现有备注中说明。格式不增加数值真值
131
+ 分数或逐节点审批字段,也不把源码已运行视为业务规则自动成立的证明。
132
132
 
133
133
  ## Relation Contract
134
134
 
@@ -239,10 +239,9 @@ business outcome. Keep parameter validation, DTO conversion, helpers,
239
239
  framework wiring, Service or Queue names, retries, and timing in current-source
240
240
  evidence. Cycles are valid when the repeated business path itself is durable.
241
241
 
242
- Flows remain advisory knowledge. A source discrepancy starts an investigation
243
- into whether source regressed, product intent changed, the flow was already
244
- stale, or available evidence is unresolved. It never synchronizes either side
245
- automatically.
242
+ 已确认流程定义应有行为。源码差异需要核实是实现偏离规范、图误写、业务决定变化,
243
+ 还是意图尚未确认;不自动以源码覆盖流程。首次建图可以记录当前实现与已知差异,
244
+ 但不能把代码缺陷确立为正确规则。阅读器不执行流程,也不会自动同步任何一侧。
246
245
 
247
246
  ## Navigation Anchors
248
247
 
@@ -315,7 +314,7 @@ CLI 在上下文查询中保留 `file` 和 `value` 两个字段;面向业务
315
314
  默认入口是没有被其他流程的步骤引用其场景的根流程,按稳定编号排序;随后沿步骤
316
315
  引用安排子流程。步骤对自身场景的引用不算新的父层。所有流程都能从按需选择器访问。
317
316
 
318
- 步骤备注优先使用自己的 `notes`,未写时沿用所引用概念的备注。只有业务备注才打开节点详情;子流程角标直接进入,多目标先选择。新增或修改概念、关系和流程仍沿用 v1 字段;源码锚点只供
317
+ 步骤备注优先使用自己的 `notes`,未写时沿用所引用概念的备注。实际采用的非空备注让节点显示信息标识并支持点击正文打开详情;子流程叠层角标直接进入,多目标先选择。标识由既有备注派生,不增加文件字段。新增或修改概念、关系和流程仍沿用 v1 字段;源码锚点只供
319
318
  AI 与 CLI 使用,业务界面不展示。
320
319
 
321
320
  ## Validation Rules
@@ -353,8 +352,8 @@ Horizontal relation endpoints follow their business meaning:
353
352
  - `constrained_by` targets an invariant.
354
353
 
355
354
  The first version does not require every node to have a parent or horizontal
356
- relation. Incompleteness is valid advisory knowledge and remains visible to the
357
- caller.
355
+ relation. Incomplete coverage remains visible to the caller and does not make
356
+ unrecorded implementation behavior an approved business rule.
358
357
 
359
358
  ## Ranked Search And Lookup Semantics
360
359
 
@@ -366,6 +365,7 @@ stable ID for ties. Each candidate contains:
366
365
  - `rank` within the returned list;
367
366
  - a `0–1` score that compares relevance only within the current query;
368
367
  - stable ID, name, kind, and supplying document ID;
368
+ - `map`,定位候选在当前 YAML 中的声明;
369
369
  - `matchedFields` drawn from `name`, `alias`, `id`, and `summary`.
370
370
 
371
371
  The deterministic local matcher applies Unicode NFKC and lowercase
@@ -376,8 +376,12 @@ threshold are omitted, so no sufficiently related vocabulary produces a
376
376
  successful empty result rather than a concept error. Scores are ranking signals,
377
377
  not correctness probabilities or map truth scores.
378
378
 
379
- After choosing a candidate, callers use its stable ID with `context` to obtain
380
- the local business neighborhood. The earlier compatibility selector remains
379
+ 搜索同时返回第一候选的局部业务摘要,以字符串 `contextFor` 标明其概念 ID。
380
+ `results` 仍包含其他候选的排序和维护位置;摘要不混入它们各自的邻域。第一候选只是
381
+ 词面排序结果,调用者依据业务含义决定目标;其他候选更合适时按其 ID 读取 `context`。
382
+ 无命中时省略 `contextFor`,摘要列表为空。摘要结构见[查询投影](#context-projection)。
383
+
384
+ The earlier compatibility selector remains
381
385
  available and resolves in this order:
382
386
 
383
387
  1. exact stable ID;
@@ -395,30 +399,44 @@ when no candidate is sufficient.
395
399
 
396
400
  ## Context Projection
397
401
 
398
- For one selected node, `context` returns:
399
-
400
- - the selected node;
401
- - its ordered ancestor chain;
402
- - direct semantic children;
403
- - direct incoming and outgoing horizontal relations;
404
- - complete summaries for referenced endpoint nodes;
405
- - navigation anchors for all directly returned nodes;
406
- - the document IDs that supplied each item;
407
- - advisory anchor diagnostics when requested and available;
408
- - complete related flows, including steps and labeled transitions.
409
-
410
- A flow is related when it belongs to the selected scenario, belongs to a
411
- scenario under the selected domain or capability, or directly references the
412
- selected operation, data, invariant, or interface from one of its steps.
413
-
414
- The result is intentionally local. The caller can query another returned stable
415
- ID when it needs to expand the investigation.
402
+ `search`、`search --flows`、`context` 与指定 ID 的 `flows` 共用局部业务摘要。
403
+ 查询结果使用紧凑 JSON,`repository` 只保留 `root`;不附地图文件目录。
404
+ 完整 YAML 仍是持久业务来源,以下位置与关联摘要在每次查询中派生。
405
+
406
+ | 字段 | 含义与读取方式 |
407
+ | --- | --- |
408
+ | `scope: "recorded"` | 仅反映当前地图显式记录的关系,不代表已确认影响或完整依赖 |
409
+ | `concepts` | 按 ID 唯一的概念详情:`id`、`kind`、`name`、`summary`、可选 `notes`、源码 `anchors` 和维护位置 `map`;规则沿 `invariant` 概念及 `constrained_by` 表达 |
410
+ | `relations` | `from`、`type`、`to`、`summary`、可选 `notes` 和 `map`;端点用 ID 引用概念,保留关联原因 |
411
+ | `flows` | 流程的 `id`、`name`、所属 `scenario` ID、`map` 与 `references`;仅为所属/引用摘要,不展开步骤与转换 |
412
+ | `flows[].references` | 相关概念的 `concept` ID、引用它的 `step` ID 和步骤 `map`,供调查及同步图时定位 |
413
+
414
+ 摘要先取查询种子的所有直接关系,再沿直接关系涉及的共享 `data`、`interface` 和
415
+ `invariant`,补充它们的其他非 `part_of` 关系。它会暴露共享订单的读写者、同一事件的
416
+ 生产者与消费者、同一规则约束的其他动作;不会沿普通动作继续无限递归,也不把归属
417
+ 解释成执行先后。流程摘要覆盖这些业务概念所属的场景或直接引用它们的步骤。
418
+ 哪些关系与当前修改相关,仍由调用者核实源码与业务证据。
419
+
420
+ `context <id-or-term>` 在摘要外返回 `selector`、`matchedBy`、所选概念详情 `selected`、
421
+ 按顺序排列的祖先 ID `ancestors` 和直接子概念 ID `children`。祖先与子概念详情纳入
422
+ `concepts`,所选概念不再在其中重复。归属链只补充身份与导航,不自动展开所有后代
423
+ 的业务或流程;需要时按返回 ID 继续查询。
424
+
425
+ 各 `map` 为 `{file, line?, column?}`:`file` 相对 `repository.root`,一基行列从本次
426
+ 读取的 YAML AST 派生,指向概念/流程/步骤的 `id` 或关系的 `from`。无法取得位置
427
+ 时仅保留文件,不编造行列。该位置是维护声明的入口,不是代码位置,也不持久化。
428
+
429
+ 源码锚点保持[原有字段](#navigation-anchors),额外的 `resolution` 只表达导航状态。
430
+ 存在的 `file`/`document` 标为 `located`,`location` 指向文件第一行;目录、符号和
431
+ `search` 保留 `hint`。绑定符号的 `file` 与 `value` 继续交给调用者查当前声明,不猜
432
+ 代码行号;预期本地路径缺失或类型不符时标为 `missing`。这些状态不确认业务行为,
433
+ 也不从跨项目线索推导新的关系模型。
416
434
 
417
435
  ## 同分支编辑与业务定位
418
436
 
419
- 改变业务行为时,在同一开发分支更新代码和相关流程,校验完整地图,实际查看受影响
420
- 图,并一起评审和合入。纯实现调整不改变流程含义时保持原图。合并冲突按合并后代码
421
- 重新核实分支、结果与引用,再修订资料,不等待合入后创建候选任务。
437
+ 业务规则变化先在流程中表达,再同分支实现和验证,并一起评审合入。纯实现调整不
438
+ 改变业务含义时保持原图。合并冲突先确定共同生效的最终业务流程,再核对代码中的
439
+ 分支、结果与引用;不等待合入后创建候选任务,也不让代码先合入决定业务规则。
422
440
 
423
441
  AI 不必先从总览进入。已知编号直接 `flows <flow-id>`;未知时
424
442
  `search "<business-query>" --flows` 搜索流程业务词,再读取命中的图、步骤和概念锚点。
@@ -431,11 +449,19 @@ AI 不必先从总览进入。已知编号直接 `flows <flow-id>`;未知时
431
449
  ## 流程搜索与直接读取
432
450
 
433
451
  `search <query> --flows` 直接返回最多五个业务流程候选,包含 `id`、`name`、`summary`、
434
- `scenarioId`、相对分数和命中字段。匹配流程名称、所属场景业务别名、步骤及其引用业务的名称和说明,使用
435
- 本地词面检索。没有 `--flows` 时仍搜索业务概念。
436
-
437
- `flows <flow-id>` 直接读取该图,`data.selected` 包含入口、步骤、带标签转换、父流程和
438
- 业务概念。步骤的 `concept` 为包含源码锚点的业务对象,`childFlows` 指向子图。
439
- 指定编号时只返回该流程,不附带全量目录。省略编号时返回 `data.navigation`,
440
- 它与人的级联菜单共用同一目录,AI不必先读它。
452
+ `scenarioId`、相对分数和命中字段。每个候选有流程 `map` 与 `matchedSteps`,命中步骤
453
+ 带 ID、名称、可选概念 ID 和维护位置。匹配流程名称、所属场景业务别名、步骤及其引用
454
+ 业务的名称和说明,使用本地词面检索。没有 `--flows` 时仍搜索业务概念。
455
+
456
+ `contextFor` 为第一流程候选的 ID,摘要基于其所属场景及命中步骤引用的概念;它不表示
457
+ 已选定业务。其他候选更合适时,可按 `scenarioId` 读取概念上下文,或按流程 ID 读取
458
+ 完整流程。搜索不附每个候选的完整邻域,也不重复输出各图的全部步骤。
459
+
460
+ `flows <flow-id>` 读取该图的完整本层细节。`data.selected` 包含 `id`、`name`、`summary`、
461
+ 所属 `scenario` ID、`map`、入口 `startsAt`、可选 `notes`、父流程 ID `parents`、步骤
462
+ `steps` 和带标签转换 `transitions`。步骤保留 `kind`、`name`、`summary`、可选 `notes`
463
+ 及 `map`;`concept` 为可选概念 ID,`childFlows` 为子流程 ID 列表。概念详情从同一
464
+ 响应 `concepts` 查,父图和子图按 ID 需要时再读。指定编号时不附全量目录或其他流程
465
+ 完整内容。省略编号时只返回
466
+ `data.navigation`,它与人的级联菜单共用同一目录,AI 不必先读它。
441
467
  没有匹配的编号返回 `FLOW_NOT_FOUND`,不会自动换成名字相近的业务。