semantic-atlas 2.1.0 → 2.1.3

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 (49) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +133 -73
  2. package/.agents/skills/semantic-atlas/agents/openai.yaml +2 -2
  3. package/.agents/skills/semantic-atlas-maintenance/SKILL.md +106 -58
  4. package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +1 -1
  5. package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +66 -5
  6. package/README.md +47 -17
  7. package/README.zh-CN.md +213 -0
  8. package/dist/cli/observation-commands.d.ts +2 -1
  9. package/dist/cli/observation-commands.d.ts.map +1 -1
  10. package/dist/cli/observation-commands.js +19 -1
  11. package/dist/cli/observation-commands.js.map +1 -1
  12. package/dist/cli/reconciliation-command.d.ts +2 -1
  13. package/dist/cli/reconciliation-command.d.ts.map +1 -1
  14. package/dist/cli/reconciliation-command.js +32 -8
  15. package/dist/cli/reconciliation-command.js.map +1 -1
  16. package/dist/cli/run-cli.d.ts.map +1 -1
  17. package/dist/cli/run-cli.js +20 -4
  18. package/dist/cli/run-cli.js.map +1 -1
  19. package/dist/contracts/cli.d.ts +10 -0
  20. package/dist/contracts/cli.d.ts.map +1 -1
  21. package/dist/contracts/observation.d.ts +110 -1
  22. package/dist/contracts/observation.d.ts.map +1 -1
  23. package/dist/contracts/observation.js +70 -0
  24. package/dist/contracts/observation.js.map +1 -1
  25. package/dist/contracts/reconciliation.d.ts +11 -1
  26. package/dist/contracts/reconciliation.d.ts.map +1 -1
  27. package/dist/index.d.ts +4 -4
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/observations/observation-application.d.ts +6 -0
  32. package/dist/observations/observation-application.d.ts.map +1 -1
  33. package/dist/observations/observation-application.js +34 -1
  34. package/dist/observations/observation-application.js.map +1 -1
  35. package/dist/observations/observation-store.d.ts +8 -1
  36. package/dist/observations/observation-store.d.ts.map +1 -1
  37. package/dist/observations/observation-store.js +22 -4
  38. package/dist/observations/observation-store.js.map +1 -1
  39. package/dist/reconciliation/reconciliation-service.d.ts +1 -0
  40. package/dist/reconciliation/reconciliation-service.d.ts.map +1 -1
  41. package/dist/reconciliation/reconciliation-service.js +56 -3
  42. package/dist/reconciliation/reconciliation-service.js.map +1 -1
  43. package/docs/architecture.md +87 -47
  44. package/docs/evaluation.md +24 -12
  45. package/docs/index.md +6 -5
  46. package/docs/map-format.md +6 -4
  47. package/docs/observations.md +74 -32
  48. package/docs/product-contract.md +79 -49
  49. package/package.json +3 -2
@@ -6,5 +6,6 @@ export declare class ReconciliationService {
6
6
  private readonly store;
7
7
  constructor(repositoryResolver: RepositoryIdentityResolver, store: ObservationStore);
8
8
  listCandidates(repositoryPath: string): Promise<ReconciliationCandidateReport>;
9
+ maintenanceRequired(repositoryPath: string): Promise<boolean>;
9
10
  }
10
11
  //# sourceMappingURL=reconciliation-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reconciliation-service.d.ts","sourceRoot":"","sources":["../../src/reconciliation/reconciliation-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,6BAA6B,EAG9B,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AASpF,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBADL,kBAAkB,EAAE,0BAA0B,EAC9C,KAAK,EAAE,gBAAgB;IAG7B,cAAc,CACzB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,6BAA6B,CAAC;CA0B1C"}
