semantic-atlas 0.3.0 → 1.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.
Files changed (322) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +134 -166
  2. package/.agents/skills/semantic-atlas/agents/openai.yaml +4 -0
  3. package/.agents/skills/semantic-atlas/references/observations.md +131 -0
  4. package/.agents/skills/semantic-atlas/scripts/query-context.mjs +110 -0
  5. package/.agents/skills/semantic-atlas-maintenance/SKILL.md +93 -0
  6. package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +4 -0
  7. package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +56 -0
  8. package/README.md +134 -239
  9. package/dist/application/map-application.d.ts +24 -0
  10. package/dist/application/map-application.d.ts.map +1 -0
  11. package/dist/application/map-application.js +134 -0
  12. package/dist/application/map-application.js.map +1 -0
  13. package/dist/cli/bin.js +6 -35
  14. package/dist/cli/bin.js.map +1 -0
  15. package/dist/cli/observation-commands.d.ts +16 -0
  16. package/dist/cli/observation-commands.d.ts.map +1 -0
  17. package/dist/cli/observation-commands.js +118 -0
  18. package/dist/cli/observation-commands.js.map +1 -0
  19. package/dist/cli/projection-writer.d.ts +2 -0
  20. package/dist/cli/projection-writer.d.ts.map +1 -0
  21. package/dist/cli/projection-writer.js +9 -0
  22. package/dist/cli/projection-writer.js.map +1 -0
  23. package/dist/cli/reconciliation-command.d.ts +7 -0
  24. package/dist/cli/reconciliation-command.d.ts.map +1 -0
  25. package/dist/cli/reconciliation-command.js +33 -0
  26. package/dist/cli/reconciliation-command.js.map +1 -0
  27. package/dist/cli/run-cli.d.ts +21 -0
  28. package/dist/cli/run-cli.d.ts.map +1 -0
  29. package/dist/cli/run-cli.js +299 -0
  30. package/dist/cli/run-cli.js.map +1 -0
  31. package/dist/contracts/cli.d.ts +166 -1211
  32. package/dist/contracts/cli.d.ts.map +1 -1
  33. package/dist/contracts/cli.js +2 -232
  34. package/dist/contracts/cli.js.map +1 -0
  35. package/dist/contracts/insights.d.ts +39 -1
  36. package/dist/contracts/insights.d.ts.map +1 -1
  37. package/dist/contracts/insights.js +2 -1
  38. package/dist/contracts/insights.js.map +1 -0
  39. package/dist/contracts/map.d.ts +154 -0
  40. package/dist/contracts/map.d.ts.map +1 -0
  41. package/dist/contracts/map.js +60 -0
  42. package/dist/contracts/map.js.map +1 -0
  43. package/dist/contracts/observation.d.ts +649 -0
  44. package/dist/contracts/observation.d.ts.map +1 -0
  45. package/dist/contracts/observation.js +140 -0
  46. package/dist/contracts/observation.js.map +1 -0
  47. package/dist/contracts/projection.d.ts +7 -0
  48. package/dist/contracts/projection.d.ts.map +1 -0
  49. package/dist/contracts/projection.js +2 -0
  50. package/dist/contracts/projection.js.map +1 -0
  51. package/dist/contracts/reconciliation.d.ts +40 -0
  52. package/dist/contracts/reconciliation.d.ts.map +1 -0
  53. package/dist/contracts/reconciliation.js +2 -0
  54. package/dist/contracts/reconciliation.js.map +1 -0
  55. package/dist/index.d.ts +7 -17
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +3 -9
  58. package/dist/index.js.map +1 -0
  59. package/dist/insights/insight-service.d.ts +14 -0
  60. package/dist/insights/insight-service.d.ts.map +1 -0
  61. package/dist/insights/insight-service.js +129 -0
  62. package/dist/insights/insight-service.js.map +1 -0
  63. package/dist/map/business-graph.d.ts +32 -0
  64. package/dist/map/business-graph.d.ts.map +1 -0
  65. package/dist/map/business-graph.js +122 -0
  66. package/dist/map/business-graph.js.map +1 -0
  67. package/dist/map/map-document-loader.d.ts +13 -0
  68. package/dist/map/map-document-loader.d.ts.map +1 -0
  69. package/dist/map/map-document-loader.js +86 -0
  70. package/dist/map/map-document-loader.js.map +1 -0
  71. package/dist/map/map-validator.d.ts +12 -0
  72. package/dist/map/map-validator.d.ts.map +1 -0
  73. package/dist/map/map-validator.js +322 -0
  74. package/dist/map/map-validator.js.map +1 -0
  75. package/dist/observations/observation-application.d.ts +23 -0
  76. package/dist/observations/observation-application.d.ts.map +1 -0
  77. package/dist/observations/observation-application.js +62 -0
  78. package/dist/observations/observation-application.js.map +1 -0
  79. package/dist/observations/observation-claim-manager.d.ts +13 -0
  80. package/dist/observations/observation-claim-manager.d.ts.map +1 -0
  81. package/dist/observations/observation-claim-manager.js +247 -0
  82. package/dist/observations/observation-claim-manager.js.map +1 -0
  83. package/dist/observations/observation-store.d.ts +43 -0
  84. package/dist/observations/observation-store.d.ts.map +1 -0
  85. package/dist/observations/observation-store.js +208 -0
  86. package/dist/observations/observation-store.js.map +1 -0
  87. package/dist/observations/repository-identity.d.ts +12 -0
  88. package/dist/observations/repository-identity.d.ts.map +1 -0
  89. package/dist/observations/repository-identity.js +108 -0
  90. package/dist/observations/repository-identity.js.map +1 -0
  91. package/dist/query/context-query-service.d.ts +15 -0
  92. package/dist/query/context-query-service.d.ts.map +1 -0
  93. package/dist/query/context-query-service.js +36 -0
  94. package/dist/query/context-query-service.js.map +1 -0
  95. package/dist/reconciliation/reconciliation-service.d.ts +10 -0
  96. package/dist/reconciliation/reconciliation-service.d.ts.map +1 -0
  97. package/dist/reconciliation/reconciliation-service.js +116 -0
  98. package/dist/reconciliation/reconciliation-service.js.map +1 -0
  99. package/dist/rendering/map-projector.d.ts +8 -0
  100. package/dist/rendering/map-projector.d.ts.map +1 -0
  101. package/dist/rendering/map-projector.js +386 -0
  102. package/dist/rendering/map-projector.js.map +1 -0
  103. package/dist/setup/managed-skill-installer.d.ts +60 -0
  104. package/dist/setup/managed-skill-installer.d.ts.map +1 -0
  105. package/dist/setup/managed-skill-installer.js +307 -0
  106. package/dist/setup/managed-skill-installer.js.map +1 -0
  107. package/dist/setup/package-identity.d.ts +6 -0
  108. package/dist/setup/package-identity.d.ts.map +1 -0
  109. package/dist/setup/package-identity.js +16 -0
  110. package/dist/setup/package-identity.js.map +1 -0
  111. package/dist/setup/package-upgrader.d.ts +10 -22
  112. package/dist/setup/package-upgrader.d.ts.map +1 -1
  113. package/dist/setup/package-upgrader.js +60 -76
  114. package/dist/setup/package-upgrader.js.map +1 -0
  115. package/docs/architecture.md +428 -0
  116. package/docs/evaluation.md +220 -174
  117. package/docs/index.md +27 -40
  118. package/docs/map-format.md +224 -0
  119. package/docs/observations.md +175 -0
  120. package/docs/product-contract.md +295 -137
  121. package/examples/commerce.yaml +204 -0
  122. package/package.json +31 -30
  123. package/.agents/skills/semantic-atlas/references/graph-patch.md +0 -190
  124. package/.agents/skills/semantic-atlas/references/product-feedback.md +0 -34
  125. package/.agents/skills/semantic-atlas/references/result-routing.md +0 -104
  126. package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +0 -42
  127. package/.agents/skills/semantic-atlas-insights/SKILL.md +0 -55
  128. package/README.zh-CN.md +0 -273
  129. package/dist/business-flow/business-flow-derivation-service.d.ts +0 -11
  130. package/dist/business-flow/business-flow-derivation-service.d.ts.map +0 -1
  131. package/dist/business-flow/business-flow-derivation-service.js +0 -151
  132. package/dist/business-flow/business-flow-draft.d.ts +0 -16
  133. package/dist/business-flow/business-flow-draft.d.ts.map +0 -1
  134. package/dist/business-flow/business-flow-draft.js +0 -150
  135. package/dist/business-flow/framework-business-strategy.d.ts +0 -7
  136. package/dist/business-flow/framework-business-strategy.d.ts.map +0 -1
  137. package/dist/business-flow/framework-business-strategy.js +0 -1
  138. package/dist/business-flow/strategies/bullmq-business-strategy.d.ts +0 -10
  139. package/dist/business-flow/strategies/bullmq-business-strategy.d.ts.map +0 -1
  140. package/dist/business-flow/strategies/bullmq-business-strategy.js +0 -79
  141. package/dist/business-flow/strategies/called-operation-derivation.d.ts +0 -13
  142. package/dist/business-flow/strategies/called-operation-derivation.d.ts.map +0 -1
  143. package/dist/business-flow/strategies/called-operation-derivation.js +0 -32
  144. package/dist/business-flow/strategies/graphql-business-strategy.d.ts +0 -8
  145. package/dist/business-flow/strategies/graphql-business-strategy.d.ts.map +0 -1
  146. package/dist/business-flow/strategies/graphql-business-strategy.js +0 -65
  147. package/dist/business-flow/strategies/nestjs-business-strategy.d.ts +0 -8
  148. package/dist/business-flow/strategies/nestjs-business-strategy.d.ts.map +0 -1
  149. package/dist/business-flow/strategies/nestjs-business-strategy.js +0 -72
  150. package/dist/business-flow/strategies/strategy-helpers.d.ts +0 -32
  151. package/dist/business-flow/strategies/strategy-helpers.d.ts.map +0 -1
  152. package/dist/business-flow/strategies/strategy-helpers.js +0 -49
  153. package/dist/business-flow/strategies/typeorm-business-strategy.d.ts +0 -10
  154. package/dist/business-flow/strategies/typeorm-business-strategy.d.ts.map +0 -1
  155. package/dist/business-flow/strategies/typeorm-business-strategy.js +0 -136
  156. package/dist/business-flow/strategies/verified-invariant-strategy.d.ts +0 -5
  157. package/dist/business-flow/strategies/verified-invariant-strategy.d.ts.map +0 -1
  158. package/dist/business-flow/strategies/verified-invariant-strategy.js +0 -38
  159. package/dist/business-flow/strategies/verified-test-strategy.d.ts +0 -5
  160. package/dist/business-flow/strategies/verified-test-strategy.d.ts.map +0 -1
  161. package/dist/business-flow/strategies/verified-test-strategy.js +0 -26
  162. package/dist/business-flow/structural-flow-catalog.d.ts +0 -21
  163. package/dist/business-flow/structural-flow-catalog.d.ts.map +0 -1
  164. package/dist/business-flow/structural-flow-catalog.js +0 -125
  165. package/dist/business-flow/types.d.ts +0 -51
  166. package/dist/business-flow/types.d.ts.map +0 -1
  167. package/dist/business-flow/types.js +0 -1
  168. package/dist/cli/argument-parser.d.ts +0 -3
  169. package/dist/cli/argument-parser.d.ts.map +0 -1
  170. package/dist/cli/argument-parser.js +0 -200
  171. package/dist/cli/cli-application.d.ts +0 -39
  172. package/dist/cli/cli-application.d.ts.map +0 -1
  173. package/dist/cli/cli-application.js +0 -571
  174. package/dist/cli/cli-error.d.ts +0 -12
  175. package/dist/cli/cli-error.d.ts.map +0 -1
  176. package/dist/cli/cli-error.js +0 -44
  177. package/dist/cli/cli-presenter.d.ts +0 -14
  178. package/dist/cli/cli-presenter.d.ts.map +0 -1
  179. package/dist/cli/cli-presenter.js +0 -36
  180. package/dist/cli/insights-cli.d.ts +0 -6
  181. package/dist/cli/insights-cli.d.ts.map +0 -1
  182. package/dist/cli/insights-cli.js +0 -236
  183. package/dist/cli/main.d.ts +0 -3
  184. package/dist/cli/main.d.ts.map +0 -1
  185. package/dist/cli/main.js +0 -137
  186. package/dist/cli/standalone-cli.d.ts +0 -3
  187. package/dist/cli/standalone-cli.d.ts.map +0 -1
  188. package/dist/cli/standalone-cli.js +0 -96
  189. package/dist/cli/types.d.ts +0 -49
  190. package/dist/cli/types.d.ts.map +0 -1
  191. package/dist/cli/types.js +0 -1
  192. package/dist/contracts/graph.d.ts +0 -266
  193. package/dist/contracts/graph.d.ts.map +0 -1
  194. package/dist/contracts/graph.js +0 -182
  195. package/dist/contracts/identifiers.d.ts +0 -4
  196. package/dist/contracts/identifiers.d.ts.map +0 -1
  197. package/dist/contracts/identifiers.js +0 -7
  198. package/dist/contracts/public-contracts.d.ts +0 -5
  199. package/dist/contracts/public-contracts.d.ts.map +0 -1
  200. package/dist/contracts/public-contracts.js +0 -4
  201. package/dist/evaluation/comparison.d.ts +0 -30
  202. package/dist/evaluation/comparison.d.ts.map +0 -1
  203. package/dist/evaluation/comparison.js +0 -108
  204. package/dist/evaluation/contracts.d.ts +0 -301
  205. package/dist/evaluation/contracts.d.ts.map +0 -1
  206. package/dist/evaluation/contracts.js +0 -413
  207. package/dist/graph/graph-store.d.ts +0 -55
  208. package/dist/graph/graph-store.d.ts.map +0 -1
  209. package/dist/graph/graph-store.js +0 -912
  210. package/dist/graph/types.d.ts +0 -189
  211. package/dist/graph/types.d.ts.map +0 -1
  212. package/dist/graph/types.js +0 -1
  213. package/dist/insights/contracts.d.ts +0 -266
  214. package/dist/insights/contracts.d.ts.map +0 -1
  215. package/dist/insights/contracts.js +0 -124
  216. package/dist/insights/insights-store.d.ts +0 -73
  217. package/dist/insights/insights-store.d.ts.map +0 -1
  218. package/dist/insights/insights-store.js +0 -246
  219. package/dist/knowledge/business-knowledge-service.d.ts +0 -24
  220. package/dist/knowledge/business-knowledge-service.d.ts.map +0 -1
  221. package/dist/knowledge/business-knowledge-service.js +0 -200
  222. package/dist/knowledge/graph-patch-conflict-error.d.ts +0 -8
  223. package/dist/knowledge/graph-patch-conflict-error.d.ts.map +0 -1
  224. package/dist/knowledge/graph-patch-conflict-error.js +0 -12
  225. package/dist/knowledge/structural-target-binding.d.ts +0 -14
  226. package/dist/knowledge/structural-target-binding.d.ts.map +0 -1
  227. package/dist/knowledge/structural-target-binding.js +0 -11
  228. package/dist/package-metadata.d.ts +0 -2
  229. package/dist/package-metadata.d.ts.map +0 -1
  230. package/dist/package-metadata.js +0 -9
  231. package/dist/repository/git-command.d.ts +0 -3
  232. package/dist/repository/git-command.d.ts.map +0 -1
  233. package/dist/repository/git-command.js +0 -25
  234. package/dist/repository/repository-inspector.d.ts +0 -7
  235. package/dist/repository/repository-inspector.d.ts.map +0 -1
  236. package/dist/repository/repository-inspector.js +0 -84
  237. package/dist/repository/repository-language-support.d.ts +0 -14
  238. package/dist/repository/repository-language-support.d.ts.map +0 -1
  239. package/dist/repository/repository-language-support.js +0 -64
  240. package/dist/repository/types.d.ts +0 -9
  241. package/dist/repository/types.d.ts.map +0 -1
  242. package/dist/repository/types.js +0 -1
  243. package/dist/runtime/sqlite-compatibility-process.d.ts +0 -8
  244. package/dist/runtime/sqlite-compatibility-process.d.ts.map +0 -1
  245. package/dist/runtime/sqlite-compatibility-process.js +0 -20
  246. package/dist/setup/skill-installer.d.ts +0 -20
  247. package/dist/setup/skill-installer.d.ts.map +0 -1
  248. package/dist/setup/skill-installer.js +0 -187
  249. package/dist/snapshots/repository-snapshot.d.ts +0 -4
  250. package/dist/snapshots/repository-snapshot.d.ts.map +0 -1
  251. package/dist/snapshots/repository-snapshot.js +0 -119
  252. package/dist/snapshots/types.d.ts +0 -30
  253. package/dist/snapshots/types.d.ts.map +0 -1
  254. package/dist/snapshots/types.js +0 -1
  255. package/dist/storage/atlas-database.d.ts +0 -19
  256. package/dist/storage/atlas-database.d.ts.map +0 -1
  257. package/dist/storage/atlas-database.js +0 -433
  258. package/dist/storage/snapshot-store.d.ts +0 -19
  259. package/dist/storage/snapshot-store.d.ts.map +0 -1
  260. package/dist/storage/snapshot-store.js +0 -74
  261. package/dist/structural-backend/codegraph-backend.d.ts +0 -57
  262. package/dist/structural-backend/codegraph-backend.d.ts.map +0 -1
  263. package/dist/structural-backend/codegraph-backend.js +0 -1230
  264. package/dist/structural-backend/codegraph-worker-client.d.ts +0 -5
  265. package/dist/structural-backend/codegraph-worker-client.d.ts.map +0 -1
  266. package/dist/structural-backend/codegraph-worker-client.js +0 -118
  267. package/dist/structural-backend/codegraph-worker-protocol.d.ts +0 -35
  268. package/dist/structural-backend/codegraph-worker-protocol.d.ts.map +0 -1
  269. package/dist/structural-backend/codegraph-worker-protocol.js +0 -1
  270. package/dist/structural-backend/codegraph-worker.d.ts +0 -2
  271. package/dist/structural-backend/codegraph-worker.d.ts.map +0 -1
  272. package/dist/structural-backend/codegraph-worker.js +0 -131
  273. package/dist/structural-backend/process-instance.d.ts +0 -18
  274. package/dist/structural-backend/process-instance.d.ts.map +0 -1
  275. package/dist/structural-backend/process-instance.js +0 -207
  276. package/dist/structural-backend/structural-fact-changes.d.ts +0 -7
  277. package/dist/structural-backend/structural-fact-changes.d.ts.map +0 -1
  278. package/dist/structural-backend/structural-fact-changes.js +0 -78
  279. package/dist/structural-backend/structural-projection-bootstrapper.d.ts +0 -10
  280. package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +0 -1
  281. package/dist/structural-backend/structural-projection-bootstrapper.js +0 -295
  282. package/dist/structural-backend/structural-publication.d.ts +0 -13
  283. package/dist/structural-backend/structural-publication.d.ts.map +0 -1
  284. package/dist/structural-backend/structural-publication.js +0 -255
  285. package/dist/structural-backend/structural-write-lock.d.ts +0 -8
  286. package/dist/structural-backend/structural-write-lock.d.ts.map +0 -1
  287. package/dist/structural-backend/structural-write-lock.js +0 -415
  288. package/dist/structural-backend/types.d.ts +0 -144
  289. package/dist/structural-backend/types.d.ts.map +0 -1
  290. package/dist/structural-backend/types.js +0 -11
  291. package/dist/world/business-map-projector.d.ts +0 -14
  292. package/dist/world/business-map-projector.d.ts.map +0 -1
  293. package/dist/world/business-map-projector.js +0 -178
  294. package/dist/world/types.d.ts +0 -77
  295. package/dist/world/types.d.ts.map +0 -1
  296. package/dist/world/types.js +0 -1
  297. package/dist/world/world-graph-query.d.ts +0 -26
  298. package/dist/world/world-graph-query.d.ts.map +0 -1
  299. package/dist/world/world-graph-query.js +0 -250
  300. package/dist/world/world-model-service.d.ts +0 -21
  301. package/dist/world/world-model-service.d.ts.map +0 -1
  302. package/dist/world/world-model-service.js +0 -219
  303. package/dist/world/world-snapshot-store.d.ts +0 -40
  304. package/dist/world/world-snapshot-store.d.ts.map +0 -1
  305. package/dist/world/world-snapshot-store.js +0 -581
  306. package/docs/README.md +0 -30
  307. package/docs/architecture/codegraph-backend.md +0 -190
  308. package/docs/architecture/continuous-business-learning.md +0 -240
  309. package/docs/contracts/cli-v1.md +0 -164
  310. package/docs/contracts/graph-model.md +0 -106
  311. package/docs/contracts/graph-patch-v1.md +0 -105
  312. package/docs/contracts/insights-v1.md +0 -84
  313. package/docs/log.md +0 -80
  314. package/docs/mindmaps/semantic-atlas-overview.drawio +0 -255
  315. package/docs/mindmaps/semantic-atlas-overview.png +0 -0
  316. package/docs/mindmaps/semantic-atlas-overview.zh-CN.drawio +0 -255
  317. package/docs/mindmaps/semantic-atlas-overview.zh-CN.png +0 -0
  318. package/schemas/cli-envelope-v1.schema.json +0 -1244
  319. package/schemas/evaluation-plan-v1.schema.json +0 -211
  320. package/schemas/evaluation-run-v1.schema.json +0 -659
  321. package/schemas/graph-patch-v1.schema.json +0 -392
  322. package/schemas/insights-envelope-v1.schema.json +0 -428
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: semantic-atlas-maintenance
3
+ description: Reconcile retained Semantic Atlas map-update candidates for one business domain into a source-supported, normally reviewed docs/business-map YAML change. Use for periodic map maintenance, drift cleanup, candidate triage, and domain-scoped reconciliation in repositories with a Semantic Atlas business map and local observations.
4
+ compatibility: Requires Node.js 24+, Git, a v1 semantic-atlas CLI, retained local observations, and repository source access.
5
+ ---
6
+
7
+ # Semantic Atlas Maintenance
8
+
9
+ Turn retained investigation leads into one bounded, current-evidence map change.
10
+ The candidate report preserves why a correction was proposed; current source,
11
+ tests, tracked product documents, and required runtime evidence decide whether
12
+ the canonical map changes.
13
+
14
+ ## Prepare The Candidate Set
15
+
16
+ 1. Resolve the repository root and keep the maintenance work in its assigned
17
+ worktree.
18
+ 2. Run the read-only report:
19
+
20
+ ```bash
21
+ semantic-atlas reconcile candidates --repo <absolute-repository-root>
22
+ ```
23
+
24
+ 3. Confirm the response is the v1 `reconcile candidates` envelope. Read each
25
+ candidate's business-domain ownership, task evidence, `confirmed`,
26
+ `contradicted`, or `unresolved` disposition, duplicate provenance, and
27
+ linked independent reviews.
28
+ 4. When the report contains no candidates, finish with a no-change result. An
29
+ empty report is a complete maintenance outcome.
30
+
31
+ ## Select One Business Domain
32
+
33
+ Choose one business domain for the run. Keep candidates from other domains in
34
+ the retained report for later maintenance. Within the selected domain, use
35
+ linked approved reviews and repeated provenance to prioritize investigation;
36
+ they strengthen the trail but remain evidence to verify rather than automatic
37
+ map authority.
38
+
39
+ Read [references/reconciliation.md](references/reconciliation.md) before
40
+ classifying candidates. It defines the evidence meaning, durable-content test,
41
+ duplicate handling, and clean stopping conditions.
42
+
43
+ ## Confirm Current Business Meaning
44
+
45
+ 1. Open the selected domain's current `docs/business-map/*.yaml` owner.
46
+ 2. Open every decisive current source, test, or tracked product document named
47
+ by the candidate origins. Follow current callers or collaborators when the
48
+ proposed relation changes both business endpoints.
49
+ 3. Classify each candidate for this maintenance run:
50
+ - `accepted`: current evidence supports the proposed durable correction;
51
+ - `refined`: current evidence supports a narrower or differently worded
52
+ durable correction;
53
+ - `discarded`: the observation is implementation-local, stale in a way that
54
+ no longer matters, or unsupported by current evidence;
55
+ - `unresolved`: available evidence cannot decide stable business meaning.
56
+ 4. Keep discarded and unresolved candidates outside the canonical map. Record
57
+ their evidence-based reason in the maintenance result.
58
+
59
+ ## Edit One Owning YAML
60
+
61
+ Apply accepted and refined corrections to one owning YAML surface for the
62
+ selected business domain. Preserve stable node IDs when business identity is
63
+ unchanged, use the source concept's owning file for directed relations, and
64
+ keep anchors as navigation hints rather than current-behavior claims.
65
+
66
+ Repeated origins for one duplicate candidate produce one map edit. Preserve
67
+ all originating task and review IDs in the maintenance result so independent
68
+ review can trace why the edit exists.
69
+
70
+ ## Validate The Normal Git Change
71
+
72
+ Run the supported product boundaries after the edit:
73
+
74
+ ```bash
75
+ semantic-atlas validate --repo <absolute-repository-root>
76
+ semantic-atlas render --repo <absolute-repository-root> \
77
+ --output <repository-root>/tmp/semantic-atlas-<business-domain>.html
78
+ git diff --check
79
+ git diff -- docs/business-map/<owning-file>.yaml
80
+ ```
81
+
82
+ Inspect the rendered projection for the changed neighborhood. Confirm the Git
83
+ diff changes one owning YAML surface and leaves retained observations
84
+ unchanged. Submit the ordinary map change for independent review; the reviewer
85
+ checks durable business meaning, relation direction, evidence support, complete
86
+ graph validity, and the one-domain boundary.
87
+
88
+ ## Report The Result
89
+
90
+ Report the selected business domain, candidate origins, each maintenance
91
+ classification and decisive evidence, the owning YAML file, validation and
92
+ render results, the Git diff, and any discarded or unresolved leads. Separate
93
+ the proposed map change from independent-review approval and later merge.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Semantic Atlas Maintenance"
3
+ short_description: "Review one domain's map candidates against current evidence"
4
+ default_prompt: "Use $semantic-atlas-maintenance to reconcile retained candidates for one business domain into a reviewed map change."
@@ -0,0 +1,56 @@
1
+ # Reconciliation Evidence Guide
2
+
3
+ Use this guide after loading the versioned candidate report and selecting one
4
+ business domain.
5
+
6
+ ## Read Candidate Provenance
7
+
8
+ Each candidate group represents one exact domain, kind, and proposed summary.
9
+ Every origin retains:
10
+
11
+ - its task-observation ID, task/run identity, and candidate position;
12
+ - the candidate-specific evidence and `confirmed`, `contradicted`, or
13
+ `unresolved` disposition;
14
+ - the task's map queries and current-evidence dispositions;
15
+ - any task or review human correction;
16
+ - every linked independent review and its accuracy assessment.
17
+
18
+ `confirmed` says task-time evidence supported the proposed correction.
19
+ `contradicted` says current evidence contradicted the mapped statement that the
20
+ candidate proposes to replace. `unresolved` identifies a useful lead whose
21
+ stable meaning was not established. These task dispositions organize the
22
+ maintenance investigation; independent review remains the correctness
23
+ authority for the engineering run that produced them.
24
+
25
+ ## Decide Whether Meaning Is Durable
26
+
27
+ A correction belongs in the shared map when future tasks can independently
28
+ name, navigate to, depend on, constrain, read, write, publish, consume, or
29
+ change it. Keep methods, helpers, SQL details, folders, framework components,
30
+ temporary migrations, and one-off execution state as implementation-local
31
+ evidence.
32
+
33
+ Use current tracked product documents for durable intent and current source and
34
+ tests for implemented collaboration. Use runtime evidence when the conclusion
35
+ depends on deployed state. When these sources disagree, state the disagreement
36
+ and leave the candidate unresolved until the owning authority can decide it.
37
+
38
+ ## Handle Drift And Duplicates
39
+
40
+ - A stale anchor can be accepted when the business concept remains durable and
41
+ current source provides the replacement navigation hint.
42
+ - A contradicted relation can be replaced after both current endpoints and the
43
+ relation direction are confirmed.
44
+ - A missing concept can be added when current evidence establishes stable
45
+ business identity, ownership, and meaning rather than only a source symbol.
46
+ - A duplicate candidate keeps all provenance but produces one YAML edit.
47
+ - A transient or implementation-local observation is discarded with a concise
48
+ evidence-backed reason and produces no map change.
49
+
50
+ ## Keep One Review Surface
51
+
52
+ Edit one owning `docs/business-map/*.yaml` file for the selected domain. Validate
53
+ the complete graph because relation endpoints and containment remain
54
+ repository-wide even when the Git diff is local. Render the changed graph and
55
+ inspect the selected neighborhood. The final Git diff is the independent
56
+ review surface; retained observation artifacts stay unchanged.
package/README.md CHANGED
@@ -1,296 +1,191 @@
1
- <div align="center">
2
- <h1>Semantic Atlas</h1>
3
- <p><strong>Give your coding agent the business map a senior engineer keeps in their head.</strong></p>
4
- <p>Navigate by capabilities and behavior, confirm the responsible code, and retain what real engineering work proves.</p>
1
+ # Semantic Atlas
5
2
 
