semantic-atlas 2.0.0 → 2.1.1

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 (60) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +133 -73
  2. package/.agents/skills/semantic-atlas/agents/openai.yaml +2 -2
  3. package/.agents/skills/semantic-atlas-maintenance/SKILL.md +35 -12
  4. package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +1 -1
  5. package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +11 -5
  6. package/README.md +52 -15
  7. package/README.zh-CN.md +204 -0
  8. package/dist/application/map-application.d.ts +11 -0
  9. package/dist/application/map-application.d.ts.map +1 -1
  10. package/dist/application/map-application.js +21 -1
  11. package/dist/application/map-application.js.map +1 -1
  12. package/dist/cli/run-cli.d.ts +2 -0
  13. package/dist/cli/run-cli.d.ts.map +1 -1
  14. package/dist/cli/run-cli.js +47 -2
  15. package/dist/cli/run-cli.js.map +1 -1
  16. package/dist/contracts/cli.d.ts +8 -0
  17. package/dist/contracts/cli.d.ts.map +1 -1
  18. package/dist/map/business-graph.d.ts +1 -0
  19. package/dist/map/business-graph.d.ts.map +1 -1
  20. package/dist/map/business-graph.js +10 -0
  21. package/dist/map/business-graph.js.map +1 -1
  22. package/dist/rendering/html.d.ts +3 -0
  23. package/dist/rendering/html.d.ts.map +1 -0
  24. package/dist/rendering/html.js +12 -0
  25. package/dist/rendering/html.js.map +1 -0
  26. package/dist/rendering/map-camera.d.ts +25 -0
  27. package/dist/rendering/map-camera.d.ts.map +1 -0
  28. package/dist/rendering/map-camera.js +47 -0
  29. package/dist/rendering/map-camera.js.map +1 -0
  30. package/dist/rendering/map-projector.d.ts +8 -1
  31. package/dist/rendering/map-projector.d.ts.map +1 -1
  32. package/dist/rendering/map-projector.js +106 -169
  33. package/dist/rendering/map-projector.js.map +1 -1
  34. package/dist/rendering/viewer-browser.d.ts +2 -0
  35. package/dist/rendering/viewer-browser.d.ts.map +1 -0
  36. package/dist/rendering/viewer-browser.js +279 -0
  37. package/dist/rendering/viewer-browser.js.map +1 -0
  38. package/dist/rendering/viewer-page.d.ts +29 -0
  39. package/dist/rendering/viewer-page.d.ts.map +1 -0
  40. package/dist/rendering/viewer-page.js +438 -0
  41. package/dist/rendering/viewer-page.js.map +1 -0
  42. package/dist/web/local-web-application.d.ts +9 -0
  43. package/dist/web/local-web-application.d.ts.map +1 -0
  44. package/dist/web/local-web-application.js +29 -0
  45. package/dist/web/local-web-application.js.map +1 -0
  46. package/dist/web/local-web-server.d.ts +12 -0
  47. package/dist/web/local-web-server.d.ts.map +1 -0
  48. package/dist/web/local-web-server.js +71 -0
  49. package/dist/web/local-web-server.js.map +1 -0
  50. package/dist/web/web-command-service.d.ts +16 -0
  51. package/dist/web/web-command-service.d.ts.map +1 -0
  52. package/dist/web/web-command-service.js +50 -0
  53. package/dist/web/web-command-service.js.map +1 -0
  54. package/docs/architecture.md +72 -32
  55. package/docs/evaluation.md +24 -12
  56. package/docs/index.md +3 -2
  57. package/docs/map-format.md +6 -4
  58. package/docs/observations.md +25 -15
  59. package/docs/product-contract.md +71 -50
  60. package/package.json +3 -2
@@ -2,9 +2,9 @@
2
2
 
3
3
  This page defines the stable responsibilities, data lifecycle, dependency
4
4
  direction, and failure semantics for the initial product. It applies to the
5
- public CLI, renderer, and repository Agent Skill.
5
+ public CLI, renderer, and business-understanding Agent Skill.
6
6
 
7
- **Status: query, validation, visual projection, repository Agents, managed
7
+ **Status: query, validation, visual projection, Agent Skills, managed
8
8
  Skill lifecycle, accuracy observations, read-only reconciliation, and public
9
9
  release verification are implemented and released.**
10
10
 
@@ -25,9 +25,11 @@ MapDocumentLoader -> MapValidator -> BusinessGraph
25
25
  stable JSON result SVG / static HTML
26
26
 
27
27
  Calling Agent