1
+ {"version":3,"file":"reconciliation-service.d.ts","sourceRoot":"","sources":["../../src/reconciliation/reconciliation-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,6BAA6B,EAI9B,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AASpF,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBADL,kBAAkB,EAAE,0BAA0B,EAC9C,KAAK,EAAE,gBAAgB;IAG7B,cAAc,CACzB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,6BAA6B,CAAC;IAoC5B,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAgB3E"}
@@ -11,7 +11,9 @@ export class ReconciliationService {
11
11
  const repository = (await this.repositoryResolver.resolve(repositoryPath)).identity;
12
12
  const observations = await this.store.readAll(repository);
13
13
  const reviewsByTask = groupReviewsByTask(observations.reviews);
14
- const candidates = groupCandidates(observations.tasks, reviewsByTask);
14
+ const maintenanceByCandidate = groupMaintenanceByCandidate(observations.maintenances);
15
+ const groupedCandidates = groupCandidates(observations.tasks, reviewsByTask, maintenanceByCandidate);
16
+ const candidates = groupedCandidates.actionable;
15
17
  const domains = groupByDomain(candidates);
16
18
  const candidateGroups = domains.reduce((total, domain) => total + domain.candidates.length, 0);
17
19
  const candidateOccurrences = candidates.reduce((total, candidate) => total + candidate.origins.length, 0);
@@ -22,10 +24,20 @@ export class ReconciliationService {
22
24
  candidateGroups,
23
25
  candidateOccurrences,
24
26
  duplicateGroups: candidates.filter(({ origins }) => origins.length > 1).length,
27
+ waitingForEvidenceOccurrences: groupedCandidates.waitingForEvidenceOccurrences,
25
28
  },
26
29
  domains,
27
30
  };
28
31
  }
32
+ async maintenanceRequired(repositoryPath) {
33
+ const repository = (await this.repositoryResolver.resolve(repositoryPath)).identity;
34
+ const observations = await this.store.readReconciliationInputs(repository);
35
+ const maintenanceByCandidate = groupMaintenanceByCandidate(observations.maintenances);
36
+ return observations.tasks.some((task) => task.mapUpdateCandidates.some((_, candidateIndex) => {
37
+ const history = maintenanceByCandidate.get(candidateOriginKey(task.id, candidateIndex)) ?? [];
38
+ return candidateState(history) === "actionable";
39
+ }));
40
+ }
29
41
  }
30
42
  function groupReviewsByTask(reviews) {
31
43
  const grouped = new Map();
@@ -46,10 +58,14 @@ function groupReviewsByTask(reviews) {
46
58
  }
47
59
  return grouped;
48
60
  }