6
- <p>
7
- <a href="https://www.npmjs.com/package/semantic-atlas"><img alt="npm version" src="https://img.shields.io/npm/v/semantic-atlas?style=flat-square&color=cb3837"></a>
8
- <a href="https://github.com/lzj960515/semantic-atlas/actions/workflows/ci.yml"><img alt="continuous integration" src="https://img.shields.io/github/actions/workflow/status/lzj960515/semantic-atlas/ci.yml?branch=main&style=flat-square&label=ci"></a>
9
- <a href="https://www.npmjs.com/package/semantic-atlas"><img alt="supported Node.js version" src="https://img.shields.io/node/v/semantic-atlas?style=flat-square&color=43853d"></a>
10
- <a href="./LICENSE"><img alt="MIT license" src="https://img.shields.io/github/license/lzj960515/semantic-atlas?style=flat-square&color=2d5b46"></a>
11
- </p>
3
+ [![CI](https://github.com/lzj960515/semantic-atlas/actions/workflows/ci.yml/badge.svg)](https://github.com/lzj960515/semantic-atlas/actions/workflows/ci.yml)
12
4
 
13
- <p><strong>English</strong> · <a href="./README.zh-CN.md">简体中文</a></p>
14
- </div>
5
+ Semantic Atlas gives coding agents a compact map of the business before they
6
+ change the code. A repository describes stable domains, capabilities,
7
+ operations, data, rules, interfaces, and their relationships in tracked YAML.
8
+ The CLI validates that map, returns a small neighborhood for investigation, and
9
+ renders the same graph for people.
15
10
 
16
- ## Code search is not a project understanding model
11
+ The map is deliberately advisory. It helps an agent enter through the right
12
+ business boundary; current source, tests, tracked product documents, and
13
+ required runtime evidence still decide what the system does now.
17
14
 
18
- A file tree tells an agent where code is stored. Keyword search tells it where a
19
- word appears. Neither tells it the complete business area affected by a product
20
- change.
21
-
22
- That gap is why an agent can find the obvious service and still miss a policy,
23
- consumer, data dependency, or test elsewhere in the repository. Semantic Atlas
24
- adds the missing layer: a local, evidence-bound business graph connected to the
25
- code that realizes it.
26
-
27
- | Starting point | What the agent sees |
28
- | --- | --- |
29
- | File tree | `src/`, `libs/`, packages, modules, and implementation layout |
30
- | Keyword search | Files containing the words chosen for this task |
31
- | Semantic Atlas | Business regions, behavior, rules, data, collaborators, tests, and their source evidence |
32
-
33
- The goal is not to replace source inspection. It is to make the agent enter the
34
- source through the right business boundary and leave verified understanding
35
- behind for the next task.
36
-
37
- ## One map, continuously learned
38
-
39
- ![Semantic Atlas overview showing business knowledge, structural evidence, the Agent loop, explicit uncertainty, and local storage](docs/mindmaps/semantic-atlas-overview.png)
15
+ ## Install
40
16
 
41
- Semantic Atlas keeps one business graph that can be viewed at different semantic
42
- zoom levels:
17
+ Semantic Atlas requires Node.js 24.
43
18
 
44
- ```text
45
- Commerce
46
- └── Orders ─────────────────── works with ─── Customers
47
- ├── Checkout
48
- │ └── Place order ─────── reads ───────── Customer profile
49
- └── After-sales
50
- └── Refund eligibility ─ constrained by Refund policy
19
+ ```bash
20
+ npm install --global semantic-atlas
21
+ semantic-atlas setup
22
+ semantic-atlas --version
51
23
  ```
52
24
 
53
- `map view` starts at the current world regions. Focusing a region reveals its
54
- children, breadcrumbs, and summarized cross-region connections. The agent keeps
55
- zooming until the operation, data, rule, or test relevant to the task becomes
56
- visible. This is one canonical map projected at the current level, not a large
57
- overview plus a collection of disconnected detail maps.
58
-
59
- The map grows during normal engineering work:
60
-
61
- 1. The agent queries what the project already knows.
62
- 2. Missing knowledge routes it to bounded structural evidence and source.
63
- 3. The agent implements or investigates the real task and verifies the result.
64
- 4. Only durable business meaning proven by current source is learned.
65
- 5. The next task starts with a better map.
66
-
67
- `index` publishes code structure; it does not guess a repository-wide business
68
- model. A newly indexed project can honestly have an empty business map. The first
69
- relevant task may introduce a provisional root such as "Refund eligibility".
70
- Later work can discover "After-sales" and "Orders" above it and reparent the
71
- existing node without changing its stable identity or evidence.
72
-
73
- ## What the agent actually does
25
+ `setup` installs the package's exact engineering and maintenance Skills under
26
+ `~/.agents/skills/`. Repeating it verifies the installed payloads, repairs a
27
+ modified managed copy, and upgrades a recognized Semantic Atlas v0.4 Skill. It
28
+ refuses to replace an unrelated same-named directory.
74
29
 
75
- Suppose a product request changes refund eligibility. A Semantic Atlas-aware
76
- agent follows this path:
30
+ ## Upgrade
77
31
 
78
- ```text
79
- status
80
- -> refresh the structural snapshot when needed
81
- -> view/search the business map
82
- -> zoom into the refund region and inspect its evidence
83
- -> use bounded code search only for gaps
84
- -> confirm behavior in source and tests
85
- -> make and verify the change
86
- -> reindex, inspect semantic changes, and retain durable knowledge
32
+ ```bash
33
+ semantic-atlas upgrade
87
34
  ```
88
35
 
89
- Without an existing refund region, the same workflow begins with a small
90
- `code search` result instead of pretending that folders are business concepts.
91
- Once the task establishes the capability, rules, and relationships, later agents
92
- can navigate there directly.
93
-
94
- This workflow is delivered as one product:
95
-
96
- - The **Semantic Atlas Skill** teaches compatible coding agents when to query,
97
- return to source, and retain knowledge.
98
- - The **Semantic Atlas Insights Skill** supports a separate daily product review
99
- and feedback-triage loop, keeping routine development context focused.
100
- - The **`semantic-atlas` CLI** provides deterministic local JSON operations.
101
- - The structural analyzer remains an internal evidence provider. Its directory
102
- graph, CLI, storage schema, and terminology do not become the business map.
36
+ `upgrade` resolves npm's current stable version, installs that exact package,
37
+ verifies the installed CLI identity, and asks the new CLI to synchronize both
38
+ managed Skills. The executable and Skills therefore move as one versioned
39
+ product.
103
40
 
104
- ## Install
41
+ ## Add A Business Map
105
42
 
106
- Semantic Atlas supports Node.js 22.12 through 24 and Git repositories containing
107
- TypeScript or JavaScript.
43
+ A target repository owns only its Git-tracked map documents:
108
44
 
109
- ```sh
110
- npm install --global semantic-atlas
111
- semantic-atlas setup
112
- semantic-atlas --version
113
- semantic-atlas -h
45
+ ```text
46
+ docs/business-map/*.yaml
114
47
  ```
115
48
 
116
- `setup` atomically installs the primary Skill at
117
- `~/.agents/skills/semantic-atlas` and the maintenance Skill at
118
- `~/.agents/skills/semantic-atlas-insights`. Re-running it verifies the managed
119
- copies and repairs local changes. A recognized legacy copy at
120
- `~/.codex/skills/semantic-atlas` is removed only after the shared installation
121
- succeeds.
122
-
123
- Indexing, querying, and learning stay local and make no model or network calls.
124
- npm access is used only to install or upgrade Semantic Atlas.
125
-
126
- ### Upgrade
127
-
128
- ```sh
129
- semantic-atlas upgrade
49
+ Start with one file per stable business domain:
50
+
51
+ ```yaml
52
+ schemaVersion: 1
53
+ map:
54
+ id: commerce
55
+ title: Commerce
56
+ summary: Customer-facing product discovery and purchase.
57
+
58
+ nodes:
59
+ - id: commerce
60
+ kind: domain
61
+ name: Commerce
62
+ summary: Customer-facing product discovery and purchase.
63
+ aliases: []
64
+ anchors:
65
+ - kind: directory
66
+ value: src/commerce
67
+ description: Likely source entry point for Commerce behavior.
68
+
69
+ relations: []
130
70
  ```
131
71
 
132
- `upgrade` checks npm's latest stable release, installs that exact resolved
133
- version globally, verifies the newly installed CLI, and runs the new package's
134
- `setup`. When the package is already current, it still verifies and synchronizes
135
- the managed Skill. The command is repository-independent: it does not discover a
136
- Git project or open Atlas data.
137
-
138
- ## First project
139
-
140
- The bundled Skill normally drives these commands for the agent. They are shown
141
- here to make the lifecycle explicit. Run Atlas commands serially in the exact
142
- target worktree:
143
-
144
- ```sh
145
- semantic-atlas status
146
- semantic-atlas index
147
- semantic-atlas map view
148
- semantic-atlas map search "checkout" --limit 10
149
- semantic-atlas map view commerce/orders
150
- semantic-atlas map show commerce/orders/checkout
151
- ```
72
+ The [map format](docs/map-format.md) defines supported concepts, relations,
73
+ anchors, validation rules, and lookup behavior.
152
74
 
153
- If `status` reports `missing`, `stale`, or an incomplete structural backend, run
154
- `index` before querying. If a current world returns `regions: []` with
155
- `BUSINESS_KNOWLEDGE_EMPTY`, the project has no verified business knowledge yet.
156
- The agent then uses a bounded fallback:
75
+ ## Query And Render
157
76
 
158
- ```sh
159
- semantic-atlas code search "CheckoutService" --limit 10
77
+ ```bash
78
+ semantic-atlas validate --repo /path/to/repository
79
+ semantic-atlas context "Checkout" --repo /path/to/repository
80
+ semantic-atlas render --repo /path/to/repository --output ./business-map.html
160
81
  ```
161
82
 
162
- Project commands write one versioned JSON envelope to standard output and keep
163
- diagnostics on standard error. `setup`, `upgrade`, `-h`/`--help`, and `--version`
164
- are repository-independent text commands.
83
+ `validate` checks every map document as one graph. `context` returns the
84
+ selected concept, containment, direct incoming and outgoing relationships,
85
+ related concepts, and source-navigation anchors in a versioned JSON envelope.
86
+ `render` produces deterministic static HTML from that same normalized graph.
165
87
 
166
- ## Product insights
88
+ ## Evidence Order
167
89
 
168
- Normal work does not gain a new reporting step. When source confirmation shows
169
- that Atlas materially blocked or slowed a task, the primary Skill can record one
170
- compact, evidence-contextual report. Daily maintenance is handled by the
171
- separate Insights Skill:
90
+ For a business-changing engineering task:
172
91
 
173
- ```sh
174
- semantic-atlas insights summary --period yesterday
175
- semantic-atlas insights feedback --period yesterday --status new
176
- semantic-atlas insights feedback update --stdin
177
- ```
92
+ 1. Query the smallest useful map neighborhood.
93
+ 2. Treat concepts, relations, summaries, and anchors as investigation leads.
94
+ 3. Confirm every change-controlling claim in current source and tests.
95
+ 4. Use tracked product documents for durable intent and runtime evidence for
96
+ state-dependent behavior.
97
+ 5. Let current evidence override missing, stale, or contradicted map knowledge.
98
+ 6. Implement and verify through the repository's normal engineering workflow.
178
99
 
179
- The local store records objective command metadata such as command name,
180
- outcome, warning codes, duration, repository identity, and snapshot identity.
181
- It never records prompts, command arguments, query text, source text, or command
182
- output. Use the signals with fresh-agent evaluation and source-confirmed reports;
183
- they show product usage and friction, not a standalone recall score.
100
+ The final engineering conclusion is expected to be more accurate than the map
101
+ that helped locate it.
184
102
 
185
- ## Trust model
103
+ ## Agent Skills
186
104
 
187
- Semantic Atlas is useful because it preserves the line between evidence and
188
- understanding:
105
+ `semantic-atlas setup` installs two package-owned Skills:
189
106
 
190
- - **Source remains authoritative.** Answer-controlling and change-controlling
191
- behavior is confirmed in the checked-out code.
192
- - **Business facts carry evidence.** Learned nodes and relations bind to source
193
- symbols, ranges, content hashes, certainty, and a repository snapshot.
194
- - **Change invalidates confidence visibly.** Evidence that can no longer be
195
- rebound becomes `stale`; it is not silently retained as current truth.
196
- - **Uncertainty stays explicit.** Dynamic dispatch, reflection, unsupported
197
- structure, hypotheses, and unresolved targets route the agent back to source.
198
- - **The target project stays untouched.** Atlas does not edit source, run tests,
199
- or operate Git. Generated worktree state is ignored and disposable.
107
+ - `semantic-atlas` guides business-changing work from a bounded context query
108
+ into current-source confirmation.
109
+ - `semantic-atlas-maintenance` reviews retained candidates for one business
110
+ domain and prepares a normal reviewed YAML change.
200
111
 
201
- ## Local storage
112
+ Target repositories do not copy these Skills. They share only their business
113
+ maps through Git.
202
114
 
203
- ```text
204
- ~/.semantic-atlas/repositories/<repository-id>/
205
- └── atlas.db durable repository business knowledge
115
+ ## Accuracy Observations
206
116
 
207
- ~/.semantic-atlas/
208
- └── insights.db installation-level usage and feedback signals
117
+ Normal engineering work can retain task evidence and independent review
118
+ evidence without changing the business map:
209
119
 
210
- <worktree>/.atlas/
211
- ├── .gitignore
212
- └── codegraph.db disposable structural projection
120
+ ```bash
121
+ semantic-atlas observe task --stdin --repo /path/to/repository
122
+ semantic-atlas observe review --stdin --repo /path/to/repository
123
+ semantic-atlas insights summary --repo /path/to/repository --period 4w
213
124
  ```
214
125
 
215
- Business knowledge is shared across worktrees of the same repository. Structural
216
- state is separate because each worktree can contain a different commit or dirty
217
- source. A new worktree can bootstrap from a compatible sibling projection and
218
- then synchronize incrementally. Removing a worktree removes only its disposable
219
- projection.
126
+ A task observation records queries, current-evidence classifications, candidate
127
+ map corrections, and explicit human corrections. It never grades its own
128
+ accuracy. An independent review observation owns correctness, impact,
129
+ required-rework, and map-regression judgments. IDs are immutable: an exact
130
+ replay is idempotent and changed content conflicts.
220
131
 
221
- Set an absolute `SEMANTIC_ATLAS_HOME` when tests or CI need isolated durable
222
- state.
132
+ See [accuracy observations](docs/observations.md) for the schemas and evidence
133
+ semantics.
223
134
 
224
- ## Evidence from the frozen evaluation
135
+ ## Reconciliation
225
136
 
226
- The retained [`fresh-agent-v1` report](evaluation/results/fresh-agent-v1/report.json)
227
- contains 12 paired location and dependency-impact cases across NestJS, GraphQL,
228
- TypeORM, and BullMQ, for 24 fresh-agent runs.
137
+ ```bash
138
+ semantic-atlas reconcile candidates --repo /path/to/repository
139
+ ```
229
140
 
230
- | Metric | Without Atlas | With Atlas | Fixture result |
231
- | --- | ---: | ---: | --- |
232
- | Final-answer correctness | 100% | 100% | No regression |
233
- | Required-file recall | 100% | 100% | No regression |
234
- | Required-symbol recall | 100% | 100% | No regression |
235
- | Median unique source files opened | 6.5 | 4 | 38.46% fewer |
236
- | Median observed source-input tokens | 1,351 | 688 | 49.07% fewer |
141
+ The command groups retained candidates by explicit business-domain ownership
142
+ while preserving each origin, evidence disposition, and linked independent
143
+ review. It is read-only. The maintenance Skill then confirms one domain against
144
+ current evidence and submits any accepted map correction through an ordinary
145
+ Git diff and independent review.
237
146
 
238
- These are fixture-scoped results, not a claim of universal business accuracy or
239
- total model-token savings. Read the [evaluation protocol](docs/evaluation.md)
240
- before interpreting them.
147
+ ## Local Data And Privacy
241
148
 
242
- ## Command reference
149
+ Business maps stay in the target repository. Accuracy observations stay in
150
+ immutable JSON files under a hashed user-local repository partition:
243
151
 
244
152
  ```text
245
- semantic-atlas setup
246
- semantic-atlas upgrade
247
- semantic-atlas -h | --help
248
- semantic-atlas --version
249
-
250
- semantic-atlas status [--repo <path>] [--pretty]
251
- semantic-atlas index [--repo <path>] [--pretty]
252
- semantic-atlas map view [business-key] [--repo <path>] [--pretty]
253
- semantic-atlas map search <business-term> [--limit <n>] [--repo <path>] [--pretty]
254
- semantic-atlas map show <business-key> [--repo <path>] [--pretty]
255
- semantic-atlas code search <structural-term> [--limit <n>] [--repo <path>] [--pretty]
256
- semantic-atlas learn --stdin [--repo <path>] [--pretty]
257
- semantic-atlas changes [--from <snapshot-id>] [--to <snapshot-id>] [--repo <path>] [--pretty]
258
- semantic-atlas feedback report --stdin [--repo <path>] [--pretty]
259
-
260
- semantic-atlas insights summary [--period today|yesterday|7d|30d|all] [--pretty]
261
- semantic-atlas insights feedback [--period today|yesterday|7d|30d|all] [--status new|triaged|resolved|dismissed] [--pretty]
262
- semantic-atlas insights feedback update --stdin [--pretty]
153
+ ~/.semantic-atlas/observations/v1/repositories/<repository-id>/
263
154
  ```
264
155
 
265
- Field-level behavior is defined by the versioned [CLI v1](docs/contracts/cli-v1.md)
266
- and [GraphPatch v1](docs/contracts/graph-patch-v1.md) contracts. Product
267
- observability and feedback behavior are defined by
268
- [Insights v1](docs/contracts/insights-v1.md).
156
+ Observation files contain neither repository paths nor remote URLs. Semantic
157
+ Atlas has no remote observation service, account, telemetry upload, persistent
158
+ graph database, or automatic source/map mutation. `setup` and observation
159
+ commands do not add files to a target repository; `render` writes only the
160
+ explicitly requested local output.
269
161
 
270
- ## Develop
162
+ ## Development
271
163
 
272
- ```sh
273
- corepack enable
164
+ ```bash
274
165
  pnpm install --frozen-lockfile
275
- pnpm typecheck
276
- pnpm test
277
- pnpm build
278
- pnpm package:verify
166
+ pnpm release:verify
279
167
  ```
280
168
 
281
- `package:verify` installs the packed artifact outside the source checkout and
282
- runs the real CLI. `validation:backend` adds structural projection, recovery,
283
- evidence rebinding, sibling bootstrap, and worktree-isolation gates.
169
+ The release-candidate gate runs contract and source tests, typecheck, build,
170
+ rendering checks, packed-tarball privacy checks, an anonymous installed-product
171
+ flow, a real public v0.4-to-v1 transition rehearsal, package dry-run, and Git
172
+ diff validation.
173
+
174
+ Publication is a separate operation. After the repository's immutable-release
175
+ setting is enabled, a non-prerelease GitHub Release for an annotated version tag
176
+ triggers the protected npm workflow. The workflow verifies the specific Release
177
+ is immutable in a read-only job before any tag checkout or npm credential
178
+ boundary. Only then does the protected publish job repeat the candidate gate
179
+ and publish with npm provenance.
284
180
 
285
- ## Read next
181
+ ## Documentation
286
182
 
287
183
  - [Product contract](docs/product-contract.md)
288
- - [Continuous business learning and semantic zoom](docs/architecture/continuous-business-learning.md)
289
- - [Graph model](docs/contracts/graph-model.md)
290
- - [CLI v1 contract](docs/contracts/cli-v1.md)
291
- - [Insights v1 contract](docs/contracts/insights-v1.md)
292
- - [Evaluation protocol](docs/evaluation.md)
184
+ - [Architecture](docs/architecture.md)
185
+ - [Map format](docs/map-format.md)
186
+ - [Accuracy observations](docs/observations.md)
187
+ - [Evaluation](docs/evaluation.md)
293
188
 
294
189
  ## License
295
190
 
296
- Semantic Atlas is released under the [MIT License](LICENSE).
191
+ [MIT](LICENSE)
@@ -0,0 +1,24 @@
1
+ import type { CliError, ContextEnvelope, ValidateEnvelope } from "../contracts/cli.js";
2
+ import type { MapProjection } from "../contracts/projection.js";
3
+ import type { RepositoryMapSource } from "../contracts/map.js";
4
+ import { MapDocumentLoader } from "../map/map-document-loader.js";
5
+ import { MapValidator } from "../map/map-validator.js";
6
+ export type MapProjectionResult = {
7
+ readonly ok: true;
8
+ readonly repository: RepositoryMapSource;
9
+ readonly projection: MapProjection;
10
+ } | {
11
+ readonly ok: false;
12
+ readonly repository?: RepositoryMapSource;
13
+ readonly error: CliError;
14
+ };
15
+ export declare class MapApplication {
16
+ private readonly loader;
17
+ private readonly validator;
18
+ constructor(loader?: MapDocumentLoader, validator?: MapValidator);
19
+ validate(repositoryPath: string): Promise<ValidateEnvelope>;
20
+ context(repositoryPath: string, selector: string): Promise<ContextEnvelope>;
21
+ project(repositoryPath: string): Promise<MapProjectionResult>;
22
+ private loadValidatedMap;
23
+ }
24
+ //# sourceMappingURL=map-application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-application.d.ts","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAevD,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;CACpC,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B,CAAC;AAEN,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,MAAM,oBAA0B,EAChC,SAAS,eAAqB;IAGpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAiB3D,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAsC3E,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;YAY5D,gBAAgB;CAuC/B"}