28
- -> queries the graph
29
- -> treats the result as an investigation hypothesis
28
+ -> activates from business task meaning
29
+ -> probes the graph, including the map-not-found outcome
30
+ -> treats available map results as investigation hypotheses
30
31
  -> confirms decisive behavior in current repository evidence
32
+ -> records one maintenance disposition
31
33
 
32
34
  published package Skills bundle
33
35
  |
@@ -106,10 +108,32 @@ ambiguity explicitly rather than selecting a hidden match.
106
108
 
107
109
  ### MapProjector
108
110
 
109
- Builds deterministic graph projections for people and agents. The first visual
110
- projection distinguishes semantic containment from directed horizontal
111
- relations and preserves stable element identities for repeatable layout and
112
- inspection.
111
+ Builds deterministic repository-wide and top-level-domain graph projections
112
+ for people and agents. A domain projection keeps directly connected external
113
+ concepts as visible boundary nodes. Every projection distinguishes semantic
114
+ containment from directed horizontal relations and preserves stable element
115
+ identities for repeatable layout and inspection.
116
+
117
+ ### ViewerPage
118
+
119
+ Owns the compact human inspection surface shared by static export and Web. It
120
+ combines project and business-domain selection, map statistics, a restrained
121
+ legend, pan, zoom, and fit-to-view around deterministic SVG projections. Cards
122
+ render stable business meaning only. Pointer or keyboard selection opens the
123
+ node's navigation anchors in an overlaid desktop side panel or narrow-screen
124
+ bottom panel without relaying out the graph. Camera coordinates use the SVG
125
+ `xMidYMid meet` scale and letterbox offsets for both pointer zoom and pan. Its
126
+ browser interaction state is disposable and never enters tracked map data.
127
+
128
+ ### LocalWebApplication And LocalWebServer
129
+
130
+ `LocalWebApplication` reloads only the repository paths supplied by the CLI and
131
+ renders the shared Viewer. `LocalWebServer` binds to `127.0.0.1`, serves GET and
132
+ HEAD, rejects mutation methods, and accepts no repository path from HTTP. The
133
+ server owns transport lifetime only; map loading, validation, layout, and HTML
134
+ remain in their existing application and rendering owners. When allowed
135
+ repositories share a basename, `ViewerPage` adds deterministic numeric labels
136
+ without revealing parent or absolute paths.
113
137
 
114
138
  ### CLI
115
139
 
@@ -117,13 +141,14 @@ Owns argument parsing, exit status, machine-readable envelopes, and concise
117
141
  human presentation. It composes application services and performs no graph
118
142
  interpretation of its own.
119
143
 
120
- ### Repository Agent Skill
144
+ ### Business Understanding Agent Skill
121
145
 
122
- Owns the map-assisted engineering workflow. It converts a natural-language
123
- task into bounded map queries, interprets advisory results, opens current
124
- evidence, and continues through the repository's normal implementation and
125
- verification process. It does not move source editing or engineering judgment
126
- into the CLI.
146
+ Owns the business-understanding workflow for every business-changing task. It
147
+ activates from task meaning, converts a natural-language task into one bounded
148
+ map probe, interprets advisory results or `MAP_NOT_FOUND`, builds the smallest
149
+ current-evidence business model needed for the decision, and continues through
150
+ the repository's normal implementation and verification process. Source editing
151
+ and engineering judgment remain with the calling Agent.
127
152
 
128
153
  The Skill invokes `context` through a small contract-checking adapter. The
129
154
  adapter prefers the CLI distributed with the Skill and accepts a PATH command
@@ -132,13 +157,16 @@ contract when another installed product uses the same executable name.
132
157
 
133
158
  ### Maintenance Agent Skill
134
159
 
135
- Owns periodic candidate triage after `ReconciliationService` has produced one
136
- read-only report. It selects one business domain, confirms proposed corrections
137
- against current source and tracked product meaning, leaves unresolved and
138
- implementation-local observations outside the canonical map, and submits any
139
- accepted correction as one normal reviewed YAML change. Source confirmation,
140
- map editing, validation, rendering, Git diff, and independent review remain
141
- Agent and repository responsibilities rather than CLI side effects.
160
+ Owns post-integration and periodic candidate triage after
161
+ `ReconciliationService` has produced one read-only report. It selects one
162
+ business domain, confirms proposed corrections against current source and
163
+ tracked product meaning, resolves an existing or initial domain-owned YAML
164
+ surface, leaves unresolved and implementation-local observations outside the
165
+ canonical map, and submits any accepted correction as one normal reviewed YAML
166
+ change. A `MAP_NOT_FOUND` repository can bootstrap one bounded domain when
167
+ current evidence establishes its stable identity. Source confirmation, map
168
+ editing, validation, rendering, Git diff, and independent review remain Agent
169
+ and repository responsibilities rather than CLI side effects.
142
170
 
