semantic-atlas 2.8.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/semantic-atlas/SKILL.md +95 -281
- package/.agents/skills/semantic-atlas/agents/openai.yaml +2 -2
- package/.agents/skills/semantic-atlas/references/boundary-design.md +52 -0
- package/.agents/skills/semantic-atlas/references/diagram-design.md +140 -0
- package/.agents/skills/semantic-atlas/references/map-authoring.md +162 -0
- package/.agents/skills/semantic-atlas/references/observations.md +23 -49
- package/.agents/skills/semantic-atlas/references/reconciliation.md +77 -0
- package/README.md +44 -90
- package/README.zh-CN.md +37 -56
- package/dist/application/map-application.d.ts +3 -1
- package/dist/application/map-application.d.ts.map +1 -1
- package/dist/application/map-application.js +59 -0
- package/dist/application/map-application.js.map +1 -1
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +12 -1
- package/dist/cli/run-cli.js.map +1 -1
- package/dist/contracts/cli.d.ts +8 -1
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/flow-navigation.d.ts +48 -0
- package/dist/contracts/flow-navigation.d.ts.map +1 -0
- package/dist/contracts/flow-navigation.js +2 -0
- package/dist/contracts/flow-navigation.js.map +1 -0
- package/dist/contracts/map.d.ts +5 -5
- package/dist/i18n/index.d.ts +22 -196
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/locales/en/cli.d.ts +3 -0
- package/dist/i18n/locales/en/cli.d.ts.map +1 -1
- package/dist/i18n/locales/en/cli.js +3 -0
- package/dist/i18n/locales/en/cli.js.map +1 -1
- package/dist/i18n/locales/en/errors.d.ts +1 -0
- package/dist/i18n/locales/en/errors.d.ts.map +1 -1
- package/dist/i18n/locales/en/errors.js +1 -0
- package/dist/i18n/locales/en/errors.js.map +1 -1
- package/dist/i18n/locales/en/viewer.d.ts +7 -98
- package/dist/i18n/locales/en/viewer.d.ts.map +1 -1
- package/dist/i18n/locales/en/viewer.js +14 -105
- package/dist/i18n/locales/en/viewer.js.map +1 -1
- package/dist/i18n/locales/zh-CN/cli.d.ts +3 -0
- package/dist/i18n/locales/zh-CN/cli.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN/cli.js +3 -0
- package/dist/i18n/locales/zh-CN/cli.js.map +1 -1
- package/dist/i18n/locales/zh-CN/errors.d.ts +1 -0
- package/dist/i18n/locales/zh-CN/errors.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN/errors.js +1 -0
- package/dist/i18n/locales/zh-CN/errors.js.map +1 -1
- package/dist/i18n/locales/zh-CN/viewer.d.ts +7 -98
- package/dist/i18n/locales/zh-CN/viewer.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN/viewer.js +14 -105
- package/dist/i18n/locales/zh-CN/viewer.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/query/concept-search-service.d.ts +1 -1
- package/dist/query/concept-search-service.d.ts.map +1 -1
- package/dist/query/concept-search-service.js +2 -2
- package/dist/query/concept-search-service.js.map +1 -1
- package/dist/query/flow-navigation-service.d.ts +16 -0
- package/dist/query/flow-navigation-service.d.ts.map +1 -0
- package/dist/query/flow-navigation-service.js +96 -0
- package/dist/query/flow-navigation-service.js.map +1 -0
- package/dist/query/flow-search-service.d.ts +9 -0
- package/dist/query/flow-search-service.d.ts.map +1 -0
- package/dist/query/flow-search-service.js +69 -0
- package/dist/query/flow-search-service.js.map +1 -0
- package/dist/rendering/flow-projector.d.ts +1 -0
- package/dist/rendering/flow-projector.d.ts.map +1 -1
- package/dist/rendering/flow-projector.js +73 -181
- package/dist/rendering/flow-projector.js.map +1 -1
- package/dist/rendering/map-projector.d.ts +4 -5
- package/dist/rendering/map-projector.d.ts.map +1 -1
- package/dist/rendering/map-projector.js +12 -289
- package/dist/rendering/map-projector.js.map +1 -1
- package/dist/rendering/viewer-browser.d.ts.map +1 -1
- package/dist/rendering/viewer-browser.js +517 -556
- package/dist/rendering/viewer-browser.js.map +1 -1
- package/dist/rendering/viewer-diagram.d.ts +3 -5
- package/dist/rendering/viewer-diagram.d.ts.map +1 -1
- package/dist/rendering/viewer-diagram.js +30 -93
- package/dist/rendering/viewer-diagram.js.map +1 -1
- package/dist/rendering/viewer-layout.d.ts +9 -5
- package/dist/rendering/viewer-layout.d.ts.map +1 -1
- package/dist/rendering/viewer-layout.js +107 -52
- package/dist/rendering/viewer-layout.js.map +1 -1
- package/dist/rendering/viewer-navigation.d.ts +4 -0
- package/dist/rendering/viewer-navigation.d.ts.map +1 -0
- package/dist/rendering/viewer-navigation.js +8 -0
- package/dist/rendering/viewer-navigation.js.map +1 -0
- package/dist/rendering/viewer-page.d.ts +12 -28
- package/dist/rendering/viewer-page.d.ts.map +1 -1
- package/dist/rendering/viewer-page.js +133 -563
- package/dist/rendering/viewer-page.js.map +1 -1
- package/dist/setup/managed-skill-installer.d.ts +1 -1
- package/dist/setup/managed-skill-installer.d.ts.map +1 -1
- package/dist/setup/managed-skill-installer.js +1 -1
- package/dist/setup/managed-skill-installer.js.map +1 -1
- package/dist/setup/package-upgrader.d.ts.map +1 -1
- package/dist/setup/package-upgrader.js +1 -4
- package/dist/setup/package-upgrader.js.map +1 -1
- package/docs/architecture.md +74 -176
- package/docs/evaluation.md +15 -4
- package/docs/index.md +9 -2
- package/docs/map-format.md +47 -21
- package/docs/observations.md +7 -3
- package/docs/product-contract.md +61 -94
- package/examples//350/256/242/345/215/225/347/256/241/347/220/206/README.md +16 -0
- package/examples//350/256/242/345/215/225/347/256/241/347/220/206/docs/business-map/orders.yaml +267 -0
- package/package.json +4 -5
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +0 -218
- package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +0 -4
- package/.agents/skills/semantic-atlas-maintenance/references/boundary-design.md +0 -120
- package/.agents/skills/semantic-atlas-maintenance/references/map-authoring.md +0 -127
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +0 -149
- package/dist/rendering/diagram-image.d.ts +0 -17
- package/dist/rendering/diagram-image.d.ts.map +0 -1
- package/dist/rendering/diagram-image.js +0 -102
- package/dist/rendering/diagram-image.js.map +0 -1
- package/dist/rendering/manual-layout.d.ts +0 -4
- package/dist/rendering/manual-layout.d.ts.map +0 -1
- package/dist/rendering/manual-layout.js +0 -72
- package/dist/rendering/manual-layout.js.map +0 -1
- package/dist/rendering/map-camera.d.ts +0 -26
- package/dist/rendering/map-camera.d.ts.map +0 -1
- package/dist/rendering/map-camera.js +0 -54
- package/dist/rendering/map-camera.js.map +0 -1
- package/dist/rendering/viewer-legend.d.ts +0 -4
- package/dist/rendering/viewer-legend.d.ts.map +0 -1
- package/dist/rendering/viewer-legend.js +0 -138
- package/dist/rendering/viewer-legend.js.map +0 -1
package/docs/map-format.md
CHANGED
|
@@ -21,6 +21,11 @@ The first implementation uses this conventional directory. Every `*.yaml` file
|
|
|
21
21
|
in the directory participates in one repository-wide graph. File names organize
|
|
22
22
|
ownership but do not become graph nodes.
|
|
23
23
|
|
|
24
|
+
多项目工作空间中的各仓库保留各自的流程文件。查询、校验和渲染通过 `--repo` 指定目标
|
|
25
|
+
仓库,概念与流程 ID 在该仓库加载的图内解析,源码锚点也相对它解析。工作目录可以位于
|
|
26
|
+
父工作空间;省略 `--repo` 只加载当前目录,不递归合并子项目。工作空间项目映射负责
|
|
27
|
+
找到目标仓库,跨项目协作分别读取双方资料并核实真实契约。
|
|
28
|
+
|
|
24
29
|
## Business Ownership And File Boundaries
|
|
25
30
|
|
|
26
31
|
Every map-writing task chooses ownership from stable business responsibilities,
|
|
@@ -28,7 +33,7 @@ owned data/rules, and collaborators. This applies to initial creation, later
|
|
|
28
33
|
capability additions, drift correction and candidate maintenance. Source
|
|
29
34
|
folders, existing filenames and recorded candidate owners supply evidence;
|
|
30
35
|
current business meaning decides the boundary. Before encoding, use the Skills'
|
|
31
|
-
[boundary-design method](../.agents/skills/semantic-atlas
|
|
36
|
+
[boundary-design method](../.agents/skills/semantic-atlas/references/boundary-design.md)
|
|
32
37
|
to establish cohesive responsibilities, supported lifecycle coverage and
|
|
33
38
|
collaborator limits. That reference owns the judgment method; this page owns
|
|
34
39
|
its representation in the tracked model.
|
|
@@ -224,7 +229,7 @@ Step kinds are:
|
|
|
224
229
|
|
|
225
230
|
Each step has an ID unique within its flow, a name, a summary, and an optional
|
|
226
231
|
`concept` reference to an existing graph node. Referencing the same concept is
|
|
227
|
-
what lets the Viewer
|
|
232
|
+
what lets the Viewer open a scenario-owned child process;
|
|
228
233
|
there is no separately maintained link list.
|
|
229
234
|
|
|
230
235
|
Record a step when changing it can alter a user-visible result, durable data,
|
|
@@ -283,13 +288,23 @@ declaration files, product documents, and useful search terms retain their
|
|
|
283
288
|
appropriate anchor kinds. Existing anchors remain valid and can be refined
|
|
284
289
|
during maintenance using current evidence.
|
|
285
290
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
CLI 在上下文查询中保留 `file` 和 `value` 两个字段;面向业务人员的 Viewer 隐藏
|
|
292
|
+
源码锚点。AI 用平常的仓库工具定位当前声明并读取代码,确认它实际承担的业务职责。
|
|
293
|
+
文件中的锚点保留路径与符号名称,当前源码提供行号和行为。文件或声明缺失时,
|
|
294
|
+
按既有的过期锚点流程调查。
|
|
295
|
+
|
|
296
|
+
## 流程图阅读与层次
|
|
297
|
+
|
|
298
|
+
所有可视页面使用 `flows`,总览同样是一条显式编写的业务流程。AI 从入口、动作、
|
|
299
|
+
判断、条件与结果组织总览,子流程通过步骤的 `concept` 引用其所属场景进入。
|
|
300
|
+
`part_of` 只表达业务归属,不推断执行先后;没有 `flows` 的资料仍可被 CLI 查询,
|
|
301
|
+
阅读器显示空状态。
|
|
302
|
+
|
|
303
|
+
默认入口是没有被其他流程的步骤引用其场景的根流程,按稳定编号排序;随后沿步骤
|
|
304
|
+
引用安排子流程。步骤对自身场景的引用不算新的父层。所有流程都能从按需选择器访问。
|
|
305
|
+
|
|
306
|
+
步骤备注优先使用自己的 `notes`,未写时沿用所引用概念的备注。只有业务备注才打开节点详情;子流程角标直接进入,多目标先选择。新增或修改概念、关系和流程仍沿用 v1 字段;源码锚点只供
|
|
307
|
+
AI 与 CLI 使用,业务界面不展示。
|
|
293
308
|
|
|
294
309
|
## Validation Rules
|
|
295
310
|
|
|
@@ -387,17 +402,28 @@ selected operation, data, invariant, or interface from one of its steps.
|
|
|
387
402
|
The result is intentionally local. The caller can query another returned stable
|
|
388
403
|
ID when it needs to expand the investigation.
|
|
389
404
|
|
|
390
|
-
##
|
|
405
|
+
## 同分支编辑与业务定位
|
|
406
|
+
|
|
407
|
+
改变业务行为时,在同一开发分支更新代码和相关流程,校验完整地图,实际查看受影响
|
|
408
|
+
图,并一起评审和合入。纯实现调整不改变流程含义时保持原图。合并冲突按合并后代码
|
|
409
|
+
重新核实分支、结果与引用,再修订资料,不等待合入后创建候选任务。
|
|
410
|
+
|
|
411
|
+
AI 不必先从总览进入。已知编号直接 `flows <flow-id>`;未知时
|
|
412
|
+
`search "<business-query>" --flows` 搜索流程业务词,再读取命中的图、步骤和概念锚点。
|
|
413
|
+
`context <concept-id>` 补充协作者、规则与数据;`flows` 无编号仅提供可选目录。
|
|
414
|
+
词面匹配不能识别任意同义表达,AI 仍需按业务含义选择结果并核实当前源码。
|
|
415
|
+
|
|
416
|
+
旧文件兼容不是新格式设计约束。现有字段足以表达本轮导航与锚点,因此没有为本轮
|
|
417
|
+
新增持久结构;将来需要新结构时明确契约,再按新版重写资料,无需保留旧解析分支。
|
|
418
|
+
|
|
419
|
+
## 流程搜索与直接读取
|
|
391
420
|
|
|
392
|
-
|
|
393
|
-
|
|
421
|
+
`search <query> --flows` 直接返回最多五个业务流程候选,包含 `id`、`name`、`summary`、
|
|
422
|
+
`scenarioId`、相对分数和命中字段。匹配流程名称、所属场景业务别名、步骤及其引用业务的名称和说明,使用
|
|
423
|
+
本地词面检索。没有 `--flows` 时仍搜索业务概念。
|
|
394
424
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
submits the normal repository change for review. A mapless repository can use
|
|
401
|
-
the same candidate path to establish one evidence-supported initial domain.
|
|
402
|
-
Direct authoring and ownership reorganization use the common business-ownership
|
|
403
|
-
rules above and review their complete necessary set of owning files together.
|
|
425
|
+
`flows <flow-id>` 直接读取该图,`data.selected` 包含入口、步骤、带标签转换、父流程和
|
|
426
|
+
业务概念。步骤的 `concept` 为包含源码锚点的业务对象,`childFlows` 指向子图。
|
|
427
|
+
指定编号时只返回该流程,不附带全量目录。省略编号时返回 `data.navigation`,
|
|
428
|
+
它与人的级联菜单共用同一目录,AI不必先读它。
|
|
429
|
+
没有匹配的编号返回 `FLOW_NOT_FOUND`,不会自动换成名字相近的业务。
|
package/docs/observations.md
CHANGED
|
@@ -7,6 +7,10 @@ and summary contract.
|
|
|
7
7
|
|
|
8
8
|
**Status: implemented with current task, review, and maintenance contracts.**
|
|
9
9
|
|
|
10
|
+
本页说明保留的可选观察与历史候选工具。普通开发在同分支同步代码与流程,不要求
|
|
11
|
+
写观察、先生成候选或等待合入后维护。下文的集成记录规则仅适用于明确请求处理
|
|
12
|
+
既有历史观察的工作。
|
|
13
|
+
|
|
10
14
|
## Authority Boundary
|
|
11
15
|
|
|
12
16
|
Every business-changing engineering or analysis run produces one
|
|
@@ -92,7 +96,7 @@ only discarded and unresolved results omits `mapChange`.
|
|
|
92
96
|
|
|
93
97
|
The understanding Skill's [observation reference](../.agents/skills/semantic-atlas/references/observations.md)
|
|
94
98
|
contains complete task and review JSON examples. The maintenance Skill's
|
|
95
|
-
[reconciliation reference](../.agents/skills/semantic-atlas
|
|
99
|
+
[reconciliation reference](../.agents/skills/semantic-atlas/references/reconciliation.md)
|
|
96
100
|
contains the maintenance result shape.
|
|
97
101
|
|
|
98
102
|
## Repository Identity And Privacy
|
|
@@ -204,7 +208,7 @@ unresolved-plus-new evidence set actionable again.
|
|
|
204
208
|
|
|
205
209
|
Both commands read repository identity and immutable observation files only.
|
|
206
210
|
They do not edit observations, source, `docs/business-map`, rendered artifacts,
|
|
207
|
-
or Git state. The
|
|
211
|
+
or Git state. The unified `semantic-atlas` Skill selects one business
|
|
208
212
|
domain, rechecks current source and tracked product meaning, and submits any
|
|
209
213
|
accepted correction as a normal reviewed YAML change. Unresolved and
|
|
210
214
|
implementation-local observations remain outside the canonical map. When the
|
|
@@ -216,7 +220,7 @@ requires a recorded or idempotent response before reporting completion.
|
|
|
216
220
|
## Engineering Result Semantics
|
|
217
221
|
|
|
218
222
|
Observation recording is a secondary evidence action after the engineering
|
|
219
|
-
result is known.
|
|
223
|
+
result is known. When explicitly requested, the Skill reports the historical maintenance result;
|
|
220
224
|
observation failure is reported separately and keeps the engineering result
|
|
221
225
|
unchanged. Independent review can then distinguish a valid engineering delivery
|
|
222
226
|
with missing observation evidence from a successful accuracy record.
|
package/docs/product-contract.md
CHANGED
|
@@ -85,27 +85,28 @@ The explicit `web --repo <paths...>` form remains a temporary project set for
|
|
|
85
85
|
one session. It neither writes the user-local project file nor implicitly
|
|
86
86
|
merges registered paths. The browser receives service-assigned project IDs and
|
|
87
87
|
display names, never repository paths, and cannot submit a filesystem path.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
88
|
+
所有可视页面统一为业务流程图。总览也由 AI 显式编写动作、顺序、判断、条件与结果,
|
|
89
|
+
例如“顾客下单并付款 → 仓库发货 → 按顾客申请进入售后退款”。业务分类和归属继续
|
|
90
|
+
帮助 AI 调查,不能被当成执行顺序,也不能替代总览流程。
|
|
91
|
+
|
|
92
|
+
流程节点可以引用场景,进入该场景自己的子流程。没有被其他流程引用的根流程排在
|
|
93
|
+
前面,默认打开第一条根流程;其余流程通过“查看其他流程”的级联菜单或节点角标进入。没有流程资料
|
|
94
|
+
时显示空状态,AI 根据当前证据编写流程后再阅读,不生成分类图或猜测连线。
|
|
95
|
+
|
|
96
|
+
单项目界面只显示当前流程标题,不重复展示目录名或产品品牌栏。“查看其他流程”
|
|
97
|
+
放在标题旁,菜单左对齐并向右增加层级。鼠标悬停整行展开下一层,点击名称直达;
|
|
98
|
+
触屏仍可点展开箭头,键盘可用方向键浏览。“上一层”沿实际访问历史返回。
|
|
99
|
+
节点角标直接进入子流程;多个目标时先选择。点击节点正文只在有业务备注时打开
|
|
100
|
+
默认关闭的详情,详情不再包含进入按钮。无备注节点正文保持原样。
|
|
101
|
+
起点、判断、结果与子流程继续使用当前卡片样式,不改成大菱形。
|
|
102
|
+
|
|
103
|
+
业务文件只由 AI 编辑。源码路径、类和方法锚点保留在文件与 CLI 中,Web 面向业务
|
|
104
|
+
人员,隐藏源码与 AI 怎样编排图的理由。业务规则自身的目的和取舍仍可写成节点备注。
|
|
105
|
+
浏览器只负责阅读、导航、平移和缩放,不修改业务资料。
|
|
106
|
+
|
|
107
|
+
画布采用紧凑 HTML 卡片与 SVG 正交连线。文字可选择、可复制,长文本与整页翻译后
|
|
108
|
+
按实际内容重新测量;小图不自动放大超过原始字号,避免节点和线条变成大色块。
|
|
109
|
+
Web 与导出的单文件 HTML 共用同一个阅读器。
|
|
109
110
|
|
|
110
111
|
### Runtime language
|
|
111
112
|
|
|
@@ -113,7 +114,7 @@ Product-owned text supports English and Simplified Chinese, with English as
|
|
|
113
114
|
the fallback. CLI help and diagnostics follow the system's language environment.
|
|
114
115
|
The shared Viewer follows the browser's language preferences when the page opens,
|
|
115
116
|
for both exported HTML and local Web sessions. Its controls, diagram type labels,
|
|
116
|
-
project states
|
|
117
|
+
project states and accessibility text share that browser language.
|
|
117
118
|
The same exported file can therefore serve browsers with different preferences.
|
|
118
119
|
User-authored map names, summaries, aliases, and branch labels retain their
|
|
119
120
|
original content; machine-readable keys, IDs, error codes, and enum values remain
|
|
@@ -134,25 +135,21 @@ unique and relationships and flows retain their business owners. The
|
|
|
134
135
|
[map format](map-format.md#business-ownership-and-file-boundaries) owns these
|
|
135
136
|
rules for the complete authoring lifecycle.
|
|
136
137
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
current code and stable product meaning by business domain, then updates tracked
|
|
153
|
-
map files through ordinary Git changes. When no map exists, it can establish one
|
|
154
|
-
evidence-supported initial business domain. Periodic reconciliation recovers
|
|
155
|
-
missed work and accumulated drift.
|
|
138
|
+
产品自带的维护 Skill 同时承担业务图的阅读编排方法:AI 根据业务资料选择每图的
|
|
139
|
+
边界、层次、表达与修改范围,并核对完整业务分支、目的、代价和依据。软件提供结构
|
|
140
|
+
表达、校验、渲染和浏览能力;这些方法沿当前版本实际支持的格式使用,具体指南见
|
|
141
|
+
[业务图设计](../.agents/skills/semantic-atlas/references/diagram-design.md)。
|
|
142
|
+
|
|
143
|
+
业务行为变化时,在当前开发分支同时修改代码与受影响流程图,一起检查、提交和合入。
|
|
144
|
+
内部重命名、接线或组织变化没有改变业务含义时,不强制重画。新的局部业务没有流程
|
|
145
|
+
资料时,建立足以表达当前改动的流程,不补画整个系统。
|
|
146
|
+
|
|
147
|
+
合并出现冲突时,依据合并后代码的业务行为重新梳理受影响路径,检查上下层和协作
|
|
148
|
+
交接,再解决图文件冲突。不能只做文本拼接或保留与代码不一致的分支。
|
|
149
|
+
候选、观察和合入后的校准不再作为正常开发门槛;既有历史工具只在明确请求时使用。
|
|
150
|
+
|
|
151
|
+
旧业务文件不构成格式兼容约束。格式以当前产品需求与具体契约决定,新版发布后再
|
|
152
|
+
重写已有业务资料;本轮不批量迁移其他项目,也不额外加入旧格式兼容路径。
|
|
156
153
|
|
|
157
154
|
## Shared Business Model
|
|
158
155
|
|
|
@@ -188,8 +185,7 @@ source details until they express durable business meaning.
|
|
|
188
185
|
A flow belongs to one existing scenario and orders business-granularity
|
|
189
186
|
`action`, `decision`, and `outcome` steps through transitions. Decision
|
|
190
187
|
transitions carry distinct business labels. A step can reference an existing
|
|
191
|
-
|
|
192
|
-
link contract.
|
|
188
|
+
场景概念 ID,从该步骤进入场景自有的子流程,无需第二套链接字段。
|
|
193
189
|
|
|
194
190
|
Flows retain only steps that can change a user-visible result, durable data,
|
|
195
191
|
cost or provider usage, authorization or tenant isolation, an interface, or a
|
|
@@ -203,7 +199,7 @@ authoritative for current application behavior.
|
|
|
203
199
|
|
|
204
200
|
Every business-changing engineering task follows this evidence order:
|
|
205
201
|
|
|
206
|
-
1.
|
|
202
|
+
1. 已知流程或业务 ID 时直接读取;未知时按本次业务意图搜索相关流程,不要求从总览开始。
|
|
207
203
|
2. A map proposes likely business scope and relations; `MAP_NOT_FOUND` routes to
|
|
208
204
|
the smallest source-supported business model needed for the task.
|
|
209
205
|
3. Current source and tests confirm implementation behavior.
|
|
@@ -212,13 +208,11 @@ Every business-changing engineering task follows this evidence order:
|
|
|
212
208
|
behavior when the task requires it.
|
|
213
209
|
6. The agent reports uncertainty when available evidence cannot support a
|
|
214
210
|
decisive conclusion.
|
|
215
|
-
7.
|
|
216
|
-
for stable business meaning supported by decisive evidence.
|
|
211
|
+
7. 业务行为变化时,代码与相关流程在同分支同步验证;观察记录仅按明确请求执行。
|
|
217
212
|
|
|
218
213
|
An outdated path or symbol anchor weakens that navigation hint without
|
|
219
214
|
invalidating unrelated business meaning. A contradiction changes the current
|
|
220
|
-
task conclusion immediately
|
|
221
|
-
reconciliation.
|
|
215
|
+
task conclusion immediately; an affected business flow is corrected alongside the code.
|
|
222
216
|
|
|
223
217
|
## Collaboration And Concurrency
|
|
224
218
|
|
|
@@ -226,11 +220,8 @@ Business-map files live in the repository and travel with its branches. Files
|
|
|
226
220
|
are divided by stable business domain so agents can read concurrently and most
|
|
227
221
|
durable updates touch only one owning map.
|
|
228
222
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
requires later maintenance; successful engineering delivery does not depend on
|
|
232
|
-
synchronizing the shared map. Reconciliation uses normal Git diff, review, and
|
|
233
|
-
merge semantics instead of a second transaction or locking protocol.
|
|
223
|
+
业务代码和流程图随同一分支、同一次评审与合并维护。多个 Agent 修改同一业务时,
|
|
224
|
+
以最终合并行为核对流程,使用正常 Git 评审处理冲突,不引入第二套候选提交门槛。
|
|
234
225
|
|
|
235
226
|
## Initial Product Scope
|
|
236
227
|
|
|
@@ -248,11 +239,9 @@ The initial product delivers one coherent path:
|
|
|
248
239
|
business flows.
|
|
249
240
|
7. Render deterministic interactive human-readable projections from the same
|
|
250
241
|
graph as a portable HTML artifact or loopback Web session, with linked
|
|
251
|
-
|
|
252
|
-
8.
|
|
253
|
-
|
|
254
|
-
`MAP_NOT_FOUND` into current-source confirmation, and makes an explicit
|
|
255
|
-
post-task maintenance decision.
|
|
242
|
+
business process diagrams.
|
|
243
|
+
8. 提供统一 Skill:按已知业务编号直接读取,或按意图搜索相关流程;核实当前源码,
|
|
244
|
+
业务行为变化时在同一分支同步代码与图,不要求固定先从目录或总览开始。
|
|
256
245
|
9. Exercise the workflow against real engineering tasks, including stale and
|
|
257
246
|
incomplete map cases.
|
|
258
247
|
|
|
@@ -295,7 +284,7 @@ the following:
|
|
|
295
284
|
- ranked search returns the expected node-level candidates and stable IDs, then
|
|
296
285
|
context queries return the expected business owner, containment, incoming
|
|
297
286
|
and outgoing relationships, navigation anchors, and related flows;
|
|
298
|
-
- the renderer produces readable
|
|
287
|
+
- the renderer produces readable business process diagrams from the
|
|
299
288
|
same normalized map and links shared business concepts between them;
|
|
300
289
|
- a package-managed Agent Skill activates for business-changing work with or
|
|
301
290
|
without a map, probes bounded context before broad discovery, and confirms
|
|
@@ -345,17 +334,11 @@ npm install --global semantic-atlas
|
|
|
345
334
|
semantic-atlas setup
|
|
346
335
|
```
|
|
347
336
|
|
|
348
|
-
`setup`
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
previous copy on failure, and refuses to replace an unrelated same-named
|
|
354
|
-
directory.
|
|
355
|
-
|
|
356
|
-
Business repositories share only `docs/business-map/*.yaml` through Git. They do
|
|
357
|
-
not duplicate the managed user Skills. The package, installed CLI, and installed
|
|
358
|
-
Skills must have one verifiable version identity.
|
|
337
|
+
`setup` 安装一个统一的 `semantic-atlas` Skill 到 `~/.agents/skills/semantic-atlas`。
|
|
338
|
+
它负责理解业务、核实证据、编写与维护流程图;内部资料按当前任务读取。
|
|
339
|
+
安装仍检查包版本、内容指纹和归属标记,使用原子替换;无关同名目录受到保护。
|
|
340
|
+
旧安装中的 `semantic-atlas-maintenance` 目录不被自动删除,本地源码改动也不更新用户
|
|
341
|
+
已安装目录。业务仓库只共享业务 YAML,安装与公开发布各自验证。
|
|
359
342
|
|
|
360
343
|
### Accuracy observations
|
|
361
344
|
|
|
@@ -399,26 +382,11 @@ regression, independent-review rework, human correction, and safe recovery from
|
|
|
399
382
|
missing, stale, or contradicted map knowledge. Tokens, files, time, compute, and
|
|
400
383
|
map-maintenance effort remain explanatory measures.
|
|
401
384
|
|
|
402
|
-
###
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
single `required` boolean. It lets an orchestrator decide whether to create one
|
|
408
|
-
maintenance task without receiving candidate, Review, or business-domain data.
|
|
409
|
-
`reconcile candidates` is read-only and returns current actionable origins while
|
|
410
|
-
preserving their evidence disposition, duplicate provenance, linked independent
|
|
411
|
-
review, and earlier unresolved investigation. Accepted, refined, and discarded
|
|
412
|
-
origins are terminal. Unresolved origins wait for a new origin in the same
|
|
413
|
-
candidate group before becoming actionable again. A
|
|
414
|
-
post-integration maintenance task selects one business domain, checks current
|
|
415
|
-
source and durable product meaning, confirms its real owner and updates that
|
|
416
|
-
owning YAML map through normal Git review, and records the immutable result only after review and integration.
|
|
417
|
-
It leaves unresolved or implementation-local meaning outside the canonical map.
|
|
418
|
-
A mapless repository can create one initial domain-owned YAML
|
|
419
|
-
when current evidence establishes stable identity and bounded meaning. Periodic
|
|
420
|
-
runs provide a fallback for missed observations, accumulated drift, and changes
|
|
421
|
-
outside the normal workflow.
|
|
385
|
+
### 可选历史观察与候选处理
|
|
386
|
+
|
|
387
|
+
`observe` 和 `reconcile` 保留已有不可变记录的查询与处理契约,仅在用户明确要求时使用。
|
|
388
|
+
旧维护观察仍按精确来源记账,不重解释历史字段;这些工具不形成普通开发的候选门槛。
|
|
389
|
+
日常业务变化在当前分支同步代码和流程,冲突按合并后代码重审,再一起验证合入。
|
|
422
390
|
|
|
423
391
|
### Real-use acceptance
|
|
424
392
|
|
|
@@ -426,8 +394,8 @@ The first pilot starts with one stable business domain in a private target
|
|
|
426
394
|
repository rather than mapping the whole repository. Its initial map is
|
|
427
395
|
independently reviewed before merge. Task orchestrators keep their own develop,
|
|
428
396
|
independent review, rework, and integration lifecycle. Semantic Atlas activates
|
|
429
|
-
from the Agent's business task, supplies
|
|
430
|
-
|
|
397
|
+
from the Agent's business task, supplies source-supported business understanding,
|
|
398
|
+
and remains independent of orchestration.
|
|
431
399
|
|
|
432
400
|
Longitudinal acceptance requires at least 20 natural business-changing tasks
|
|
433
401
|
with independent review, at least one period of real code drift, and two
|
|
@@ -438,8 +406,7 @@ writes. Natural use is not replaced with manufactured jobs or provider activity.
|
|
|
438
406
|
Any map-caused wrong conclusion, Store/authorization/data-boundary regression,
|
|
439
407
|
or installed CLI/Skill version mismatch blocks acceptance. The final stage also
|
|
440
408
|
tests multiple Agents in independent worktrees reading one map revision and
|
|
441
|
-
|
|
442
|
-
separate reconciliation task.
|
|
409
|
+
在各自分支同步修改代码与流程,并在合并后重新核对冲突业务;观察记录仅作为可选证据。
|
|
443
410
|
|
|
444
411
|
## Delivery Boundary
|
|
445
412
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# 订单业务示例
|
|
2
|
+
|
|
3
|
+
虚构的订单旅程,用于检查流程阅读与逐层深入,不代表任何线上系统的现行规则。
|
|
4
|
+
|
|
5
|
+
从 Semantic Atlas 仓库根目录运行:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pnpm build
|
|
9
|
+
node dist/cli/bin.js web --repo examples/订单管理 --port 4324 --no-open
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
默认打开“订单全流程”:顾客下单并付款,交给仓库发货;顾客提出退款申请时进入售后,
|
|
13
|
+
没有申请则结束订单旅程。点击下单、发货或售后节点右上角的角标,直接进入子流程。
|
|
14
|
+
下单流程还可以继续进入支付细图。“查看其他流程”按层级展开;“上一层”沿实际来路恢复。
|
|
15
|
+
|
|
16
|
+
所有图都是流程图;起点、判断、结果与子流程节点有不同样式。资料只由 AI 修改文件。
|