semantic-atlas 0.2.0 → 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 (51) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +3 -0
  2. package/.agents/skills/semantic-atlas/references/product-feedback.md +34 -0
  3. package/.agents/skills/semantic-atlas-insights/SKILL.md +55 -0
  4. package/README.md +203 -88
  5. package/README.zh-CN.md +181 -85
  6. package/dist/cli/argument-parser.js +9 -1
  7. package/dist/cli/bin.js +10 -2
  8. package/dist/cli/cli-application.d.ts +1 -0
  9. package/dist/cli/cli-application.d.ts.map +1 -1
  10. package/dist/cli/cli-application.js +64 -12
  11. package/dist/cli/insights-cli.d.ts +6 -0
  12. package/dist/cli/insights-cli.d.ts.map +1 -0
  13. package/dist/cli/insights-cli.js +236 -0
  14. package/dist/cli/main.d.ts.map +1 -1
  15. package/dist/cli/main.js +94 -2
  16. package/dist/cli/standalone-cli.d.ts.map +1 -1
  17. package/dist/cli/standalone-cli.js +36 -5
  18. package/dist/cli/types.d.ts +2 -0
  19. package/dist/cli/types.d.ts.map +1 -1
  20. package/dist/contracts/cli.d.ts +63 -0
  21. package/dist/contracts/cli.d.ts.map +1 -1
  22. package/dist/contracts/cli.js +7 -0
  23. package/dist/contracts/insights.d.ts +2 -0
  24. package/dist/contracts/insights.d.ts.map +1 -0
  25. package/dist/contracts/insights.js +1 -0
  26. package/dist/contracts/public-contracts.d.ts +1 -0
  27. package/dist/contracts/public-contracts.d.ts.map +1 -1
  28. package/dist/contracts/public-contracts.js +1 -0
  29. package/dist/insights/contracts.d.ts +266 -0
  30. package/dist/insights/contracts.d.ts.map +1 -0
  31. package/dist/insights/contracts.js +124 -0
  32. package/dist/insights/insights-store.d.ts +73 -0
  33. package/dist/insights/insights-store.d.ts.map +1 -0
  34. package/dist/insights/insights-store.js +246 -0
  35. package/dist/setup/package-upgrader.d.ts +54 -0
  36. package/dist/setup/package-upgrader.d.ts.map +1 -0
  37. package/dist/setup/package-upgrader.js +169 -0
  38. package/dist/setup/skill-installer.d.ts +3 -2
  39. package/dist/setup/skill-installer.d.ts.map +1 -1
  40. package/dist/setup/skill-installer.js +67 -36
  41. package/dist/storage/atlas-database.d.ts +1 -0
  42. package/dist/storage/atlas-database.d.ts.map +1 -1
  43. package/dist/storage/atlas-database.js +13 -6
  44. package/docs/contracts/cli-v1.md +25 -4
  45. package/docs/contracts/insights-v1.md +84 -0
  46. package/docs/index.md +2 -0
  47. package/docs/log.md +24 -0
  48. package/docs/product-contract.md +15 -8
  49. package/package.json +3 -1
  50. package/schemas/cli-envelope-v1.schema.json +85 -1
  51. package/schemas/insights-envelope-v1.schema.json +428 -0
@@ -150,6 +150,9 @@ Load detailed procedures only after their matching observable state:
150
150
  competing, or otherwise `insufficient` result.
151
151
  - Read [GraphPatch authoring](references/graph-patch.md) only when the
152
152
  knowledge-capture decision identifies durable verified knowledge to persist.
153
+ - Read [product feedback](references/product-feedback.md) only when source
154
+ confirmation shows that Atlas materially blocked or slowed the completed
155
+ task, or produced a confirmed misleading result.
153
156
 
154
157
  ## Answer contract
155
158
 
