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
@@ -12,8 +12,14 @@ revision-aware projection that supplies bounded evidence, business context,
12
12
  certainty, validity, and explicit structural limits.
13
13
 
14
14
  The calling Agent owns task interpretation, source changes, tests, Git, and
15
- review. The CLI accepts lexical queries, graph identifiers, snapshot identifiers,
16
- and structured GraphPatch input; it does not interpret natural-language tasks.
15
+ review. The CLI accepts business vocabulary, stable business keys, structural
16
+ search terms, snapshot identifiers, and structured GraphPatch input; it does
17
+ not interpret natural-language tasks.
18
+
19
+ Business knowledge grows during real engineering tasks. Indexing publishes
20
+ structural evidence and refreshes existing assertions; it does not invent an
21
+ upfront business map. A root is any currently parentless business node, and a
22
+ later verified task may place that root beneath a newly discovered parent.
17
23
 
18
24
  ## Required business-understanding loop
19
25
 
@@ -26,15 +32,15 @@ and structured GraphPatch input; it does not interpret natural-language tasks.
26
32
  3. Start with `semantic-atlas status` before broad source discovery. Read the
27
33
  versioned envelope, `data.freshness`, snapshot, warnings, and
28
34
  `data.backend.completeness` by stable fields and codes.
29
- 4. Complete the matching procedure in [Conditional references](#conditional-references)
30
- as soon as the observed status needs indexing or bootstrap.
31
- 5. Query the current map with compact task vocabulary before broad source
32
- search. Let map evidence, owners, candidates, and unknown boundaries define
33
- the initial source seed set.
34
- 6. Classify the map response and complete every triggered reference before
35
- source confirmation. Relevant structural nodes with no relevant business
36
- node trigger snapshot bootstrap; weak, partial, unknown, unsupported, or
37
- otherwise insufficient results trigger result routing.
35
+ 4. Complete the matching snapshot-bootstrap procedure as soon as status reports
36
+ missing, stale, failed, or incomplete publication state.
37
+ 5. Query the business world before broad source search: inspect the world
38
+ `map view`, search compact business vocabulary, then zoom into and show the
39
+ most relevant business region.
40
+ 6. Classify the business response and complete every triggered reference before
41
+ source confirmation. `BUSINESS_KNOWLEDGE_EMPTY`, weak, partial, stale,
42
+ unsupported, or otherwise insufficient business results trigger result
43
+ routing and explicit task-scoped `code search` fallback.
38
44
  7. Open cited ranges and confirm decisive behavior in authoritative source.
39
45
  Follow only the dependencies, interfaces, data, invariants, or tests needed
40
46
  to answer or change the behavior.
@@ -47,23 +53,27 @@ and structured GraphPatch input; it does not interpret natural-language tasks.
47
53
 
48
54
  Extract two to four compact concepts from the task: business vocabulary,
49
55
  likely symbols, interfaces or data, and dependency or impact terms. Query them
50
- in this order as useful:
51
-
52
- 1. Use `semantic-atlas map search <query> [--limit <n>]` for each distinct
53
- lexical concept.
54
- 2. Use `semantic-atlas map show <node-id> [--depth <n>]` on promising business
55
- or structural nodes. Begin at depth 1 and expand to 2 or 3 only for a needed
56
- dependency path.
57
- 3. Use `semantic-atlas map children <node-id>` to descend business `part_of` or
58
- structural `contains` hierarchies.
59
- 4. Use `semantic-atlas map roots` when the task crosses capabilities, the
60
- initial vocabulary is weak, or the current map has no relevant business root.
61
-
62
- When search and roots return relevant structural nodes but no relevant business
63
- node, read snapshot bootstrap before opening source. That state starts the
64
- incremental business-map path rather than the abnormal-result path alone.
65
-
66
- Treat search score as ranking rather than certainty. Stop map traversal when it
56
+ in this order:
57
+
58
+ 1. Run `semantic-atlas map view` to see the current world regions and
59
+ cross-region business connections.
60
+ 2. Use `semantic-atlas map search <business-term> [--limit <n>]` for distinct
61
+ business concepts that are not obvious from the world view.
62
+ 3. Use `semantic-atlas map view <business-key>` to zoom one level at a time.
63
+ Follow `breadcrumbs`, `child` regions, `context` regions, and connection
64
+ summaries until the task's owning business area is visible.
65
+ 4. Use `semantic-atlas map show <business-key>` to inspect the selected
66
+ assertion, its direct business relationships, and direct structural evidence.
67
+ 5. When the map is empty or insufficient, use
68
+ `semantic-atlas code search <structural-term> [--limit <n>]` for likely
69
+ symbols, interfaces, data, or framework entry points. Open the returned
70
+ source locations directly.
71
+
72
+ An empty business world is a normal continuous-learning state. Structural
73
+ results provide a bounded evidence path for the active task and never become a
74
+ second map or substitute business regions.
75
+
76
+ Treat search score as ranking rather than certainty. Stop semantic zoom when it
67
77
  identifies the necessary symbols, files, relationships, evidence, and explicit
68
78
  uncertainty. If the map remains weak, use its best seeds for bounded source
69
79
  inspection and route the observed weak state through the conditional reference.
@@ -81,9 +91,9 @@ certainty, and evidence validity separate:
81
91
  - `stale`, `unknown`, `unsupported`, `partial`, and `insufficient` results bound
82
92
  source fallback rather than authorizing a decisive claim.
83
93
 
84
- Preserve every owner-linked unknown boundary with its reason, location, and
85
- finite candidates. Source inspection may resolve the task while the Atlas
86
- boundary remains honestly unknown.
94
+ When index warnings or source reveal dynamic ambiguity, preserve the unresolved
95
+ boundary in the task conclusion. Source inspection may resolve the current task
96
+ without turning the structural ambiguity into an exact Atlas claim.
87
97
 
88
98
  ## After source changes
89
99
 
@@ -106,34 +116,43 @@ source as authority.
106
116
  Before completing every supported task, classify the business meaning learned
107
117
  during source confirmation:
108
118
 
109
- - Persist every new durable, verified `Capability`, `Scenario`, `Operation`,
110
- `Invariant`, `Interface`, or `Data` concept, plus every supported relationship
111
- between them, when missing or insufficient Atlas knowledge caused the source
112
- inspection.
113
- - Keep transient or unverified observations only in task context. Examples
114
- include debugging symptoms, one-off implementation notes, tentative runtime
115
- paths, Git facts, and hypotheses that lack durable evidence.
116
- - When current Atlas knowledge already expresses the verified business meaning,
117
- reuse it and avoid a duplicate patch.
119
+ - `reuse`: current knowledge already expresses the verified business meaning;
120
+ - `extend`: add a durable, verified `Capability`, `Scenario`, `Operation`,
121
+ `Invariant`, `Interface`, or `Data` concept or supported relationship;
122
+ - `introduce`: create a verified concept as a provisional root when no credible
123
+ parent is known yet;
124
+ - `reparent`: attach an existing node or subtree to a newly verified parent while
125
+ preserving its key, evidence, and non-hierarchy relationships;
126
+ - `refine`: update an existing kind, label, summary, aliases, certainty, or
127
+ evidence when source proves a better assertion;
128
+ - `transient`: keep transient or unverified observations only in task context,
129
+ including symptoms, one-off notes, tentative runtime paths, Git facts, and
130
+ hypotheses without durable evidence.
131
+
132
+ Persist every new durable, verified concept and supported relationship that
133
+ will help a later task. Reuse current knowledge without a duplicate patch when
134
+ it already captures the result.
118
135
 
119
136
  When durable knowledge exists, read GraphPatch authoring, recheck status, submit
120
137
  one atomic patch with `semantic-atlas learn --stdin`, then run
121
138
  `semantic-atlas map show <learned-key>` to verify current validity, certainty,
122
139
  evidence, and relationships. The verified node must be reusable by a later
123
- fresh task through normal map search and traversal.
140
+ fresh task through world view, business search, semantic zoom, and direct show.
124
141
 
125
142
  ## Conditional references
126
143
 
127
144
  Load detailed procedures only after their matching observable state:
128
145
 
129
146
  - Read [snapshot bootstrap](references/snapshot-bootstrap.md) only when status
130
- reports `missing`, `stale`, or incomplete state; a current map has no relevant
131
- business knowledge; or the user explicitly requests project initialization.
147
+ reports `missing`, `stale`, failed, or incomplete state.
132
148
  - Read [result routing](references/result-routing.md) only when a command returns
133
149
  an error, warning, `hypothesis`, `unknown`, `unsupported`, `partial`, empty,
134
150
  competing, or otherwise `insufficient` result.
135
151
  - Read [GraphPatch authoring](references/graph-patch.md) only when the
136
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.
137
156
 
138
157
  ## Answer contract
139
158
 
@@ -99,9 +99,11 @@ Node kinds:
99
99
  - `Interface`: an API, event, queue, or integration contract;
100
100
  - `Data`: a business data concept or persisted record.
101
101
 
102
- Use stable lowercase hierarchical keys such as
103
- `<domain>/<capability>/<concept>`. Labels and aliases provide vocabulary;
104
- summaries state evidence-bound assertions.
102
+ Use stable lowercase slash-separated keys such as
103
+ `<namespace>/<concept>`. A key is durable vocabulary identity; its readable
104
+ namespace does not define its hierarchy. Labels and aliases provide vocabulary,
105
+ summaries state evidence-bound assertions, and `part_of` alone defines current
106
+ placement. Preserve a node's key when its parent changes.
105
107
 
106
108
  Business relation types:
107
109
 
@@ -120,6 +122,19 @@ Every learned relation originates at a business node.
120
122
  - A structural target is `{ "domain": "structural", "id": "symbol:..." }` or
121
123
  a current `test:...` declaration ID.
122
124
 
125
+ ## Hierarchy and reparenting
126
+
127
+ Any business node kind may be a provisional root while no verified parent is
128
+ known. Each node has at most one outgoing `part_of` parent, and the complete
129
+ `part_of` graph remains acyclic.
130
+
131
+ When later work verifies a different or broader parent, submit one patch that
132
+ can upsert the parent, remove the old `part_of`, and upsert the new `part_of`.
133
+ Keep the moved node and descendants unchanged so their keys, evidence, and
134
+ non-hierarchy relationships remain reusable. Atlas validates the final graph
135
+ after removals and rejects the whole patch when it would create a second parent
136
+ or a cycle.
137
+
123
138
  ## Evidence
124
139
 
125
140
  Every upserted node summary and relation includes at least one evidence item:
@@ -136,7 +151,8 @@ Every upserted node summary and relation includes at least one evidence item:
136
151
  }
