semantic-atlas 0.1.4 → 0.3.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 (84) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +62 -43
  2. package/.agents/skills/semantic-atlas/references/graph-patch.md +22 -5
  3. package/.agents/skills/semantic-atlas/references/product-feedback.md +34 -0
  4. package/.agents/skills/semantic-atlas/references/result-routing.md +32 -19
  5. package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +17 -32
  6. package/.agents/skills/semantic-atlas-insights/SKILL.md +55 -0
  7. package/README.md +209 -80
  8. package/README.zh-CN.md +187 -81
  9. package/dist/cli/argument-parser.js +49 -23
  10. package/dist/cli/bin.js +16 -3
  11. package/dist/cli/cli-application.d.ts +3 -2
  12. package/dist/cli/cli-application.d.ts.map +1 -1
  13. package/dist/cli/cli-application.js +104 -48
  14. package/dist/cli/insights-cli.d.ts +6 -0
  15. package/dist/cli/insights-cli.d.ts.map +1 -0
  16. package/dist/cli/insights-cli.js +236 -0
  17. package/dist/cli/main.d.ts.map +1 -1
  18. package/dist/cli/main.js +94 -2
  19. package/dist/cli/standalone-cli.d.ts +3 -0
  20. package/dist/cli/standalone-cli.d.ts.map +1 -0
  21. package/dist/cli/standalone-cli.js +96 -0
  22. package/dist/cli/types.d.ts +9 -6
  23. package/dist/cli/types.d.ts.map +1 -1
  24. package/dist/contracts/cli.d.ts +473 -1400
  25. package/dist/contracts/cli.d.ts.map +1 -1
  26. package/dist/contracts/cli.js +65 -65
  27. package/dist/contracts/graph.d.ts +4 -0
  28. package/dist/contracts/graph.d.ts.map +1 -1
  29. package/dist/contracts/graph.js +2 -2
  30. package/dist/contracts/insights.d.ts +2 -0
  31. package/dist/contracts/insights.d.ts.map +1 -0
  32. package/dist/contracts/insights.js +1 -0
  33. package/dist/contracts/public-contracts.d.ts +1 -0
  34. package/dist/contracts/public-contracts.d.ts.map +1 -1
  35. package/dist/contracts/public-contracts.js +1 -0
  36. package/dist/evaluation/contracts.d.ts +11 -2
  37. package/dist/evaluation/contracts.d.ts.map +1 -1
  38. package/dist/evaluation/contracts.js +7 -2
  39. package/dist/graph/graph-store.d.ts +3 -1
  40. package/dist/graph/graph-store.d.ts.map +1 -1
  41. package/dist/graph/graph-store.js +48 -2
  42. package/dist/graph/types.d.ts +30 -9
  43. package/dist/graph/types.d.ts.map +1 -1
  44. package/dist/index.d.ts +0 -1
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/insights/contracts.d.ts +266 -0
  47. package/dist/insights/contracts.d.ts.map +1 -0
  48. package/dist/insights/contracts.js +124 -0
  49. package/dist/insights/insights-store.d.ts +73 -0
  50. package/dist/insights/insights-store.d.ts.map +1 -0
  51. package/dist/insights/insights-store.js +246 -0
  52. package/dist/package-metadata.d.ts +2 -0
  53. package/dist/package-metadata.d.ts.map +1 -0
  54. package/dist/package-metadata.js +9 -0
  55. package/dist/setup/package-upgrader.d.ts +54 -0
  56. package/dist/setup/package-upgrader.d.ts.map +1 -0
  57. package/dist/setup/package-upgrader.js +169 -0
  58. package/dist/setup/skill-installer.d.ts +20 -0
  59. package/dist/setup/skill-installer.d.ts.map +1 -0
  60. package/dist/setup/skill-installer.js +187 -0
  61. package/dist/storage/atlas-database.d.ts +1 -0
  62. package/dist/storage/atlas-database.d.ts.map +1 -1
  63. package/dist/storage/atlas-database.js +13 -6
  64. package/dist/world/business-map-projector.d.ts +14 -0
  65. package/dist/world/business-map-projector.d.ts.map +1 -0
  66. package/dist/world/business-map-projector.js +178 -0
  67. package/dist/world/world-graph-query.d.ts +8 -13
  68. package/dist/world/world-graph-query.d.ts.map +1 -1
  69. package/dist/world/world-graph-query.js +26 -229
  70. package/docs/README.md +30 -0
  71. package/docs/architecture/codegraph-backend.md +2 -2
  72. package/docs/architecture/continuous-business-learning.md +240 -0
  73. package/docs/contracts/cli-v1.md +62 -18
  74. package/docs/contracts/graph-model.md +11 -7
  75. package/docs/contracts/graph-patch-v1.md +8 -1
  76. package/docs/contracts/insights-v1.md +84 -0
  77. package/docs/evaluation.md +20 -15
  78. package/docs/index.md +43 -0
  79. package/docs/log.md +80 -0
  80. package/docs/product-contract.md +24 -12
  81. package/package.json +3 -1
  82. package/schemas/cli-envelope-v1.schema.json +450 -565
  83. package/schemas/evaluation-run-v1.schema.json +4 -1
  84. package/schemas/insights-envelope-v1.schema.json +428 -0
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
  <h1>Semantic Atlas</h1>