@@ -0,0 +1,34 @@
1
+ # Product feedback
2
+
3
+ Use this procedure after the primary engineering task has recovered or reached
4
+ its normal conclusion. It records confirmed product friction without adding a
5
+ step to ordinary development work.
6
+
7
+ Report only an observed, source-confirmed Atlas issue that materially blocked
8
+ or slowed the task, or a concrete improvement that follows from that evidence.
9
+ Keep the report compact and omit prompts, query text, source text, command
10
+ output, credentials, and unrelated task details.
11
+
12
+ Send one JSON value through the project command:
13
+
14
+ ```bash
15
+ semantic-atlas feedback report --stdin <<'JSON'
16
+ {
17
+ "kind": "problem",
18
+ "category": "misleading-result",
19
+ "impact": "slowed",
20
+ "observed": "The cited operation was unrelated after source confirmation.",
21
+ "expected": "The result should identify a narrower evidence path.",
22
+ "sourceConfirmed": true
23
+ }
24
+ JSON
25
+ ```
26
+
27
+ Choose `kind` as `problem` or `suggestion`; use one category from
28
+ `misleading-result`, `missing-knowledge`, `workflow-friction`, `performance`,
29
+ `cli-error`, or `skill-instruction`; and select impact as `blocked`, `slowed`,
30
+ or `minor`. The command links the most recent local command events for that
31
+ repository without storing their arguments or outputs.
32
+
33
+ This feedback is product-operational data, not business knowledge. Continue the
34
+ task's normal knowledge-capture decision independently.
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: semantic-atlas-insights
3
+ description: "Review Semantic Atlas local usage statistics and triage evidence-backed Agent feedback during routine product maintenance, daily operational review, or an Atlas effectiveness evaluation."
4
+ compatibility: "Requires Node.js 22.12 through 24 and the semantic-atlas CLI."
5
+ ---
6
+
7
+ # Semantic Atlas Insights
8
+
9
+ Review the local, installation-scoped evidence that shows whether Semantic
10
+ Atlas is being used and where it creates confirmed friction. This maintenance
11
+ workflow is independent of a normal engineering task's business-understanding
12
+ loop, so load it for a deliberate review rather than routine development work.
13
+
14
+ The store records command name, outcome, exit code, warning codes, duration,
15
+ repository identity, and snapshot identity. It never records command arguments,
16
+ prompts, source text, or command output. Feedback text is explicit Agent input,
17
+ so keep it concise and free of sensitive or unrelated task details.
18
+
19
+ ## Daily review
20
+
21
+ 1. Start with `semantic-atlas insights summary --period yesterday` to inspect
22
+ total commands, outcomes, warning-code counts, and feedback categories.
23
+ 2. Run `semantic-atlas insights feedback --period yesterday --status new` to
24
+ read untriaged reports with their linked local command-event IDs.
25
+ 3. Classify each report from its stated evidence. Start a normal engineering
26
+ investigation only when the report needs reproduction or source confirmation.
27
+ 4. Record the maintenance decision with `semantic-atlas insights feedback update
28
+ --stdin`. Use `triaged` for a confirmed follow-up, `resolved` for a completed
29
+ improvement, and `dismissed` when the evidence does not establish a product
30
+ issue. Include a brief reason in `note`.
31
+
32
+ Use `--period today`, `yesterday`, `7d`, `30d`, or `all` for a scoped review.
33
+ The default period is `today`; `--pretty` formats the versioned JSON envelope.
34
+
35
+ ## Triage input
36
+
37
+ ```bash
38
+ semantic-atlas insights feedback update --stdin <<'JSON'
39
+ {
40
+ "id": "00000000-0000-4000-8000-000000000000",
41
+ "status": "triaged",
42
+ "note": "Reproduce against the reported snapshot before changing the map query."
43
+ }
44
+ JSON
45
+ ```
46
+
47
+ ## Evaluation boundary
48
+
49
+ Treat the metrics as product signals, not a recall or task-quality score by
50
+ themselves. Correlate trends with fresh-agent task evaluation, source-confirmed
51
+ reports, and the relevant repository's tests before making product claims.
52
+
53
+ Semantic Atlas Insights owns local review and feedback triage. The normal
54
+ `semantic-atlas` Skill owns business understanding, source confirmation, and
55
+ knowledge capture during engineering work.
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,138 +13,240 @@
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
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.
24
58
 
25
- > **Query first. Confirm in source. Learn only what the evidence proves.**
59
+ The map grows during normal engineering work:
26
60
 
27
- Source code remains authoritative. Atlas is a revision-aware projection that makes useful context reusable without pretending static analysis knows every runtime behavior.
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.
28
66
 