137
152
  ```
138
153
 
139
- Copy structural identity, path, range, and hash from a current Atlas map result.
154
+ Copy structural identity, path, range, and hash from a current `code search` or
155
+ direct `map show` evidence result.
140
156
  Atlas validates that the symbol resolves, path and range match, and file hash is
141
157
  current. Evidence outside the worktree or fabricated from source text is not a
142
158
  valid binding.
@@ -170,4 +186,5 @@ partially replaying operations.
170
186
 
171
187
  After success, inspect the returned operation counts and run `map show` for the
172
188
  learned key. Confirm its certainty, `valid` status, evidence, and intended
173
- relationships before relying on it in later tasks.
189
+ relationships, then use `map view` at the world and parent levels to confirm its
190
+ placement before relying on it in later tasks.
@@ -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.
@@ -34,33 +34,46 @@ individually.
34
34
 
35
35
  ## Query results
36
36
 
37
+ ### Empty business knowledge
38
+
39
+ `BUSINESS_KNOWLEDGE_EMPTY` with `data.command: "map.view"` and `regions: []`
40
+ means the structural snapshot is usable but no verified business node has been
41
+ learned yet. Treat it as a normal task-driven learning state:
42
+
43
+ 1. Confirm the world view is empty, then run `code search` with the active
44
+ task's likely symbols, interfaces, data names, or framework entry points.
45
+ 2. Inspect only the structural relationships and source ranges needed for the
46
+ current engineering task.
47
+ 3. Complete and verify the engineering work with source as authority.
48
+ 4. At knowledge capture, introduce durable verified concepts as provisional
49
+ roots or attach them to any parent established during the task.
50
+
51
+ Structural nodes remain source-navigation evidence and never substitute for
52
+ business regions.
53
+
37
54
  ### Empty or weak search
38
55
 
39
- 1. Reduce the task to business vocabulary, exact symbol fragments, paths,
40
- interface names, data names, and framework-owned terms.
41
- 2. Try up to two materially different lexical formulations rather than many
42
- cosmetic variants.
43
- 3. Inspect `map roots` and the closest owning hierarchy.
44
- 4. Use any returned locations as bounded source seeds.
45
- 5. Classify the map as `insufficient` for this task when no relevant node or
46
- relationship emerges, then switch to bounded source fallback.
56
+ 1. Reduce the task to business vocabulary and try up to two materially
57
+ different `map search` formulations.
58
+ 2. Inspect the world `map view`, then zoom through the closest owning hierarchy
59
+ when a relevant region exists.
60
+ 3. Classify the business map as `insufficient` when no relevant node or
61
+ relationship emerges.
62
+ 4. Run up to two materially different `code search` formulations using exact
63
+ symbol fragments, interface names, data names, paths, or framework terms.
64
+ 5. Use returned source locations as the bounded fallback seed set.
47
65
 
48
66
  Lexical scores rank results only. A high score does not establish correctness,
49
67
  certainty, or business meaning.
50
68
 
51
69
  ### Unknown and ambiguity
52
70
 
53
- For every `UnknownBoundary`, retain:
54
-
55
- - its structural owner;
56
- - unresolved operation and reason;
57
- - source location;
58
- - finite candidate list;
59
- - structural support status and provenance.
60
-
61
- Inspect the owner and candidates in source. Promote a relationship in the
62
- Agent's conclusion only when the execution or assignment path is uniquely
63
- established. Preserve the boundary when multiple candidates remain plausible.
71
+ An `UNKNOWN_BOUNDARY` warning means the structural index detected unresolved
72
+ runtime or language behavior. Use `code search` to locate the task-relevant
73
+ owner and inspect the execution or assignment path in source. Promote a
74
+ relationship in the Agent's conclusion only when source establishes it
75
+ uniquely; preserve the ambiguity and any finite candidates discovered in source
76
+ when multiple targets remain plausible.
64
77
 
65
78
  ### Stale assertions
66
79
 
@@ -1,8 +1,7 @@
1
- # Snapshot and business-map bootstrap
1
+ # Snapshot publication
2
2
 
3
3
  Read this reference after the required `status` call shows that the structural
4
- snapshot needs publication, or after a current map proves that relevant
5
- business knowledge is absent. Keep all commands serialized in the exact target
4
+ snapshot needs publication. Keep all commands serialized in the exact target
6
5
  worktree.
7
6
 
8
7
  ## Publish structural state
@@ -15,43 +14,29 @@ worktree.
15
14
  command performs the initial full index.
16
15
  2. Run `semantic-atlas status` again. Continue with Atlas only when freshness is
17
16
  `current` and backend completeness is `complete`.
18
- 3. Run `semantic-atlas map roots`. Structural `Module` roots are valid initial
19
- navigation when no business `Capability` root exists.
17
+ 3. Run `semantic-atlas map view`. It returns current parentless business nodes
18
+ as world regions. An empty `regions` array with `BUSINESS_KNOWLEDGE_EMPTY`
19
+ means no task has established reusable business knowledge yet.
20
20
  4. Use source as authority while publication is unavailable. Read result routing
21
21
  when the index or follow-up status contains warnings or errors.
22
22
 
23
- ## Bootstrap during a normal task
23
+ ## Continue into the normal task
24
24
 
25
25
  A normal task grows only the business area it actually verifies:
26
26
 
27
- 1. Search task vocabulary and inspect the closest structural owner, neighbors,
28
- and finite unknown candidates.
27
+ 1. Inspect the world view and search task business vocabulary. When business
28
+ knowledge is empty or irrelevant, use `code search` for bounded structural
29
+ owners and source locations.
29
30
  2. Open the bounded source path required by the task and confirm the decisive
30
31
  behavior.
31
32
  3. Identify each durable business concept and relationship that the source now
32
33
  proves but the current map lacks.
33
34
  4. Follow GraphPatch authoring, submit those verified facts together, and verify
34
- each learned entry through `semantic-atlas map show`.
35
- 5. Stop after the task-relevant capability is reusable. Leave unrelated roots
36
- for later tasks.
37
-
38
- ## Bootstrap an explicitly requested project map
39
-
40
- Treat project initialization as a bounded mapping task rather than an attempt
41
- to describe every symbol:
42
-
43
- 1. Begin with `semantic-atlas map roots` and select the requested directories,
44
- domains, or a small set of the most evidence-rich structural roots when the
45
- request supplies no narrower boundary.
46
- 2. For each selected root, follow one representative path through public
47
- interfaces, operations, data, invariants, and verification where present.
48
- 3. Confirm the controlling declarations in source and record the initialization
49
- boundary in the task result.
50
- 4. Learn only durable verified capabilities and their supported child concepts
51
- and relationships. Preserve unknown or unsupported behavior as boundaries,
52
- not exact business facts.
53
- 5. Verify learned capability keys with `semantic-atlas map show`, then start a
54
- fresh query from one learned term to prove the initial map is reusable.
55
-
56
- Future tasks extend this initial map incrementally as they verify more business
57
- behavior.
35
+ each learned entry through `semantic-atlas map show`, then confirm its
36
+ placement through `semantic-atlas map view`.
37
+ 5. Stop after the task-relevant business area is reusable. Let later engineering
38
+ tasks expand or reorganize the map as they verify more behavior.
39
+
40
+ Empty business knowledge routes to bounded structural and source inspection for
41
+ the active task. The resulting source evidence may introduce a provisional root;
42
+ a later task can reparent it when a broader business concept becomes verified.
@@ -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.