3
- <p><strong>A local, evidence-bound world map for AI coding agents.</strong></p>
4
- <p>Connect code structure to verified business meaning, then keep both revision-aware.</p>
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>
5
5
 
6
6
  <p>
7
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>
@@ -13,135 +13,261 @@
13
13
  <p><strong>English</strong> · <a href="./README.zh-CN.md">简体中文</a></p>
14
14
  </div>
15
15
 
16
- ## What is Semantic Atlas?
16
+ ## Code search is not a project understanding model
17
17
 
18
- Semantic Atlas gives coding agents one local map that joins two kinds of project knowledge:
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.
19
21
 
20
- - **Structural evidence** from TypeScript and JavaScript: files, symbols, relations, framework entry points, and unresolved boundaries.
21
- - **Agent-verified business knowledge**: capabilities, scenarios, operations, interfaces, data, rules, tests, and the evidence that supports them.
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.
22
26
 
23
- The `semantic-atlas` CLI provides deterministic, versioned JSON operations. The packaged Codex Skill teaches an agent when to query, when to return to source, and when verified knowledge should be retained.
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
24
38
 
25
- > **Query first. Confirm in source. Learn only what the evidence proves.**
39
+ ![Semantic Atlas overview showing business knowledge, structural evidence, the Agent loop, explicit uncertainty, and local storage](docs/mindmaps/semantic-atlas-overview.png)
26
40
 
27
- Source code remains authoritative. Atlas is a revision-aware projection that makes useful context reusable without pretending static analysis knows every runtime behavior.
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
+ ```
28
52
 
29
- ## Why use it?
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.
30
58
 
31
- - **Start from business meaning.** Find the capability, operation, data, and dependency path before opening a broad slice of the repository.
32
- - **Spend less source context.** Use graph evidence to choose a bounded source seed set, then read only the code needed to decide the task.
33
- - **Keep knowledge honest.** Evidence is tied to a snapshot; changed or missing evidence becomes visibly stale instead of silently remaining current.
34
- - **Preserve uncertainty.** Dynamic dispatch, reflection, unsupported structure, and unresolved targets stay explicit and route the agent back to source.
35
- - **Leave the project untouched.** Durable knowledge stays under `~/.semantic-atlas`; only a disposable CodeGraph projection enters the worktree's ignored `.atlas/` directory. Tracked source and configuration are not rewritten.
59
+ The map grows during normal engineering work:
36
60
 
37
- ## One project world map
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.
38
66
 
39
- ![Semantic Atlas capability map showing structural evidence, business knowledge, the Agent loop, one unified world map, explicit uncertainty, and local storage](docs/mindmaps/semantic-atlas-overview.png)
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
+ ```
40
88
 
41
- ## Quick start
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.
42
93
 
43
- Semantic Atlas supports Node.js 22.12 through 24 and Git worktrees containing TypeScript or JavaScript.
94
+ This workflow is delivered as one product:
44
95
 
45
- ### Install the CLI
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.
103
+
104
+ ## Install
105
+
106
+ Semantic Atlas supports Node.js 22.12 through 24 and Git repositories containing
107
+ TypeScript or JavaScript.
46
108
 
47
109
  ```sh
48
110
  npm install --global semantic-atlas
49
- semantic-atlas status --repo /path/to/project
111
+ semantic-atlas setup
112
+ semantic-atlas --version
113
+ semantic-atlas -h
50
114
  ```
51
115
 
52
- After installation, indexing and queries run locally without model or network calls. npm registry access is needed only to install the package.
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.
53
122
 
54
- ### Install the Codex Skill
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.
55
125
 
56
- Install the Skill from the repository's current `main` branch:
126
+ ### Upgrade
57
127
 