143
171
  ### ManagedSkillsInstaller
144
172
 
@@ -257,7 +285,7 @@ rather than local build effects.
257
285
  | Public release identity | Annotated tag and immutable GitHub Release | Permanent remote history | Explicit release command after repository cutover and immutable-release enablement |
258
286
  | Published npm package | Protected npm environment | Immutable registry version | GitHub Release workflow with provenance |
259
287
  | Task-specific source understanding | Calling agent | Engineering task | Current evidence investigation |
260
- | Candidate map observation | Task or maintenance record | Until reconciled | Reviewed by periodic maintenance |
288
+ | Candidate map observation | Business-changing task record | Until reconciled | Reviewed by post-integration or periodic maintenance |
261
289
 
262
290
  Map commands remain stateless and branches naturally see the map revision
263
291
  tracked with their own source. Observation writers coordinate only one
@@ -292,6 +320,7 @@ lifecycle commands:
292
320
  semantic-atlas validate [--repo <path>]
293
321
  semantic-atlas context <id-or-term> [--repo <path>]
294
322
  semantic-atlas render [--repo <path>] [--output <path>]
323
+ semantic-atlas web [--repo <path...>] [--port <port>] [--no-open]
295
324
  semantic-atlas setup
296
325
  semantic-atlas upgrade
297
326
  semantic-atlas observe task --stdin [--repo <path>]