29
- ## Why use it?
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.
30
72
 
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.
73
+ ## What the agent actually does
36
74
 
37
- ## One project world map
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
+ ```
38
88
 
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)
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.
40
93
 
41
- Atlas stores one canonical business graph rather than separate overview and
42
- detail maps. `map view` shows its current visible frontier: start at parentless
43
- world regions, zoom into a business key, follow breadcrumbs and related context
44
- regions, and keep zooming until the relevant operation, data, or rule is visible.
45
- Cross-region connections summarize the verified deeper relations that contribute
46
- to the current view without persisting invented high-level facts.
94
+ This workflow is delivered as one product:
47
95
 
48
- ## Quick start
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.
49
103
 
50
- Semantic Atlas supports Node.js 22.12 through 24 and Git worktrees containing TypeScript or JavaScript.
104
+ ## Install
51
105
 
52
- ### Install the CLI
106
+ Semantic Atlas supports Node.js 22.12 through 24 and Git repositories containing
107
+ TypeScript or JavaScript.
53
108
 
54
109
  ```sh
55
110
  npm install --global semantic-atlas
56
111
  semantic-atlas setup
57
112
  semantic-atlas --version
58
- semantic-atlas status --repo /path/to/project
113
+ semantic-atlas -h
59
114
  ```
60
115
 
61
- `setup` installs the exact Skill bundled with the current package into
62
- `~/.agents/skills/semantic-atlas`. Run it again after upgrading the npm package
63
- to update the managed Skill. It also removes a recognized legacy copy from
64
- `~/.codex/skills/semantic-atlas`, preventing an older duplicate from taking
65
- precedence. Codex and other compatible agents can then select `$semantic-atlas`
66
- from the task description, or you can invoke it explicitly.
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.
67
122
 
68
- After installation, indexing and queries run locally without model or network calls. npm registry access is needed only to install or update the package.
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.
69
125
 
70
- ### Run the first query
126
+ ### Upgrade
71
127
 
72
- Run commands serially from the exact target worktree:
128
+ ```sh
129
+ semantic-atlas upgrade
130
+ ```
131
+
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:
73
143
 
74
144
  ```sh
75
145
  semantic-atlas status
76
146
  semantic-atlas index
77
147
  semantic-atlas map view
78
148
  semantic-atlas map search "checkout" --limit 10
149
+ semantic-atlas map view commerce/orders
150
+ semantic-atlas map show commerce/orders/checkout
151
+ ```
152
+
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:
157
+
158
+ ```sh
79
159
  semantic-atlas code search "CheckoutService" --limit 10
80
160
  ```
81
161
 
82
- Every project command writes one versioned JSON envelope to standard output.
83
- `setup`, `-h`/`--help`, and `--version` are repository-independent text
84
- commands. Diagnostics stay on standard error, so agents consume stable project
85
- fields and warning codes instead of scraping prose.
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
- On a newly indexed project, the world `map view` may return `regions: []` with
88
- `BUSINESS_KNOWLEDGE_EMPTY`. That is the honest starting state: map commands
89
- contain business knowledge only, while explicit `code search` provides bounded
90
- CodeGraph evidence for the active task.
166
+ ## Product insights
91
167
 
92
- ## The Agent loop
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:
93
172
 
94
- 1. **Status.** Confirm the exact repository root, snapshot freshness, and structural-backend completeness before broad source discovery.
95
- 2. **Index.** Publish or refresh the worktree-local snapshot when state is missing, stale, failed, or incomplete.
96
- 3. **Query.** Start from the business world, search business vocabulary, zoom through relevant regions, and show direct evidence. Use `code search` only when the business map is absent or insufficient.
97
- 4. **Confirm source.** Open the cited ranges and resolve the decisive behavior in authoritative code. Keep partial, stale, unsupported, and unknown results bounded.
98
- 5. **Do the engineering work.** The calling agent edits code, runs tests, reviews diffs, and owns Git; Atlas performs none of those actions.
99
- 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`.
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
+ ```
100
178
 
101
- This loop grows and reorganizes the business map one verified business area at a time. A parentless operation can be a provisional root; later work can place it beneath a broader concept without changing its stable key or evidence. Atlas does not require an upfront repository-wide business-learning pass.
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.
102
184
 
103
- 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.
185
+ ## Trust model
104
186
 
105
- ## Measured results
187
+ Semantic Atlas is useful because it preserves the line between evidence and
188
+ understanding:
106
189
 
107
- ### Frozen comparative evaluation
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.
108
200
 
109
- 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.
201
+ ## Local storage
110
202
 
111
- | Metric | Without Atlas | With Atlas | Fixture result |
112
- | --- | ---: | ---: | --- |
113
- | Final-answer correctness | 100% | 100% | No regression |
114
- | Required-file recall | 100% | 100% | No regression |
115
- | Required-symbol recall | 100% | 100% | No regression |
116
- | Median unique source files opened | 6.5 | 4 | 38.46% fewer |
117
- | Median observed source-input tokens | 1,351 | 688 | 49.07% fewer |
203
+ ```text
204
+ ~/.semantic-atlas/repositories/<repository-id>/
205
+ └── atlas.db durable repository business knowledge
118
206
 