58
- ```text
59
- $skill-installer Install semantic-atlas from https://github.com/lzj960515/semantic-atlas/tree/main/.agents/skills/semantic-atlas
128
+ ```sh
129
+ semantic-atlas upgrade
60
130
  ```
61
131
 
62
- Codex can then select `$semantic-atlas` from the task description, or you can invoke it explicitly.
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.
63
137
 
64
- ### Run the first query
138
+ ## First project
65
139
 
66
- Run commands serially from the exact target worktree:
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:
67
143
 
68
144
  ```sh
69
145
  semantic-atlas status
70
146
  semantic-atlas index
71
- semantic-atlas map roots
147
+ semantic-atlas map view
72
148
  semantic-atlas map search "checkout" --limit 10
73
- semantic-atlas map show module:src --depth 1
149
+ semantic-atlas map view commerce/orders
150
+ semantic-atlas map show commerce/orders/checkout
74
151
  ```
75
152
 
76
- Every command writes one versioned JSON envelope to standard output. Diagnostics stay on standard error, so agents consume stable fields and warning codes instead of scraping prose.
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:
77
157
 
78
- ## The Agent loop
158
+ ```sh
159
+ semantic-atlas code search "CheckoutService" --limit 10
160
+ ```
79
161
 
80
- 1. **Status.** Confirm the exact repository root, snapshot freshness, and structural-backend completeness before broad source discovery.
81
- 2. **Index.** Publish or refresh the worktree-local snapshot when state is missing, stale, failed, or incomplete.
82
- 3. **Query.** Search compact business and symbol vocabulary, then traverse only the promising nodes and relationships.
83
- 4. **Confirm source.** Open the cited ranges and resolve the decisive behavior in authoritative code. Keep partial, stale, unsupported, and unknown results bounded.
84
- 5. **Do the engineering work.** The calling agent edits code, runs tests, reviews diffs, and owns Git; Atlas performs none of those actions.
85
- 6. **Reconcile and learn.** Reindex after relevant source changes, inspect semantic `changes`, and submit only durable, verified business knowledge through `learn --stdin`. Verify learned nodes with `map show`.
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.
86
165
 
87
- This loop grows the business map one verified capability at a time. It does not attempt to convert the whole repository into speculative documentation.
166
+ ## Product insights
88
167
 
89
- When `index` runs for a newly created Git worktree, Atlas automatically copies a compatible sibling CodeGraph projection and performs an incremental sync. Agents do not run a separate initialization command; a full index is used only when no compatible sibling projection is available.
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
172
 
91
- ## Measured results
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
178
 
93
- ### Frozen comparative evaluation
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.
94
184
 
95
- The retained [`fresh-agent-v1` report](evaluation/results/fresh-agent-v1/report.json) covers `framework-evaluation@fixture-v1`: 12 paired cases and 24 fresh-agent runs across NestJS, GraphQL, TypeORM, and BullMQ location and dependency-impact tasks.
185
+ ## Trust model
96
186
 
97
- | Metric | Without Atlas | With Atlas | Fixture result |
98
- | --- | ---: | ---: | --- |
99
- | Final-answer correctness | 100% | 100% | No regression |
100
- | Required-file recall | 100% | 100% | No regression |
101
- | Required-symbol recall | 100% | 100% | No regression |
102
- | Median unique source files opened | 6.5 | 4 | 38.46% fewer |
103
- | Median observed source-input tokens | 1,351 | 688 | 49.07% fewer |
187
+ Semantic Atlas is useful because it preserves the line between evidence and
188
+ understanding:
104
189
 
105
- The gate was declared before collection and all 61 routed uncertainty events were handled without a failure classification. Read the [evaluation methodology](docs/evaluation.md) and retained runs before interpreting the numbers.
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.
106
200
 
107
- These are fixture-scoped comparative results. They do **not** establish universal business accuracy, performance on every repository, or total model-token savings; the token metric counts observed source input under `tiktoken-o200k_base-v1`.
201
+ ## Local storage
108
202
 
109
- ### Public workflow validation
203
+ ```text
204
+ ~/.semantic-atlas/repositories/<repository-id>/
205
+ └── atlas.db durable repository business knowledge
110
206
 
111
- An isolated TypeScript project was used to validate the public installation path with the registry-installed CLI and the Skill from this repository:
207
+ ~/.semantic-atlas/
208
+ └── insights.db installation-level usage and feedback signals
112
209
 