@@ -302,13 +331,16 @@ semantic-atlas --version
302
331
  ```
303
332
 
304
333
  Map commands resolve and report the repository root and map-document set they
305
- used. Observation commands report the derived repository identity, while
306
- package lifecycle commands remain repository-independent. Machine output uses
307
- a versioned envelope with a stable success or error discriminant.
334
+ used. `web` reports its loopback URL and repository count without exposing
335
+ those roots to the browser. Observation commands report the derived repository
336
+ identity, while package lifecycle commands remain repository-independent.
337
+ Machine output uses a versioned envelope with a stable success or error
338
+ discriminant.
308
339
 
309
340
  `context` returns ambiguity when multiple concepts match the term. Callers can
310
341
  then use a stable ID. A missing concept is a bounded map result and routes the
311
- agent to ordinary source discovery; it is not a repository failure.
342
+ Agent to a bounded current-evidence business model; it is not a repository
343
+ failure.
312
344
 
313
345
  `setup`, `upgrade`, and `--version` do not discover a repository or load a
314
346
  business map. Their results expose the package version and managed Skill paths
@@ -348,7 +380,8 @@ Errors fall into stable categories:
348
380
  - `MAP_DOCUMENT_INVALID`: one or more tracked documents cannot form a valid
349
381
  graph; the result includes document-local issues.
350
382
  - `MAP_NOT_FOUND`: the selected repository has no configured map documents;
351
- agents continue with ordinary source discovery.
383
+ the understanding Skill builds the smallest source-supported business model
384
+ needed for the task and records the bounded outcome.
352
385
  - `CONCEPT_NOT_FOUND`: no concept matches the requested selector; agents use
353
386
  bounded source discovery.
354
387
  - `CONCEPT_AMBIGUOUS`: multiple concepts match; the result returns stable IDs
@@ -375,6 +408,8 @@ Errors fall into stable categories:
375
408
  summary.
376
409
  - `RECONCILIATION_READ_FAILED`: retained candidate and review evidence cannot
377
410
  produce a trustworthy reconciliation report.
411
+ - `WEB_START_FAILED`: one of the explicitly selected repositories cannot load,
412
+ the loopback port cannot bind, or the local Viewer cannot start.
378
413
 
379
414
  Unexpected infrastructure errors propagate to the CLI boundary with a safe
380
415
  message and a nonzero exit status. The implementation adds contextual details
@@ -391,12 +426,17 @@ Ordinary feature branches read their branch's map revision. Durable changes use
391
426
  normal Git merge behavior. Review focuses on business meaning, stable IDs,
392
427
  relationship direction, and whether the update belongs in the shared map.
393
428
 
394
- Periodic reconciliation begins with the deterministic candidate report, then
395
- works from current source and accumulated task and review observations. It
429
+ Every business-changing task writes its own immutable observation and maintenance
430
+ disposition. Candidate-producing results can enter post-integration maintenance
431
+ as soon as stable reviewed source is available. Periodic reconciliation uses the
432
+ same deterministic report to recover accumulated drift and missed work. Each run
396
433
  updates one owning YAML surface for one business domain rather than rewriting
397
- the complete map. A stale or implementation-local observation can be discarded
398
- without affecting an engineering task that already completed against current
399
- evidence.
434
+ the complete map. A no-candidate or no-change run is a valid outcome and does not
435
+ affect an engineering task already completed against current evidence.
436
+
437
+ The understanding and maintenance Skills operate independently of task
438
+ orchestrators. Orchestrators may schedule work but do not decide when an Agent
439
+ needs business understanding.
400
440
 
401
441
  ## Current Technology Boundary
402
442
 
@@ -11,11 +11,15 @@ real-project evaluation pass.**
11
11
 
12
12
  The primary question is:
13
13
 
14
- > Does an agent that begins with the advisory business map reach a correct,
15
- > source-supported engineering conclusion more reliably than an agent that
16
- > begins with ordinary repository discovery, including when the map is stale or
14
+ > Does the business-understanding Skill lead an agent to a correct,
15
+ > source-supported engineering conclusion and maintenance decision without
16
+ > routine human direction, including when the map is absent, stale, or
17
17
  > incomplete?
18
18
 
19
+ A paired map comparison remains useful for measuring whether existing shared
20
+ knowledge improves accuracy over ordinary discovery. It is one evaluation mode,
21
+ not the Skill's activation boundary.
22
+
19
23
  The evaluation observes investigation cost, but cost does not substitute for
20
24
  correctness.
21
25
 
@@ -72,7 +76,8 @@ The first real-project suite contains at least:
72
76
  2. A cross-capability feature involving one shared data concept.
73
77
  3. An API, event, queue, or webhook boundary with a downstream consumer.
74
78
  4. A durable invariant that constrains more than one implementation point.
75
- 5. A missing-map case where the agent must fall back to ordinary discovery.
79
+ 5. A missing-map case where the Skill still activates and builds a bounded,
80
+ source-supported business model.
76
81
  6. A stale-anchor case where the business meaning remains useful but the source
77
82
  location changed.
78
83
  7. A contradicted-relation case where current evidence must override the map.
@@ -93,11 +98,13 @@ current source contradicts.
93
98
 
94
99
  Automated checks prove that each initial selector produces the intended public
95
100
  CLI outcome and that every acceptance oracle points to present source, test, or
96
- tracked product evidence. Fresh Agent runs then judge the workflow behavior:
97
- the Agent must begin with the bounded map result, reach the current-evidence
98
- conclusion, and report durable map discrepancies separately. These fixtures
99
- protect the Skill contract; they do not replace the private real-project paired
100
- evaluation defined in this page.
101
+ tracked product evidence. Fresh Agent runs then judge both mapped and mapless
102
+ workflow behavior: the Agent must activate from business task meaning, use the
103
+ bounded map outcome, reach the current-evidence conclusion, and report one
104
+ maintenance disposition separately. Mechanical controls must end without
105
+ manufactured business knowledge. These fixtures protect the Skill contract;
106
+ they do not replace the private real-project paired evaluation defined in this
107
+ page.
101
108
 
102
109
  ## Paired Execution
103
110
 
@@ -105,7 +112,7 @@ When practical, run each case in two fresh contexts with the same model,
105
112
  repository revision, task wording, tool availability, and acceptance oracle:
106
113
 
107
114
  - `ordinary`: normal repository discovery without the map or its Skill;
108
- - `map-assisted`: repository-discovered Skill and the tracked advisory map.
115
+ - `map-assisted`: the package-managed Skill with the tracked advisory map.
109
116
 
110
117
  The task oracle remains unavailable to both task agents. An independent review
111
118
  compares their source-supported conclusions and implementation candidates.
@@ -122,7 +129,7 @@ The suite deliberately mutates map usefulness:
122
129
  - omit one required collaborator;
123
130
  - retain one relation that current source contradicts;
124
131
  - use a task term absent from node names but present in an alias or neighbor;
125
- - remove the complete map for one ordinary-discovery control.
132
+ - remove the complete map for one Skill-enabled mapless case.
126
133
 
127
134
  A passing agent notices the limitation, opens current evidence, corrects its
128
135
  task-specific model, and avoids presenting the stale statement as current fact.
@@ -140,6 +147,7 @@ Each run records:
140
147
  - required and unrelated impact surfaces;
141
148
  - implementation or proposed change;
142
149
  - verification performed;
150
+ - post-task maintenance disposition and any durable candidate;
143
151
  - independent review findings;
144
152
  - human decisions or corrections;
145
153
  - optional observations for tokens, opened files, elapsed time, compute cost,
@@ -152,6 +160,10 @@ The initial product passes when:
152
160
  - every map-assisted case reaches a correct source-supported conclusion;
153
161
  - stale, missing, and contradicted knowledge routes to current evidence without
154
162
  an unsupported final claim;
163
+ - a mapless business task still activates the Skill, records `map_not_found`,
164
+ and limits bootstrap knowledge to stable meaning supported by the task;
165
+ - mapped and mapless business tasks choose one maintenance disposition, while a
166
+ mechanical control produces no business-maintenance work;
155
167
  - required business boundaries and impact surfaces are identified in every
156
168
  case;
157
169
  - implementation cases pass their behavioral tests and independent code-quality
@@ -179,7 +191,7 @@ repository changes entered this repository.
179
191
  The measured suite used four paired cases and eight fresh task-agent contexts.
180
192
  Cases combined related concerns while covering all eight required types. Every
181
193
  pair used the same model, source revision, task wording, shell tools, and output
182
- contract; only the ordinary or repository-discovered map workflow differed.
194
+ contract; only the ordinary or package-managed map workflow differed.
183
195
 
184
196
  The de-identified acceptance results are:
185
197
 
package/docs/index.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Semantic Atlas Documentation
2
2
 
3
3
  This index routes product, implementation, and evaluation questions to their
4
- authoritative pages. The queryable map, renderer, repository Agent Skills,
5
- managed setup, observations, reconciliation, and public release are implemented.
4
+ authoritative pages. The queryable map, renderer, package-managed understanding
5
+ and maintenance Agent Skills, managed setup, observations, reconciliation, and
6
+ public release are implemented.
6
7
  Target-repository sharing and longitudinal real-use acceptance remain separate
7
8
  verified gates.
8
9
 
@@ -192,7 +192,7 @@ A selector resolves in this order:
192
192
 
193
193
  One match returns a context projection. Multiple matches return ambiguity with
194
194
  stable IDs and names. Zero matches returns `CONCEPT_NOT_FOUND` and leaves
195
- ordinary source discovery available.
195
+ bounded current-evidence business discovery available.
196
196
 
197
197
  The initial lookup is deterministic and vocabulary-based. Natural-language
198
198
  inference belongs to the calling agent, which can issue another bounded term or
@@ -219,7 +219,9 @@ ID when it needs to expand the investigation.
219
219
  Agents edit the owning YAML file directly and use `semantic-atlas validate`
220
220
  before submitting a map change. Git diff is the review surface.
221
221
 
222
- Ordinary engineering tasks can record candidate observations outside the
223
- canonical map. Periodic reconciliation confirms stable meaning in current
222
+ Business-changing engineering tasks record observations outside the canonical
223
+ map and create candidates only for stable meaning that needs maintenance.
224
+ Post-integration or periodic reconciliation confirms candidates in current
224
225
  evidence, updates one bounded neighborhood, validates the complete graph, and
225
- submits the normal repository change for review.
226
+ submits the normal repository change for review. A mapless repository can use
227
+ the same reviewed path to establish one evidence-supported initial domain.
@@ -10,16 +10,19 @@ contract.**
10
10
 
11
11
  ## Authority Boundary
12
12
 
13
- A `TaskObservation` records what the task Agent queried, which concepts it
14
- selected, how current evidence classified map statements, which reconciliation
15
- candidates it found, and any explicit human correction it received. Its strict
16
- schema has no review verdict or accuracy fields.
17
-
18
- A `ReviewObservation` references an existing task observation in the same
19
- repository partition. Independent review records business-boundary correctness,
20
- upstream-cause correctness, impact completeness, required rework, and whether
21
- the map caused a wrong conclusion. Explicit human corrections can be retained
22
- by either observation while remaining visibly attributed as corrections.
13
+ Every business-changing engineering or analysis run produces one
14
+ `TaskObservation`, including runs in repositories with no map. It records what
15
+ the task Agent queried, which concepts it selected, how current evidence
16
+ classified map statements, which reconciliation candidates it found, and any
17
+ explicit human correction it received. Its strict schema has no review verdict
18
+ or accuracy fields.
19
+
20
+ An independent-review run produces one `ReviewObservation` that references an
21
+ existing task observation in the same repository partition. It records
22
+ business-boundary correctness, upstream-cause correctness, impact completeness,
23
+ required rework, and whether the map caused a wrong conclusion. Explicit human
24
+ corrections can be retained by either observation while remaining visibly
25
+ attributed as corrections.
23
26
 
24
27
  An approved review expresses an accepted result: assessed dimensions are
25
28
  correct or complete, `requiredRework` is `false`, and `mapCausedRegression` is
@@ -51,6 +54,11 @@ candidate names its stable `businessDomainId` and carries a candidate-specific
51
54
  disposition are recorded explicitly because they cannot be inferred safely from
52
55
  source paths or free-form summaries.
53
56
 
57
+ `mapUpdateCandidates` may be empty. The engineering result reports whether the
58
+ stable meaning was already represented, remained implementation-local, or could
59
+ not yet be resolved. A non-empty candidate list is reserved for a
60
+ source-supported durable correction owned by a stable business domain.
61
+
54
62
  Source, test, and document evidence uses normalized repository-relative paths.
55
63
  Runtime references use concise environment-independent evidence labels.
56
64
 
@@ -156,12 +164,14 @@ does not edit observations, source, `docs/business-map`, rendered artifacts, or
156
164
  Git state. The bundled `semantic-atlas-maintenance` Skill selects one business
157
165
  domain, rechecks current source and tracked product meaning, and submits any
158
166
  accepted correction as a normal reviewed YAML change. Unresolved and
159
- implementation-local observations remain outside the canonical map.
167
+ implementation-local observations remain outside the canonical map. When the
168
+ repository has no map, the maintenance Skill can turn a supported candidate
169
+ into one bounded initial business-domain YAML.
160
170
 
161
171
  ## Engineering Result Semantics
162
172
 
163
173
  Observation recording is a secondary evidence action after the engineering
164
- result is known. The Skill reports a recording failure separately and keeps the
165
- engineering result unchanged. Independent review can then distinguish a valid
166
- engineering delivery with missing observation evidence from a successful
167
- accuracy record.
174
+ result is known. The Skill also reports the post-task maintenance disposition;
175
+ observation failure is reported separately and keeps the engineering result
176
+ unchanged. Independent review can then distinguish a valid engineering delivery
177
+ with missing observation evidence from a successful accuracy record.
@@ -10,9 +10,10 @@ pilot is in local use and longitudinal acceptance is in progress.**
10
10
  ## Purpose
11
11
 
12
12
  Semantic Atlas helps coding agents make more accurate engineering changes.
13
- It supplies a shared map of stable business boundaries, meaningful concepts,
14
- relationships, data, rules, interfaces, and likely source entry points before
15
- an agent confirms current behavior in authoritative evidence.
13
+ Its Agent Skill builds a task-specific understanding of stable business
14
+ boundaries, meaningful concepts, relationships, data, rules, interfaces, and
15
+ likely source entry points before an agent changes code. An existing shared map
16
+ accelerates that work; a missing map starts a bounded current-evidence path.
16
17
 
17
18
  The map is a durable navigation prior rather than a synchronized copy of the
18
19
  codebase. Product structure normally changes more slowly than implementation,
@@ -23,7 +24,8 @@ evidence before changing behavior.
23
24
 
24
25
  ## Product Outcome
25
26
 
26
- The product succeeds when map-assisted agents more reliably:
27
+ The product succeeds when agents using the business-understanding workflow more
28
+ reliably:
27
29
 
28
30
  - enter a task through the correct business boundary;
29
31
  - distinguish a downstream symptom from its upstream cause;
@@ -43,9 +45,9 @@ uses current evidence and is held to a higher accuracy standard than the map.
43
45
  ### Coding agent orientation
44
46
 
45
47
  An agent receives a feature, bug, refactor, or impact question. It queries a
46
- compact business neighborhood, follows likely owners and collaborators, opens
47
- the decisive current source, and builds the task-specific system model before
48
- editing.
48
+ compact business neighborhood even when no map documents exist. It follows map
49
+ leads when available, otherwise establishes the smallest source-supported
50
+ business boundary, then opens decisive current evidence before editing.
49
51
 
50
52
  ### Root-cause and impact discovery
51
53
 
@@ -57,15 +59,23 @@ implementation vocabulary differ.
57
59
  ### Human inspection
58
60
 
59
61
  A person views deterministic projections of the same tracked map to discuss
60
- business boundaries and relationships. The visual surface does not become a
61
- second authoring format.
62
-
63
- ### Periodic reconciliation
64
-
65
- Agents accumulate candidate observations from real work. A later maintenance
66
- task reviews current code and stable product meaning by business domain, then
67
- updates tracked map files through ordinary Git changes. The map evolves at the
68
- pace of durable business understanding rather than every source edit.
62
+ business boundaries and relationships. A self-contained export and a local
63
+ read-only Web command share the same interactive Viewer, including project and
64
+ business-domain selection, pan, zoom, and fit-to-view. Graph cards prioritize
65
+ business meaning by showing type, title, and description; selecting a card
66
+ reveals its navigation anchors in a side panel or narrow-screen bottom panel.
67
+ The visual surface does not become a second authoring format.
68
+
69
+ ### Post-task maintenance decision and reconciliation
70
+
71
+ Every business-changing task records its map outcome and decides whether stable
72
+ shared knowledge needs maintenance. The decision may be a durable candidate,
73
+ already represented knowledge, an implementation-local result, or unresolved
74
+ meaning. A separate post-integration maintenance task reviews candidates against
75
+ current code and stable product meaning by business domain, then updates tracked
76
+ map files through ordinary Git changes. When no map exists, it can establish one
77
+ evidence-supported initial business domain. Periodic reconciliation recovers
78
+ missed work and accumulated drift.
69
79
 
70
80
  ## Shared Business Model
71
81
 
@@ -101,15 +111,19 @@ source details until they express durable business meaning.
101
111
  Tracked map documents are authoritative for the shared map. They are not
102
112
  authoritative for current application behavior.
103
113
 
104
- Every map-assisted engineering task follows this evidence order:
114
+ Every business-changing engineering task follows this evidence order:
105
115
 
106
- 1. The map proposes likely business scope and relations.
107
- 2. Current source and tests confirm implementation behavior.
108
- 3. Tracked product documents confirm durable intent when they own that intent.
109
- 4. Runtime, database, queue, or environment evidence confirms state-dependent
116
+ 1. The Skill probes existing map knowledge from a distinctive business term.
117
+ 2. A map proposes likely business scope and relations; `MAP_NOT_FOUND` routes to
118
+ the smallest source-supported business model needed for the task.
119
+ 3. Current source and tests confirm implementation behavior.
120
+ 4. Tracked product documents confirm durable intent when they own that intent.
121
+ 5. Runtime, database, queue, or environment evidence confirms state-dependent
110
122
  behavior when the task requires it.
111
- 5. The agent reports uncertainty when available evidence cannot support a
123
+ 6. The agent reports uncertainty when available evidence cannot support a
112
124
  decisive conclusion.
125
+ 7. The result records one maintenance disposition and creates a candidate only
126
+ for stable business meaning supported by decisive evidence.
113
127
 
114
128
  An outdated path or symbol anchor weakens that navigation hint without
115
129
  invalidating unrelated business meaning. A contradiction changes the current
@@ -122,11 +136,11 @@ Business-map files live in the repository and travel with its branches. Files
122
136
  are divided by stable business domain so agents can read concurrently and most
123
137
  durable updates touch only one owning map.
124
138
 
125
- Ordinary development tasks read the map and proceed independently. A task may
126
- record a candidate map observation, but successful engineering delivery does
127
- not depend on synchronizing the shared map. Reconciliation uses normal Git
128
- diff, review, and merge semantics instead of a second transaction or locking
129
- protocol.
139
+ Business-changing development tasks record independent observations whether or
140
+ not a map exists. A task records a candidate only when stable business meaning
141
+ requires later maintenance; successful engineering delivery does not depend on
142
+ synchronizing the shared map. Reconciliation uses normal Git diff, review, and
143
+ merge semantics instead of a second transaction or locking protocol.
130
144
 
131
145
  ## Initial Product Scope
132
146
 
@@ -138,9 +152,11 @@ The initial product delivers one coherent path:
138
152
  4. Find a business concept by stable ID, name, or alias.
139
153
  5. Return its containment, direct business relations, related concepts, and
140
154
  navigation anchors as structured JSON.
141
- 6. Render deterministic human-readable projections from the same graph.
142
- 7. Package an Agent Skill that routes map context into current-source
143
- confirmation.
155
+ 6. Render deterministic interactive human-readable projections from the same
156
+ graph as a portable HTML artifact or loopback Web session.
157
+ 7. Package an Agent Skill that activates from business task meaning, routes map
158
+ context or `MAP_NOT_FOUND` into current-source confirmation, and makes an
159
+ explicit post-task maintenance decision.
144
160
  8. Exercise the workflow against real engineering tasks, including stale and
145
161
  incomplete map cases.
146
162
 
@@ -177,12 +193,13 @@ the following:
177
193
  - context queries return the expected business owner, containment, incoming and
178
194
  outgoing relationships, and navigation anchors;
179
195
  - the renderer produces readable projections from the same normalized graph;
180
- - a repository-discovered Agent Skill uses map context before broad source
181
- discovery and confirms every change-controlling claim in current evidence;
196
+ - a package-managed Agent Skill activates for business-changing work with or
197
+ without a map, probes bounded context before broad discovery, and confirms
198
+ every change-controlling claim in current evidence;
182
199
  - real task cases cover upstream root cause, cross-capability impact, missing
183
200
  map knowledge, stale anchors, and a contradicted relationship;
184
- - map-assisted agents reach correct source-supported conclusions without
185
- introducing unsupported business claims;
201
+ - mapped and mapless Skill runs reach correct source-supported conclusions
202
+ without introducing unsupported business claims;
186
203
  - independent review finds the implementation responsibilities readable and
187
204
  the public workflow consistent with this contract;
188
205
  - delivery remains local: publication, external installation, and migration are
@@ -197,7 +214,7 @@ human-intervention evidence as acceptance conditions.
197
214
  The initial product, managed setup, versioned observations, read-only
198
215
  reconciliation, public repository, and npm publication are complete. The first
199
216
  real target-domain map and reviewed observation pair are in local use. The
200
- current `semantic-atlas@2.0.0` release removes one-time predecessor migration
217
+ current `semantic-atlas@2.1.1` release removes one-time predecessor migration
201
218
  paths and accepts only current managed Skill, observation, and claim contracts.
202
219
  Target-repository sharing and longitudinal acceptance remain separate verified
203
220
  stages.
@@ -240,10 +257,10 @@ Skills must have one verifiable version identity.
240
257
  Real-use evidence is separate from the Git business map and from business-map
241
258
  authority. The product records two immutable, versioned local artifacts:
242
259
 
243
- - `TaskObservation`: map query and selected concepts, current-evidence
244
- classification, explicitly domain-owned map-update candidates with a
245
- candidate disposition, and any explicit human correction known to the task
246
- Agent. Reads and writes use task artifact v2;
260
+ - `TaskObservation`: map query outcomes including `map_not_found`, selected
261
+ concepts, current-evidence classification, explicitly domain-owned map-update
262
+ candidates when maintenance is warranted, and any explicit human correction
263
+ known to the task Agent. Reads and writes use task artifact v2;
247
264
  - `ReviewObservation`: the independent review verdict, correctness of the
248
265
  business boundary and upstream cause, impact completeness, required rework,
249
266
  and whether the map caused a wrong conclusion.
@@ -270,24 +287,28 @@ regression, independent-review rework, human correction, and safe recovery from
270
287
  missing, stale, or contradicted map knowledge. Tokens, files, time, compute, and
271
288
  map-maintenance effort remain explanatory measures.
272
289
 
273
- ### Reconciliation
290
+ ### Post-integration maintenance and reconciliation
274
291
 
275
- Normal engineering work records durable map-update candidates without editing
276
- the shared map. `reconcile candidates` is read-only and preserves every task
277
- origin, candidate disposition, duplicate provenance, and linked independent
278
- review. A periodic maintenance task selects one business domain, checks current
292
+ Normal engineering work records one task observation and creates durable
293
+ map-update candidates only when the maintenance disposition is `candidate`.
294
+ `reconcile candidates` is read-only and preserves every candidate origin,
295
+ evidence disposition, duplicate provenance, and linked independent review. A
296
+ post-integration maintenance task selects one business domain, checks current
279
297
  source and durable product meaning, updates one owning YAML map through normal
280
- Git review, and leaves unresolved or implementation-local observations out of
281
- the canonical map.
298
+ Git review, and leaves unresolved or implementation-local meaning outside the
299
+ canonical map. A mapless repository can create one initial domain-owned YAML
300
+ when current evidence establishes stable identity and bounded meaning. Periodic
301
+ runs provide a fallback for missed observations, accumulated drift, and changes
302
+ outside the normal workflow.
282
303
 
283
304
  ### Real-use acceptance
284
305
 
285
306
  The first pilot starts with one stable business domain in a private target
286
307
  repository rather than mapping the whole repository. Its initial map is
287
- independently reviewed before merge. Normal Codrive development keeps its
288
- existing develop, independent review, rework, and fast-forward integration
289
- lifecycle; Semantic Atlas supplies advisory context and observation evidence
290
- only.
308
+ independently reviewed before merge. Task orchestrators keep their own develop,
309
+ independent review, rework, and integration lifecycle. Semantic Atlas activates
310
+ from the Agent's business task, supplies advisory understanding and observation
311
+ evidence, and remains independent of orchestration.
291
312
 
292
313
  Longitudinal acceptance requires at least 20 natural business-changing tasks
293
314
  with independent review, at least one period of real code drift, and two
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-atlas",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "A Git-native advisory business map for coding agents.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -45,7 +45,8 @@
45
45
  "docs/product-contract.md",
46
46
  "examples",
47
47
  "LICENSE",
48
- "README.md"
48
+ "README.md",
49
+ "README.zh-CN.md"
49
50
  ],
50
51
  "engines": {
51
52
  "node": ">=24 <25"