semantic-atlas 0.4.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 (346) 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 -265
  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 -42
  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 -45
  118. package/docs/map-format.md +224 -0
  119. package/docs/observations.md +175 -0
  120. package/docs/product-contract.md +295 -165
  121. package/examples/commerce.yaml +204 -0
  122. package/package.json +32 -32
  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 -296
  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 -104
  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/cli/web-cli.d.ts +0 -9
  193. package/dist/cli/web-cli.d.ts.map +0 -1
  194. package/dist/cli/web-cli.js +0 -134
  195. package/dist/contracts/graph.d.ts +0 -266
  196. package/dist/contracts/graph.d.ts.map +0 -1
  197. package/dist/contracts/graph.js +0 -182
  198. package/dist/contracts/identifiers.d.ts +0 -4
  199. package/dist/contracts/identifiers.d.ts.map +0 -1
  200. package/dist/contracts/identifiers.js +0 -7
  201. package/dist/contracts/public-contracts.d.ts +0 -5
  202. package/dist/contracts/public-contracts.d.ts.map +0 -1
  203. package/dist/contracts/public-contracts.js +0 -4
  204. package/dist/evaluation/comparison.d.ts +0 -30
  205. package/dist/evaluation/comparison.d.ts.map +0 -1
  206. package/dist/evaluation/comparison.js +0 -108
  207. package/dist/evaluation/contracts.d.ts +0 -301
  208. package/dist/evaluation/contracts.d.ts.map +0 -1
  209. package/dist/evaluation/contracts.js +0 -413
  210. package/dist/graph/graph-store.d.ts +0 -55
  211. package/dist/graph/graph-store.d.ts.map +0 -1
  212. package/dist/graph/graph-store.js +0 -912
  213. package/dist/graph/types.d.ts +0 -189
  214. package/dist/graph/types.d.ts.map +0 -1
  215. package/dist/graph/types.js +0 -1
  216. package/dist/insights/contracts.d.ts +0 -266
  217. package/dist/insights/contracts.d.ts.map +0 -1
  218. package/dist/insights/contracts.js +0 -124
  219. package/dist/insights/insights-store.d.ts +0 -73
  220. package/dist/insights/insights-store.d.ts.map +0 -1
  221. package/dist/insights/insights-store.js +0 -246
  222. package/dist/knowledge/business-knowledge-service.d.ts +0 -24
  223. package/dist/knowledge/business-knowledge-service.d.ts.map +0 -1
  224. package/dist/knowledge/business-knowledge-service.js +0 -200
  225. package/dist/knowledge/graph-patch-conflict-error.d.ts +0 -8
  226. package/dist/knowledge/graph-patch-conflict-error.d.ts.map +0 -1
  227. package/dist/knowledge/graph-patch-conflict-error.js +0 -12
  228. package/dist/knowledge/structural-target-binding.d.ts +0 -14
  229. package/dist/knowledge/structural-target-binding.d.ts.map +0 -1
  230. package/dist/knowledge/structural-target-binding.js +0 -11
  231. package/dist/package-metadata.d.ts +0 -2
  232. package/dist/package-metadata.d.ts.map +0 -1
  233. package/dist/package-metadata.js +0 -9
  234. package/dist/repository/git-command.d.ts +0 -3
  235. package/dist/repository/git-command.d.ts.map +0 -1
  236. package/dist/repository/git-command.js +0 -25
  237. package/dist/repository/repository-inspector.d.ts +0 -8
  238. package/dist/repository/repository-inspector.d.ts.map +0 -1
  239. package/dist/repository/repository-inspector.js +0 -97
  240. package/dist/repository/repository-language-support.d.ts +0 -14
  241. package/dist/repository/repository-language-support.d.ts.map +0 -1
  242. package/dist/repository/repository-language-support.js +0 -64
  243. package/dist/repository/types.d.ts +0 -9
  244. package/dist/repository/types.d.ts.map +0 -1
  245. package/dist/repository/types.js +0 -1
  246. package/dist/runtime/sqlite-compatibility-process.d.ts +0 -8
  247. package/dist/runtime/sqlite-compatibility-process.d.ts.map +0 -1
  248. package/dist/runtime/sqlite-compatibility-process.js +0 -20
  249. package/dist/setup/skill-installer.d.ts +0 -20
  250. package/dist/setup/skill-installer.d.ts.map +0 -1
  251. package/dist/setup/skill-installer.js +0 -187
  252. package/dist/snapshots/repository-snapshot.d.ts +0 -4
  253. package/dist/snapshots/repository-snapshot.d.ts.map +0 -1
  254. package/dist/snapshots/repository-snapshot.js +0 -119
  255. package/dist/snapshots/types.d.ts +0 -30
  256. package/dist/snapshots/types.d.ts.map +0 -1
  257. package/dist/snapshots/types.js +0 -1
  258. package/dist/storage/atlas-database.d.ts +0 -25
  259. package/dist/storage/atlas-database.d.ts.map +0 -1
  260. package/dist/storage/atlas-database.js +0 -483
  261. package/dist/storage/snapshot-store.d.ts +0 -19
  262. package/dist/storage/snapshot-store.d.ts.map +0 -1
  263. package/dist/storage/snapshot-store.js +0 -74
  264. package/dist/structural-backend/codegraph-backend.d.ts +0 -57
  265. package/dist/structural-backend/codegraph-backend.d.ts.map +0 -1
  266. package/dist/structural-backend/codegraph-backend.js +0 -1230
  267. package/dist/structural-backend/codegraph-worker-client.d.ts +0 -5
  268. package/dist/structural-backend/codegraph-worker-client.d.ts.map +0 -1
  269. package/dist/structural-backend/codegraph-worker-client.js +0 -118
  270. package/dist/structural-backend/codegraph-worker-protocol.d.ts +0 -35
  271. package/dist/structural-backend/codegraph-worker-protocol.d.ts.map +0 -1
  272. package/dist/structural-backend/codegraph-worker-protocol.js +0 -1
  273. package/dist/structural-backend/codegraph-worker.d.ts +0 -2
  274. package/dist/structural-backend/codegraph-worker.d.ts.map +0 -1
  275. package/dist/structural-backend/codegraph-worker.js +0 -131
  276. package/dist/structural-backend/process-instance.d.ts +0 -18
  277. package/dist/structural-backend/process-instance.d.ts.map +0 -1
  278. package/dist/structural-backend/process-instance.js +0 -207
  279. package/dist/structural-backend/structural-fact-changes.d.ts +0 -7
  280. package/dist/structural-backend/structural-fact-changes.d.ts.map +0 -1
  281. package/dist/structural-backend/structural-fact-changes.js +0 -78
  282. package/dist/structural-backend/structural-projection-bootstrapper.d.ts +0 -10
  283. package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +0 -1
  284. package/dist/structural-backend/structural-projection-bootstrapper.js +0 -295
  285. package/dist/structural-backend/structural-publication.d.ts +0 -13
  286. package/dist/structural-backend/structural-publication.d.ts.map +0 -1
  287. package/dist/structural-backend/structural-publication.js +0 -255
  288. package/dist/structural-backend/structural-write-lock.d.ts +0 -8
  289. package/dist/structural-backend/structural-write-lock.d.ts.map +0 -1
  290. package/dist/structural-backend/structural-write-lock.js +0 -415
  291. package/dist/structural-backend/types.d.ts +0 -144
  292. package/dist/structural-backend/types.d.ts.map +0 -1
  293. package/dist/structural-backend/types.js +0 -11
  294. package/dist/web/application/atlas-read-service.d.ts +0 -27
  295. package/dist/web/application/atlas-read-service.d.ts.map +0 -1
  296. package/dist/web/application/atlas-read-service.js +0 -216
  297. package/dist/web/application/primary-repository-catalog.d.ts +0 -15
  298. package/dist/web/application/primary-repository-catalog.d.ts.map +0 -1
  299. package/dist/web/application/primary-repository-catalog.js +0 -202
  300. package/dist/web/application/types.d.ts +0 -41
  301. package/dist/web/application/types.d.ts.map +0 -1
  302. package/dist/web/application/types.js +0 -1
  303. package/dist/web/server/api-router.d.ts +0 -4
  304. package/dist/web/server/api-router.d.ts.map +0 -1
  305. package/dist/web/server/api-router.js +0 -151
  306. package/dist/web/server/local-web-server.d.ts +0 -12
  307. package/dist/web/server/local-web-server.d.ts.map +0 -1
  308. package/dist/web/server/local-web-server.js +0 -100
  309. package/dist/web-client/assets/index-DneaErDj.css +0 -1
  310. package/dist/web-client/assets/index-cze_4vtt.js +0 -2
  311. package/dist/web-client/assets/index-cze_4vtt.js.map +0 -1
  312. package/dist/web-client/index.html +0 -61
  313. package/dist/world/business-map-projector.d.ts +0 -14
  314. package/dist/world/business-map-projector.d.ts.map +0 -1
  315. package/dist/world/business-map-projector.js +0 -178
  316. package/dist/world/types.d.ts +0 -77
  317. package/dist/world/types.d.ts.map +0 -1
  318. package/dist/world/types.js +0 -1
  319. package/dist/world/world-graph-query.d.ts +0 -30
  320. package/dist/world/world-graph-query.d.ts.map +0 -1
  321. package/dist/world/world-graph-query.js +0 -252
  322. package/dist/world/world-model-service.d.ts +0 -21
  323. package/dist/world/world-model-service.d.ts.map +0 -1
  324. package/dist/world/world-model-service.js +0 -219
  325. package/dist/world/world-snapshot-store.d.ts +0 -41
  326. package/dist/world/world-snapshot-store.d.ts.map +0 -1
  327. package/dist/world/world-snapshot-store.js +0 -581
  328. package/docs/README.md +0 -30
  329. package/docs/architecture/codegraph-backend.md +0 -190
  330. package/docs/architecture/continuous-business-learning.md +0 -240
  331. package/docs/architecture/web-viewer.md +0 -225
  332. package/docs/contracts/cli-v1.md +0 -179
  333. package/docs/contracts/graph-model.md +0 -106
  334. package/docs/contracts/graph-patch-v1.md +0 -105
  335. package/docs/contracts/http-api-v1.md +0 -155
  336. package/docs/contracts/insights-v1.md +0 -84
  337. package/docs/log.md +0 -159
  338. package/docs/mindmaps/semantic-atlas-overview.drawio +0 -255
  339. package/docs/mindmaps/semantic-atlas-overview.png +0 -0
  340. package/docs/mindmaps/semantic-atlas-overview.zh-CN.drawio +0 -255
  341. package/docs/mindmaps/semantic-atlas-overview.zh-CN.png +0 -0
  342. package/schemas/cli-envelope-v1.schema.json +0 -1244
  343. package/schemas/evaluation-plan-v1.schema.json +0 -211
  344. package/schemas/evaluation-run-v1.schema.json +0 -659
  345. package/schemas/graph-patch-v1.schema.json +0 -392
  346. 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,322 +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