113
- - A first fresh agent completed `missing → index → query → source confirmation → learn`.
114
- - A second fresh agent discovered and reused the persisted knowledge through normal `status`, search, roots, and show commands without receiving the previous answer or repeating `learn`.
115
- - The target revision and ordinary Git status stayed unchanged; durable knowledge lived in the user Atlas home and the worktree contained only ignored CodeGraph state.
210
+ <worktree>/.atlas/
211
+ ├── .gitignore
212
+ └── codegraph.db disposable structural projection
213
+ ```
116
214
 
117
- This validates installation, the Agent workflow, knowledge reuse, and zero-intrusion behavior in that project. It is not a universal accuracy benchmark or a production-stability claim.
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.
118
220
 
119
- ## Evidence, uncertainty, and storage
221
+ Set an absolute `SEMANTIC_ATLAS_HOME` when tests or CI need isolated durable
222
+ state.
120
223
 
121
- | Boundary | Contract |
122
- | --- | --- |
123
- | Source authority | Every answer-controlling claim is confirmed in source; Atlas context never overrides the checked-out code. |
124
- | Evidence validity | Business assertions carry source locators, hashes, certainty, and snapshot-derived validity. Failed rebinding produces `stale`, not silent deletion or promotion. |
125
- | Explicit uncertainty | `UnknownBoundary`, `partial`, `unsupported`, `hypothesis`, and insufficient results narrow source fallback; they are never presented as exact facts. |
126
- | One product | The CLI and Skill expose one Semantic Atlas workflow. CodeGraph stays behind the adapter and its CLI, MCP, schema, and backend types are not public Atlas interfaces. |
127
- | Durable repository knowledge | `~/.semantic-atlas/repositories/<repository-id>/atlas.db` stores repository-wide business knowledge, snapshots, snapshot bindings, validity, and worktree publication state. Set absolute `SEMANTIC_ATLAS_HOME` only when tests or CI need isolation. |
128
- | Disposable worktree projection | Each worktree owns `.atlas/codegraph.db`, containing CodeGraph structure only. A missing projection is bootstrapped from a compatible sibling and incrementally synchronized. |
129
- | Zero intrusion | Atlas prepares `.atlas/.gitignore`, writes no tracked source or project configuration, and does not edit, test, review, commit, merge, or release code. Removing a worktree removes only its disposable projection. |
224
+ ## Evidence from the frozen evaluation
130
225
 
131
- ## CLI and development
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.
229
+
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 |
237
+
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.
241
+
242
+ ## Command reference
132
243
 
133
244
  ```text
245
+ semantic-atlas setup
246
+ semantic-atlas upgrade
247
+ semantic-atlas -h | --help
248
+ semantic-atlas --version
249
+
134
250
  semantic-atlas status [--repo <path>] [--pretty]
135
251
  semantic-atlas index [--repo <path>] [--pretty]
136
- semantic-atlas map roots [--repo <path>] [--pretty]
137
- semantic-atlas map search <query> [--limit <n>] [--repo <path>] [--pretty]
138
- semantic-atlas map children <node-id> [--repo <path>] [--pretty]
139
- semantic-atlas map show <node-id> [--depth <n>] [--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]
140
256
  semantic-atlas learn --stdin [--repo <path>] [--pretty]
141
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]
142
263
  ```
143
264
 
144
- Field-level behavior lives in the versioned [CLI v1](docs/contracts/cli-v1.md) and [GraphPatch v1](docs/contracts/graph-patch-v1.md) contracts.
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).
269
+
270
+ ## Develop
145
271
 
146
272
  ```sh
147
273
  corepack enable
@@ -152,15 +278,18 @@ pnpm build
152
278
  pnpm package:verify
153
279
  ```
154
280
 
155
- `package:verify` installs the packed artifact into an external temporary consumer and runs the real CLI. `validation:backend` adds the pinned CodeGraph projection, recovery, rebinding, sibling-bootstrap, and worktree-isolation gate.
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.
156
284
 
157
- ## Reference
285
+ ## Read next
158
286
 
159
287
  - [Product contract](docs/product-contract.md)
288
+ - [Continuous business learning and semantic zoom](docs/architecture/continuous-business-learning.md)
160
289
  - [Graph model](docs/contracts/graph-model.md)
161
- - [CodeGraph backend architecture](docs/architecture/codegraph-backend.md)
162
- - [Fresh Agent evaluation protocol](docs/evaluation.md)
163
- - [Published evaluation artifacts](evaluation/results/fresh-agent-v1/README.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)
164
293
 
165
294
  ## License
166
295