semantic-atlas 0.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/semantic-atlas/SKILL.md +134 -166
- package/.agents/skills/semantic-atlas/agents/openai.yaml +4 -0
- package/.agents/skills/semantic-atlas/references/observations.md +130 -0
- package/.agents/skills/semantic-atlas/scripts/query-context.mjs +110 -0
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +93 -0
- package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +4 -0
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +56 -0
- package/README.md +133 -265
- package/dist/application/map-application.d.ts +24 -0
- package/dist/application/map-application.d.ts.map +1 -0
- package/dist/application/map-application.js +134 -0
- package/dist/application/map-application.js.map +1 -0
- package/dist/cli/bin.js +6 -42
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/observation-commands.d.ts +16 -0
- package/dist/cli/observation-commands.d.ts.map +1 -0
- package/dist/cli/observation-commands.js +118 -0
- package/dist/cli/observation-commands.js.map +1 -0
- package/dist/cli/projection-writer.d.ts +2 -0
- package/dist/cli/projection-writer.d.ts.map +1 -0
- package/dist/cli/projection-writer.js +9 -0
- package/dist/cli/projection-writer.js.map +1 -0
- package/dist/cli/reconciliation-command.d.ts +7 -0
- package/dist/cli/reconciliation-command.d.ts.map +1 -0
- package/dist/cli/reconciliation-command.js +33 -0
- package/dist/cli/reconciliation-command.js.map +1 -0
- package/dist/cli/run-cli.d.ts +21 -0
- package/dist/cli/run-cli.d.ts.map +1 -0
- package/dist/cli/run-cli.js +299 -0
- package/dist/cli/run-cli.js.map +1 -0
- package/dist/contracts/cli.d.ts +166 -1211
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/cli.js +2 -232
- package/dist/contracts/cli.js.map +1 -0
- package/dist/contracts/insights.d.ts +39 -1
- package/dist/contracts/insights.d.ts.map +1 -1
- package/dist/contracts/insights.js +2 -1
- package/dist/contracts/insights.js.map +1 -0
- package/dist/contracts/map.d.ts +154 -0
- package/dist/contracts/map.d.ts.map +1 -0
- package/dist/contracts/map.js +60 -0
- package/dist/contracts/map.js.map +1 -0
- package/dist/contracts/observation.d.ts +414 -0
- package/dist/contracts/observation.d.ts.map +1 -0
- package/dist/contracts/observation.js +125 -0
- package/dist/contracts/observation.js.map +1 -0
- package/dist/contracts/projection.d.ts +7 -0
- package/dist/contracts/projection.d.ts.map +1 -0
- package/dist/contracts/projection.js +2 -0
- package/dist/contracts/projection.js.map +1 -0
- package/dist/contracts/reconciliation.d.ts +40 -0
- package/dist/contracts/reconciliation.d.ts.map +1 -0
- package/dist/contracts/reconciliation.js +2 -0
- package/dist/contracts/reconciliation.js.map +1 -0
- package/dist/index.d.ts +7 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -0
- package/dist/insights/insight-service.d.ts +14 -0
- package/dist/insights/insight-service.d.ts.map +1 -0
- package/dist/insights/insight-service.js +129 -0
- package/dist/insights/insight-service.js.map +1 -0
- package/dist/map/business-graph.d.ts +32 -0
- package/dist/map/business-graph.d.ts.map +1 -0
- package/dist/map/business-graph.js +122 -0
- package/dist/map/business-graph.js.map +1 -0
- package/dist/map/map-document-loader.d.ts +13 -0
- package/dist/map/map-document-loader.d.ts.map +1 -0
- package/dist/map/map-document-loader.js +86 -0
- package/dist/map/map-document-loader.js.map +1 -0
- package/dist/map/map-validator.d.ts +12 -0
- package/dist/map/map-validator.d.ts.map +1 -0
- package/dist/map/map-validator.js +322 -0
- package/dist/map/map-validator.js.map +1 -0
- package/dist/observations/observation-application.d.ts +23 -0
- package/dist/observations/observation-application.d.ts.map +1 -0
- package/dist/observations/observation-application.js +62 -0
- package/dist/observations/observation-application.js.map +1 -0
- package/dist/observations/observation-claim-manager.d.ts +17 -0
- package/dist/observations/observation-claim-manager.d.ts.map +1 -0
- package/dist/observations/observation-claim-manager.js +198 -0
- package/dist/observations/observation-claim-manager.js.map +1 -0
- package/dist/observations/observation-store.d.ts +43 -0
- package/dist/observations/observation-store.d.ts.map +1 -0
- package/dist/observations/observation-store.js +213 -0
- package/dist/observations/observation-store.js.map +1 -0
- package/dist/observations/repository-identity.d.ts +12 -0
- package/dist/observations/repository-identity.d.ts.map +1 -0
- package/dist/observations/repository-identity.js +108 -0
- package/dist/observations/repository-identity.js.map +1 -0
- package/dist/query/context-query-service.d.ts +15 -0
- package/dist/query/context-query-service.d.ts.map +1 -0
- package/dist/query/context-query-service.js +36 -0
- package/dist/query/context-query-service.js.map +1 -0
- package/dist/reconciliation/reconciliation-service.d.ts +10 -0
- package/dist/reconciliation/reconciliation-service.d.ts.map +1 -0
- package/dist/reconciliation/reconciliation-service.js +114 -0
- package/dist/reconciliation/reconciliation-service.js.map +1 -0
- package/dist/rendering/map-projector.d.ts +8 -0
- package/dist/rendering/map-projector.d.ts.map +1 -0
- package/dist/rendering/map-projector.js +386 -0
- package/dist/rendering/map-projector.js.map +1 -0
- package/dist/setup/managed-skill-installer.d.ts +60 -0
- package/dist/setup/managed-skill-installer.d.ts.map +1 -0
- package/dist/setup/managed-skill-installer.js +293 -0
- package/dist/setup/managed-skill-installer.js.map +1 -0
- package/dist/setup/package-identity.d.ts +6 -0
- package/dist/setup/package-identity.d.ts.map +1 -0
- package/dist/setup/package-identity.js +16 -0
- package/dist/setup/package-identity.js.map +1 -0
- package/dist/setup/package-upgrader.d.ts +10 -22
- package/dist/setup/package-upgrader.d.ts.map +1 -1
- package/dist/setup/package-upgrader.js +60 -76
- package/dist/setup/package-upgrader.js.map +1 -0
- package/docs/architecture.md +426 -0
- package/docs/evaluation.md +220 -174
- package/docs/index.md +27 -45
- package/docs/map-format.md +225 -0
- package/docs/observations.md +167 -0
- package/docs/product-contract.md +282 -165
- package/examples/commerce.yaml +204 -0
- package/package.json +31 -32
- package/.agents/skills/semantic-atlas/references/graph-patch.md +0 -190
- package/.agents/skills/semantic-atlas/references/product-feedback.md +0 -34
- package/.agents/skills/semantic-atlas/references/result-routing.md +0 -104
- package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +0 -42
- package/.agents/skills/semantic-atlas-insights/SKILL.md +0 -55
- package/README.zh-CN.md +0 -296
- package/dist/business-flow/business-flow-derivation-service.d.ts +0 -11
- package/dist/business-flow/business-flow-derivation-service.d.ts.map +0 -1
- package/dist/business-flow/business-flow-derivation-service.js +0 -151
- package/dist/business-flow/business-flow-draft.d.ts +0 -16
- package/dist/business-flow/business-flow-draft.d.ts.map +0 -1
- package/dist/business-flow/business-flow-draft.js +0 -150
- package/dist/business-flow/framework-business-strategy.d.ts +0 -7
- package/dist/business-flow/framework-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/framework-business-strategy.js +0 -1
- package/dist/business-flow/strategies/bullmq-business-strategy.d.ts +0 -10
- package/dist/business-flow/strategies/bullmq-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/bullmq-business-strategy.js +0 -79
- package/dist/business-flow/strategies/called-operation-derivation.d.ts +0 -13
- package/dist/business-flow/strategies/called-operation-derivation.d.ts.map +0 -1
- package/dist/business-flow/strategies/called-operation-derivation.js +0 -32
- package/dist/business-flow/strategies/graphql-business-strategy.d.ts +0 -8
- package/dist/business-flow/strategies/graphql-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/graphql-business-strategy.js +0 -65
- package/dist/business-flow/strategies/nestjs-business-strategy.d.ts +0 -8
- package/dist/business-flow/strategies/nestjs-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/nestjs-business-strategy.js +0 -72
- package/dist/business-flow/strategies/strategy-helpers.d.ts +0 -32
- package/dist/business-flow/strategies/strategy-helpers.d.ts.map +0 -1
- package/dist/business-flow/strategies/strategy-helpers.js +0 -49
- package/dist/business-flow/strategies/typeorm-business-strategy.d.ts +0 -10
- package/dist/business-flow/strategies/typeorm-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/typeorm-business-strategy.js +0 -136
- package/dist/business-flow/strategies/verified-invariant-strategy.d.ts +0 -5
- package/dist/business-flow/strategies/verified-invariant-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/verified-invariant-strategy.js +0 -38
- package/dist/business-flow/strategies/verified-test-strategy.d.ts +0 -5
- package/dist/business-flow/strategies/verified-test-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/verified-test-strategy.js +0 -26
- package/dist/business-flow/structural-flow-catalog.d.ts +0 -21
- package/dist/business-flow/structural-flow-catalog.d.ts.map +0 -1
- package/dist/business-flow/structural-flow-catalog.js +0 -125
- package/dist/business-flow/types.d.ts +0 -51
- package/dist/business-flow/types.d.ts.map +0 -1
- package/dist/business-flow/types.js +0 -1
- package/dist/cli/argument-parser.d.ts +0 -3
- package/dist/cli/argument-parser.d.ts.map +0 -1
- package/dist/cli/argument-parser.js +0 -200
- package/dist/cli/cli-application.d.ts +0 -39
- package/dist/cli/cli-application.d.ts.map +0 -1
- package/dist/cli/cli-application.js +0 -571
- package/dist/cli/cli-error.d.ts +0 -12
- package/dist/cli/cli-error.d.ts.map +0 -1
- package/dist/cli/cli-error.js +0 -44
- package/dist/cli/cli-presenter.d.ts +0 -14
- package/dist/cli/cli-presenter.d.ts.map +0 -1
- package/dist/cli/cli-presenter.js +0 -36
- package/dist/cli/insights-cli.d.ts +0 -6
- package/dist/cli/insights-cli.d.ts.map +0 -1
- package/dist/cli/insights-cli.js +0 -236
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -137
- package/dist/cli/standalone-cli.d.ts +0 -3
- package/dist/cli/standalone-cli.d.ts.map +0 -1
- package/dist/cli/standalone-cli.js +0 -104
- package/dist/cli/types.d.ts +0 -49
- package/dist/cli/types.d.ts.map +0 -1
- package/dist/cli/types.js +0 -1
- package/dist/cli/web-cli.d.ts +0 -9
- package/dist/cli/web-cli.d.ts.map +0 -1
- package/dist/cli/web-cli.js +0 -134
- package/dist/contracts/graph.d.ts +0 -266
- package/dist/contracts/graph.d.ts.map +0 -1
- package/dist/contracts/graph.js +0 -182
- package/dist/contracts/identifiers.d.ts +0 -4
- package/dist/contracts/identifiers.d.ts.map +0 -1
- package/dist/contracts/identifiers.js +0 -7
- package/dist/contracts/public-contracts.d.ts +0 -5
- package/dist/contracts/public-contracts.d.ts.map +0 -1
- package/dist/contracts/public-contracts.js +0 -4
- package/dist/evaluation/comparison.d.ts +0 -30
- package/dist/evaluation/comparison.d.ts.map +0 -1
- package/dist/evaluation/comparison.js +0 -108
- package/dist/evaluation/contracts.d.ts +0 -301
- package/dist/evaluation/contracts.d.ts.map +0 -1
- package/dist/evaluation/contracts.js +0 -413
- package/dist/graph/graph-store.d.ts +0 -55
- package/dist/graph/graph-store.d.ts.map +0 -1
- package/dist/graph/graph-store.js +0 -912
- package/dist/graph/types.d.ts +0 -189
- package/dist/graph/types.d.ts.map +0 -1
- package/dist/graph/types.js +0 -1
- package/dist/insights/contracts.d.ts +0 -266
- package/dist/insights/contracts.d.ts.map +0 -1
- package/dist/insights/contracts.js +0 -124
- package/dist/insights/insights-store.d.ts +0 -73
- package/dist/insights/insights-store.d.ts.map +0 -1
- package/dist/insights/insights-store.js +0 -246
- package/dist/knowledge/business-knowledge-service.d.ts +0 -24
- package/dist/knowledge/business-knowledge-service.d.ts.map +0 -1
- package/dist/knowledge/business-knowledge-service.js +0 -200
- package/dist/knowledge/graph-patch-conflict-error.d.ts +0 -8
- package/dist/knowledge/graph-patch-conflict-error.d.ts.map +0 -1
- package/dist/knowledge/graph-patch-conflict-error.js +0 -12
- package/dist/knowledge/structural-target-binding.d.ts +0 -14
- package/dist/knowledge/structural-target-binding.d.ts.map +0 -1
- package/dist/knowledge/structural-target-binding.js +0 -11
- package/dist/package-metadata.d.ts +0 -2
- package/dist/package-metadata.d.ts.map +0 -1
- package/dist/package-metadata.js +0 -9
- package/dist/repository/git-command.d.ts +0 -3
- package/dist/repository/git-command.d.ts.map +0 -1
- package/dist/repository/git-command.js +0 -25
- package/dist/repository/repository-inspector.d.ts +0 -8
- package/dist/repository/repository-inspector.d.ts.map +0 -1
- package/dist/repository/repository-inspector.js +0 -97
- package/dist/repository/repository-language-support.d.ts +0 -14
- package/dist/repository/repository-language-support.d.ts.map +0 -1
- package/dist/repository/repository-language-support.js +0 -64
- package/dist/repository/types.d.ts +0 -9
- package/dist/repository/types.d.ts.map +0 -1
- package/dist/repository/types.js +0 -1
- package/dist/runtime/sqlite-compatibility-process.d.ts +0 -8
- package/dist/runtime/sqlite-compatibility-process.d.ts.map +0 -1
- package/dist/runtime/sqlite-compatibility-process.js +0 -20
- package/dist/setup/skill-installer.d.ts +0 -20
- package/dist/setup/skill-installer.d.ts.map +0 -1
- package/dist/setup/skill-installer.js +0 -187
- package/dist/snapshots/repository-snapshot.d.ts +0 -4
- package/dist/snapshots/repository-snapshot.d.ts.map +0 -1
- package/dist/snapshots/repository-snapshot.js +0 -119
- package/dist/snapshots/types.d.ts +0 -30
- package/dist/snapshots/types.d.ts.map +0 -1
- package/dist/snapshots/types.js +0 -1
- package/dist/storage/atlas-database.d.ts +0 -25
- package/dist/storage/atlas-database.d.ts.map +0 -1
- package/dist/storage/atlas-database.js +0 -483
- package/dist/storage/snapshot-store.d.ts +0 -19
- package/dist/storage/snapshot-store.d.ts.map +0 -1
- package/dist/storage/snapshot-store.js +0 -74
- package/dist/structural-backend/codegraph-backend.d.ts +0 -57
- package/dist/structural-backend/codegraph-backend.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-backend.js +0 -1230
- package/dist/structural-backend/codegraph-worker-client.d.ts +0 -5
- package/dist/structural-backend/codegraph-worker-client.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker-client.js +0 -118
- package/dist/structural-backend/codegraph-worker-protocol.d.ts +0 -35
- package/dist/structural-backend/codegraph-worker-protocol.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker-protocol.js +0 -1
- package/dist/structural-backend/codegraph-worker.d.ts +0 -2
- package/dist/structural-backend/codegraph-worker.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker.js +0 -131
- package/dist/structural-backend/process-instance.d.ts +0 -18
- package/dist/structural-backend/process-instance.d.ts.map +0 -1
- package/dist/structural-backend/process-instance.js +0 -207
- package/dist/structural-backend/structural-fact-changes.d.ts +0 -7
- package/dist/structural-backend/structural-fact-changes.d.ts.map +0 -1
- package/dist/structural-backend/structural-fact-changes.js +0 -78
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts +0 -10
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +0 -1
- package/dist/structural-backend/structural-projection-bootstrapper.js +0 -295
- package/dist/structural-backend/structural-publication.d.ts +0 -13
- package/dist/structural-backend/structural-publication.d.ts.map +0 -1
- package/dist/structural-backend/structural-publication.js +0 -255
- package/dist/structural-backend/structural-write-lock.d.ts +0 -8
- package/dist/structural-backend/structural-write-lock.d.ts.map +0 -1
- package/dist/structural-backend/structural-write-lock.js +0 -415
- package/dist/structural-backend/types.d.ts +0 -144
- package/dist/structural-backend/types.d.ts.map +0 -1
- package/dist/structural-backend/types.js +0 -11
- package/dist/web/application/atlas-read-service.d.ts +0 -27
- package/dist/web/application/atlas-read-service.d.ts.map +0 -1
- package/dist/web/application/atlas-read-service.js +0 -216
- package/dist/web/application/primary-repository-catalog.d.ts +0 -15
- package/dist/web/application/primary-repository-catalog.d.ts.map +0 -1
- package/dist/web/application/primary-repository-catalog.js +0 -202
- package/dist/web/application/types.d.ts +0 -41
- package/dist/web/application/types.d.ts.map +0 -1
- package/dist/web/application/types.js +0 -1
- package/dist/web/server/api-router.d.ts +0 -4
- package/dist/web/server/api-router.d.ts.map +0 -1
- package/dist/web/server/api-router.js +0 -151
- package/dist/web/server/local-web-server.d.ts +0 -12
- package/dist/web/server/local-web-server.d.ts.map +0 -1
- package/dist/web/server/local-web-server.js +0 -100
- package/dist/web-client/assets/index-DneaErDj.css +0 -1
- package/dist/web-client/assets/index-cze_4vtt.js +0 -2
- package/dist/web-client/assets/index-cze_4vtt.js.map +0 -1
- package/dist/web-client/index.html +0 -61
- package/dist/world/business-map-projector.d.ts +0 -14
- package/dist/world/business-map-projector.d.ts.map +0 -1
- package/dist/world/business-map-projector.js +0 -178
- package/dist/world/types.d.ts +0 -77
- package/dist/world/types.d.ts.map +0 -1
- package/dist/world/types.js +0 -1
- package/dist/world/world-graph-query.d.ts +0 -30
- package/dist/world/world-graph-query.d.ts.map +0 -1
- package/dist/world/world-graph-query.js +0 -252
- package/dist/world/world-model-service.d.ts +0 -21
- package/dist/world/world-model-service.d.ts.map +0 -1
- package/dist/world/world-model-service.js +0 -219
- package/dist/world/world-snapshot-store.d.ts +0 -41
- package/dist/world/world-snapshot-store.d.ts.map +0 -1
- package/dist/world/world-snapshot-store.js +0 -581
- package/docs/README.md +0 -30
- package/docs/architecture/codegraph-backend.md +0 -190
- package/docs/architecture/continuous-business-learning.md +0 -240
- package/docs/architecture/web-viewer.md +0 -225
- package/docs/contracts/cli-v1.md +0 -179
- package/docs/contracts/graph-model.md +0 -106
- package/docs/contracts/graph-patch-v1.md +0 -105
- package/docs/contracts/http-api-v1.md +0 -155
- package/docs/contracts/insights-v1.md +0 -84
- package/docs/log.md +0 -159
- package/docs/mindmaps/semantic-atlas-overview.drawio +0 -255
- package/docs/mindmaps/semantic-atlas-overview.png +0 -0
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.drawio +0 -255
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.png +0 -0
- package/schemas/cli-envelope-v1.schema.json +0 -1244
- package/schemas/evaluation-plan-v1.schema.json +0 -211
- package/schemas/evaluation-run-v1.schema.json +0 -659
- package/schemas/graph-patch-v1.schema.json +0 -392
- package/schemas/insights-envelope-v1.schema.json +0 -428
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# Semantic Atlas Architecture
|
|
2
|
+
|
|
3
|
+
This page defines the stable responsibilities, data lifecycle, dependency
|
|
4
|
+
direction, and failure semantics for the initial product. It applies to the
|
|
5
|
+
public CLI, renderer, and repository Agent Skill.
|
|
6
|
+
|
|
7
|
+
**Status: query, validation, visual projection, repository Agents, managed
|
|
8
|
+
Skill lifecycle, accuracy observations, read-only reconciliation, and public
|
|
9
|
+
release verification are implemented and released.**
|
|
10
|
+
|
|
11
|
+
## System Model
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
tracked map documents
|
|
15
|
+
|
|
|
16
|
+
v
|
|
17
|
+
MapDocumentLoader -> MapValidator -> BusinessGraph
|
|
18
|
+
|
|
|
19
|
+
+--------------+--------------+
|
|
20
|
+
| |
|
|
21
|
+
v v
|
|
22
|
+
ContextQueryService MapProjector
|
|
23
|
+
| |
|
|
24
|
+
v v
|
|
25
|
+
stable JSON result SVG / static HTML
|
|
26
|
+
|
|
27
|
+
Calling Agent
|
|
28
|
+
-> queries the graph
|
|
29
|
+
-> treats the result as an investigation hypothesis
|
|
30
|
+
-> confirms decisive behavior in current repository evidence
|
|
31
|
+
|
|
32
|
+
published package Skills bundle
|
|
33
|
+
|
|
|
34
|
+
v
|
|
35
|
+
ManagedSkillsInstaller -> one ManagedSkillInstaller per Skill
|
|
36
|
+
|
|
|
37
|
+
v
|
|
38
|
+
atomic directory replacement
|
|
39
|
+
|
|
40
|
+
verified installed CLI <- exact npm version <- PackageUpgrader
|
|
41
|
+
|
|
|
42
|
+
+------------ invokes setup ------------+
|
|
43
|
+
|
|
44
|
+
Task Agent evidence -> ObservationApplication -> ObservationStore
|
|
45
|
+
| |
|
|
46
|
+
Independent review -----------+ v
|
|
47
|
+
user-local files
|
|
48
|
+
|
|
|
49
|
+
v
|
|
50
|
+
InsightService
|
|
51
|
+
|
|
|
52
|
+
v
|
|
53
|
+
ReconciliationService
|
|
54
|
+
|
|
|
55
|
+
v
|
|
56
|
+
deterministic candidate report
|
|
57
|
+
|
|
|
58
|
+
v
|
|
59
|
+
Maintenance Agent Skill
|
|
60
|
+
|
|
|
61
|
+
v
|
|
62
|
+
current evidence + reviewed YAML
|
|
63
|
+
|
|
64
|
+
verified source candidate -> annotated release tag -> published GitHub Release
|
|
65
|
+
|
|
|
66
|
+
v
|
|
67
|
+
protected npm environment
|
|
68
|
+
|
|
|
69
|
+
v
|
|
70
|
+
provenance publication + public read-back
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The tracked documents and their Git history are the shared product state. Each
|
|
74
|
+
command creates an in-memory graph for its own invocation. Rendering and future
|
|
75
|
+
local acceleration remain derived behavior around that same graph.
|
|
76
|
+
|
|
77
|
+
## Stable Responsibilities
|
|
78
|
+
|
|
79
|
+
### MapDocumentLoader
|
|
80
|
+
|
|
81
|
+
Discovers map documents through one repository-owned configuration convention,
|
|
82
|
+
parses them with a mature data-format library, and returns document-shaped
|
|
83
|
+
values with their source locations. It owns filesystem discovery and parsing,
|
|
84
|
+
not graph semantics.
|
|
85
|
+
|
|
86
|
+
### MapValidator
|
|
87
|
+
|
|
88
|
+
Validates document shape and complete-graph integrity. It reports every
|
|
89
|
+
actionable issue that can be collected safely in one run, including duplicate
|
|
90
|
+
IDs, missing relation endpoints, containment cycles, invalid kinds, and
|
|
91
|
+
malformed anchors. It owns deterministic validity, not current-source truth.
|
|
92
|
+
|
|
93
|
+
### BusinessGraph
|
|
94
|
+
|
|
95
|
+
Holds normalized immutable nodes, relations, aliases, containment indexes, and
|
|
96
|
+
incoming/outgoing relation indexes for one command. It exposes domain
|
|
97
|
+
operations in terms of business concepts rather than file layout or parser
|
|
98
|
+
objects.
|
|
99
|
+
|
|
100
|
+
### ContextQueryService
|
|
101
|
+
|
|
102
|
+
Resolves a concept by stable ID, name, or alias and returns the smallest useful
|
|
103
|
+
business neighborhood: ancestors, direct children, incoming and outgoing
|
|
104
|
+
relations, referenced concepts, summaries, and navigation anchors. It reports
|
|
105
|
+
ambiguity explicitly rather than selecting a hidden match.
|
|
106
|
+
|
|
107
|
+
### MapProjector
|
|
108
|
+
|
|
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.
|
|
113
|
+
|
|
114
|
+
### CLI
|
|
115
|
+
|
|
116
|
+
Owns argument parsing, exit status, machine-readable envelopes, and concise
|
|
117
|
+
human presentation. It composes application services and performs no graph
|
|
118
|
+
interpretation of its own.
|
|
119
|
+
|
|
120
|
+
### Repository Agent Skill
|
|
121
|
+
|
|
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.
|
|
127
|
+
|
|
128
|
+
The Skill invokes `context` through a small contract-checking adapter. The
|
|
129
|
+
adapter prefers the CLI distributed with the Skill and accepts a PATH command
|
|
130
|
+
only when it returns the current versioned envelope. This preserves one query
|
|
131
|
+
contract when another installed product uses the same executable name.
|
|
132
|
+
|
|
133
|
+
### Maintenance Agent Skill
|
|
134
|
+
|
|
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.
|
|
142
|
+
|
|
143
|
+
### ManagedSkillsInstaller
|
|
144
|
+
|
|
145
|
+
Coordinates the package's `semantic-atlas` and `semantic-atlas-maintenance`
|
|
146
|
+
payloads. Each Skill receives one `ManagedSkillInstaller` with the same package
|
|
147
|
+
identity and its own target directory. The per-Skill installer derives a
|
|
148
|
+
deterministic payload fingerprint, records package and Skill identity in a
|
|
149
|
+
management marker, and classifies repeated setup as current, repair, upgrade,
|
|
150
|
+
or interrupted-swap recovery. It requires the current marker contract before
|
|
151
|
+
replacing an existing same-named directory; obsolete and unrelated directories
|
|
152
|
+
remain untouched.
|
|
153
|
+
|
|
154
|
+
Replacement uses one complete staged directory. The current managed directory
|
|
155
|
+
moves to a deterministic backup before the staged directory becomes active. A
|
|
156
|
+
failed swap restores the backup, while a later setup recovers a backup left by
|
|
157
|
+
process interruption and removes owned staging artifacts only after it has
|
|
158
|
+
confirmed the managed target.
|
|
159
|
+
|
|
160
|
+
### PackageUpgrader
|
|
161
|
+
|
|
162
|
+
Owns the boundary between npm package state and managed Skills state. It reads
|
|
163
|
+
npm's stable version first, installs an exact `semantic-atlas@<version>` when
|
|
164
|
+
the current package differs, locates that package through npm's global root,
|
|
165
|
+
verifies its CLI version through the current Node executable, and invokes that
|
|
166
|
+
CLI's `setup`. The invoking process never copies its own Skills after a package
|
|
167
|
+
replacement.
|
|
168
|
+
|
|
169
|
+
### RepositoryIdentityResolver
|
|
170
|
+
|
|
171
|
+
Owns the private repository partition used by observations. Git worktrees
|
|
172
|
+
resolve through their common Git directory so concurrent task branches share
|
|
173
|
+
one logical repository identity. The resolver hashes the local identity source
|
|
174
|
+
and exposes neither repository paths nor remote URLs in retained artifacts.
|
|
175
|
+
|
|
176
|
+
### ObservationApplication
|
|
177
|
+
|
|
178
|
+
Owns complete task and review input validation and the accuracy-authority
|
|
179
|
+
boundary. It creates a repository-bound artifact only after strict schema
|
|
180
|
+
validation. Review recording additionally resolves the referenced task
|
|
181
|
+
observation from the same repository partition before persistence.
|
|
182
|
+
|
|
183
|
+
### ObservationClaimManager
|
|
184
|
+
|
|
185
|
+
Owns the observation-ID claim lifecycle. It publishes complete synced owner
|
|
186
|
+
metadata without overwrite, distinguishes process instances, recovers the
|
|
187
|
+
current atomic-file claim format, and verifies ownership again before final
|
|
188
|
+
observation publication. Unknown claim shapes remain in place and fail closed.
|
|
189
|
+
|
|
190
|
+
### ObservationStore
|
|
191
|
+
|
|
192
|
+
Owns immutable, versioned user-local observation files and composes the claim
|
|
193
|
+
manager around each write. The store writes and syncs a complete observation
|
|
194
|
+
staging file, atomically renames it into place, returns idempotency for an exact
|
|
195
|
+
replay, and reports a conflict for changed content under an existing ID. Its
|
|
196
|
+
write boundary accepts current task v2 and review v1 artifacts. Its read
|
|
197
|
+
boundary accepts the same current task and review contracts; unsupported stored
|
|
198
|
+
artifacts fail the read instead of being reinterpreted.
|
|
199
|
+
|
|
200
|
+
### InsightService
|
|
201
|
+
|
|
202
|
+
Owns read-only derivation over retained observations. It filters by optional
|
|
203
|
+
duration, aggregates independent review dimensions, and joins approved reviews
|
|
204
|
+
to task evidence when counting safe recovery from missing, stale, or
|
|
205
|
+
contradicted map knowledge.
|
|
206
|
+
|
|
207
|
+
### ReconciliationService
|
|
208
|
+
|
|
209
|
+
Owns deterministic read-only grouping of retained map-update candidates. It
|
|
210
|
+
uses explicit business-domain ownership plus exact candidate kind and summary,
|
|
211
|
+
preserves each candidate occurrence, evidence disposition, task query record,
|
|
212
|
+
human correction, and linked independent review, and marks groups with multiple
|
|
213
|
+
origins as duplicates. It reads repository identity and observations without
|
|
214
|
+
loading or editing the business map.
|
|
215
|
+
|
|
216
|
+
### Release Candidate Verification
|
|
217
|
+
|
|
218
|
+
The repository-owned release gate composes contract and source tests,
|
|
219
|
+
typecheck, build, deterministic render checks, packed-tarball privacy, an
|
|
220
|
+
anonymous installed-product flow, package dry-run, and Git diff validation. CI
|
|
221
|
+
invokes the same gate used by a
|
|
222
|
+
release tag so the public package is not validated through a weaker path.
|
|
223
|
+
|
|
224
|
+
### Release Automation
|
|
225
|
+
|
|
226
|
+
The release workflow starts only from a published, non-prerelease GitHub
|
|
227
|
+
Release after immutable releases have been enabled for the repository. A
|
|
228
|
+
read-only gate job uses workflow-owned code to read the specific Release through
|
|
229
|
+
GitHub's API before any tag checkout, protected environment, or OIDC permission
|
|
230
|
+
is available. The gate fails unless the Release tag matches and immutable
|
|
231
|
+
protection is active. A dependent publish job then enters the protected `npm`
|
|
232
|
+
environment, checks out the annotated tag, proves that the tag, commit, and
|
|
233
|
+
stable package version agree, repeats the Release check as defense in depth,
|
|
234
|
+
runs release-candidate verification, and publishes with provenance. Finally, it
|
|
235
|
+
reads the exact version, latest tag, shasum, and integrity back from the public
|
|
236
|
+
registry. The fast-forward `main` push, repository setting changes, tag creation,
|
|
237
|
+
GitHub Release publication, and npm publication remain explicit operations
|
|
238
|
+
rather than local build effects.
|
|
239
|
+
|
|
240
|
+
## Data Lifecycles
|
|
241
|
+
|
|
242
|
+
| Data | Owner | Lifetime | Mutation path |
|
|
243
|
+
| --- | --- | --- | --- |
|
|
244
|
+
| Business-map documents | Target repository | Git history | Normal reviewed file edit |
|
|
245
|
+
| Parsed documents | One CLI invocation | Parse phase | Recreated from tracked files |
|
|
246
|
+
| Normalized graph | One CLI invocation | Query/render phase | Recreated after validation |
|
|
247
|
+
| Rendered output | Calling workflow | Reproducible artifact | Regenerated from the graph |
|
|
248
|
+
| Bundled Skill payloads | Installed npm package | Package version | Replaced only by exact package installation |
|
|
249
|
+
| Managed user Skills | User home | Across repositories and CLI invocations | Per-Skill `semantic-atlas setup` atomic replacement |
|
|
250
|
+
| Managed Skill markers | Managed Skill directories | Same as each installed payload | Written into each staged copy before activation |
|
|
251
|
+
| Repository identity | One local repository across worktrees | Observation lookup | Re-derived from the Git common directory or selected directory |
|
|
252
|
+
| Task observation | User-local repository partition | Immutable retained evidence | Strict validation and one atomic file publication |
|
|
253
|
+
| Review observation | User-local repository partition | Immutable retained evidence | Existing task reference plus strict validation and atomic publication |
|
|
254
|
+
| Accuracy summary | One CLI invocation | Read phase | Re-derived from retained task and review files |
|
|
255
|
+
| Reconciliation candidate report | One CLI invocation | Read phase | Re-derived from retained candidate and review provenance |
|
|
256
|
+
| Packed npm candidate | One verified source revision | Release review | Rebuilt from the package allowlist |
|
|
257
|
+
| Public release identity | Annotated tag and immutable GitHub Release | Permanent remote history | Explicit release command after repository cutover and immutable-release enablement |
|
|
258
|
+
| Published npm package | Protected npm environment | Immutable registry version | GitHub Release workflow with provenance |
|
|
259
|
+
| 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 |
|
|
261
|
+
|
|
262
|
+
Map commands remain stateless and branches naturally see the map revision
|
|
263
|
+
tracked with their own source. Observation writers coordinate only one
|
|
264
|
+
repository-partitioned observation ID while publishing its immutable file.
|
|
265
|
+
|
|
266
|
+
## Dependency Direction
|
|
267
|
+
|
|
268
|
+
```text
|
|
269
|
+
domain contracts
|
|
270
|
+
^
|
|
271
|
+
|
|
|
272
|
+
application services
|
|
273
|
+
^
|
|
274
|
+
|
|
|
275
|
+
filesystem, parser, CLI, and rendering adapters
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Domain contracts contain concept kinds, relation types, normalized graph
|
|
279
|
+
objects, selectors, and query results. They do not import CLI, YAML, rendering,
|
|
280
|
+
filesystem, Git, or framework types.
|
|
281
|
+
|
|
282
|
+
Application services coordinate loading, validation, querying, and projection
|
|
283
|
+
through narrow ports. Adapters translate external representations at the
|
|
284
|
+
boundary.
|
|
285
|
+
|
|
286
|
+
## Command Model
|
|
287
|
+
|
|
288
|
+
The public flow contains repository commands and repository-independent package
|
|
289
|
+
lifecycle commands:
|
|
290
|
+
|
|
291
|
+
```text
|
|
292
|
+
semantic-atlas validate [--repo <path>]
|
|
293
|
+
semantic-atlas context <id-or-term> [--repo <path>]
|
|
294
|
+
semantic-atlas render [--repo <path>] [--output <path>]
|
|
295
|
+
semantic-atlas setup
|
|
296
|
+
semantic-atlas upgrade
|
|
297
|
+
semantic-atlas observe task --stdin [--repo <path>]
|
|
298
|
+
semantic-atlas observe review --stdin [--repo <path>]
|
|
299
|
+
semantic-atlas insights summary [--repo <path>] [--period <duration>]
|
|
300
|
+
semantic-atlas reconcile candidates [--repo <path>]
|
|
301
|
+
semantic-atlas --version
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
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.
|
|
308
|
+
|
|
309
|
+
`context` returns ambiguity when multiple concepts match the term. Callers can
|
|
310
|
+
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.
|
|
312
|
+
|
|
313
|
+
`setup`, `upgrade`, and `--version` do not discover a repository or load a
|
|
314
|
+
business map. Their results expose the package version and managed Skill paths
|
|
315
|
+
needed to verify one installed identity. Business repositories retain only
|
|
316
|
+
their Git-tracked map documents.
|
|
317
|
+
|
|
318
|
+
`observe task` and `observe review` read one complete JSON object from standard
|
|
319
|
+
input. They derive a private repository identity, validate before publication,
|
|
320
|
+
and return recorded, idempotent, or explicit conflict results. `insights
|
|
321
|
+
summary` reads those retained files without changing them or the business map.
|
|
322
|
+
`reconcile candidates` groups retained candidates and linked reviews without
|
|
323
|
+
changing observations, source, maps, rendered artifacts, or Git state.
|
|
324
|
+
|
|
325
|
+
## Validation Boundary
|
|
326
|
+
|
|
327
|
+
Validation establishes that the tracked documents form a coherent graph. It
|
|
328
|
+
checks:
|
|
329
|
+
|
|
330
|
+
- supported schema version and strict document shape;
|
|
331
|
+
- repository-wide unique node IDs;
|
|
332
|
+
- valid concept and relation kinds;
|
|
333
|
+
- resolvable relation endpoints;
|
|
334
|
+
- at most one direct `part_of` parent per node;
|
|
335
|
+
- acyclic `part_of` containment;
|
|
336
|
+
- well-formed aliases and navigation anchors;
|
|
337
|
+
- deterministic normalization independent of input file order.
|
|
338
|
+
|
|
339
|
+
Validation does not claim that a path exists, a symbol still has the same name,
|
|
340
|
+
or a business relation still matches current code. Those are task-time
|
|
341
|
+
investigation questions. A separate advisory diagnostic may report obviously
|
|
342
|
+
missing paths without changing graph validity.
|
|
343
|
+
|
|
344
|
+
## Error Semantics
|
|
345
|
+
|
|
346
|
+
Errors fall into stable categories:
|
|
347
|
+
|
|
348
|
+
- `MAP_DOCUMENT_INVALID`: one or more tracked documents cannot form a valid
|
|
349
|
+
graph; the result includes document-local issues.
|
|
350
|
+
- `MAP_NOT_FOUND`: the selected repository has no configured map documents;
|
|
351
|
+
agents continue with ordinary source discovery.
|
|
352
|
+
- `CONCEPT_NOT_FOUND`: no concept matches the requested selector; agents use
|
|
353
|
+
bounded source discovery.
|
|
354
|
+
- `CONCEPT_AMBIGUOUS`: multiple concepts match; the result returns stable IDs
|
|
355
|
+
for explicit selection.
|
|
356
|
+
- `OUTPUT_FAILED`: a requested render artifact cannot be written; the graph
|
|
357
|
+
query result remains unaffected.
|
|
358
|
+
- `MANAGED_SKILL_CONFLICT`: an existing same-named user directory has no
|
|
359
|
+
recognized Semantic Atlas management identity and remains unchanged.
|
|
360
|
+
- `SETUP_FAILED`: staging, fingerprinting, replacement, or recovery failed;
|
|
361
|
+
the previous managed directory is restored or retained as the backup.
|
|
362
|
+
- `UPGRADE_FAILED`: the result identifies whether registry lookup, exact
|
|
363
|
+
installation, package location, version verification, or delegated setup
|
|
364
|
+
failed.
|
|
365
|
+
- `OBSERVATION_INPUT_INVALID`: the complete stdin document violates the
|
|
366
|
+
versioned task or review contract and no observation is written.
|
|
367
|
+
- `TASK_OBSERVATION_NOT_FOUND`: a review references no task observation in the
|
|
368
|
+
selected repository partition.
|
|
369
|
+
- `OBSERVATION_CONFLICT`: an immutable ID already belongs to different content.
|
|
370
|
+
- `OBSERVATION_STORAGE_FAILED`: atomic publication could not complete and no
|
|
371
|
+
new final artifact is reported.
|
|
372
|
+
- `INSIGHTS_PERIOD_INVALID`: a requested duration does not use the supported
|
|
373
|
+
positive `h`, `d`, or `w` form.
|
|
374
|
+
- `INSIGHTS_READ_FAILED`: retained observations cannot produce a trustworthy
|
|
375
|
+
summary.
|
|
376
|
+
- `RECONCILIATION_READ_FAILED`: retained candidate and review evidence cannot
|
|
377
|
+
produce a trustworthy reconciliation report.
|
|
378
|
+
|
|
379
|
+
Unexpected infrastructure errors propagate to the CLI boundary with a safe
|
|
380
|
+
message and a nonzero exit status. The implementation adds contextual details
|
|
381
|
+
where they help a caller act, without converting failures into successful empty
|
|
382
|
+
results.
|
|
383
|
+
|
|
384
|
+
## Collaboration Model
|
|
385
|
+
|
|
386
|
+
Map files are divided by stable business domain. Cross-domain relations may be
|
|
387
|
+
declared by the file that owns the source concept and resolved only after all
|
|
388
|
+
documents load.
|
|
389
|
+
|
|
390
|
+
Ordinary feature branches read their branch's map revision. Durable changes use
|
|
391
|
+
normal Git merge behavior. Review focuses on business meaning, stable IDs,
|
|
392
|
+
relationship direction, and whether the update belongs in the shared map.
|
|
393
|
+
|
|
394
|
+
Periodic reconciliation begins with the deterministic candidate report, then
|
|
395
|
+
works from current source and accumulated task and review observations. It
|
|
396
|
+
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.
|
|
400
|
+
|
|
401
|
+
## Current Technology Boundary
|
|
402
|
+
|
|
403
|
+
The implementation uses TypeScript ESM, Node.js 24, and pnpm. Mature libraries
|
|
404
|
+
provide YAML parsing, runtime schema validation, CLI parsing, and graph layout.
|
|
405
|
+
The exact packages are selected in the first implementation task from their
|
|
406
|
+
maintained APIs, footprint, and supported output needs.
|
|
407
|
+
|
|
408
|
+
Tracked files and the in-memory model satisfy map-query state. Immutable local
|
|
409
|
+
JSON files satisfy the separately approved observation lifecycle. The calling
|
|
410
|
+
agent's repository tools satisfy current source discovery. Structural indexes,
|
|
411
|
+
remote observation services, and alternate persistence engines require
|
|
412
|
+
real-task evidence and a separate product decision.
|
|
413
|
+
|
|
414
|
+
## Extension Seams
|
|
415
|
+
|
|
416
|
+
Future evidence may justify additional adapters without changing the current
|
|
417
|
+
domain model:
|
|
418
|
+
|
|
419
|
+
- alternate tracked serialization formats behind `MapDocumentLoader`;
|
|
420
|
+
- disposable performance caches behind a graph-loading boundary;
|
|
421
|
+
- additional deterministic projections behind `MapProjector`;
|
|
422
|
+
- editor integrations that write the same tracked document contract;
|
|
423
|
+
- advisory anchor diagnostics using language-aware tooling.
|
|
424
|
+
|
|
425
|
+
Each extension remains subordinate to the tracked map and current-source
|
|
426
|
+
confirmation workflow.
|