semantic-atlas 2.4.0 → 2.5.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 +25 -8
- package/.agents/skills/semantic-atlas/scripts/query-context.mjs +8 -17
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +129 -83
- package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +2 -2
- package/.agents/skills/semantic-atlas-maintenance/references/map-authoring.md +100 -0
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +33 -5
- package/README.md +86 -4
- package/README.zh-CN.md +75 -3
- package/dist/application/map-application.d.ts.map +1 -1
- package/dist/application/map-application.js +9 -11
- package/dist/application/map-application.js.map +1 -1
- package/dist/cli/localized-command.d.ts +9 -0
- package/dist/cli/localized-command.d.ts.map +1 -0
- package/dist/cli/localized-command.js +78 -0
- package/dist/cli/localized-command.js.map +1 -0
- package/dist/cli/observation-commands.d.ts.map +1 -1
- package/dist/cli/observation-commands.js +5 -6
- package/dist/cli/observation-commands.js.map +1 -1
- package/dist/cli/reconciliation-command.d.ts.map +1 -1
- package/dist/cli/reconciliation-command.js +3 -4
- package/dist/cli/reconciliation-command.js.map +1 -1
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +54 -56
- package/dist/cli/run-cli.js.map +1 -1
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/map.d.ts +6 -6
- package/dist/contracts/map.d.ts.map +1 -1
- package/dist/contracts/map.js +38 -29
- package/dist/contracts/map.js.map +1 -1
- package/dist/contracts/observation.d.ts +3 -3
- package/dist/contracts/observation.d.ts.map +1 -1
- package/dist/contracts/observation.js +109 -68
- package/dist/contracts/observation.js.map +1 -1
- package/dist/contracts/project.d.ts.map +1 -1
- package/dist/contracts/project.js +4 -2
- package/dist/contracts/project.js.map +1 -1
- package/dist/i18n/index.d.ts +540 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +52 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/locale.d.ts +4 -0
- package/dist/i18n/locale.d.ts.map +1 -0
- package/dist/i18n/locale.js +14 -0
- package/dist/i18n/locale.js.map +1 -0
- package/dist/i18n/locales/en/cli.d.ts +57 -0
- package/dist/i18n/locales/en/cli.d.ts.map +1 -0
- package/dist/i18n/locales/en/cli.js +56 -0
- package/dist/i18n/locales/en/cli.js.map +1 -0
- package/dist/i18n/locales/en/errors.d.ts +90 -0
- package/dist/i18n/locales/en/errors.d.ts.map +1 -0
- package/dist/i18n/locales/en/errors.js +89 -0
- package/dist/i18n/locales/en/errors.js.map +1 -0
- package/dist/i18n/locales/en/viewer.d.ts +118 -0
- package/dist/i18n/locales/en/viewer.d.ts.map +1 -0
- package/dist/i18n/locales/en/viewer.js +117 -0
- package/dist/i18n/locales/en/viewer.js.map +1 -0
- package/dist/i18n/locales/zh-CN/cli.d.ts +57 -0
- package/dist/i18n/locales/zh-CN/cli.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/cli.js +56 -0
- package/dist/i18n/locales/zh-CN/cli.js.map +1 -0
- package/dist/i18n/locales/zh-CN/errors.d.ts +90 -0
- package/dist/i18n/locales/zh-CN/errors.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/errors.js +89 -0
- package/dist/i18n/locales/zh-CN/errors.js.map +1 -0
- package/dist/i18n/locales/zh-CN/viewer.d.ts +118 -0
- package/dist/i18n/locales/zh-CN/viewer.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/viewer.js +117 -0
- package/dist/i18n/locales/zh-CN/viewer.js.map +1 -0
- package/dist/insights/insight-service.d.ts.map +1 -1
- package/dist/insights/insight-service.js +5 -4
- package/dist/insights/insight-service.js.map +1 -1
- package/dist/map/business-flow-validator.d.ts.map +1 -1
- package/dist/map/business-flow-validator.js +18 -14
- package/dist/map/business-flow-validator.js.map +1 -1
- package/dist/map/business-graph.d.ts.map +1 -1
- package/dist/map/business-graph.js +7 -9
- package/dist/map/business-graph.js.map +1 -1
- package/dist/map/map-document-loader.d.ts.map +1 -1
- package/dist/map/map-document-loader.js +7 -9
- package/dist/map/map-document-loader.js.map +1 -1
- package/dist/map/map-validator.d.ts.map +1 -1
- package/dist/map/map-validator.js +20 -15
- package/dist/map/map-validator.js.map +1 -1
- package/dist/observations/observation-application.d.ts.map +1 -1
- package/dist/observations/observation-application.js +17 -12
- package/dist/observations/observation-application.js.map +1 -1
- package/dist/observations/observation-claim-manager.d.ts.map +1 -1
- package/dist/observations/observation-claim-manager.js +16 -18
- package/dist/observations/observation-claim-manager.js.map +1 -1
- package/dist/observations/observation-store.d.ts.map +1 -1
- package/dist/observations/observation-store.js +22 -18
- package/dist/observations/observation-store.js.map +1 -1
- package/dist/observations/repository-identity.d.ts.map +1 -1
- package/dist/observations/repository-identity.js +5 -7
- package/dist/observations/repository-identity.js.map +1 -1
- package/dist/projects/project-registration-service.d.ts.map +1 -1
- package/dist/projects/project-registration-service.js +4 -1
- package/dist/projects/project-registration-service.js.map +1 -1
- package/dist/projects/project-store.d.ts.map +1 -1
- package/dist/projects/project-store.js +14 -14
- package/dist/projects/project-store.js.map +1 -1
- package/dist/reconciliation/reconciliation-service.d.ts.map +1 -1
- package/dist/reconciliation/reconciliation-service.js +6 -8
- package/dist/reconciliation/reconciliation-service.js.map +1 -1
- package/dist/rendering/diagram-image.d.ts +4 -2
- package/dist/rendering/diagram-image.d.ts.map +1 -1
- package/dist/rendering/diagram-image.js +29 -12
- package/dist/rendering/diagram-image.js.map +1 -1
- package/dist/rendering/flow-projector.d.ts.map +1 -1
- package/dist/rendering/flow-projector.js +14 -9
- package/dist/rendering/flow-projector.js.map +1 -1
- package/dist/rendering/html.d.ts +2 -0
- package/dist/rendering/html.d.ts.map +1 -1
- package/dist/rendering/html.js +5 -0
- package/dist/rendering/html.js.map +1 -1
- package/dist/rendering/manual-layout.d.ts +4 -0
- package/dist/rendering/manual-layout.d.ts.map +1 -0
- package/dist/rendering/manual-layout.js +72 -0
- package/dist/rendering/manual-layout.js.map +1 -0
- package/dist/rendering/map-camera.d.ts.map +1 -1
- package/dist/rendering/map-camera.js +1 -1
- package/dist/rendering/map-camera.js.map +1 -1
- package/dist/rendering/map-projector.d.ts.map +1 -1
- package/dist/rendering/map-projector.js +44 -35
- 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 +183 -88
- package/dist/rendering/viewer-browser.js.map +1 -1
- package/dist/rendering/viewer-diagram.d.ts +4 -2
- package/dist/rendering/viewer-diagram.d.ts.map +1 -1
- package/dist/rendering/viewer-diagram.js +51 -8
- package/dist/rendering/viewer-diagram.js.map +1 -1
- package/dist/rendering/viewer-layout.d.ts.map +1 -1
- package/dist/rendering/viewer-layout.js.map +1 -1
- package/dist/rendering/viewer-legend.d.ts +4 -0
- package/dist/rendering/viewer-legend.d.ts.map +1 -0
- package/dist/rendering/viewer-legend.js +138 -0
- package/dist/rendering/viewer-legend.js.map +1 -0
- package/dist/rendering/viewer-page.d.ts.map +1 -1
- package/dist/rendering/viewer-page.js +37 -80
- 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 +33 -33
- package/dist/setup/managed-skill-installer.js.map +1 -1
- package/dist/setup/package-identity.d.ts.map +1 -1
- package/dist/setup/package-identity.js +6 -5
- package/dist/setup/package-identity.js.map +1 -1
- package/dist/setup/package-upgrader.d.ts.map +1 -1
- package/dist/setup/package-upgrader.js +16 -13
- package/dist/setup/package-upgrader.js.map +1 -1
- package/dist/web/local-web-application.d.ts +1 -0
- package/dist/web/local-web-application.d.ts.map +1 -1
- package/dist/web/local-web-application.js +12 -7
- 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 +17 -7
- package/dist/web/local-web-server.js.map +1 -1
- package/dist/web/web-command-service.js +1 -1
- package/dist/web/web-command-service.js.map +1 -1
- package/docs/architecture.md +90 -23
- package/docs/evaluation.md +22 -0
- package/docs/index.md +2 -2
- package/docs/map-format.md +31 -1
- package/docs/observations.md +11 -0
- package/docs/product-contract.md +46 -2
- package/package.json +11 -3
|
@@ -17,6 +17,12 @@ investigation leads.
|
|
|
17
17
|
|
|
18
18
|
## Choose The Workflow From The Task
|
|
19
19
|
|
|
20
|
+
For an explicit request to create, extend, correct or reorganize a business map,
|
|
21
|
+
use `semantic-atlas-maintenance`'s direct-authoring path. Its common business
|
|
22
|
+
ownership rules apply to initial maps and every later update. The engineering
|
|
23
|
+
workflow below keeps ordinary feature and bug tasks bounded and produces
|
|
24
|
+
source-supported candidates for separate canonical maintenance.
|
|
25
|
+
|
|
20
26
|
Use this workflow when work can change or depend on business behavior,
|
|
21
27
|
ownership, shared data, an invariant, or an interface. This includes feature,
|
|
22
28
|
bug, refactor, impact-analysis, and independent-review work whose correct scope
|
|
@@ -178,11 +184,19 @@ already represents the durable meaning or the change is implementation-local.
|
|
|
178
184
|
Add concepts, relations, and flows only when current evidence supports their
|
|
179
185
|
accuracy. When no relevant flow changed, record no flow candidate.
|
|
180
186
|
|
|
181
|
-
For
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
187
|
+
For every proposed candidate, identify the actual business responsibility from
|
|
188
|
+
its outcomes, owned data/rules and collaborators. Reuse a mapped domain when
|
|
189
|
+
that meaning matches; an independently meaningful new business area receives
|
|
190
|
+
its own stable `businessDomainId`, even when another domain already has a YAML.
|
|
191
|
+
Use narrower capabilities for behavior belonging inside an existing area.
|
|
192
|
+
The maintenance Skill rechecks this ownership before choosing files. A required
|
|
193
|
+
multi-file ownership correction is explicit authoring/reorganization work,
|
|
194
|
+
while retained candidate origins keep their immutable domain identity.
|
|
195
|
+
|
|
196
|
+
For mapped and mapless tasks alike, retain only the stable meaning established
|
|
197
|
+
by current evidence. Use `unresolved` when the task cannot establish business
|
|
198
|
+
identity or ownership. A local engineering task does not imply mapping the
|
|
199
|
+
whole repository.
|
|
186
200
|
|
|
187
201
|
## Record Accuracy Evidence
|
|
188
202
|
|
|
@@ -219,9 +233,12 @@ evidence from missing accuracy evidence.
|
|
|
219
233
|
## Hand Off Canonical Maintenance
|
|
220
234
|
|
|
221
235
|
Keep canonical map editing in a separate maintenance change after stable reviewed source is available.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
236
|
+
For this candidate-driven handoff, the `semantic-atlas-maintenance` Skill
|
|
237
|
+
rechecks real business ownership using its common authoring rules, then handles
|
|
238
|
+
one confirmed domain and owning YAML. Ownership corrections needing multiple
|
|
239
|
+
files follow its ordinary reviewed authoring path with accurate separate origin
|
|
240
|
+
accounting. Both paths validate the complete graph, inspect the affected Viewer
|
|
241
|
+
areas and submit the Git diff for independent review.
|
|
225
242
|
|
|
226
243
|
A post-integration maintenance run can examine retained candidates from
|
|
227
244
|
business-changing results; an empty or no-change run is successful. Periodic
|
|
@@ -7,9 +7,7 @@ if (arguments_.length === 0) {
|
|
|
7
7
|
fail("Usage: query-context.mjs <business-term> --repo <repository-root>");
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
const bundledCli = fileURLToPath(
|
|
11
|
-
new URL("../../../../dist/cli/bin.js", import.meta.url),
|
|
12
|
-
);
|
|
10
|
+
const bundledCli = fileURLToPath(new URL("../../../../dist/cli/bin.js", import.meta.url));
|
|
13
11
|
const command = await resolveCliCommand();
|
|
14
12
|
const result = spawnSync(command.executable, command.arguments, {
|
|
15
13
|
encoding: "utf8",
|
|
@@ -23,15 +21,11 @@ let envelope;
|
|
|
23
21
|
try {
|
|
24
22
|
envelope = JSON.parse(result.stdout);
|
|
25
23
|
} catch {
|
|
26
|
-
fail(
|
|
27
|
-
"The available semantic-atlas command does not implement the v1 context contract.",
|
|
28
|
-
);
|
|
24
|
+
fail("The available semantic-atlas command does not implement the v1 context contract.");
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
if (envelope?.schemaVersion !== 1 || envelope?.command !== "context") {
|
|
32
|
-
fail(
|
|
33
|
-
"The available semantic-atlas command returned an incompatible context envelope.",
|
|
34
|
-
);
|
|
28
|
+
fail("The available semantic-atlas command returned an incompatible context envelope.");
|
|
35
29
|
}
|
|
36
30
|
|
|
37
31
|
process.stdout.write(result.stdout);
|
|
@@ -75,16 +69,13 @@ async function resolveCliCommand() {
|
|
|
75
69
|
async function readManagedIdentity() {
|
|
76
70
|
try {
|
|
77
71
|
const marker = JSON.parse(
|
|
78
|
-
await readFile(
|
|
79
|
-
new URL("../.semantic-atlas-managed.json", import.meta.url),
|
|
80
|
-
"utf8",
|
|
81
|
-
),
|
|
72
|
+
await readFile(new URL("../.semantic-atlas-managed.json", import.meta.url), "utf8"),
|
|
82
73
|
);
|
|
83
74
|
if (
|
|
84
|
-
marker?.schemaVersion === 1
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
75
|
+
marker?.schemaVersion === 1 &&
|
|
76
|
+
marker?.managedBy === "semantic-atlas" &&
|
|
77
|
+
marker?.skillName === "semantic-atlas" &&
|
|
78
|
+
typeof marker?.packageVersion === "string"
|
|
88
79
|
) {
|
|
89
80
|
return { packageVersion: marker.packageVersion };
|
|
90
81
|
}
|
|
@@ -1,24 +1,40 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: semantic-atlas-maintenance
|
|
3
|
-
description:
|
|
4
|
-
compatibility: Requires Node.js 24+, Git, the current semantic-atlas CLI,
|
|
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
5
|
---
|
|
6
6
|
|
|
7
7
|
# Semantic Atlas Maintenance
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
provenance explains where to investigate; it does not authorize a map edit.
|
|
9
|
+
Create or maintain a source-supported business map through ordinary Git review.
|
|
10
|
+
Current source, tests, tracked product documents, and required runtime evidence
|
|
11
|
+
decide business meaning; retained candidates supply investigation leads.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
## Choose The Requested Scope
|
|
14
|
+
|
|
15
|
+
Resolve the repository root and assigned worktree. A request to create, extend,
|
|
16
|
+
correct or reorganize a map is **direct authoring**: use current evidence for
|
|
17
|
+
its requested business scope, including when the candidate report is empty.
|
|
18
|
+
Project-wide requests cover the evidenced project areas; local requests cover
|
|
19
|
+
the named neighborhood. Creating the first map is one instance of this work.
|
|
20
|
+
|
|
21
|
+
**Candidate reconciliation** selects one business domain from retained origins.
|
|
22
|
+
Load that report first, then apply the same business-ownership rules used for
|
|
23
|
+
every map change. The candidate's recorded owner is an investigation hypothesis
|
|
24
|
+
that current evidence must confirm.
|
|
25
|
+
|
|
26
|
+
Both paths continue through the common Work, Review and Integration phases.
|
|
27
|
+
Read [references/map-authoring.md](references/map-authoring.md) when a document
|
|
28
|
+
shape or relationship/flow rule needs confirmation. For candidate reconciliation,
|
|
29
|
+
also read [references/reconciliation.md](references/reconciliation.md) for
|
|
30
|
+
provenance, classification and the unchanged observation contract.
|
|
17
31
|
|
|
18
32
|
## Work Phase
|
|
19
33
|
|
|
20
34
|
### Load Current Actionable Candidates
|
|
21
35
|
|
|
36
|
+
For candidate reconciliation:
|
|
37
|
+
|
|
22
38
|
1. Resolve the repository root and work only in the assigned worktree.
|
|
23
39
|
2. Run:
|
|
24
40
|
|
|
@@ -37,56 +53,69 @@ duplicate handling, maintenance-observation fields, and stopping conditions.
|
|
|
37
53
|
`waitingForEvidenceOccurrences` means prior investigation remains retained
|
|
38
54
|
but does not justify immediately repeating the same work.
|
|
39
55
|
|
|
40
|
-
###
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Keep
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
56
|
+
### Establish Business Ownership Before Every Map Edit
|
|
57
|
+
|
|
58
|
+
For direct authoring, start from the requested change and current product/source
|
|
59
|
+
evidence. For candidate reconciliation, start from the selected origins and
|
|
60
|
+
confirm their current evidence. Apply this sequence when creating the first map,
|
|
61
|
+
adding later business capabilities, correcting meaning, or reconciling drift:
|
|
62
|
+
|
|
63
|
+
1. Inspect the affected map, tracked product documents, current source and tests.
|
|
64
|
+
Follow callers and collaborators needed to confirm both endpoints of a
|
|
65
|
+
relationship. Use runtime evidence when deployed state owns the conclusion.
|
|
66
|
+
Preserve `MAP_NOT_FOUND` as the result when no map exists.
|
|
67
|
+
2. Identify the affected business responsibilities, owned data and rules,
|
|
68
|
+
collaborators, and decisive evidence before selecting a YAML file. Independent
|
|
69
|
+
responsibilities with their own business outcomes and rules get distinct
|
|
70
|
+
business areas. Source directories and existing filenames are evidence, not
|
|
71
|
+
the decision about ownership.
|
|
72
|
+
3. Reuse an existing domain and owning file when their business meaning matches
|
|
73
|
+
the change. Give newly identified independent business areas their own
|
|
74
|
+
meaningful `domain` roots and owning YAML files, including during incremental
|
|
75
|
+
maintenance. Use `capability` and `part_of` for narrower responsibilities within
|
|
76
|
+
an area. A single-business project or local task can still use one file.
|
|
77
|
+
File count follows business boundaries; domain roots drive Viewer selection.
|
|
78
|
+
4. Correct affected containment when current evidence exposes an oversized or
|
|
79
|
+
misplaced owner. Preserve stable concept IDs when business identity is
|
|
80
|
+
unchanged, while updating their owner, `part_of` and related references as
|
|
81
|
+
needed. Keep the correction within the requested/evidenced scope.
|
|
82
|
+
5. Define each shared concept once in its owning business file. Other files use
|
|
83
|
+
its stable ID. Declare each directed relation in its source concept's file,
|
|
84
|
+
including cross-file relations. Keep each flow in the same domain-owned YAML
|
|
85
|
+
as its scenario; steps may reference concepts owned by other files. Anchors
|
|
86
|
+
remain repository-relative navigation hints.
|
|
87
|
+
|
|
88
|
+
For each relevant flow, confirm the business-relevant actions, decisions,
|
|
89
|
+
branches, and outcomes that can change user results, durable data, cost or
|
|
90
|
+
provider usage, authorization or isolation, or interfaces. Keep flow steps at
|
|
91
|
+
business granularity. Treat a source diff as evidence to investigate; durable
|
|
92
|
+
product meaning decides whether a flow changes. Helpers, DTO conversion,
|
|
93
|
+
framework wiring, and Service or Queue names remain source details.
|
|
94
|
+
|
|
95
|
+
### Apply The Evidence Within Its Delivery Boundary
|
|
96
|
+
|
|
97
|
+
For direct authoring, edit the files owned by the evidenced responsibilities.
|
|
98
|
+
Complete the requested business neighborhood and report unresolved meaning
|
|
99
|
+
separately. Recheck the shared ownership rules above as later evidence reveals
|
|
100
|
+
an additional owner; an existing file is reusable only while its scope remains
|
|
101
|
+
correct.
|
|
102
|
+
|
|
103
|
+
For candidate reconciliation, classify every exact origin as `accepted`,
|
|
104
|
+
`refined`, `discarded`, or `unresolved` using the reconciliation reference.
|
|
105
|
+
Keep discarded and unresolved meaning outside the canonical map. Apply accepted
|
|
106
|
+
or refined changes to the confirmed domain's existing file, or create its
|
|
107
|
+
owning YAML when that business area has no file. A mapless candidate run can
|
|
108
|
+
create one initial business-domain YAML for its supported scope. One duplicate
|
|
109
|
+
candidate group produces one edit while retaining all exact origins.
|
|
110
|
+
|
|
111
|
+
Ordinary candidate reconciliation remains one business domain and one owning
|
|
112
|
+
YAML. When a real ownership correction requires changes across existing files,
|
|
113
|
+
organize the complete necessary change as a normal reviewed authoring or
|
|
114
|
+
reorganization Git candidate. Report the affected owners and retained origins
|
|
115
|
+
explicitly. The one-file observation contract describes a candidate result;
|
|
116
|
+
it never determines business containment. Keep exact-origin reconciliation
|
|
117
|
+
separate until its result truthfully fits that contract; a multi-file correction
|
|
118
|
+
is not represented as an accepted single-path `mapChange`.
|
|
90
119
|
|
|
91
120
|
### Validate And Prepare The Review Candidate
|
|
92
121
|
|
|
@@ -95,44 +124,61 @@ When the map changes, run:
|
|
|
95
124
|
```bash
|
|
96
125
|
semantic-atlas validate --repo <absolute-repository-root>
|
|
97
126
|
semantic-atlas render --repo <absolute-repository-root> \
|
|
98
|
-
--output <repository-root>/tmp/semantic-atlas
|
|
127
|
+
--output <repository-root>/tmp/semantic-atlas-map.html
|
|
99
128
|
git diff --check
|
|
100
|
-
git diff -- docs/business-map
|
|
129
|
+
git diff -- docs/business-map/
|
|
101
130
|
```
|
|
102
131
|
|
|
103
|
-
Inspect
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
or
|
|
114
|
-
the
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
132
|
+
Inspect every changed business area in the Viewer. Confirm that domain
|
|
133
|
+
selection matches the evidenced boundaries, cross-file relationships retain
|
|
134
|
+
external neighboring concepts, and scenario flows preserve their branches,
|
|
135
|
+
outcomes and relationship-to-flow links. Moving YAML alone does not establish
|
|
136
|
+
correct business containment. Check the complete graph together, including
|
|
137
|
+
unchanged documents, and keep retained observations immutable.
|
|
138
|
+
|
|
139
|
+
For direct authoring, review the complete requested business scope and all
|
|
140
|
+
owning files as one Git candidate, including newly created files that an
|
|
141
|
+
unstaged `git diff` does not yet show. A one-domain result is appropriate when the
|
|
142
|
+
requested or evidenced scope has only that business responsibility. For
|
|
143
|
+
candidate reconciliation, confirm the diff changes at most one owning YAML.
|
|
144
|
+
Commit the map candidate through the host workflow.
|
|
145
|
+
|
|
146
|
+
For candidate reconciliation, prepare one maintenance-observation JSON document:
|
|
147
|
+
maintenance task/run identity, selected `businessDomainId`, every exact origin,
|
|
148
|
+
classification, reason, and current evidence. Accepted or refined results
|
|
149
|
+
reserve `mapChange.owningMapPath`; Integration adds the real `mergedCommit`.
|
|
150
|
+
Keep this draft unrecorded until independent review and integration finish.
|
|
151
|
+
Direct authoring without retained origins uses Git review evidence rather than
|
|
152
|
+
a candidate-origin observation. A reorganization records its complete Git diff
|
|
153
|
+
and integration state; retained origins stay available for accurate separate
|
|
154
|
+
reconciliation instead of being consumed by a fabricated single-file result.
|
|
155
|
+
|
|
156
|
+
Report the requested scope, boundaries, evidence, owning files, validation and
|
|
157
|
+
render results, Git candidate, and actual review/integration state. Include
|
|
158
|
+
origins, classifications and the observation draft for candidate reconciliation.
|
|
123
159
|
|
|
124
160
|
## Review Phase
|
|
125
161
|
|
|
126
162
|
Use the host workflow's ordinary independent review. Review durable business
|
|
127
163
|
meaning, relation direction, flow branch meaning, evidence support,
|
|
128
|
-
complete-graph validity,
|
|
129
|
-
|
|
164
|
+
complete-graph validity, and whether the domain/file partition matches the
|
|
165
|
+
requested business scope. For candidate reconciliation, also check exact origin
|
|
166
|
+
coverage, one-domain ownership, and whether discarded or unresolved conclusions
|
|
167
|
+
correctly avoid a map edit.
|
|
130
168
|
|
|
131
169
|
Changes requested return to the normal Work Phase. Approval authorizes the host
|
|
132
170
|
workflow to enter Integration Phase; it does not itself consume candidates.
|
|
133
171
|
|
|
134
172
|
## Integration Phase
|
|
135
173
|
|
|
174
|
+
For direct authoring, integrate the approved Git candidate through the
|
|
175
|
+
repository workflow and report the actual commit and map validation. This path
|
|
176
|
+
uses Git review evidence and leaves candidate maintenance observations to the
|
|
177
|
+
candidate workflow. A local candidate remains pending integration when the host
|
|
178
|
+
workflow has not merged it.
|
|
179
|
+
|
|
180
|
+
For candidate reconciliation:
|
|
181
|
+
|
|
136
182
|
1. Re-read the approved work and review evidence.
|
|
137
183
|
2. When a map candidate exists, merge it through the repository's normal Git
|
|
138
184
|
flow and capture the actual `mergedCommit`. Put that commit and the one
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Semantic Atlas Maintenance"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "Use $semantic-atlas-maintenance to
|
|
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."
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Business Map Authoring
|
|
2
|
+
|
|
3
|
+
Use this reference when creating or updating map documents. The Skill owns the
|
|
4
|
+
common business-ownership decisions for every edit; this page supplies the
|
|
5
|
+
version 1 authoring shape. The installed package's `docs/map-format.md` defines the complete format,
|
|
6
|
+
and `semantic-atlas validate` checks all documents together.
|
|
7
|
+
|
|
8
|
+
## Document And Concept Shape
|
|
9
|
+
|
|
10
|
+
Store each owning document at `docs/business-map/<business-area>.yaml`.
|
|
11
|
+
`map.id` identifies that document; only nodes create business graph elements.
|
|
12
|
+
For each evidenced business area, adapt this minimal shape:
|
|
13
|
+
|
|
14
|
+
```yaml
|
|
15
|
+
schemaVersion: 1
|
|
16
|
+
map:
|
|
17
|
+
id: support
|
|
18
|
+
title: Customer support
|
|
19
|
+
summary: Resolve customer support requests.
|
|
20
|
+
nodes:
|
|
21
|
+
- id: support
|
|
22
|
+
kind: domain
|
|
23
|
+
name: Customer support
|
|
24
|
+
summary: Help customers resolve service problems.
|
|
25
|
+
aliases: []
|
|
26
|
+
anchors:
|
|
27
|
+
- kind: document
|
|
28
|
+
value: README.md
|
|
29
|
+
description: Current product purpose and rules.
|
|
30
|
+
- id: support.resolve-request
|
|
31
|
+
kind: scenario
|
|
32
|
+
name: Resolve request
|
|
33
|
+
summary: A customer request reaches a supported resolution.
|
|
34
|
+
aliases: []
|
|
35
|
+
anchors: []
|
|
36
|
+
relations:
|
|
37
|
+
- from: support.resolve-request
|
|
38
|
+
type: part_of
|
|
39
|
+
to: support
|
|
40
|
+
summary: Request resolution belongs to customer support.
|
|
41
|
+
flows:
|
|
42
|
+
- id: support.resolve-request.flow
|
|
43
|
+
name: Resolve request
|
|
44
|
+
summary: Complete a supported customer request.
|
|
45
|
+
scenario: support.resolve-request
|
|
46
|
+
startsAt: resolve
|
|
47
|
+
steps:
|
|
48
|
+
- id: resolve
|
|
49
|
+
kind: action
|
|
50
|
+
name: Resolve request
|
|
51
|
+
summary: Apply the supported resolution.
|
|
52
|
+
concept: support.resolve-request
|
|
53
|
+
- id: resolved
|
|
54
|
+
kind: outcome
|
|
55
|
+
name: Request resolved
|
|
56
|
+
summary: The customer request is resolved.
|
|
57
|
+
transitions:
|
|
58
|
+
- from: resolve
|
|
59
|
+
to: resolved
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Use evidence-backed names, summaries and flows rather than retaining illustrative
|
|
63
|
+
Support meaning. Document `relations` and `flows`, and node `aliases` and `anchors`, may be
|
|
64
|
+
empty when the evidence supplies no entries.
|
|
65
|
+
Every node needs `id`, `kind`, `name`, `summary`, `aliases`, and `anchors`.
|
|
66
|
+
IDs use lowercase business vocabulary separated by dots or hyphens and remain
|
|
67
|
+
unique across the repository. Node kinds are `domain`, `capability`, `scenario`,
|
|
68
|
+
`operation`, `data`, `invariant`, and `interface`.
|
|
69
|
+
|
|
70
|
+
Anchors contain `kind`, `value`, and `description`. Kinds are `file`, `directory`,
|
|
71
|
+
`document`, `symbol`, and `search`; file-like values are normalized
|
|
72
|
+
repository-relative paths. Keep source evidence discoverable through anchors.
|
|
73
|
+
|
|
74
|
+
## Relations And Flows
|
|
75
|
+
|
|
76
|
+
`part_of` points from child to parent, gives a concept at most one parent, and
|
|
77
|
+
keeps domain roots top-level. It describes business containment, not execution.
|
|
78
|
+
Use existing node IDs for every relation endpoint:
|
|
79
|
+
|
|
80
|
+
- `invokes`: scenario/operation to scenario/operation;
|
|
81
|
+
- `reads` / `writes`: scenario/operation to data;
|
|
82
|
+
- `publishes` / `consumes`: capability/scenario/operation to interface;
|
|
83
|
+
- `constrained_by`: business concept to invariant.
|
|
84
|
+
|
|
85
|
+
Each relation includes `from`, `type`, `to`, and a business `summary`. Even a
|
|
86
|
+
consumer's `consumes` relation points **to the interface**, not from it.
|
|
87
|
+
The source concept owns the relation, including when its target is in another
|
|
88
|
+
YAML. Shared concepts stay defined once in their own document.
|
|
89
|
+
|
|
90
|
+
A flow belongs to an existing `scenario` and lives beside it. Steps have `id`,
|
|
91
|
+
`kind`, `name`, `summary`, and optional `concept` referencing a repository-wide
|
|
92
|
+
node. Actions have at most one unlabeled next transition; decisions have at
|
|
93
|
+
least two transitions with distinct nonempty `when` labels; outcomes end paths.
|
|
94
|
+
All steps must be reachable from `startsAt`. Preserve source-supported business
|
|
95
|
+
branches, including refusals; use flows for durable outcomes rather than
|
|
96
|
+
helpers or framework control flow.
|
|
97
|
+
|
|
98
|
+
Run complete-graph validation and inspect each rendered domain and related flow.
|
|
99
|
+
Separate YAML filenames organize review; distinct domain nodes and correct
|
|
100
|
+
`part_of` relations make the business areas selectable in the Viewer.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Reconciliation Evidence Guide
|
|
2
2
|
|
|
3
|
-
Use this guide after loading the versioned
|
|
4
|
-
business domain.
|
|
3
|
+
Use this guide for candidate reconciliation after loading the versioned report
|
|
4
|
+
and selecting one business domain. Apply the Skill's common business-ownership
|
|
5
|
+
rules to this domain before selecting files or accepting its recorded ownership.
|
|
5
6
|
|
|
6
7
|
## Read Candidate Provenance
|
|
7
8
|
|
|
@@ -37,6 +38,20 @@ tests for implemented collaboration. Use runtime evidence when the conclusion
|
|
|
37
38
|
depends on deployed state. When these sources disagree, state the disagreement
|
|
38
39
|
and leave the candidate unresolved until the owning authority can decide it.
|
|
39
40
|
|
|
41
|
+
## Classify Current Evidence
|
|
42
|
+
|
|
43
|
+
Classify every selected origin against current durable meaning:
|
|
44
|
+
|
|
45
|
+
- `accepted`: current evidence supports the proposed durable correction;
|
|
46
|
+
- `refined`: current evidence supports a narrower or differently worded durable
|
|
47
|
+
correction;
|
|
48
|
+
- `discarded`: current evidence shows implementation-local, obsolete, or
|
|
49
|
+
unsupported meaning that does not belong in the shared map;
|
|
50
|
+
- `unresolved`: available evidence cannot yet establish stable business meaning.
|
|
51
|
+
|
|
52
|
+
A correct discarded or unresolved conclusion is complete and may have no map
|
|
53
|
+
change. Keep that meaning outside the canonical map.
|
|
54
|
+
|
|
40
55
|
## Handle Drift And Duplicates
|
|
41
56
|
|
|
42
57
|
- A stale anchor can be accepted when the business concept remains durable and
|
|
@@ -57,11 +72,17 @@ and leave the candidate unresolved until the owning authority can decide it.
|
|
|
57
72
|
- A transient or implementation-local observation is discarded with a concise
|
|
58
73
|
evidence-backed reason and produces no map change.
|
|
59
74
|
|
|
60
|
-
## Keep One Review Surface
|
|
75
|
+
## Keep One Candidate Domain Review Surface
|
|
61
76
|
|
|
62
77
|
Edit or create one owning `docs/business-map/*.yaml` file for the selected
|
|
63
|
-
domain
|
|
64
|
-
meaning
|
|
78
|
+
domain when current evidence confirms that ownership. Reuse a file because its
|
|
79
|
+
business meaning matches, and create the owning file for a new independent
|
|
80
|
+
business domain. The Skill's common rules apply equally to an existing or
|
|
81
|
+
initial map. When the evidence requires repartitioning existing files, prepare
|
|
82
|
+
the complete normal authoring/reorganization Git candidate and report retained
|
|
83
|
+
origins separately; one `owningMapPath` must not stand for a multi-file result.
|
|
84
|
+
The original observation stays immutable, and accurate origin reconciliation
|
|
85
|
+
remains separate from that authoring delivery. Validate the complete graph because
|
|
65
86
|
relation endpoints and containment remain repository-wide even when the Git
|
|
66
87
|
diff is local. Render the changed graph and inspect the selected neighborhood.
|
|
67
88
|
The final Git diff is the independent review surface; retained observation
|
|
@@ -69,6 +90,13 @@ artifacts stay unchanged.
|
|
|
69
90
|
|
|
70
91
|
## Record The Reviewed Outcome
|
|
71
92
|
|
|
93
|
+
A maintenance observation settles retained candidates, not a general map-authoring
|
|
94
|
+
run. Direct authoring without retained origins uses Git review and integration
|
|
95
|
+
evidence. Ownership reorganization likewise keeps its complete Git diff distinct
|
|
96
|
+
from the single-domain result contract. Retain exact candidate identities and
|
|
97
|
+
report pending reconciliation when the change cannot truthfully be represented
|
|
98
|
+
by the current result shape.
|
|
99
|
+
|
|
72
100
|
One maintenance result identifies an exact source with both
|
|
73
101
|
`taskObservationId` and zero-based `candidateIndex`. Repeated summaries do not
|
|
74
102
|
replace this identity. The command rejects a missing source or a source owned by
|