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.
- package/.agents/skills/semantic-atlas/SKILL.md +3 -0
- package/.agents/skills/semantic-atlas/references/product-feedback.md +34 -0
- package/.agents/skills/semantic-atlas-insights/SKILL.md +55 -0
- package/README.md +203 -88
- package/README.zh-CN.md +181 -85
- package/dist/cli/argument-parser.js +9 -1
- package/dist/cli/bin.js +10 -2
- package/dist/cli/cli-application.d.ts +1 -0
- package/dist/cli/cli-application.d.ts.map +1 -1
- package/dist/cli/cli-application.js +64 -12
- package/dist/cli/insights-cli.d.ts +6 -0
- package/dist/cli/insights-cli.d.ts.map +1 -0
- package/dist/cli/insights-cli.js +236 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +94 -2
- package/dist/cli/standalone-cli.d.ts.map +1 -1
- package/dist/cli/standalone-cli.js +36 -5
- package/dist/cli/types.d.ts +2 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/contracts/cli.d.ts +63 -0
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/cli.js +7 -0
- package/dist/contracts/insights.d.ts +2 -0
- package/dist/contracts/insights.d.ts.map +1 -0
- package/dist/contracts/insights.js +1 -0
- package/dist/contracts/public-contracts.d.ts +1 -0
- package/dist/contracts/public-contracts.d.ts.map +1 -1
- package/dist/contracts/public-contracts.js +1 -0
- package/dist/insights/contracts.d.ts +266 -0
- package/dist/insights/contracts.d.ts.map +1 -0
- package/dist/insights/contracts.js +124 -0
- package/dist/insights/insights-store.d.ts +73 -0
- package/dist/insights/insights-store.d.ts.map +1 -0
- package/dist/insights/insights-store.js +246 -0
- package/dist/setup/package-upgrader.d.ts +54 -0
- package/dist/setup/package-upgrader.d.ts.map +1 -0
- package/dist/setup/package-upgrader.js +169 -0
- package/dist/setup/skill-installer.d.ts +3 -2
- package/dist/setup/skill-installer.d.ts.map +1 -1
- package/dist/setup/skill-installer.js +67 -36
- package/dist/storage/atlas-database.d.ts +1 -0
- package/dist/storage/atlas-database.d.ts.map +1 -1
- package/dist/storage/atlas-database.js +13 -6
- package/docs/contracts/cli-v1.md +25 -4
- package/docs/contracts/insights-v1.md +84 -0
- package/docs/index.md +2 -0
- package/docs/log.md +24 -0
- package/docs/product-contract.md +15 -8
- package/package.json +3 -1
- package/schemas/cli-envelope-v1.schema.json +85 -1
- 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>
|
|
4
|
-
<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
|
-
##
|
|
16
|
+
## Code search is not a project understanding model
|
|
17
17
|
|
|
18
|
-
|
|
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
|
-
|
|
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.
|
|
22
26
|
|
|
23
|
-
|
|
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
|
+

|
|
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
|
-
|
|
59
|
+
The map grows during normal engineering work:
|
|
26
60
|
|
|
27
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
104
|
+
## Install
|
|
51
105
|
|
|
52
|
-
|
|
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
|
|
113
|
+
semantic-atlas -h
|
|
59
114
|
```
|
|
60
115
|
|
|
61
|
-
`setup` installs the
|
|
62
|
-
`~/.agents/skills/semantic-atlas
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
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
|
-
###
|
|
126
|
+
### Upgrade
|
|
71
127
|
|
|
72
|
-
|
|
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
|
-
|
|
83
|
-
`setup`, `-h`/`--help`, and `--version`
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
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
|
-
|
|
185
|
+
## Trust model
|
|
104
186
|
|
|
105
|
-
|
|
187
|
+
Semantic Atlas is useful because it preserves the line between evidence and
|
|
188
|
+
understanding:
|
|
106
189
|
|
|
107
|
-
|
|
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
|
-
|
|
201
|
+
## Local storage
|
|
110
202
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
207
|
+
~/.semantic-atlas/
|
|
208
|
+
└── insights.db installation-level usage and feedback signals
|
|
120
209
|
|
|
121
|
-
|
|
210
|
+
<worktree>/.atlas/
|
|
211
|
+
├── .gitignore
|
|
212
|
+
└── codegraph.db disposable structural projection
|
|
213
|
+
```
|
|
122
214
|
|
|
123
|
-
|
|
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
|
-
|
|
221
|
+
Set an absolute `SEMANTIC_ATLAS_HOME` when tests or CI need isolated durable
|
|
222
|
+
state.
|
|
126
223
|
|
|
127
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
##
|
|
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
|
|
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
|
|
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
|
-
##
|
|
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
|
-
- [
|
|
176
|
-
- [
|
|
177
|
-
- [
|
|
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
|
|