semantic-atlas 2.1.3 → 2.3.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 +47 -9
- package/.agents/skills/semantic-atlas/references/observations.md +4 -0
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +23 -6
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +4 -0
- package/README.md +59 -31
- package/README.zh-CN.md +45 -27
- package/dist/application/map-application.d.ts +2 -1
- package/dist/application/map-application.d.ts.map +1 -1
- package/dist/application/map-application.js +4 -3
- package/dist/application/map-application.js.map +1 -1
- package/dist/cli/run-cli.d.ts +2 -0
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +41 -3
- package/dist/cli/run-cli.js.map +1 -1
- package/dist/contracts/cli.d.ts +11 -1
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/map.d.ts +80 -1
- package/dist/contracts/map.d.ts.map +1 -1
- package/dist/contracts/map.js +29 -0
- package/dist/contracts/map.js.map +1 -1
- package/dist/contracts/observation.d.ts +3 -0
- package/dist/contracts/observation.d.ts.map +1 -1
- package/dist/contracts/observation.js +1 -1
- package/dist/contracts/observation.js.map +1 -1
- package/dist/contracts/project.d.ts +7 -0
- package/dist/contracts/project.d.ts.map +1 -0
- package/dist/contracts/project.js +6 -0
- package/dist/contracts/project.js.map +1 -0
- package/dist/contracts/projection.d.ts +1 -0
- package/dist/contracts/projection.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/map/business-flow-validator.d.ts +3 -0
- package/dist/map/business-flow-validator.d.ts.map +1 -0
- package/dist/map/business-flow-validator.js +152 -0
- package/dist/map/business-flow-validator.js.map +1 -0
- package/dist/map/business-graph.d.ts +3 -1
- package/dist/map/business-graph.d.ts.map +1 -1
- package/dist/map/business-graph.js +11 -0
- package/dist/map/business-graph.js.map +1 -1
- package/dist/map/map-validator.d.ts.map +1 -1
- package/dist/map/map-validator.js +31 -2
- package/dist/map/map-validator.js.map +1 -1
- package/dist/projects/project-registration-service.d.ts +20 -0
- package/dist/projects/project-registration-service.d.ts.map +1 -0
- package/dist/projects/project-registration-service.js +41 -0
- package/dist/projects/project-registration-service.js.map +1 -0
- package/dist/projects/project-store.d.ts +20 -0
- package/dist/projects/project-store.d.ts.map +1 -0
- package/dist/projects/project-store.js +89 -0
- package/dist/projects/project-store.js.map +1 -0
- package/dist/query/context-query-service.d.ts.map +1 -1
- package/dist/query/context-query-service.js +1 -0
- package/dist/query/context-query-service.js.map +1 -1
- package/dist/rendering/flow-projector.d.ts +9 -0
- package/dist/rendering/flow-projector.d.ts.map +1 -0
- package/dist/rendering/flow-projector.js +226 -0
- package/dist/rendering/flow-projector.js.map +1 -0
- package/dist/rendering/latest-project-loader.d.ts +2 -0
- package/dist/rendering/latest-project-loader.d.ts.map +1 -0
- package/dist/rendering/latest-project-loader.js +26 -0
- package/dist/rendering/latest-project-loader.js.map +1 -0
- package/dist/rendering/map-projector.d.ts.map +1 -1
- package/dist/rendering/map-projector.js +7 -3
- 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 +226 -19
- package/dist/rendering/viewer-browser.js.map +1 -1
- package/dist/rendering/viewer-page.d.ts +31 -1
- package/dist/rendering/viewer-page.d.ts.map +1 -1
- package/dist/rendering/viewer-page.js +158 -21
- package/dist/rendering/viewer-page.js.map +1 -1
- package/dist/web/local-web-application.d.ts +15 -2
- package/dist/web/local-web-application.d.ts.map +1 -1
- package/dist/web/local-web-application.js +62 -16
- package/dist/web/local-web-application.js.map +1 -1
- package/dist/web/local-web-server.d.ts.map +1 -1
- package/dist/web/local-web-server.js +46 -8
- package/dist/web/local-web-server.js.map +1 -1
- package/dist/web/web-command-service.d.ts +4 -2
- package/dist/web/web-command-service.d.ts.map +1 -1
- package/dist/web/web-command-service.js +6 -2
- package/dist/web/web-command-service.js.map +1 -1
- package/docs/architecture.md +135 -58
- package/docs/evaluation.md +18 -3
- package/docs/index.md +1 -1
- package/docs/map-format.md +99 -5
- package/docs/observations.md +3 -1
- package/docs/product-contract.md +59 -23
- package/examples/commerce.yaml +50 -0
- package/package.json +1 -1
package/docs/product-contract.md
CHANGED
|
@@ -4,16 +4,19 @@ This page defines the accepted initial product. It answers what Semantic Atlas
|
|
|
4
4
|
must improve, how agents and people use it, and which results establish
|
|
5
5
|
that the product works.
|
|
6
6
|
|
|
7
|
-
**Status: the public product is released and installed; the
|
|
8
|
-
|
|
7
|
+
**Status: the public product is released and installed; the current source
|
|
8
|
+
candidate adds persistent manual project registration and on-demand Web
|
|
9
|
+
loading, while longitudinal acceptance remains in progress.**
|
|
9
10
|
|
|
10
11
|
## Purpose
|
|
11
12
|
|
|
12
13
|
Semantic Atlas helps coding agents make more accurate engineering changes.
|
|
13
14
|
Its Agent Skill builds a task-specific understanding of stable business
|
|
14
15
|
boundaries, meaningful concepts, relationships, data, rules, interfaces, and
|
|
15
|
-
likely source entry points before an agent changes code.
|
|
16
|
-
|
|
16
|
+
likely source entry points before an agent changes code. Scenario flows add the
|
|
17
|
+
business-relevant decisions, branches, and outcomes that relationships alone
|
|
18
|
+
cannot express. An existing shared map accelerates that work; a missing map
|
|
19
|
+
starts a bounded current-evidence path.
|
|
17
20
|
|
|
18
21
|
The map is a durable navigation prior rather than a synchronized copy of the
|
|
19
22
|
codebase. Product structure normally changes more slowly than implementation,
|
|
@@ -31,6 +34,7 @@ reliably:
|
|
|
31
34
|
- distinguish a downstream symptom from its upstream cause;
|
|
32
35
|
- inspect the business collaborators, data, rules, and interfaces needed for a
|
|
33
36
|
complete change;
|
|
37
|
+
- preserve business-relevant branches and outcomes during refactors;
|
|
34
38
|
- choose an implementation scope that fixes the cause without unrelated work;
|
|
35
39
|
- preserve readable responsibilities and maintainable code;
|
|
36
40
|
- identify when the map is incomplete or contradicted by current evidence;
|
|
@@ -60,11 +64,20 @@ implementation vocabulary differ.
|
|
|
60
64
|
|
|
61
65
|
A person views deterministic projections of the same tracked map to discuss
|
|
62
66
|
business boundaries and relationships. A self-contained export and a local
|
|
63
|
-
read-only Web command share the same interactive Viewer
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
read-only Web command share the same interactive Viewer. The user manually
|
|
68
|
+
registers checkouts with `semantic-atlas project add [path]`; an omitted path
|
|
69
|
+
means the current directory. A parameterless `semantic-atlas web` can then
|
|
70
|
+
start from any directory, list the registered projects, and load only the
|
|
71
|
+
initially selected or newly selected map. An unavailable checkout remains in
|
|
72
|
+
the list and affects only its own view.
|
|
73
|
+
|
|
74
|
+
The explicit `web --repo <paths...>` form remains a temporary project set for
|
|
75
|
+
one session. It neither writes the user-local project file nor implicitly
|
|
76
|
+
merges registered paths. The browser receives service-assigned project IDs and
|
|
77
|
+
display names, never repository paths, and cannot submit a filesystem path.
|
|
78
|
+
Project and business-domain selection, relationship and flow views, pan, zoom,
|
|
79
|
+
fit-to-view, navigation details, and related-flow links remain read-only. The
|
|
80
|
+
visual surface does not become a second authoring or registration format.
|
|
68
81
|
|
|
69
82
|
### Post-task maintenance decision and reconciliation
|
|
70
83
|
|
|
@@ -106,6 +119,19 @@ navigate to, depend on, constrain, read, write, publish, consume, or change it.
|
|
|
106
119
|
Methods, helpers, SQL statements, folders, and framework components remain
|
|
107
120
|
source details until they express durable business meaning.
|
|
108
121
|
|
|
122
|
+
### Business flows
|
|
123
|
+
|
|
124
|
+
A flow belongs to one existing scenario and orders business-granularity
|
|
125
|
+
`action`, `decision`, and `outcome` steps through transitions. Decision
|
|
126
|
+
transitions carry distinct business labels. A step can reference an existing
|
|
127
|
+
concept ID, which derives the relationship-to-flow navigation without a second
|
|
128
|
+
link contract.
|
|
129
|
+
|
|
130
|
+
Flows retain only steps that can change a user-visible result, durable data,
|
|
131
|
+
cost or provider usage, authorization or tenant isolation, an interface, or a
|
|
132
|
+
business outcome. They can express stable loops, but they remain advisory
|
|
133
|
+
knowledge rather than an executable workflow or synchronized copy of source.
|
|
134
|
+
|
|
109
135
|
## Authority And Accuracy
|
|
110
136
|
|
|
111
137
|
Tracked map documents are authoritative for the shared map. They are not
|
|
@@ -151,17 +177,21 @@ The initial product delivers one coherent path:
|
|
|
151
177
|
3. Normalize the complete map in memory.
|
|
152
178
|
4. Find a business concept by stable ID, name, or alias.
|
|
153
179
|
5. Return its containment, direct business relations, related concepts, and
|
|
154
|
-
navigation anchors as structured JSON
|
|
180
|
+
navigation anchors as structured JSON, together with complete related
|
|
181
|
+
business flows.
|
|
155
182
|
6. Render deterministic interactive human-readable projections from the same
|
|
156
|
-
graph as a portable HTML artifact or loopback Web session
|
|
183
|
+
graph as a portable HTML artifact or loopback Web session, with linked
|
|
184
|
+
relationship and flow views.
|
|
157
185
|
7. Package an Agent Skill that activates from business task meaning, routes map
|
|
158
186
|
context or `MAP_NOT_FOUND` into current-source confirmation, and makes an
|
|
159
187
|
explicit post-task maintenance decision.
|
|
160
188
|
8. Exercise the workflow against real engineering tasks, including stale and
|
|
161
189
|
incomplete map cases.
|
|
162
190
|
|
|
163
|
-
|
|
164
|
-
|
|
191
|
+
Map loading, validation, querying, and rendering remain stateless between
|
|
192
|
+
commands. Derived render artifacts and future performance caches are
|
|
193
|
+
reproducible from tracked files. The user-local, versioned project-path list is
|
|
194
|
+
disposable Viewer configuration rather than business knowledge.
|
|
165
195
|
|
|
166
196
|
## Current Non-Goals
|
|
167
197
|
|
|
@@ -175,9 +205,13 @@ The initial product does not provide:
|
|
|
175
205
|
- mandatory map updates after every engineering task;
|
|
176
206
|
- source editing, test execution, Git mutation, code review, or release
|
|
177
207
|
orchestration;
|
|
178
|
-
-
|
|
208
|
+
- retry policy, timing, executable workflow state, or automatic source-to-flow
|
|
209
|
+
synchronization;
|
|
210
|
+
- a general workflow engine or full visual-diagram authoring system;
|
|
179
211
|
- real-time multi-user map editing;
|
|
180
|
-
- a second visual authoring representation
|
|
212
|
+
- a second visual authoring representation;
|
|
213
|
+
- browser-side project registration or automatic repository discovery;
|
|
214
|
+
- branch and worktree management for registered checkout paths.
|
|
181
215
|
|
|
182
216
|
These boundaries keep the first product centered on better engineering
|
|
183
217
|
judgment. Later capabilities require observed evidence that they improve that
|
|
@@ -191,8 +225,9 @@ the following:
|
|
|
191
225
|
- tracked example and real-project map files load and validate through the
|
|
192
226
|
public CLI;
|
|
193
227
|
- context queries return the expected business owner, containment, incoming and
|
|
194
|
-
outgoing relationships, and
|
|
195
|
-
- the renderer produces readable projections from the
|
|
228
|
+
outgoing relationships, navigation anchors, and related flows;
|
|
229
|
+
- the renderer produces readable relationship and flow projections from the
|
|
230
|
+
same normalized map and links shared business concepts between them;
|
|
196
231
|
- a package-managed Agent Skill activates for business-changing work with or
|
|
197
232
|
without a map, probes bounded context before broad discovery, and confirms
|
|
198
233
|
every change-controlling claim in current evidence;
|
|
@@ -214,9 +249,9 @@ human-intervention evidence as acceptance conditions.
|
|
|
214
249
|
The initial product, managed setup, versioned observations, read-only
|
|
215
250
|
reconciliation, public repository, and npm publication are complete. The first
|
|
216
251
|
real target-domain map and reviewed observation pair are in local use. The
|
|
217
|
-
current `semantic-atlas@2.
|
|
218
|
-
|
|
219
|
-
|
|
252
|
+
current `semantic-atlas@2.3.0` release adds manual project registration,
|
|
253
|
+
parameterless Web startup, on-demand single-project loading, and project-level
|
|
254
|
+
unavailable states without changing the tracked YAML business-map source.
|
|
220
255
|
Target-repository sharing and longitudinal acceptance remain separate verified
|
|
221
256
|
stages.
|
|
222
257
|
|
|
@@ -259,9 +294,10 @@ Real-use evidence is separate from the Git business map and from business-map
|
|
|
259
294
|
authority. The product records three immutable, versioned local artifacts:
|
|
260
295
|
|
|
261
296
|
- `TaskObservation`: map query outcomes including `map_not_found`, selected
|
|
262
|
-
concepts, current-evidence classification, explicitly domain-owned
|
|
263
|
-
candidates when maintenance is warranted, and any
|
|
264
|
-
known to the task Agent. Reads and writes use task
|
|
297
|
+
concepts, current-evidence classification, explicitly domain-owned node,
|
|
298
|
+
relation, anchor, or flow candidates when maintenance is warranted, and any
|
|
299
|
+
explicit human correction known to the task Agent. Reads and writes use task
|
|
300
|
+
artifact v2;
|
|
265
301
|
- `ReviewObservation`: the independent review verdict, correctness of the
|
|
266
302
|
business boundary and upstream cause, impact completeness, required rework,
|
|
267
303
|
and whether the map caused a wrong conclusion;
|
package/examples/commerce.yaml
CHANGED
|
@@ -202,3 +202,53 @@ relations:
|
|
|
202
202
|
type: writes
|
|
203
203
|
to: commerce.inventory.stock
|
|
204
204
|
summary: Inventory reservation updates stock availability.
|
|
205
|
+
|
|
206
|
+
flows:
|
|
207
|
+
- id: commerce.orders.place-order-flow
|
|
208
|
+
name: Place order
|
|
209
|
+
summary: Available stock becomes a reserved, durable customer order.
|
|
210
|
+
scenario: commerce.orders.place-order
|
|
211
|
+
startsAt: search-products
|
|
212
|
+
steps:
|
|
213
|
+
- id: search-products
|
|
214
|
+
kind: action
|
|
215
|
+
name: Search products
|
|
216
|
+
summary: The shopper identifies products for the order.
|
|
217
|
+
concept: commerce.orders.place-order.search-products
|
|
218
|
+
- id: check-inventory
|
|
219
|
+
kind: decision
|
|
220
|
+
name: Is inventory available?
|
|
221
|
+
summary: Only available stock may proceed to order creation.
|
|
222
|
+
concept: commerce.orders.place-order.check-inventory
|
|
223
|
+
- id: create-order
|
|
224
|
+
kind: action
|
|
225
|
+
name: Create order
|
|
226
|
+
summary: The purchase becomes a durable customer order.
|
|
227
|
+
concept: commerce.orders.place-order.create-order
|
|
228
|
+
- id: reserve-inventory
|
|
229
|
+
kind: action
|
|
230
|
+
name: Reserve inventory
|
|
231
|
+
summary: Available stock is reserved for the created order.
|
|
232
|
+
concept: commerce.orders.place-order.reserve-inventory
|
|
233
|
+
- id: order-placed
|
|
234
|
+
kind: outcome
|
|
235
|
+
name: Order placed
|
|
236
|
+
summary: The shopper has a durable order backed by reserved stock.
|
|
237
|
+
concept: commerce.orders.order
|
|
238
|
+
- id: order-not-created
|
|
239
|
+
kind: outcome
|
|
240
|
+
name: Order not created
|
|
241
|
+
summary: Unavailable stock ends the attempt without a durable order.
|
|
242
|
+
transitions:
|
|
243
|
+
- from: search-products
|
|
244
|
+
to: check-inventory
|
|
245
|
+
- from: check-inventory
|
|
246
|
+
when: available
|
|
247
|
+
to: create-order
|
|
248
|
+
- from: check-inventory
|
|
249
|
+
when: unavailable
|
|
250
|
+
to: order-not-created
|
|
251
|
+
- from: create-order
|
|
252
|
+
to: reserve-inventory
|
|
253
|
+
- from: reserve-inventory
|
|
254
|
+
to: order-placed
|