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/examples//350/256/242/345/215/225/347/256/241/347/220/206/docs/business-map/orders.yaml
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
schemaVersion: 1
|
|
2
|
+
map:
|
|
3
|
+
id: order-demo
|
|
4
|
+
title: 订单管理
|
|
5
|
+
summary: 演示下单、付款与发货的逐层阅读,不代表任何线上系统的现行规则。
|
|
6
|
+
nodes:
|
|
7
|
+
- id: shopping
|
|
8
|
+
kind: domain
|
|
9
|
+
name: 购物下单
|
|
10
|
+
summary: 顾客提交订单,完成付款。
|
|
11
|
+
aliases: []
|
|
12
|
+
anchors: []
|
|
13
|
+
- id: fulfillment
|
|
14
|
+
kind: domain
|
|
15
|
+
name: 仓库发货
|
|
16
|
+
summary: 仓库核对商品,把包裹交给承运商。
|
|
17
|
+
aliases: []
|
|
18
|
+
anchors: []
|
|
19
|
+
- id: aftersales
|
|
20
|
+
kind: domain
|
|
21
|
+
name: 售后退款
|
|
22
|
+
summary: 核对退款申请,退回符合条件的款项。
|
|
23
|
+
aliases: []
|
|
24
|
+
anchors: []
|
|
25
|
+
- id: shopping.checkout
|
|
26
|
+
kind: scenario
|
|
27
|
+
name: 提交并支付订单
|
|
28
|
+
summary: 从确认商品到订单付款完成。
|
|
29
|
+
aliases: []
|
|
30
|
+
anchors: []
|
|
31
|
+
- id: shopping.payment
|
|
32
|
+
kind: scenario
|
|
33
|
+
name: 支付订单
|
|
34
|
+
summary: 发起付款,确认支付结果。
|
|
35
|
+
aliases: []
|
|
36
|
+
anchors: []
|
|
37
|
+
notes: 只有确认收到款项,订单才进入待发货。支付失败时,顾客可以重新选择支付方式。
|
|
38
|
+
- id: fulfillment.ship
|
|
39
|
+
kind: scenario
|
|
40
|
+
name: 打包与发货
|
|
41
|
+
summary: 已付款订单完成拣货、打包和交运。
|
|
42
|
+
aliases: []
|
|
43
|
+
anchors: []
|
|
44
|
+
- id: aftersales.refund
|
|
45
|
+
kind: scenario
|
|
46
|
+
name: 处理退款申请
|
|
47
|
+
summary: 确认申请是否符合退款条件。
|
|
48
|
+
aliases: []
|
|
49
|
+
anchors: []
|
|
50
|
+
- id: shopping.journey
|
|
51
|
+
kind: scenario
|
|
52
|
+
name: 订单全流程
|
|
53
|
+
summary: 从顾客下单到仓库发货,再按申请处理售后退款。
|
|
54
|
+
aliases: []
|
|
55
|
+
anchors: []
|
|
56
|
+
relations:
|
|
57
|
+
- from: shopping.checkout
|
|
58
|
+
type: part_of
|
|
59
|
+
to: shopping
|
|
60
|
+
summary: 下单属于购物业务。
|
|
61
|
+
- from: shopping.payment
|
|
62
|
+
type: part_of
|
|
63
|
+
to: shopping.checkout
|
|
64
|
+
summary: 支付是下单中的一个环节。
|
|
65
|
+
- from: fulfillment.ship
|
|
66
|
+
type: part_of
|
|
67
|
+
to: fulfillment
|
|
68
|
+
summary: 打包与发货由仓库负责。
|
|
69
|
+
- from: aftersales.refund
|
|
70
|
+
type: part_of
|
|
71
|
+
to: aftersales
|
|
72
|
+
summary: 退款申请由售后处理。
|
|
73
|
+
- from: shopping.checkout
|
|
74
|
+
type: invokes
|
|
75
|
+
to: shopping.payment
|
|
76
|
+
summary: 提交订单后进入支付。
|
|
77
|
+
- from: shopping.journey
|
|
78
|
+
type: part_of
|
|
79
|
+
to: shopping
|
|
80
|
+
summary: 购物业务协调顾客订单的完整旅程。
|
|
81
|
+
- from: shopping.journey
|
|
82
|
+
type: invokes
|
|
83
|
+
to: shopping.checkout
|
|
84
|
+
summary: 顾客先完成下单和付款。
|
|
85
|
+
- from: shopping.journey
|
|
86
|
+
type: invokes
|
|
87
|
+
to: fulfillment.ship
|
|
88
|
+
summary: 已付款订单交给仓库发货。
|
|
89
|
+
- from: shopping.journey
|
|
90
|
+
type: invokes
|
|
91
|
+
to: aftersales.refund
|
|
92
|
+
summary: 顾客申请退款时交给售后处理。
|
|
93
|
+
flows:
|
|
94
|
+
- id: shopping.journey.flow
|
|
95
|
+
name: 订单全流程
|
|
96
|
+
summary: 下单付款后发货;顾客提出退款申请时,进入售后处理。
|
|
97
|
+
scenario: shopping.journey
|
|
98
|
+
startsAt: checkout
|
|
99
|
+
steps:
|
|
100
|
+
- id: checkout
|
|
101
|
+
kind: action
|
|
102
|
+
name: 顾客下单并付款
|
|
103
|
+
summary: 确认商品、地址并完成付款。
|
|
104
|
+
concept: shopping.checkout
|
|
105
|
+
notes: 本层展示完成付款后进入发货的主线。付款失败或取消时,订单留在待付款状态,具体分支在下单流程中。
|
|
106
|
+
- id: ship
|
|
107
|
+
kind: action
|
|
108
|
+
name: 仓库发货
|
|
109
|
+
summary: 核对商品、打包并交给承运商。
|
|
110
|
+
concept: fulfillment.ship
|
|
111
|
+
- id: needs-refund
|
|
112
|
+
kind: decision
|
|
113
|
+
name: 顾客申请退款吗?
|
|
114
|
+
summary: 按顾客的实际申请决定是否进入售后。
|
|
115
|
+
- id: refund
|
|
116
|
+
kind: outcome
|
|
117
|
+
name: 售后退款
|
|
118
|
+
summary: 核对条件,退款或告知处理原因。
|
|
119
|
+
concept: aftersales.refund
|
|
120
|
+
- id: completed
|
|
121
|
+
kind: outcome
|
|
122
|
+
name: 订单完成
|
|
123
|
+
summary: 本次订单无需售后处理。
|
|
124
|
+
transitions:
|
|
125
|
+
- from: checkout
|
|
126
|
+
to: ship
|
|
127
|
+
- from: ship
|
|
128
|
+
to: needs-refund
|
|
129
|
+
- from: needs-refund
|
|
130
|
+
to: refund
|
|
131
|
+
when: 申请退款
|
|
132
|
+
- from: needs-refund
|
|
133
|
+
to: completed
|
|
134
|
+
when: 不申请
|
|
135
|
+
- id: shopping.checkout.flow
|
|
136
|
+
name: 提交并支付订单
|
|
137
|
+
summary: 顾客确认商品后提交订单,付款成功后等待发货。
|
|
138
|
+
scenario: shopping.checkout
|
|
139
|
+
startsAt: confirm
|
|
140
|
+
steps:
|
|
141
|
+
- id: confirm
|
|
142
|
+
kind: action
|
|
143
|
+
name: 确认商品与地址
|
|
144
|
+
summary: 顾客确认购买内容和收货信息。
|
|
145
|
+
- id: payment
|
|
146
|
+
kind: action
|
|
147
|
+
name: 支付订单
|
|
148
|
+
summary: 顾客选择支付方式并完成付款。
|
|
149
|
+
concept: shopping.payment
|
|
150
|
+
- id: paid
|
|
151
|
+
kind: decision
|
|
152
|
+
name: 付款成功了吗?
|
|
153
|
+
summary: 以支付渠道确认的结果为准。
|
|
154
|
+
notes: 付款页面关闭不代表付款失败。收到支付渠道的最终结果后,再决定订单能否发货。
|
|
155
|
+
- id: ready
|
|
156
|
+
kind: outcome
|
|
157
|
+
name: 等待发货
|
|
158
|
+
summary: 订单进入仓库的待发货列表。
|
|
159
|
+
- id: unpaid
|
|
160
|
+
kind: outcome
|
|
161
|
+
name: 保留待付款订单
|
|
162
|
+
summary: 顾客可以稍后重新付款。
|
|
163
|
+
transitions:
|
|
164
|
+
- from: confirm
|
|
165
|
+
to: payment
|
|
166
|
+
- from: payment
|
|
167
|
+
to: paid
|
|
168
|
+
- from: paid
|
|
169
|
+
when: 成功
|
|
170
|
+
to: ready
|
|
171
|
+
- from: paid
|
|
172
|
+
when: 失败或取消
|
|
173
|
+
to: unpaid
|
|
174
|
+
- id: shopping.payment.flow
|
|
175
|
+
name: 支付订单
|
|
176
|
+
summary: 从选择支付方式,到收到支付渠道的处理结果。
|
|
177
|
+
scenario: shopping.payment
|
|
178
|
+
startsAt: choose
|
|
179
|
+
steps:
|
|
180
|
+
- id: choose
|
|
181
|
+
kind: action
|
|
182
|
+
name: 选择支付方式
|
|
183
|
+
summary: 顾客选择本次付款使用的方式。
|
|
184
|
+
- id: request
|
|
185
|
+
kind: action
|
|
186
|
+
name: 向支付渠道发起付款
|
|
187
|
+
summary: 按订单应付金额提交支付请求。
|
|
188
|
+
notes: 支付金额使用订单确认的应付金额,不能用浏览器临时提交的金额替代。
|
|
189
|
+
- id: result
|
|
190
|
+
kind: decision
|
|
191
|
+
name: 支付渠道确认成功了吗?
|
|
192
|
+
summary: 等待渠道返回本次付款的结果。
|
|
193
|
+
- id: success
|
|
194
|
+
kind: outcome
|
|
195
|
+
name: 记录付款成功
|
|
196
|
+
summary: 订单可以继续进入发货环节。
|
|
197
|
+
- id: failed
|
|
198
|
+
kind: outcome
|
|
199
|
+
name: 返回待付款
|
|
200
|
+
summary: 保留订单,顾客可以重新付款。
|
|
201
|
+
transitions:
|
|
202
|
+
- from: choose
|
|
203
|
+
to: request
|
|
204
|
+
- from: request
|
|
205
|
+
to: result
|
|
206
|
+
- from: result
|
|
207
|
+
when: 确认成功
|
|
208
|
+
to: success
|
|
209
|
+
- from: result
|
|
210
|
+
when: 失败或取消
|
|
211
|
+
to: failed
|
|
212
|
+
- id: fulfillment.ship.flow
|
|
213
|
+
name: 打包与发货
|
|
214
|
+
summary: 仓库将已付款订单交给承运商。
|
|
215
|
+
scenario: fulfillment.ship
|
|
216
|
+
startsAt: pick
|
|
217
|
+
steps:
|
|
218
|
+
- id: pick
|
|
219
|
+
kind: action
|
|
220
|
+
name: 按订单拣货
|
|
221
|
+
summary: 仓库取出订单中的商品。
|
|
222
|
+
- id: pack
|
|
223
|
+
kind: action
|
|
224
|
+
name: 核对并打包
|
|
225
|
+
summary: 核对商品和数量,贴好收货标签。
|
|
226
|
+
notes: 商品和数量与订单一致后再封箱,避免把错误商品交给承运商。
|
|
227
|
+
- id: shipped
|
|
228
|
+
kind: outcome
|
|
229
|
+
name: 交给承运商
|
|
230
|
+
summary: 包裹开始运输,顾客可以查看物流。
|
|
231
|
+
transitions:
|
|
232
|
+
- from: pick
|
|
233
|
+
to: pack
|
|
234
|
+
- from: pack
|
|
235
|
+
to: shipped
|
|
236
|
+
- id: aftersales.refund.flow
|
|
237
|
+
name: 处理退款申请
|
|
238
|
+
summary: 售后根据订单状态确认能否退款。
|
|
239
|
+
scenario: aftersales.refund
|
|
240
|
+
startsAt: request
|
|
241
|
+
steps:
|
|
242
|
+
- id: request
|
|
243
|
+
kind: action
|
|
244
|
+
name: 收到退款申请
|
|
245
|
+
summary: 顾客选择订单并说明退款原因。
|
|
246
|
+
- id: eligible
|
|
247
|
+
kind: decision
|
|
248
|
+
name: 符合退款条件吗?
|
|
249
|
+
summary: 核对订单是否已付款、是否已退款。
|
|
250
|
+
notes: 只对已付款且尚未退款的订单处理退款,避免重复退款。
|
|
251
|
+
- id: refunded
|
|
252
|
+
kind: outcome
|
|
253
|
+
name: 原路退款
|
|
254
|
+
summary: 款项退回顾客使用的支付方式。
|
|
255
|
+
- id: rejected
|
|
256
|
+
kind: outcome
|
|
257
|
+
name: 告知无法退款的原因
|
|
258
|
+
summary: 售后向顾客说明本次申请的处理结果。
|
|
259
|
+
transitions:
|
|
260
|
+
- from: request
|
|
261
|
+
to: eligible
|
|
262
|
+
- from: eligible
|
|
263
|
+
when: 符合
|
|
264
|
+
to: refunded
|
|
265
|
+
- from: eligible
|
|
266
|
+
when: 不符合
|
|
267
|
+
to: rejected
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-atlas",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "面向人与 AI 协作的业务流程图与只读阅读器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
7
7
|
"business-map",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"README.zh-CN.md"
|
|
50
50
|
],
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=24
|
|
52
|
+
"node": ">=24"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@dagrejs/dagre": "^1.1.8",
|
|
60
60
|
"commander": "^14.0.0",
|
|
61
|
-
"html-to-image": "1.11.13",
|
|
62
61
|
"i18next": "26.4.2",
|
|
63
62
|
"i18next-browser-languagedetector": "8.2.1",
|
|
64
63
|
"string-width": "^8.2.2",
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
"vitest": "^3.2.4"
|
|
74
73
|
},
|
|
75
74
|
"scripts": {
|
|
76
|
-
"build": "tsc -p tsconfig.build.json",
|
|
75
|
+
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json",
|
|
77
76
|
"contracts:check": "vitest run tests/release/release-contract.test.ts",
|
|
78
77
|
"release:verify": "pnpm lint && pnpm format:check && pnpm contracts:check && pnpm test && pnpm typecheck && pnpm build && node tests/smoke/built-render.mjs && node tests/smoke/built-skill.mjs && node tests/smoke/packaged-product.mjs && pnpm pack --dry-run && git diff --check",
|
|
79
78
|
"test": "vitest run",
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: semantic-atlas-maintenance
|
|
3
|
-
description: Create, extend, correct, and reconcile source-supported business maps according to real business ownership. Use for project or local map requests, ongoing business-map maintenance, post-integration candidate reconciliation, and drift cleanup with or without an existing business map.
|
|
4
|
-
compatibility: Requires Node.js 24+, Git, the current semantic-atlas CLI, and repository source access. Candidate reconciliation also requires retained local observations.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Semantic Atlas Maintenance
|
|
8
|
-
|
|
9
|
-
Create or maintain a source-supported business map through ordinary Git review.
|
|
10
|
-
Design a coherent, sufficiently complete responsibility before choosing its
|
|
11
|
-
map nodes and files; a plausible diagram can still omit or misplace business.
|
|
12
|
-
Current source, tests, tracked product documents, and required runtime evidence
|
|
13
|
-
decide business meaning; retained candidates supply investigation leads.
|
|
14
|
-
|
|
15
|
-
## Choose The Requested Scope
|
|
16
|
-
|
|
17
|
-
Resolve the repository root and assigned worktree. A request to create, extend,
|
|
18
|
-
correct or reorganize a map is **direct authoring**: use current evidence for
|
|
19
|
-
its requested business scope, including when the candidate report is empty.
|
|
20
|
-
Project-wide requests cover the evidenced project areas; local requests cover
|
|
21
|
-
the named neighborhood. Creating the first map is one instance of this work.
|
|
22
|
-
|
|
23
|
-
**Candidate reconciliation** selects one business domain from retained origins.
|
|
24
|
-
Load that report first, then apply the same business-ownership rules used for
|
|
25
|
-
every map change. The candidate's recorded owner is an investigation hypothesis
|
|
26
|
-
that current evidence must confirm.
|
|
27
|
-
|
|
28
|
-
Both paths continue through the common Work, Review and Integration phases.
|
|
29
|
-
Read [references/map-authoring.md](references/map-authoring.md) when a document
|
|
30
|
-
shape or relationship/flow rule needs confirmation. For candidate reconciliation,
|
|
31
|
-
also read [references/reconciliation.md](references/reconciliation.md) for
|
|
32
|
-
provenance, classification and the unchanged observation contract.
|
|
33
|
-
|
|
34
|
-
## Work Phase
|
|
35
|
-
|
|
36
|
-
### Load Current Actionable Candidates
|
|
37
|
-
|
|
38
|
-
For candidate reconciliation:
|
|
39
|
-
|
|
40
|
-
1. Resolve the repository root and work only in the assigned worktree.
|
|
41
|
-
2. Run:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
semantic-atlas reconcile candidates --repo <absolute-repository-root>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
3. Confirm the v1 `reconcile candidates` envelope. Select one business domain
|
|
48
|
-
from `data.domains`. Read each origin's exact `taskObservationId` and
|
|
49
|
-
`candidateIndex`, task evidence, linked independent reviews, duplicate
|
|
50
|
-
provenance, and any earlier unresolved maintenance history.
|
|
51
|
-
Treat task-time `confirmed`, `contradicted`, and `unresolved` dispositions as
|
|
52
|
-
investigation inputs rather than maintenance conclusions. A candidate with
|
|
53
|
-
`kind: "flow"` proposes a correction to one stable business scenario path.
|
|
54
|
-
4. When `data.domains` is empty, finish with a no-change result. A positive
|
|
55
|
-
`waitingForEvidenceOccurrences` means prior investigation remains retained
|
|
56
|
-
but does not justify immediately repeating the same work.
|
|
57
|
-
|
|
58
|
-
### Establish Business Ownership Before Every Map Edit
|
|
59
|
-
|
|
60
|
-
For direct authoring, start from the requested change and current product/source
|
|
61
|
-
evidence. For candidate reconciliation, start from the selected origins and
|
|
62
|
-
confirm their current evidence. Apply this sequence when creating the first map,
|
|
63
|
-
adding later business capabilities, correcting meaning, or reconciling drift:
|
|
64
|
-
|
|
65
|
-
1. Read [references/boundary-design.md](references/boundary-design.md). Establish
|
|
66
|
-
result promises, owned decisions/state, supported lifecycles and collaborator
|
|
67
|
-
limits from current source, tests and tracked product documents. Use runtime
|
|
68
|
-
evidence when deployed state owns the conclusion. Preserve `MAP_NOT_FOUND`
|
|
69
|
-
when no map exists.
|
|
70
|
-
2. Build a source-to-map coverage account from independently discovered business
|
|
71
|
-
entries and state/rule owners. Challenge the proposed partition for overly
|
|
72
|
-
broad areas, fragmented lifecycles, omissions and misplaced concepts using
|
|
73
|
-
the reference. Record unresolved boundaries and the supported stopping point.
|
|
74
|
-
Complete this reasoning before choosing YAML files; for a local request,
|
|
75
|
-
keep the account limited to the requested neighborhood and its contracts.
|
|
76
|
-
3. Reuse an existing domain and owning file when their business meaning matches
|
|
77
|
-
the confirmed partition. Give newly identified independent business areas
|
|
78
|
-
meaningful `domain` roots and owning YAML files, including during incremental
|
|
79
|
-
maintenance. Use `capability` and `part_of` for narrower responsibilities within
|
|
80
|
-
an area. A single-business project or local task can still use one file.
|
|
81
|
-
File count follows business boundaries; domain roots drive Viewer selection.
|
|
82
|
-
4. Correct affected containment when current evidence exposes an oversized or
|
|
83
|
-
misplaced owner. Preserve stable concept IDs when business identity is
|
|
84
|
-
unchanged, while updating their owner, `part_of` and related references as
|
|
85
|
-
needed. Keep the correction within the requested/evidenced scope.
|
|
86
|
-
5. Define each shared concept once in its owning business file. Other files use
|
|
87
|
-
its stable ID. Declare each directed relation in its source concept's file,
|
|
88
|
-
including cross-file relations. Keep each flow in the same domain-owned YAML
|
|
89
|
-
as its scenario; steps may reference concepts owned by other files.
|
|
90
|
-
6. Choose anchors from the current evidence using
|
|
91
|
-
[references/map-authoring.md](references/map-authoring.md#navigation-anchors).
|
|
92
|
-
For a business action with a confirmed method or function, prefer a symbol
|
|
93
|
-
bound to its source file and describe the specific action it performs.
|
|
94
|
-
Keep domain directories, data declarations and product documents at their
|
|
95
|
-
useful navigation granularity. Refine older file-only or unbound references
|
|
96
|
-
during maintenance when current evidence establishes a more decisive entry.
|
|
97
|
-
|
|
98
|
-
For each relevant flow, confirm the business-relevant actions, decisions,
|
|
99
|
-
branches, and outcomes that can change user results, durable data, cost or
|
|
100
|
-
provider usage, authorization or isolation, or interfaces. Keep flow steps at
|
|
101
|
-
business granularity. Treat a source diff as evidence to investigate; durable
|
|
102
|
-
product meaning decides whether a flow changes. Helpers, DTO conversion,
|
|
103
|
-
framework wiring, and Service or Queue names remain source details.
|
|
104
|
-
|
|
105
|
-
### Apply The Evidence Within Its Delivery Boundary
|
|
106
|
-
|
|
107
|
-
For direct authoring, edit the files owned by the evidenced responsibilities.
|
|
108
|
-
Complete the requested business neighborhood and report unresolved meaning
|
|
109
|
-
separately. Recheck the shared ownership rules above as later evidence reveals
|
|
110
|
-
an additional owner; an existing file is reusable only while its scope remains
|
|
111
|
-
correct.
|
|
112
|
-
|
|
113
|
-
For candidate reconciliation, classify every exact origin as `accepted`,
|
|
114
|
-
`refined`, `discarded`, or `unresolved` using the reconciliation reference.
|
|
115
|
-
Keep discarded and unresolved meaning outside the canonical map. Apply accepted
|
|
116
|
-
or refined changes to the confirmed domain's existing file, or create its
|
|
117
|
-
owning YAML when that business area has no file. A mapless candidate run can
|
|
118
|
-
create one initial business-domain YAML for its supported scope. One duplicate
|
|
119
|
-
candidate group produces one edit while retaining all exact origins.
|
|
120
|
-
|
|
121
|
-
Ordinary candidate reconciliation remains one business domain and one owning
|
|
122
|
-
YAML. When a real ownership correction requires changes across existing files,
|
|
123
|
-
organize the complete necessary change as a normal reviewed authoring or
|
|
124
|
-
reorganization Git candidate. Report the affected owners and retained origins
|
|
125
|
-
explicitly. The one-file observation contract describes a candidate result;
|
|
126
|
-
it never determines business containment. Keep exact-origin reconciliation
|
|
127
|
-
separate until its result truthfully fits that contract; a multi-file correction
|
|
128
|
-
is not represented as an accepted single-path `mapChange`.
|
|
129
|
-
|
|
130
|
-
### Validate And Prepare The Review Candidate
|
|
131
|
-
|
|
132
|
-
When the map changes, run:
|
|
133
|
-
|
|
134
|
-
```bash
|
|
135
|
-
semantic-atlas validate --repo <absolute-repository-root>
|
|
136
|
-
semantic-atlas render --repo <absolute-repository-root> \
|
|
137
|
-
--output <repository-root>/tmp/semantic-atlas-map.html
|
|
138
|
-
git diff --check
|
|
139
|
-
git diff -- docs/business-map/
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
Recheck source-to-map coverage against the final partition, including supported
|
|
143
|
-
lifecycle responsibilities missing from the old map. Inspect every changed
|
|
144
|
-
business area in the Viewer. Confirm that bound symbol anchors show the correct
|
|
145
|
-
file and declaration name, domain selection matches the evidenced boundaries,
|
|
146
|
-
cross-file relationships retain external neighboring concepts, and scenario flows preserve their branches,
|
|
147
|
-
outcomes and relationship-to-flow links. Moving YAML alone does not establish
|
|
148
|
-
correct business containment. Check the complete graph together, including
|
|
149
|
-
unchanged documents, and keep retained observations immutable.
|
|
150
|
-
|
|
151
|
-
For direct authoring, review the complete requested business scope and all
|
|
152
|
-
owning files as one Git candidate, including newly created files that an
|
|
153
|
-
unstaged `git diff` does not yet show. A one-domain result is appropriate when the
|
|
154
|
-
requested or evidenced scope has only that business responsibility. For
|
|
155
|
-
candidate reconciliation, confirm the diff changes at most one owning YAML.
|
|
156
|
-
Commit the map candidate through the host workflow.
|
|
157
|
-
|
|
158
|
-
For candidate reconciliation, prepare one maintenance-observation JSON document:
|
|
159
|
-
maintenance task/run identity, selected `businessDomainId`, every exact origin,
|
|
160
|
-
classification, reason, and current evidence. Accepted or refined results
|
|
161
|
-
reserve `mapChange.owningMapPath`; Integration adds the real `mergedCommit`.
|
|
162
|
-
Keep this draft unrecorded until independent review and integration finish.
|
|
163
|
-
Direct authoring without retained origins uses Git review evidence rather than
|
|
164
|
-
a candidate-origin observation. A reorganization records its complete Git diff
|
|
165
|
-
and integration state; retained origins stay available for accurate separate
|
|
166
|
-
reconciliation instead of being consumed by a fabricated single-file result.
|
|
167
|
-
|
|
168
|
-
Report the requested scope, boundaries, source-to-map coverage and unresolved
|
|
169
|
-
ownership, evidence, owning files, validation and render results, Git candidate, and actual review/integration state. Include
|
|
170
|
-
origins, classifications and the observation draft for candidate reconciliation.
|
|
171
|
-
|
|
172
|
-
## Review Phase
|
|
173
|
-
|
|
174
|
-
Use the host workflow's ordinary independent review. Start from current source
|
|
175
|
-
entry points and the requested outcomes, and challenge ownership and lifecycle
|
|
176
|
-
coverage independently of the map's own node list using the boundary-design
|
|
177
|
-
reference. Review durable business meaning, relation direction, flow branch
|
|
178
|
-
meaning, evidence support, complete-graph validity, and whether the domain/file partition matches the
|
|
179
|
-
requested business scope. For candidate reconciliation, also check exact origin
|
|
180
|
-
coverage, one-domain ownership, and whether discarded or unresolved conclusions
|
|
181
|
-
correctly avoid a map edit.
|
|
182
|
-
|
|
183
|
-
Changes requested return to the normal Work Phase. Approval authorizes the host
|
|
184
|
-
workflow to enter Integration Phase; it does not itself consume candidates.
|
|
185
|
-
|
|
186
|
-
## Integration Phase
|
|
187
|
-
|
|
188
|
-
For direct authoring, integrate the approved Git candidate through the
|
|
189
|
-
repository workflow and report the actual commit and map validation. This path
|
|
190
|
-
uses Git review evidence and leaves candidate maintenance observations to the
|
|
191
|
-
candidate workflow. A local candidate remains pending integration when the host
|
|
192
|
-
workflow has not merged it.
|
|
193
|
-
|
|
194
|
-
For candidate reconciliation:
|
|
195
|
-
|
|
196
|
-
1. Re-read the approved work and review evidence.
|
|
197
|
-
2. When a map candidate exists, merge it through the repository's normal Git
|
|
198
|
-
flow and capture the actual `mergedCommit`. Put that commit and the one
|
|
199
|
-
`owningMapPath` into `mapChange`.
|
|
200
|
-
3. When every result is discarded or unresolved, keep `mapChange` absent and
|
|
201
|
-
continue only after the no-change conclusion has passed independent review.
|
|
202
|
-
4. Send the complete JSON document through standard input:
|
|
203
|
-
|
|
204
|
-
```bash
|
|
205
|
-
semantic-atlas observe maintenance --stdin --repo <absolute-repository-root>
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
5. Require a `recorded` or `idempotent` success response before reporting the
|
|
209
|
-
maintenance task complete. Reuse the exact observation ID and document on an
|
|
210
|
-
uncertain retry. The same ID with changed content is a conflict.
|
|
211
|
-
6. Rerun `semantic-atlas reconcile candidates --repo` when confirming the
|
|
212
|
-
result. Accepted, refined, and discarded origins disappear from actionable
|
|
213
|
-
candidates. Unresolved origins remain retained as waiting for new evidence
|
|
214
|
-
and do not immediately schedule the same work again.
|
|
215
|
-
|
|
216
|
-
If the map merged but observation recording failed, preserve the merged Git
|
|
217
|
-
result and keep the task incomplete. Resume or retry the Integration Phase with
|
|
218
|
-
the exact same observation document until the idempotent record succeeds.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Semantic Atlas Maintenance"
|
|
3
|
-
short_description: "Maintain business maps by evidence-backed ownership"
|
|
4
|
-
default_prompt: "Use $semantic-atlas-maintenance to create or update the requested business map by real business ownership, or reconcile retained candidates, with current evidence and normal Git review."
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# Design Business Boundaries
|
|
2
|
-
|
|
3
|
-
Use this reference before creating or changing a business partition, or when a
|
|
4
|
-
mapped owner, missing lifecycle or collaborator could change an engineering
|
|
5
|
-
conclusion. It owns boundary judgment; `map-authoring.md` owns YAML expression.
|
|
6
|
-
Apply it at the requested scale: a project map covers evidenced project
|
|
7
|
-
responsibilities, a local map covers one complete requested neighborhood, and an
|
|
8
|
-
engineering task establishes only the boundary needed for its decision.
|
|
9
|
-
|
|
10
|
-
## Start With The Responsibility, Then Draw It
|
|
11
|
-
|
|
12
|
-
A useful business area is a coherent responsibility: someone relies on its
|
|
13
|
-
result, it owns decisions that make that result true, and its supported lifecycle
|
|
14
|
-
explains how the result is established, changed and ended. A user journey may
|
|
15
|
-
cross several such areas. Calling another action, sharing a table, or appearing
|
|
16
|
-
in the same execution path proves collaboration; ownership requires evidence
|
|
17
|
-
about who decides the rule, authoritative state or outcome.
|
|
18
|
-
|
|
19
|
-
Before choosing domains or files, describe each plausible owner in working
|
|
20
|
-
notes using this compact shape. A short local task can keep the same reasoning
|
|
21
|
-
in its answer; no separate tracked document is required.
|
|
22
|
-
|
|
23
|
-
| Responsibility | Required evidence |
|
|
24
|
-
| --- | --- |
|
|
25
|
-
| Result and beneficiary | What user, operator or dependent capability can rely on this area to accomplish |
|
|
26
|
-
| Owned decisions and state | Rules it decides, records whose meaning/lifecycle it controls, and meaningful changes it permits |
|
|
27
|
-
| Supported lifecycle | How the responsibility starts, is used or changed, and ends; include alternative entries and consequential failure/refusal paths that actually exist |
|
|
28
|
-
| Collaborators and limits | Inputs/outputs it exchanges, who owns the other decisions, and what current repository evidence can establish |
|
|
29
|
-
| Source support and uncertainty | Decisive entry points, state/rule owners and tests; unresolved ownership that could alter the partition |
|
|
30
|
-
|
|
31
|
-
Use the card to test candidate boundaries, not to invent missing product
|
|
32
|
-
features. A library can own recording, revising, withdrawing and making its
|
|
33
|
-
knowledge available while a chat consumer owns answering a conversation. Those
|
|
34
|
-
activities can remain one library responsibility even when different modules or
|
|
35
|
-
entry points implement them. If source supports only retrieval, retain only that
|
|
36
|
-
supported scope and state the missing ownership evidence.
|
|
37
|
-
|
|
38
|
-
## Discover Coverage Independently Of The Existing Map
|
|
39
|
-
|
|
40
|
-
Build a bounded list of supported scenarios from current evidence before using
|
|
41
|
-
the map's node list as a completeness checklist. Start with product promises and
|
|
42
|
-
public/user/operator entry points. Cross-check durable state and its writers,
|
|
43
|
-
configuration and authorization owners, event/job/callback entries, and tests
|
|
44
|
-
that exercise consequential decisions. Follow only surfaces capable of changing
|
|
45
|
-
the requested business meaning. Technical directories help locate evidence;
|
|
46
|
-
their number and shape do not prescribe the business partition.
|
|
47
|
-
|
|
48
|
-
For each supported scenario, record its responsible owner and decisive source.
|
|
49
|
-
A compact table is sufficient: `scenario or lifecycle responsibility -> owner ->
|
|
50
|
-
source -> mapped concept/flow or reason omitted`. Use explicit collaborator,
|
|
51
|
-
implementation-detail or unresolved dispositions when those explain the result.
|
|
52
|
-
An omitted scenario needs such a reason; a node already drawn is not evidence
|
|
53
|
-
that the supported responsibility is complete.
|
|
54
|
-
|
|
55
|
-
Completeness means that a reader can find the important supported outcomes,
|
|
56
|
-
rules and lifecycle changes under the right owner. Several equivalent HTTP,
|
|
57
|
-
event or tool entries may share a single scenario and multiple anchors. Create a
|
|
58
|
-
separate scenario or operation when it has independently meaningful decisions
|
|
59
|
-
or outcomes. Method counts, generic CRUD lists and one flow per endpoint are not
|
|
60
|
-
completion measures. A project map accounts for its evidenced responsibilities;
|
|
61
|
-
a local request finishes at its relevant collaborator contracts.
|
|
62
|
-
|
|
63
|
-
## Challenge Cohesion And Ownership
|
|
64
|
-
|
|
65
|
-
Use the following questions on the provisional partition before encoding it:
|
|
66
|
-
|
|
67
|
-
| Possible defect | Evidence that decides the correction |
|
|
68
|
-
| --- | --- |
|
|
69
|
-
| Too broad | Can two groups deliver separately meaningful outcomes and change their rules or authoritative state for different reasons? Give each an owner and retain their collaboration. |
|
|
70
|
-
| Too fragmented | Do the fragments establish, change or end the same promised result under the same rules and lifecycle? Keep them together as capabilities/scenarios; use source anchors for technical layers. |
|
|
71
|
-
| Incomplete | Does an independently found entry, state transition, configuration or exit path have meaningful behavior with no represented owner? Include it at the right granularity, or identify the evidence still missing. |
|
|
72
|
-
| Misplaced | Is a concept nested under its caller, consumer or source directory even though another responsibility decides its meaning? Move containment to that owner and express the usage as a relation. |
|
|
73
|
-
|
|
74
|
-
Treat these as evidence tests, not requirements for a fixed number of domains.
|
|
75
|
-
One area may have many scenarios; many callers may share one action. A shared
|
|
76
|
-
record has one primary business owner even when other areas read or write it.
|
|
77
|
-
Determine ownership from the rules and lifecycle authority, and represent each
|
|
78
|
-
confirmed writer's collaboration explicitly. Shared identity follows business
|
|
79
|
-
meaning: one physical table can support distinct responsibility-specific
|
|
80
|
-
concepts, while equivalent concepts share one identity across callers.
|
|
81
|
-
|
|
82
|
-
Shared technical capabilities can be independently meaningful. For example, a
|
|
83
|
-
reusable execution system may own definition/instance separation, cancellation,
|
|
84
|
-
resumption and completion contracts across several products. Represent that
|
|
85
|
-
supported responsibility at its own level when relevant. An adapter, conversion
|
|
86
|
-
helper or queue wrapper usually supplies evidence behind another operation;
|
|
87
|
-
its callable methods alone do not establish a new business area. Product
|
|
88
|
-
configuration belongs to the result it configures; generic execution lifecycle
|
|
89
|
-
belongs to the execution responsibility. Inspect who owns each decision.
|
|
90
|
-
|
|
91
|
-
## Preserve The Repository Boundary
|
|
92
|
-
|
|
93
|
-
Distinguish business ownership from where a call is made. For a remote parser,
|
|
94
|
-
commerce service or third-party channel, map the local integration responsibility
|
|
95
|
-
and the evidenced interface or external collaborator. State external ownership
|
|
96
|
-
in its name, summary or notes and link the relevant contract anchors. Expand
|
|
97
|
-
that collaborator's internal business only when it belongs to the requested
|
|
98
|
-
scope and current evidence supports it. An interface can be shown without
|
|
99
|
-
inventing an external domain or an internal implementation.
|
|
100
|
-
|
|
101
|
-
A local orchestration flow can reference independently owned actions to explain
|
|
102
|
-
an end-to-end result. Each concept keeps its owner; flow participation does not
|
|
103
|
-
transfer containment. Preserve separate owners when a business process spans
|
|
104
|
-
repositories, and state which part the current repository actually implements.
|
|
105
|
-
|
|
106
|
-
## Decide And Stop
|
|
107
|
-
|
|
108
|
-
Choose the partition when each retained owner has a source-supported promise
|
|
109
|
-
and decision/state responsibility, important supported scenarios have an owner,
|
|
110
|
-
and dependencies are expressed at their evidenced boundaries. Then translate
|
|
111
|
-
that partition into the existing domain/capability/scenario model and owning
|
|
112
|
-
files. Preserve stable IDs when identity remains the same.
|
|
113
|
-
|
|
114
|
-
When uncertainty would change ownership, retain it explicitly and continue only
|
|
115
|
-
the supported portion. Finish a local investigation when the task's behavior,
|
|
116
|
-
owner and necessary collaborator contracts are established. Complete map work
|
|
117
|
-
when source-to-map coverage explains the requested responsibility and the
|
|
118
|
-
boundary challenge reveals no material omission or misplaced ownership. Schema
|
|
119
|
-
validity and a readable diagram are separate checks; neither proves that this
|
|
120
|
-
business partition is correct.
|