119
- 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.
207
+ ~/.semantic-atlas/
208
+ └── insights.db installation-level usage and feedback signals
120
209
 
121
- 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`.
210
+ <worktree>/.atlas/
211
+ ├── .gitignore
212
+ └── codegraph.db disposable structural projection
213
+ ```
122
214
 
123
- ### Public workflow validation
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.
124
220
 
125
- An isolated TypeScript project was used to validate the public installation path with the registry-installed CLI and the Skill from this repository:
221
+ Set an absolute `SEMANTIC_ATLAS_HOME` when tests or CI need isolated durable
222
+ state.
126
223
 
127
- - A first fresh agent completed `missing → index → query → source confirmation → learn`.
128
- - A second fresh agent discovered and reused the persisted knowledge through normal status, business navigation, search, and show commands without receiving the previous answer or repeating `learn`.
129
- - 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.
224
+ ## Evidence from the frozen evaluation
130
225
 
131
- 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.
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.
132
229
 
133
- ## Evidence, uncertainty, and storage
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 |
134
237
 
135
- | Boundary | Contract |
136
- | --- | --- |
137
- | Source authority | Every answer-controlling claim is confirmed in source; Atlas context never overrides the checked-out code. |
138
- | Evidence validity | Business assertions carry source locators, hashes, certainty, and snapshot-derived validity. Failed rebinding produces `stale`, not silent deletion or promotion. |
139
- | Explicit uncertainty | `UnknownBoundary`, `partial`, `unsupported`, `hypothesis`, and insufficient results narrow source fallback; they are never presented as exact facts. |
140
- | 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. |
141
- | 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. |
142
- | 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. |
143
- | 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. |
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.
144
241
 
145
- ## CLI and development
242
+ ## Command reference
146
243
 
147
244
  ```text
245
+ semantic-atlas setup
246
+ semantic-atlas upgrade
247
+ semantic-atlas -h | --help
248
+ semantic-atlas --version
249
+
148
250
  semantic-atlas status [--repo <path>] [--pretty]
149
251
  semantic-atlas index [--repo <path>] [--pretty]
150
252
  semantic-atlas map view [business-key] [--repo <path>] [--pretty]
@@ -153,9 +255,19 @@ semantic-atlas map show <business-key> [--repo <path>] [--pretty]
153
255
  semantic-atlas code search <structural-term> [--limit <n>] [--repo <path>] [--pretty]
154
256
  semantic-atlas learn --stdin [--repo <path>] [--pretty]
155
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]
156
263
  ```
157
264
 
158
- 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
159
271
 
160
272
  ```sh
161
273
  corepack enable
@@ -166,15 +278,18 @@ pnpm build
166
278
  pnpm package:verify
167
279
  ```
168
280
 
169
- `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.
170
284
 
171
- ## Reference
285
+ ## Read next
172
286
 
173
287
  - [Product contract](docs/product-contract.md)
288
+ - [Continuous business learning and semantic zoom](docs/architecture/continuous-business-learning.md)
174
289
  - [Graph model](docs/contracts/graph-model.md)
175
- - [CodeGraph backend architecture](docs/architecture/codegraph-backend.md)
176
- - [Fresh Agent evaluation protocol](docs/evaluation.md)
177
- - [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)
178
293
 
179
294
  ## License
180
295