17
-
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)
40
-
41
- Semantic Atlas keeps one business graph that can be viewed at different semantic
42
- zoom levels:
43
-
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
51
- ```
52
-
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
74
-
75
- Suppose a product request changes refund eligibility. A Semantic Atlas-aware
76
- agent follows this path:
77
-
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
87
- ```
88
-
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 **desktop Web viewer** lets people browse the same established business
102
- map without changing Atlas knowledge or reading source first.
103
- - The structural analyzer remains an internal evidence provider. Its directory
104
- graph, CLI, storage schema, and terminology do not become the business map.
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.
105
14
 
106
15
  ## Install
107
16
 
108
- Semantic Atlas supports Node.js 22.12 through 24 and Git repositories containing
109
- TypeScript or JavaScript.
17
+ Semantic Atlas requires Node.js 24.
110
18
 
111
- ```sh
19
+ ```bash
112
20
  npm install --global semantic-atlas
113
21
  semantic-atlas setup
114
22
  semantic-atlas --version
115
- semantic-atlas -h
116
23
  ```
117
24
 
118
- `setup` atomically installs the primary Skill at
119
- `~/.agents/skills/semantic-atlas` and the maintenance Skill at
120
- `~/.agents/skills/semantic-atlas-insights`. Re-running it verifies the managed
121
- copies and repairs local changes. A recognized legacy copy at
122
- `~/.codex/skills/semantic-atlas` is removed only after the shared installation
123
- succeeds.
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.
124
29
 
125
- Indexing, querying, and learning stay local and make no model or network calls.
126
- npm access is used only to install or upgrade Semantic Atlas.
30
+ ## Upgrade
127
31
 
128
- ### Upgrade
129
-
130
- ```sh
32
+ ```bash
131
33
  semantic-atlas upgrade
132
34
  ```