49
- function groupCandidates(tasks, reviewsByTask) {
61
+ function groupCandidates(tasks, reviewsByTask, maintenanceByCandidate) {
50
62
  const grouped = new Map();
51
63
  for (const task of tasks) {
52
64
  task.mapUpdateCandidates.forEach((candidate, candidateIndex) => {
65
+ const maintenanceHistory = maintenanceByCandidate.get(candidateOriginKey(task.id, candidateIndex)) ?? [];
66
+ if (candidateState(maintenanceHistory) === "terminal") {
67
+ return;
68
+ }
53
69
  const key = candidateKey(candidate.businessDomainId, candidate.kind, candidate.summary);
54
70
  const current = grouped.get(key) ?? {
55
71
  businessDomainId: candidate.businessDomainId,
@@ -67,6 +83,7 @@ function groupCandidates(tasks, reviewsByTask) {
67
83
  evidence: candidate.evidence,
68
84
  ...(task.humanCorrection ? { humanCorrection: task.humanCorrection } : {}),
69
85
  reviews: reviewsByTask.get(task.id) ?? [],
86
+ maintenanceHistory,
70
87
  });
71
88
  grouped.set(key, current);
72
89
  });
@@ -75,7 +92,43 @@ function groupCandidates(tasks, reviewsByTask) {
75
92
  for (const candidate of candidates) {
76
93
  candidate.origins.sort(compareOrigins);
77
94
  }
78
- return candidates.sort(compareCandidates);
95
+ candidates.sort(compareCandidates);
96
+ const actionable = candidates.filter(({ origins }) => origins.some(({ maintenanceHistory }) => candidateState(maintenanceHistory) === "actionable"));
97
+ const waitingForEvidenceOccurrences = candidates
98
+ .filter(({ origins }) => origins.every(({ maintenanceHistory }) => candidateState(maintenanceHistory) === "waiting"))
99
+ .reduce((total, candidate) => total + candidate.origins.length, 0);
100
+ return { actionable, waitingForEvidenceOccurrences };
101
+ }
102
+ function candidateState(maintenanceHistory) {
103
+ if (maintenanceHistory.some(({ status }) => status !== "unresolved")) {
104
+ return "terminal";
105
+ }
106
+ return maintenanceHistory.length === 0 ? "actionable" : "waiting";
107
+ }
108
+ function groupMaintenanceByCandidate(maintenances) {
109
+ const grouped = new Map();
110
+ for (const observation of maintenances) {
111
+ for (const result of observation.results) {
112
+ const key = candidateOriginKey(result.candidate.taskObservationId, result.candidate.candidateIndex);
113
+ const history = grouped.get(key) ?? [];
114
+ history.push({
115
+ maintenanceObservationId: observation.id,
116
+ recordedAt: observation.recordedAt,
117
+ maintenance: observation.maintenance,
118
+ status: result.status,
119
+ reason: result.reason,
120
+ evidence: result.evidence,
121
+ });
122
+ grouped.set(key, history);
123
+ }
124
+ }
125
+ for (const history of grouped.values()) {
126
+ history.sort((left, right) => compareText(left.maintenanceObservationId, right.maintenanceObservationId));
127
+ }
128
+ return grouped;
129
+ }
130
+ function candidateOriginKey(taskObservationId, candidateIndex) {
131
+ return JSON.stringify([taskObservationId, candidateIndex]);
79
132
  }
80
133
  function groupByDomain(candidates) {
81
134
  const grouped = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"reconciliation-service.js","sourceRoot":"","sources":["../../src/reconciliation/reconciliation-service.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AASpF,MAAM,OAAO,qBAAqB;IAEb;IACA;IAFnB,YACmB,kBAA8C,EAC9C,KAAuB;QADvB,uBAAkB,GAAlB,kBAAkB,CAA4B;QAC9C,UAAK,GAAL,KAAK,CAAkB;IACvC,CAAC;IAEG,KAAK,CAAC,cAAc,CACzB,cAAsB;QAEtB,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC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AAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SACnD,GAAG,CAAC,CAAC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,gBAAgB;QAChB,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC,CAAC;AACR,CAAC;AAED,SAAS,YAAY,CACnB,gBAAwB,EACxB,IAA0C,EAC1C,OAAe;IAEf,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,iBAAiB,CACxB,IAA0B,EAC1B,KAA2B;IAE3B,OAAO,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;WAC5D,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;WAClC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,cAAc,CACrB,IAAmC,EACnC,KAAoC;IAEpC,OAAO,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;WAC9D,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;AAClD,CAAC;AAED,SAAS,WAAW,CAAC,IAAY,EAAE,KAAa;IAC9C,OAAO,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC"}
@@ -2,9 +2,9 @@
2
2
 
3
3
  This page defines the stable responsibilities, data lifecycle, dependency
4
4
  direction, and failure semantics for the initial product. It applies to the
5
- public CLI, renderer, and repository Agent Skill.
5
+ public CLI, renderer, and business-understanding Agent Skill.
6
6
 
7
- **Status: query, validation, visual projection, repository Agents, managed
7
+ **Status: query, validation, visual projection, Agent Skills, managed
8
8
  Skill lifecycle, accuracy observations, read-only reconciliation, and public
9
9
  release verification are implemented and released.**
10
10
 
@@ -25,9 +25,11 @@ MapDocumentLoader -> MapValidator -> BusinessGraph
25
25
  stable JSON result SVG / static HTML
26
26
 
27
27
  Calling Agent
28
- -> queries the graph
29
- -> treats the result as an investigation hypothesis
28
+ -> activates from business task meaning
29
+ -> probes the graph, including the map-not-found outcome
30
+ -> treats available map results as investigation hypotheses
30
31
  -> confirms decisive behavior in current repository evidence
32
+ -> records one maintenance disposition
31
33
 
32
34
  published package Skills bundle
33
35
  |
@@ -51,12 +53,12 @@ Independent review -----------+ v
51
53
  |
52
54
  v
53
55
  ReconciliationService
54
- |
55
- v
56
- deterministic candidate report
57
- |
58
- v
59
- Maintenance Agent Skill
56
+ / \
57
+ v v
58
+ required boolean deterministic candidate report
59
+ | |
60
+ v v
61
+ task orchestrator Maintenance Agent Skill
60
62
  |
61
63
  v
62
64
  current evidence + reviewed YAML
@@ -139,13 +141,14 @@ Owns argument parsing, exit status, machine-readable envelopes, and concise
139
141
  human presentation. It composes application services and performs no graph
140
142
  interpretation of its own.
141
143
 
142
- ### Repository Agent Skill
144
+ ### Business Understanding Agent Skill
143
145
 
144
- Owns the map-assisted engineering workflow. It converts a natural-language
145
- task into bounded map queries, interprets advisory results, opens current
146
- evidence, and continues through the repository's normal implementation and
147
- verification process. It does not move source editing or engineering judgment
148
- into the CLI.
146
+ Owns the business-understanding workflow for every business-changing task. It
147
+ activates from task meaning, converts a natural-language task into one bounded
148
+ map probe, interprets advisory results or `MAP_NOT_FOUND`, builds the smallest
149
+ current-evidence business model needed for the decision, and continues through
150
+ the repository's normal implementation and verification process. Source editing
151
+ and engineering judgment remain with the calling Agent.
149
152
 
150
153
  The Skill invokes `context` through a small contract-checking adapter. The
151
154
  adapter prefers the CLI distributed with the Skill and accepts a PATH command
@@ -154,13 +157,22 @@ contract when another installed product uses the same executable name.
154
157
 
155
158
  ### Maintenance Agent Skill
156
159
 
157
- Owns periodic candidate triage after `ReconciliationService` has produced one
158
- read-only report. It selects one business domain, confirms proposed corrections
159
- against current source and tracked product meaning, leaves unresolved and
160
- implementation-local observations outside the canonical map, and submits any
161
- accepted correction as one normal reviewed YAML change. Source confirmation,
162
- map editing, validation, rendering, Git diff, and independent review remain
163
- Agent and repository responsibilities rather than CLI side effects.
160
+ Owns post-integration and periodic candidate triage after
161
+ `ReconciliationService` has produced one read-only report. It selects one
162
+ business domain, confirms proposed corrections against current source and
163
+ tracked product meaning, resolves an existing or initial domain-owned YAML
164
+ surface, leaves unresolved and implementation-local observations outside the
165
+ canonical map, and submits any accepted correction as one normal reviewed YAML
166
+ change. A `MAP_NOT_FOUND` repository can bootstrap one bounded domain when
167
+ current evidence establishes its stable identity. Source confirmation, map
168
+ editing, validation, rendering, Git diff, and independent review remain Agent
169
+ and repository responsibilities rather than CLI side effects.
170
+
171
+ The Skill keeps Work, Review, and Integration as separate evidence stages. Work
172
+ prepares classifications and an observation document without consuming any
173
+ candidate. Integration adds the actual merged commit when a map changed and
174
+ records the reviewed result through `observe maintenance`. A no-map-change
175
+ discarded or unresolved result follows the same independent-review boundary.
164
176
 
165
177
  ### ManagedSkillsInstaller
166
178
 
@@ -197,10 +209,12 @@ and exposes neither repository paths nor remote URLs in retained artifacts.
197
209
 
198
210
  ### ObservationApplication
199
211
 
200
- Owns complete task and review input validation and the accuracy-authority
201
- boundary. It creates a repository-bound artifact only after strict schema
202
- validation. Review recording additionally resolves the referenced task
203
- observation from the same repository partition before persistence.
212
+ Owns complete task, review, and maintenance input validation and the
213
+ accuracy-authority boundary. It creates a repository-bound artifact only after
214
+ strict schema validation. Review recording additionally resolves the referenced
215
+ task observation from the same repository partition before persistence.
216
+ Maintenance recording resolves every exact candidate position and verifies its
217
+ business domain before persistence.
204
218
 
205
219
  ### ObservationClaimManager
206
220
 
@@ -215,8 +229,8 @@ Owns immutable, versioned user-local observation files and composes the claim
215
229
  manager around each write. The store writes and syncs a complete observation
216
230
  staging file, atomically renames it into place, returns idempotency for an exact
217
231
  replay, and reports a conflict for changed content under an existing ID. Its
218
- write boundary accepts current task v2 and review v1 artifacts. Its read
219
- boundary accepts the same current task and review contracts; unsupported stored
232
+ write boundary accepts current task v2, review v1, and maintenance v1 artifacts.
233
+ Its read boundary accepts those same contracts; unsupported stored
220
234
  artifacts fail the read instead of being reinterpreted.
221
235
 
222
236
  ### InsightService
@@ -230,10 +244,18 @@ contradicted map knowledge.
230
244
 
231
245
  Owns deterministic read-only grouping of retained map-update candidates. It
232
246
  uses explicit business-domain ownership plus exact candidate kind and summary,
233
- preserves each candidate occurrence, evidence disposition, task query record,
234
- human correction, and linked independent review, and marks groups with multiple
235
- origins as duplicates. It reads repository identity and observations without
236
- loading or editing the business map.
247
+ preserves each actionable candidate occurrence, evidence disposition, task
248
+ query record, human correction, linked independent review, and unresolved
249
+ maintenance history, and marks groups with multiple origins as duplicates.
250
+ Terminal maintenance results remove their exact origins. A group containing
251
+ only previously unresolved origins waits for a new origin before becoming
252
+ actionable again. The service reads repository identity and observations
253
+ without loading or editing the business map.
254
+
255
+ The service also owns the narrow maintenance-status projection used by task
256
+ orchestrators. That path reads task and maintenance observations only and
257
+ returns whether any exact origin remains actionable; Review joins and complete
258
+ candidate reports are deferred until a maintenance Agent requests them.
237
259
 
238
260
  ### Release Candidate Verification
239
261
 
@@ -273,13 +295,15 @@ rather than local build effects.
273
295
  | Repository identity | One local repository across worktrees | Observation lookup | Re-derived from the Git common directory or selected directory |
274
296
  | Task observation | User-local repository partition | Immutable retained evidence | Strict validation and one atomic file publication |
275
297
  | Review observation | User-local repository partition | Immutable retained evidence | Existing task reference plus strict validation and atomic publication |
298
+ | Maintenance observation | User-local repository partition | Immutable retained evidence | Exact candidate validation after review and integration plus atomic publication |
276
299
  | Accuracy summary | One CLI invocation | Read phase | Re-derived from retained task and review files |
300
+ | Reconciliation status | One CLI invocation | Read phase | Re-derived from retained task and maintenance files |
277
301
  | Reconciliation candidate report | One CLI invocation | Read phase | Re-derived from retained candidate and review provenance |
278
302
  | Packed npm candidate | One verified source revision | Release review | Rebuilt from the package allowlist |
279
303
  | Public release identity | Annotated tag and immutable GitHub Release | Permanent remote history | Explicit release command after repository cutover and immutable-release enablement |
280
304
  | Published npm package | Protected npm environment | Immutable registry version | GitHub Release workflow with provenance |
281
305
  | Task-specific source understanding | Calling agent | Engineering task | Current evidence investigation |
282
- | Candidate map observation | Task or maintenance record | Until reconciled | Reviewed by periodic maintenance |
306
+ | Candidate map observation | Business-changing task record | Until reconciled | Reviewed by post-integration or periodic maintenance |
283
307
 
284
308
  Map commands remain stateless and branches naturally see the map revision
285
309
  tracked with their own source. Observation writers coordinate only one
@@ -319,7 +343,9 @@ semantic-atlas setup
319
343
  semantic-atlas upgrade
320
344
  semantic-atlas observe task --stdin [--repo <path>]
321
345
  semantic-atlas observe review --stdin [--repo <path>]
346
+ semantic-atlas observe maintenance --stdin [--repo <path>]
322
347
  semantic-atlas insights summary [--repo <path>] [--period <duration>]
348
+ semantic-atlas reconcile status [--repo <path>]
323
349
  semantic-atlas reconcile candidates [--repo <path>]
324
350
  semantic-atlas --version
325
351
  ```
@@ -333,19 +359,24 @@ discriminant.
333
359
 
334
360
  `context` returns ambiguity when multiple concepts match the term. Callers can
335
361
  then use a stable ID. A missing concept is a bounded map result and routes the
336
- agent to ordinary source discovery; it is not a repository failure.
362
+ Agent to a bounded current-evidence business model; it is not a repository
363
+ failure.
337
364
 
338
365
  `setup`, `upgrade`, and `--version` do not discover a repository or load a
339
366
  business map. Their results expose the package version and managed Skill paths
340
367
  needed to verify one installed identity. Business repositories retain only
341
368
  their Git-tracked map documents.
342
369
 
343
- `observe task` and `observe review` read one complete JSON object from standard
344
- input. They derive a private repository identity, validate before publication,
345
- and return recorded, idempotent, or explicit conflict results. `insights
346
- summary` reads those retained files without changing them or the business map.
347
- `reconcile candidates` groups retained candidates and linked reviews without
348
- changing observations, source, maps, rendered artifacts, or Git state.
370
+ The three `observe` commands read one complete JSON object from standard input.
371
+ They derive a private repository identity, validate before publication, and
372
+ return recorded, idempotent, or explicit conflict results. Maintenance input
373
+ also verifies every candidate source and its business-domain ownership.
374
+ `insights summary` reads retained task and review files without changing them or
375
+ the business map. `reconcile status` reads only retained task and maintenance
376
+ files and returns whether any origin is actionable. `reconcile candidates`
377
+ derives actionable candidates and
378
+ unresolved waiting counts without changing observations, source, maps, rendered
379
+ artifacts, or Git state.
349
380
 
350
381
  ## Validation Boundary
351
382
 
@@ -373,7 +404,8 @@ Errors fall into stable categories:
373
404
  - `MAP_DOCUMENT_INVALID`: one or more tracked documents cannot form a valid
374
405
  graph; the result includes document-local issues.
375
406
  - `MAP_NOT_FOUND`: the selected repository has no configured map documents;
376
- agents continue with ordinary source discovery.
407
+ the understanding Skill builds the smallest source-supported business model
408
+ needed for the task and records the bounded outcome.
377
409
  - `CONCEPT_NOT_FOUND`: no concept matches the requested selector; agents use
378
410
  bounded source discovery.
379
411
  - `CONCEPT_AMBIGUOUS`: multiple concepts match; the result returns stable IDs
@@ -391,6 +423,9 @@ Errors fall into stable categories:
391
423
  versioned task or review contract and no observation is written.
392
424
  - `TASK_OBSERVATION_NOT_FOUND`: a review references no task observation in the
393
425
  selected repository partition.
426
+ - `MAINTENANCE_CANDIDATE_INVALID`: a maintenance result references no exact
427
+ candidate position in the selected repository or uses another business
428
+ domain.
394
429
  - `OBSERVATION_CONFLICT`: an immutable ID already belongs to different content.
395
430
  - `OBSERVATION_STORAGE_FAILED`: atomic publication could not complete and no
396
431
  new final artifact is reported.
@@ -418,12 +453,17 @@ Ordinary feature branches read their branch's map revision. Durable changes use
418
453
  normal Git merge behavior. Review focuses on business meaning, stable IDs,
419
454
  relationship direction, and whether the update belongs in the shared map.
420
455
 
421
- Periodic reconciliation begins with the deterministic candidate report, then
422
- works from current source and accumulated task and review observations. It
456
+ Every business-changing task writes its own immutable observation and maintenance
457
+ disposition. Candidate-producing results can enter post-integration maintenance
458
+ as soon as stable reviewed source is available. Periodic reconciliation uses the
459
+ same deterministic report to recover accumulated drift and missed work. Each run
423
460
  updates one owning YAML surface for one business domain rather than rewriting
424
- the complete map. A stale or implementation-local observation can be discarded
425
- without affecting an engineering task that already completed against current
426
- evidence.
461
+ the complete map. A no-candidate or no-change run is a valid outcome and does not
462
+ affect an engineering task already completed against current evidence.
463
+
464
+ The understanding and maintenance Skills operate independently of task
465
+ orchestrators. Orchestrators may schedule work but do not decide when an Agent
466
+ needs business understanding.
427
467
 
428
468
  ## Current Technology Boundary
429
469
 
@@ -11,11 +11,15 @@ real-project evaluation pass.**
11
11
 
12
12
  The primary question is:
13
13
 
14
- > Does an agent that begins with the advisory business map reach a correct,
15
- > source-supported engineering conclusion more reliably than an agent that
16
- > begins with ordinary repository discovery, including when the map is stale or
14
+ > Does the business-understanding Skill lead an agent to a correct,
15
+ > source-supported engineering conclusion and maintenance decision without
16
+ > routine human direction, including when the map is absent, stale, or
17
17
  > incomplete?
18
18
 
19
+ A paired map comparison remains useful for measuring whether existing shared
20
+ knowledge improves accuracy over ordinary discovery. It is one evaluation mode,
21
+ not the Skill's activation boundary.
22
+
19
23
  The evaluation observes investigation cost, but cost does not substitute for
20
24
  correctness.
21
25
 
@@ -72,7 +76,8 @@ The first real-project suite contains at least:
72
76
  2. A cross-capability feature involving one shared data concept.
73
77
  3. An API, event, queue, or webhook boundary with a downstream consumer.
74
78
  4. A durable invariant that constrains more than one implementation point.
75
- 5. A missing-map case where the agent must fall back to ordinary discovery.
79
+ 5. A missing-map case where the Skill still activates and builds a bounded,
80
+ source-supported business model.
76
81
  6. A stale-anchor case where the business meaning remains useful but the source
77
82
  location changed.
78
83
  7. A contradicted-relation case where current evidence must override the map.
@@ -93,11 +98,13 @@ current source contradicts.
93
98
 
94
99
  Automated checks prove that each initial selector produces the intended public
95
100
  CLI outcome and that every acceptance oracle points to present source, test, or
96
- tracked product evidence. Fresh Agent runs then judge the workflow behavior:
97
- the Agent must begin with the bounded map result, reach the current-evidence
98
- conclusion, and report durable map discrepancies separately. These fixtures
99
- protect the Skill contract; they do not replace the private real-project paired
100
- evaluation defined in this page.
101
+ tracked product evidence. Fresh Agent runs then judge both mapped and mapless
102
+ workflow behavior: the Agent must activate from business task meaning, use the
103
+ bounded map outcome, reach the current-evidence conclusion, and report one
104
+ maintenance disposition separately. Mechanical controls must end without
105
+ manufactured business knowledge. These fixtures protect the Skill contract;
106
+ they do not replace the private real-project paired evaluation defined in this
107
+ page.
101
108
 
102
109
  ## Paired Execution
103
110
 
@@ -105,7 +112,7 @@ When practical, run each case in two fresh contexts with the same model,
105
112
  repository revision, task wording, tool availability, and acceptance oracle:
106
113
 
107
114
  - `ordinary`: normal repository discovery without the map or its Skill;
108
- - `map-assisted`: repository-discovered Skill and the tracked advisory map.
115
+ - `map-assisted`: the package-managed Skill with the tracked advisory map.
109
116
 
110
117
  The task oracle remains unavailable to both task agents. An independent review
111
118
  compares their source-supported conclusions and implementation candidates.
@@ -122,7 +129,7 @@ The suite deliberately mutates map usefulness:
122
129
  - omit one required collaborator;
123
130
  - retain one relation that current source contradicts;
124
131
  - use a task term absent from node names but present in an alias or neighbor;
125
- - remove the complete map for one ordinary-discovery control.
132
+ - remove the complete map for one Skill-enabled mapless case.
126
133
 
127
134
  A passing agent notices the limitation, opens current evidence, corrects its
128
135
  task-specific model, and avoids presenting the stale statement as current fact.
@@ -140,6 +147,7 @@ Each run records:
140
147
  - required and unrelated impact surfaces;
141
148
  - implementation or proposed change;
142
149
  - verification performed;
150
+ - post-task maintenance disposition and any durable candidate;
143
151
  - independent review findings;
144
152
  - human decisions or corrections;
145
153
  - optional observations for tokens, opened files, elapsed time, compute cost,
@@ -152,6 +160,10 @@ The initial product passes when:
152
160
  - every map-assisted case reaches a correct source-supported conclusion;
153
161
  - stale, missing, and contradicted knowledge routes to current evidence without
154
162
  an unsupported final claim;
163
+ - a mapless business task still activates the Skill, records `map_not_found`,
164
+ and limits bootstrap knowledge to stable meaning supported by the task;
165
+ - mapped and mapless business tasks choose one maintenance disposition, while a
166
+ mechanical control produces no business-maintenance work;
155
167
  - required business boundaries and impact surfaces are identified in every
156
168
  case;
157
169
  - implementation cases pass their behavioral tests and independent code-quality
@@ -179,7 +191,7 @@ repository changes entered this repository.
179
191
  The measured suite used four paired cases and eight fresh task-agent contexts.
180
192
  Cases combined related concerns while covering all eight required types. Every
181
193
  pair used the same model, source revision, task wording, shell tools, and output
182
- contract; only the ordinary or repository-discovered map workflow differed.
194
+ contract; only the ordinary or package-managed map workflow differed.
183
195
 
184
196
  The de-identified acceptance results are:
185
197
 
package/docs/index.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Semantic Atlas Documentation
2
2
 
3
3
  This index routes product, implementation, and evaluation questions to their
4
- authoritative pages. The queryable map, renderer, repository Agent Skills,
5
- managed setup, observations, reconciliation, and public release are implemented.
4
+ authoritative pages. The queryable map, renderer, package-managed understanding
5
+ and maintenance Agent Skills, managed setup, observations, reconciliation, and
6
+ public release are implemented.
6
7
  Target-repository sharing and longitudinal real-use acceptance remain separate
7
8
  verified gates.
8
9
 
@@ -14,9 +15,9 @@ verified gates.
14
15
  dependency direction, collaboration model, and failure semantics.
15
16
  - [Map format](map-format.md): tracked graph documents, concepts, relations,
16
17
  anchors, validation, and query projections.
17
- - [Accuracy observations](observations.md): task and independent-review
18
- evidence schemas, immutable local persistence, replay, privacy, derived
19
- summaries, and read-only reconciliation candidate reports.
18
+ - [Accuracy observations](observations.md): task, independent-review, and
19
+ maintenance evidence schemas, immutable local persistence, replay, privacy,
20
+ derived summaries, and read-only actionable candidate reports.
20
21
  - [Evaluation](evaluation.md): real-task accuracy, stale-map recovery, code
21
22
  quality, and human-intervention evidence.
22
23
  - [Delivery plan](delivery-plan.md): integrated initial slices and the ordered,
@@ -192,7 +192,7 @@ A selector resolves in this order:
192
192
 
193
193
  One match returns a context projection. Multiple matches return ambiguity with
194
194
  stable IDs and names. Zero matches returns `CONCEPT_NOT_FOUND` and leaves
195
- ordinary source discovery available.
195
+ bounded current-evidence business discovery available.
196
196
 
197
197
  The initial lookup is deterministic and vocabulary-based. Natural-language
198
198
  inference belongs to the calling agent, which can issue another bounded term or
@@ -219,7 +219,9 @@ ID when it needs to expand the investigation.
219
219
  Agents edit the owning YAML file directly and use `semantic-atlas validate`
220
220
  before submitting a map change. Git diff is the review surface.
221
221
 
222
- Ordinary engineering tasks can record candidate observations outside the
223
- canonical map. Periodic reconciliation confirms stable meaning in current
222
+ Business-changing engineering tasks record observations outside the canonical
223
+ map and create candidates only for stable meaning that needs maintenance.
224
+ Post-integration or periodic reconciliation confirms candidates in current
224
225
  evidence, updates one bounded neighborhood, validates the complete graph, and
225
- submits the normal repository change for review.
226
+ submits the normal repository change for review. A mapless repository can use
227
+ the same reviewed path to establish one evidence-supported initial domain.