133
35
 
134
- `upgrade` checks npm's latest stable release, installs that exact resolved
135
- version globally, verifies the newly installed CLI, and runs the new package's
136
- `setup`. When the package is already current, it still verifies and synchronizes
137
- the managed Skill. The command is repository-independent: it does not discover a
138
- Git project or open Atlas data.
139
-
140
- ## First project
141
-
142
- The bundled Skill normally drives these commands for the agent. They are shown
143
- here to make the lifecycle explicit. Run Atlas commands serially in the exact
144
- target worktree:
145
-
146
- ```sh
147
- semantic-atlas status
148
- semantic-atlas index
149
- semantic-atlas map view
150
- semantic-atlas map search "checkout" --limit 10
151
- semantic-atlas map view commerce/orders
152
- semantic-atlas map show commerce/orders/checkout
153
- ```
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.
154
40
 
155
- If `status` reports `missing`, `stale`, or an incomplete structural backend, run
156
- `index` before querying. If a current world returns `regions: []` with
157
- `BUSINESS_KNOWLEDGE_EMPTY`, the project has no verified business knowledge yet.
158
- The agent then uses a bounded fallback:
41
+ ## Add A Business Map
159
42
 
160
- ```sh
161
- semantic-atlas code search "CheckoutService" --limit 10
43
+ A target repository owns only its Git-tracked map documents:
44
+
45
+ ```text
46
+ docs/business-map/*.yaml
162
47
  ```
163
48
 
164
- Project commands write one versioned JSON envelope to standard output and keep
165
- diagnostics on standard error. `setup`, `upgrade`, `-h`/`--help`, and `--version`
166
- are repository-independent text commands.
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: []
70
+ ```
167
71
 
168
- ## Browse the business map
72
+ The [map format](docs/map-format.md) defines supported concepts, relations,
73
+ anchors, validation rules, and lookup behavior.
169
74
 
170
- Start the local desktop viewer from any directory:
75
+ ## Query And Render
171
76
 
172
- ```sh
173
- semantic-atlas web
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
174
81
  ```
175
82
 
176
- The command serves a bundled interface and versioned read-only HTTP API on
177
- `127.0.0.1:4310`, then opens the default browser. Use `--no-open` to suppress
178
- browser launch, `--port <n>` to select another loopback port, or `--repo <path>`
179
- to select an eligible initial project.
180
-
181
- The project rail contains only each repository's primary working tree when it
182
- is currently on `main` or `master`. Linked worktrees and other branches never
183
- appear. The viewer supports project selection, hierarchical business-map
184
- navigation, business search, and node details with existing kind, certainty,
185
- validity, relationships, and evidence. It cannot index, learn, modify source,
186
- operate Git, or change Atlas data.
187
-
188
- ## Product insights
189
-
190
- Normal work does not gain a new reporting step. When source confirmation shows
191
- that Atlas materially blocked or slowed a task, the primary Skill can record one
192
- compact, evidence-contextual report. Daily maintenance is handled by the
193
- separate Insights Skill:
194
-
195
- ```sh
196
- semantic-atlas insights summary --period yesterday
197
- semantic-atlas insights feedback --period yesterday --status new
198
- semantic-atlas insights feedback update --stdin
199
- ```
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.
200
87
 
201
- The local store records objective command metadata such as command name,
202
- outcome, warning codes, duration, repository identity, and snapshot identity.
203
- It never records prompts, command arguments, query text, source text, or command
204
- output. Use the signals with fresh-agent evaluation and source-confirmed reports;
205
- they show product usage and friction, not a standalone recall score.
88
+ ## Evidence Order
206
89
 
207
- ## Trust model
90
+ For a business-changing engineering task:
208
91
 
209
- Semantic Atlas is useful because it preserves the line between evidence and
210
- understanding:
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.
211
99
 
212
- - **Source remains authoritative.** Answer-controlling and change-controlling
213
- behavior is confirmed in the checked-out code.
214
- - **Business facts carry evidence.** Learned nodes and relations bind to source
215
- symbols, ranges, content hashes, certainty, and a repository snapshot.
216
- - **Change invalidates confidence visibly.** Evidence that can no longer be
217
- rebound becomes `stale`; it is not silently retained as current truth.
218
- - **Uncertainty stays explicit.** Dynamic dispatch, reflection, unsupported
219
- structure, hypotheses, and unresolved targets route the agent back to source.
220
- - **The target project stays untouched.** Atlas does not edit source, run tests,
221
- or operate Git. Generated worktree state is ignored and disposable.
100
+ The final engineering conclusion is expected to be more accurate than the map
101
+ that helped locate it.
222
102
 
223
- ## Local storage
103
+ ## Agent Skills
224
104
 
225
- ```text
226
- ~/.semantic-atlas/repositories/<repository-id>/
227
- └── atlas.db durable repository business knowledge
105
+ `semantic-atlas setup` installs two package-owned Skills:
106
+
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.
111
+
112
+ Target repositories do not copy these Skills. They share only their business
113
+ maps through Git.
228
114
 
229
- ~/.semantic-atlas/
230
- └── insights.db installation-level usage and feedback signals
115
+ ## Accuracy Observations
231
116
 
232
- <worktree>/.atlas/
233
- ├── .gitignore
234
- └── codegraph.db disposable structural projection
117
+ Normal engineering work can retain task evidence and independent review
118
+ evidence without changing the business map:
119
+
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
235
124
  ```
236
125
 
237
- Business knowledge is shared across worktrees of the same repository. Structural
238
- state is separate because each worktree can contain a different commit or dirty
239
- source. A new worktree can bootstrap from a compatible sibling projection and
240
- then synchronize incrementally. Removing a worktree removes only its disposable
241
- 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.
242
131
 
243
- Set an absolute `SEMANTIC_ATLAS_HOME` when tests or CI need isolated durable
244
- state.
132
+ See [accuracy observations](docs/observations.md) for the schemas and evidence
133
+ semantics.
245
134
 
246
- ## Evidence from the frozen evaluation
135
+ ## Reconciliation
247
136
 
248
- The retained [`fresh-agent-v1` report](evaluation/results/fresh-agent-v1/report.json)
249
- contains 12 paired location and dependency-impact cases across NestJS, GraphQL,
250
- TypeORM, and BullMQ, for 24 fresh-agent runs.
137
+ ```bash
138
+ semantic-atlas reconcile candidates --repo /path/to/repository
139
+ ```
251
140
 
252
- | Metric | Without Atlas | With Atlas | Fixture result |
253
- | --- | ---: | ---: | --- |
254
- | Final-answer correctness | 100% | 100% | No regression |
255
- | Required-file recall | 100% | 100% | No regression |
256
- | Required-symbol recall | 100% | 100% | No regression |
257
- | Median unique source files opened | 6.5 | 4 | 38.46% fewer |
258
- | 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.
259
146
 
260
- These are fixture-scoped results, not a claim of universal business accuracy or
261
- total model-token savings. Read the [evaluation protocol](docs/evaluation.md)
262
- before interpreting them.
147
+ ## Local Data And Privacy
263
148
 
264
- ## 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:
265
151
 
266
152
  ```text
267
- semantic-atlas setup
268
- semantic-atlas upgrade
269
- semantic-atlas -h | --help
270
- semantic-atlas --version
271
- semantic-atlas web [--repo <path>] [--port <n>] [--no-open]
272
-
273
- semantic-atlas status [--repo <path>] [--pretty]
274
- semantic-atlas index [--repo <path>] [--pretty]
275
- semantic-atlas map view [business-key] [--repo <path>] [--pretty]
276
- semantic-atlas map search <business-term> [--limit <n>] [--repo <path>] [--pretty]
277
- semantic-atlas map show <business-key> [--repo <path>] [--pretty]
278
- semantic-atlas code search <structural-term> [--limit <n>] [--repo <path>] [--pretty]
279
- semantic-atlas learn --stdin [--repo <path>] [--pretty]
280
- semantic-atlas changes [--from <snapshot-id>] [--to <snapshot-id>] [--repo <path>] [--pretty]
281
- semantic-atlas feedback report --stdin [--repo <path>] [--pretty]
282
-
283
- semantic-atlas insights summary [--period today|yesterday|7d|30d|all] [--pretty]
284
- semantic-atlas insights feedback [--period today|yesterday|7d|30d|all] [--status new|triaged|resolved|dismissed] [--pretty]
285
- semantic-atlas insights feedback update --stdin [--pretty]
153
+ ~/.semantic-atlas/observations/v1/repositories/<repository-id>/
286
154
  ```
287
155
 
288
- Field-level behavior is defined by the versioned [CLI v1](docs/contracts/cli-v1.md)
289
- and [GraphPatch v1](docs/contracts/graph-patch-v1.md) contracts. Product
290
- observability and feedback behavior are defined by
291
- [Insights v1](docs/contracts/insights-v1.md). The viewer uses the loopback
292
- [HTTP API v1](docs/contracts/http-api-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.
293
161
 
294
- ## Develop
162
+ ## Development
295
163
 
296
- ```sh
297
- corepack enable
164
+ ```bash
298
165
  pnpm install --frozen-lockfile
299
- pnpm typecheck
300
- pnpm test
301
- pnpm build
302
- pnpm package:verify
166
+ pnpm release:verify
303
167
  ```
304
168
 
305
- `package:verify` installs the packed artifact outside the source checkout and
306
- runs the real CLI. `validation:backend` adds structural projection, recovery,
307
- 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.
308
180
 
309
- ## Read next
181
+ ## Documentation
310
182
 
311
183
  - [Product contract](docs/product-contract.md)
312
- - [Continuous business learning and semantic zoom](docs/architecture/continuous-business-learning.md)
313
- - [Graph model](docs/contracts/graph-model.md)
314
- - [CLI v1 contract](docs/contracts/cli-v1.md)
315
- - [Desktop Web viewer](docs/architecture/web-viewer.md)
316
- - [HTTP API v1 contract](docs/contracts/http-api-v1.md)
317
- - [Insights v1 contract](docs/contracts/insights-v1.md)
318
- - [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)
319
188
 
320
189
  ## License
321
190
 
322
- 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"}