semantic-atlas 0.4.0 → 1.0.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 +134 -166
- package/.agents/skills/semantic-atlas/agents/openai.yaml +4 -0
- package/.agents/skills/semantic-atlas/references/observations.md +131 -0
- package/.agents/skills/semantic-atlas/scripts/query-context.mjs +110 -0
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +93 -0
- package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +4 -0
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +56 -0
- package/README.md +134 -265
- package/dist/application/map-application.d.ts +24 -0
- package/dist/application/map-application.d.ts.map +1 -0
- package/dist/application/map-application.js +134 -0
- package/dist/application/map-application.js.map +1 -0
- package/dist/cli/bin.js +6 -42
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/observation-commands.d.ts +16 -0
- package/dist/cli/observation-commands.d.ts.map +1 -0
- package/dist/cli/observation-commands.js +118 -0
- package/dist/cli/observation-commands.js.map +1 -0
- package/dist/cli/projection-writer.d.ts +2 -0
- package/dist/cli/projection-writer.d.ts.map +1 -0
- package/dist/cli/projection-writer.js +9 -0
- package/dist/cli/projection-writer.js.map +1 -0
- package/dist/cli/reconciliation-command.d.ts +7 -0
- package/dist/cli/reconciliation-command.d.ts.map +1 -0
- package/dist/cli/reconciliation-command.js +33 -0
- package/dist/cli/reconciliation-command.js.map +1 -0
- package/dist/cli/run-cli.d.ts +21 -0
- package/dist/cli/run-cli.d.ts.map +1 -0
- package/dist/cli/run-cli.js +299 -0
- package/dist/cli/run-cli.js.map +1 -0
- package/dist/contracts/cli.d.ts +166 -1211
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/cli.js +2 -232
- package/dist/contracts/cli.js.map +1 -0
- package/dist/contracts/insights.d.ts +39 -1
- package/dist/contracts/insights.d.ts.map +1 -1
- package/dist/contracts/insights.js +2 -1
- package/dist/contracts/insights.js.map +1 -0
- package/dist/contracts/map.d.ts +154 -0
- package/dist/contracts/map.d.ts.map +1 -0
- package/dist/contracts/map.js +60 -0
- package/dist/contracts/map.js.map +1 -0
- package/dist/contracts/observation.d.ts +649 -0
- package/dist/contracts/observation.d.ts.map +1 -0
- package/dist/contracts/observation.js +140 -0
- package/dist/contracts/observation.js.map +1 -0
- package/dist/contracts/projection.d.ts +7 -0
- package/dist/contracts/projection.d.ts.map +1 -0
- package/dist/contracts/projection.js +2 -0
- package/dist/contracts/projection.js.map +1 -0
- package/dist/contracts/reconciliation.d.ts +40 -0
- package/dist/contracts/reconciliation.d.ts.map +1 -0
- package/dist/contracts/reconciliation.js +2 -0
- package/dist/contracts/reconciliation.js.map +1 -0
- package/dist/index.d.ts +7 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -0
- package/dist/insights/insight-service.d.ts +14 -0
- package/dist/insights/insight-service.d.ts.map +1 -0
- package/dist/insights/insight-service.js +129 -0
- package/dist/insights/insight-service.js.map +1 -0
- package/dist/map/business-graph.d.ts +32 -0
- package/dist/map/business-graph.d.ts.map +1 -0
- package/dist/map/business-graph.js +122 -0
- package/dist/map/business-graph.js.map +1 -0
- package/dist/map/map-document-loader.d.ts +13 -0
- package/dist/map/map-document-loader.d.ts.map +1 -0
- package/dist/map/map-document-loader.js +86 -0
- package/dist/map/map-document-loader.js.map +1 -0
- package/dist/map/map-validator.d.ts +12 -0
- package/dist/map/map-validator.d.ts.map +1 -0
- package/dist/map/map-validator.js +322 -0
- package/dist/map/map-validator.js.map +1 -0
- package/dist/observations/observation-application.d.ts +23 -0
- package/dist/observations/observation-application.d.ts.map +1 -0
- package/dist/observations/observation-application.js +62 -0
- package/dist/observations/observation-application.js.map +1 -0
- package/dist/observations/observation-claim-manager.d.ts +13 -0
- package/dist/observations/observation-claim-manager.d.ts.map +1 -0
- package/dist/observations/observation-claim-manager.js +247 -0
- package/dist/observations/observation-claim-manager.js.map +1 -0
- package/dist/observations/observation-store.d.ts +43 -0
- package/dist/observations/observation-store.d.ts.map +1 -0
- package/dist/observations/observation-store.js +208 -0
- package/dist/observations/observation-store.js.map +1 -0
- package/dist/observations/repository-identity.d.ts +12 -0
- package/dist/observations/repository-identity.d.ts.map +1 -0
- package/dist/observations/repository-identity.js +108 -0
- package/dist/observations/repository-identity.js.map +1 -0
- package/dist/query/context-query-service.d.ts +15 -0
- package/dist/query/context-query-service.d.ts.map +1 -0
- package/dist/query/context-query-service.js +36 -0
- package/dist/query/context-query-service.js.map +1 -0
- package/dist/reconciliation/reconciliation-service.d.ts +10 -0
- package/dist/reconciliation/reconciliation-service.d.ts.map +1 -0
- package/dist/reconciliation/reconciliation-service.js +116 -0
- package/dist/reconciliation/reconciliation-service.js.map +1 -0
- package/dist/rendering/map-projector.d.ts +8 -0
- package/dist/rendering/map-projector.d.ts.map +1 -0
- package/dist/rendering/map-projector.js +386 -0
- package/dist/rendering/map-projector.js.map +1 -0
- package/dist/setup/managed-skill-installer.d.ts +60 -0
- package/dist/setup/managed-skill-installer.d.ts.map +1 -0
- package/dist/setup/managed-skill-installer.js +307 -0
- package/dist/setup/managed-skill-installer.js.map +1 -0
- package/dist/setup/package-identity.d.ts +6 -0
- package/dist/setup/package-identity.d.ts.map +1 -0
- package/dist/setup/package-identity.js +16 -0
- package/dist/setup/package-identity.js.map +1 -0
- package/dist/setup/package-upgrader.d.ts +10 -22
- package/dist/setup/package-upgrader.d.ts.map +1 -1
- package/dist/setup/package-upgrader.js +60 -76
- package/dist/setup/package-upgrader.js.map +1 -0
- package/docs/architecture.md +428 -0
- package/docs/evaluation.md +220 -174
- package/docs/index.md +27 -45
- package/docs/map-format.md +224 -0
- package/docs/observations.md +175 -0
- package/docs/product-contract.md +295 -165
- package/examples/commerce.yaml +204 -0
- package/package.json +32 -32
- package/.agents/skills/semantic-atlas/references/graph-patch.md +0 -190
- package/.agents/skills/semantic-atlas/references/product-feedback.md +0 -34
- package/.agents/skills/semantic-atlas/references/result-routing.md +0 -104
- package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +0 -42
- package/.agents/skills/semantic-atlas-insights/SKILL.md +0 -55
- package/README.zh-CN.md +0 -296
- package/dist/business-flow/business-flow-derivation-service.d.ts +0 -11
- package/dist/business-flow/business-flow-derivation-service.d.ts.map +0 -1
- package/dist/business-flow/business-flow-derivation-service.js +0 -151
- package/dist/business-flow/business-flow-draft.d.ts +0 -16
- package/dist/business-flow/business-flow-draft.d.ts.map +0 -1
- package/dist/business-flow/business-flow-draft.js +0 -150
- package/dist/business-flow/framework-business-strategy.d.ts +0 -7
- package/dist/business-flow/framework-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/framework-business-strategy.js +0 -1
- package/dist/business-flow/strategies/bullmq-business-strategy.d.ts +0 -10
- package/dist/business-flow/strategies/bullmq-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/bullmq-business-strategy.js +0 -79
- package/dist/business-flow/strategies/called-operation-derivation.d.ts +0 -13
- package/dist/business-flow/strategies/called-operation-derivation.d.ts.map +0 -1
- package/dist/business-flow/strategies/called-operation-derivation.js +0 -32
- package/dist/business-flow/strategies/graphql-business-strategy.d.ts +0 -8
- package/dist/business-flow/strategies/graphql-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/graphql-business-strategy.js +0 -65
- package/dist/business-flow/strategies/nestjs-business-strategy.d.ts +0 -8
- package/dist/business-flow/strategies/nestjs-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/nestjs-business-strategy.js +0 -72
- package/dist/business-flow/strategies/strategy-helpers.d.ts +0 -32
- package/dist/business-flow/strategies/strategy-helpers.d.ts.map +0 -1
- package/dist/business-flow/strategies/strategy-helpers.js +0 -49
- package/dist/business-flow/strategies/typeorm-business-strategy.d.ts +0 -10
- package/dist/business-flow/strategies/typeorm-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/typeorm-business-strategy.js +0 -136
- package/dist/business-flow/strategies/verified-invariant-strategy.d.ts +0 -5
- package/dist/business-flow/strategies/verified-invariant-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/verified-invariant-strategy.js +0 -38
- package/dist/business-flow/strategies/verified-test-strategy.d.ts +0 -5
- package/dist/business-flow/strategies/verified-test-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/verified-test-strategy.js +0 -26
- package/dist/business-flow/structural-flow-catalog.d.ts +0 -21
- package/dist/business-flow/structural-flow-catalog.d.ts.map +0 -1
- package/dist/business-flow/structural-flow-catalog.js +0 -125
- package/dist/business-flow/types.d.ts +0 -51
- package/dist/business-flow/types.d.ts.map +0 -1
- package/dist/business-flow/types.js +0 -1
- package/dist/cli/argument-parser.d.ts +0 -3
- package/dist/cli/argument-parser.d.ts.map +0 -1
- package/dist/cli/argument-parser.js +0 -200
- package/dist/cli/cli-application.d.ts +0 -39
- package/dist/cli/cli-application.d.ts.map +0 -1
- package/dist/cli/cli-application.js +0 -571
- package/dist/cli/cli-error.d.ts +0 -12
- package/dist/cli/cli-error.d.ts.map +0 -1
- package/dist/cli/cli-error.js +0 -44
- package/dist/cli/cli-presenter.d.ts +0 -14
- package/dist/cli/cli-presenter.d.ts.map +0 -1
- package/dist/cli/cli-presenter.js +0 -36
- package/dist/cli/insights-cli.d.ts +0 -6
- package/dist/cli/insights-cli.d.ts.map +0 -1
- package/dist/cli/insights-cli.js +0 -236
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -137
- package/dist/cli/standalone-cli.d.ts +0 -3
- package/dist/cli/standalone-cli.d.ts.map +0 -1
- package/dist/cli/standalone-cli.js +0 -104
- package/dist/cli/types.d.ts +0 -49
- package/dist/cli/types.d.ts.map +0 -1
- package/dist/cli/types.js +0 -1
- package/dist/cli/web-cli.d.ts +0 -9
- package/dist/cli/web-cli.d.ts.map +0 -1
- package/dist/cli/web-cli.js +0 -134
- package/dist/contracts/graph.d.ts +0 -266
- package/dist/contracts/graph.d.ts.map +0 -1
- package/dist/contracts/graph.js +0 -182
- package/dist/contracts/identifiers.d.ts +0 -4
- package/dist/contracts/identifiers.d.ts.map +0 -1
- package/dist/contracts/identifiers.js +0 -7
- package/dist/contracts/public-contracts.d.ts +0 -5
- package/dist/contracts/public-contracts.d.ts.map +0 -1
- package/dist/contracts/public-contracts.js +0 -4
- package/dist/evaluation/comparison.d.ts +0 -30
- package/dist/evaluation/comparison.d.ts.map +0 -1
- package/dist/evaluation/comparison.js +0 -108
- package/dist/evaluation/contracts.d.ts +0 -301
- package/dist/evaluation/contracts.d.ts.map +0 -1
- package/dist/evaluation/contracts.js +0 -413
- package/dist/graph/graph-store.d.ts +0 -55
- package/dist/graph/graph-store.d.ts.map +0 -1
- package/dist/graph/graph-store.js +0 -912
- package/dist/graph/types.d.ts +0 -189
- package/dist/graph/types.d.ts.map +0 -1
- package/dist/graph/types.js +0 -1
- package/dist/insights/contracts.d.ts +0 -266
- package/dist/insights/contracts.d.ts.map +0 -1
- package/dist/insights/contracts.js +0 -124
- package/dist/insights/insights-store.d.ts +0 -73
- package/dist/insights/insights-store.d.ts.map +0 -1
- package/dist/insights/insights-store.js +0 -246
- package/dist/knowledge/business-knowledge-service.d.ts +0 -24
- package/dist/knowledge/business-knowledge-service.d.ts.map +0 -1
- package/dist/knowledge/business-knowledge-service.js +0 -200
- package/dist/knowledge/graph-patch-conflict-error.d.ts +0 -8
- package/dist/knowledge/graph-patch-conflict-error.d.ts.map +0 -1
- package/dist/knowledge/graph-patch-conflict-error.js +0 -12
- package/dist/knowledge/structural-target-binding.d.ts +0 -14
- package/dist/knowledge/structural-target-binding.d.ts.map +0 -1
- package/dist/knowledge/structural-target-binding.js +0 -11
- package/dist/package-metadata.d.ts +0 -2
- package/dist/package-metadata.d.ts.map +0 -1
- package/dist/package-metadata.js +0 -9
- package/dist/repository/git-command.d.ts +0 -3
- package/dist/repository/git-command.d.ts.map +0 -1
- package/dist/repository/git-command.js +0 -25
- package/dist/repository/repository-inspector.d.ts +0 -8
- package/dist/repository/repository-inspector.d.ts.map +0 -1
- package/dist/repository/repository-inspector.js +0 -97
- package/dist/repository/repository-language-support.d.ts +0 -14
- package/dist/repository/repository-language-support.d.ts.map +0 -1
- package/dist/repository/repository-language-support.js +0 -64
- package/dist/repository/types.d.ts +0 -9
- package/dist/repository/types.d.ts.map +0 -1
- package/dist/repository/types.js +0 -1
- package/dist/runtime/sqlite-compatibility-process.d.ts +0 -8
- package/dist/runtime/sqlite-compatibility-process.d.ts.map +0 -1
- package/dist/runtime/sqlite-compatibility-process.js +0 -20
- package/dist/setup/skill-installer.d.ts +0 -20
- package/dist/setup/skill-installer.d.ts.map +0 -1
- package/dist/setup/skill-installer.js +0 -187
- package/dist/snapshots/repository-snapshot.d.ts +0 -4
- package/dist/snapshots/repository-snapshot.d.ts.map +0 -1
- package/dist/snapshots/repository-snapshot.js +0 -119
- package/dist/snapshots/types.d.ts +0 -30
- package/dist/snapshots/types.d.ts.map +0 -1
- package/dist/snapshots/types.js +0 -1
- package/dist/storage/atlas-database.d.ts +0 -25
- package/dist/storage/atlas-database.d.ts.map +0 -1
- package/dist/storage/atlas-database.js +0 -483
- package/dist/storage/snapshot-store.d.ts +0 -19
- package/dist/storage/snapshot-store.d.ts.map +0 -1
- package/dist/storage/snapshot-store.js +0 -74
- package/dist/structural-backend/codegraph-backend.d.ts +0 -57
- package/dist/structural-backend/codegraph-backend.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-backend.js +0 -1230
- package/dist/structural-backend/codegraph-worker-client.d.ts +0 -5
- package/dist/structural-backend/codegraph-worker-client.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker-client.js +0 -118
- package/dist/structural-backend/codegraph-worker-protocol.d.ts +0 -35
- package/dist/structural-backend/codegraph-worker-protocol.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker-protocol.js +0 -1
- package/dist/structural-backend/codegraph-worker.d.ts +0 -2
- package/dist/structural-backend/codegraph-worker.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker.js +0 -131
- package/dist/structural-backend/process-instance.d.ts +0 -18
- package/dist/structural-backend/process-instance.d.ts.map +0 -1
- package/dist/structural-backend/process-instance.js +0 -207
- package/dist/structural-backend/structural-fact-changes.d.ts +0 -7
- package/dist/structural-backend/structural-fact-changes.d.ts.map +0 -1
- package/dist/structural-backend/structural-fact-changes.js +0 -78
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts +0 -10
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +0 -1
- package/dist/structural-backend/structural-projection-bootstrapper.js +0 -295
- package/dist/structural-backend/structural-publication.d.ts +0 -13
- package/dist/structural-backend/structural-publication.d.ts.map +0 -1
- package/dist/structural-backend/structural-publication.js +0 -255
- package/dist/structural-backend/structural-write-lock.d.ts +0 -8
- package/dist/structural-backend/structural-write-lock.d.ts.map +0 -1
- package/dist/structural-backend/structural-write-lock.js +0 -415
- package/dist/structural-backend/types.d.ts +0 -144
- package/dist/structural-backend/types.d.ts.map +0 -1
- package/dist/structural-backend/types.js +0 -11
- package/dist/web/application/atlas-read-service.d.ts +0 -27
- package/dist/web/application/atlas-read-service.d.ts.map +0 -1
- package/dist/web/application/atlas-read-service.js +0 -216
- package/dist/web/application/primary-repository-catalog.d.ts +0 -15
- package/dist/web/application/primary-repository-catalog.d.ts.map +0 -1
- package/dist/web/application/primary-repository-catalog.js +0 -202
- package/dist/web/application/types.d.ts +0 -41
- package/dist/web/application/types.d.ts.map +0 -1
- package/dist/web/application/types.js +0 -1
- package/dist/web/server/api-router.d.ts +0 -4
- package/dist/web/server/api-router.d.ts.map +0 -1
- package/dist/web/server/api-router.js +0 -151
- package/dist/web/server/local-web-server.d.ts +0 -12
- package/dist/web/server/local-web-server.d.ts.map +0 -1
- package/dist/web/server/local-web-server.js +0 -100
- package/dist/web-client/assets/index-DneaErDj.css +0 -1
- package/dist/web-client/assets/index-cze_4vtt.js +0 -2
- package/dist/web-client/assets/index-cze_4vtt.js.map +0 -1
- package/dist/web-client/index.html +0 -61
- package/dist/world/business-map-projector.d.ts +0 -14
- package/dist/world/business-map-projector.d.ts.map +0 -1
- package/dist/world/business-map-projector.js +0 -178
- package/dist/world/types.d.ts +0 -77
- package/dist/world/types.d.ts.map +0 -1
- package/dist/world/types.js +0 -1
- package/dist/world/world-graph-query.d.ts +0 -30
- package/dist/world/world-graph-query.d.ts.map +0 -1
- package/dist/world/world-graph-query.js +0 -252
- package/dist/world/world-model-service.d.ts +0 -21
- package/dist/world/world-model-service.d.ts.map +0 -1
- package/dist/world/world-model-service.js +0 -219
- package/dist/world/world-snapshot-store.d.ts +0 -41
- package/dist/world/world-snapshot-store.d.ts.map +0 -1
- package/dist/world/world-snapshot-store.js +0 -581
- package/docs/README.md +0 -30
- package/docs/architecture/codegraph-backend.md +0 -190
- package/docs/architecture/continuous-business-learning.md +0 -240
- package/docs/architecture/web-viewer.md +0 -225
- package/docs/contracts/cli-v1.md +0 -179
- package/docs/contracts/graph-model.md +0 -106
- package/docs/contracts/graph-patch-v1.md +0 -105
- package/docs/contracts/http-api-v1.md +0 -155
- package/docs/contracts/insights-v1.md +0 -84
- package/docs/log.md +0 -159
- package/docs/mindmaps/semantic-atlas-overview.drawio +0 -255
- package/docs/mindmaps/semantic-atlas-overview.png +0 -0
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.drawio +0 -255
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.png +0 -0
- package/schemas/cli-envelope-v1.schema.json +0 -1244
- package/schemas/evaluation-plan-v1.schema.json +0 -211
- package/schemas/evaluation-run-v1.schema.json +0 -659
- package/schemas/graph-patch-v1.schema.json +0 -392
- package/schemas/insights-envelope-v1.schema.json +0 -428
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: semantic-atlas-maintenance
|
|
3
|
+
description: Reconcile retained Semantic Atlas map-update candidates for one business domain into a source-supported, normally reviewed docs/business-map YAML change. Use for periodic map maintenance, drift cleanup, candidate triage, and domain-scoped reconciliation in repositories with a Semantic Atlas business map and local observations.
|
|
4
|
+
compatibility: Requires Node.js 24+, Git, a v1 semantic-atlas CLI, retained local observations, and repository source access.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Semantic Atlas Maintenance
|
|
8
|
+
|
|
9
|
+
Turn retained investigation leads into one bounded, current-evidence map change.
|
|
10
|
+
The candidate report preserves why a correction was proposed; current source,
|
|
11
|
+
tests, tracked product documents, and required runtime evidence decide whether
|
|
12
|
+
the canonical map changes.
|
|
13
|
+
|
|
14
|
+
## Prepare The Candidate Set
|
|
15
|
+
|
|
16
|
+
1. Resolve the repository root and keep the maintenance work in its assigned
|
|
17
|
+
worktree.
|
|
18
|
+
2. Run the read-only report:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
semantic-atlas reconcile candidates --repo <absolute-repository-root>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. Confirm the response is the v1 `reconcile candidates` envelope. Read each
|
|
25
|
+
candidate's business-domain ownership, task evidence, `confirmed`,
|
|
26
|
+
`contradicted`, or `unresolved` disposition, duplicate provenance, and
|
|
27
|
+
linked independent reviews.
|
|
28
|
+
4. When the report contains no candidates, finish with a no-change result. An
|
|
29
|
+
empty report is a complete maintenance outcome.
|
|
30
|
+
|
|
31
|
+
## Select One Business Domain
|
|
32
|
+
|
|
33
|
+
Choose one business domain for the run. Keep candidates from other domains in
|
|
34
|
+
the retained report for later maintenance. Within the selected domain, use
|
|
35
|
+
linked approved reviews and repeated provenance to prioritize investigation;
|
|
36
|
+
they strengthen the trail but remain evidence to verify rather than automatic
|
|
37
|
+
map authority.
|
|
38
|
+
|
|
39
|
+
Read [references/reconciliation.md](references/reconciliation.md) before
|
|
40
|
+
classifying candidates. It defines the evidence meaning, durable-content test,
|
|
41
|
+
duplicate handling, and clean stopping conditions.
|
|
42
|
+
|
|
43
|
+
## Confirm Current Business Meaning
|
|
44
|
+
|
|
45
|
+
1. Open the selected domain's current `docs/business-map/*.yaml` owner.
|
|
46
|
+
2. Open every decisive current source, test, or tracked product document named
|
|
47
|
+
by the candidate origins. Follow current callers or collaborators when the
|
|
48
|
+
proposed relation changes both business endpoints.
|
|
49
|
+
3. Classify each candidate for this maintenance run:
|
|
50
|
+
- `accepted`: current evidence supports the proposed durable correction;
|
|
51
|
+
- `refined`: current evidence supports a narrower or differently worded
|
|
52
|
+
durable correction;
|
|
53
|
+
- `discarded`: the observation is implementation-local, stale in a way that
|
|
54
|
+
no longer matters, or unsupported by current evidence;
|
|
55
|
+
- `unresolved`: available evidence cannot decide stable business meaning.
|
|
56
|
+
4. Keep discarded and unresolved candidates outside the canonical map. Record
|
|
57
|
+
their evidence-based reason in the maintenance result.
|
|
58
|
+
|
|
59
|
+
## Edit One Owning YAML
|
|
60
|
+
|
|
61
|
+
Apply accepted and refined corrections to one owning YAML surface for the
|
|
62
|
+
selected business domain. Preserve stable node IDs when business identity is
|
|
63
|
+
unchanged, use the source concept's owning file for directed relations, and
|
|
64
|
+
keep anchors as navigation hints rather than current-behavior claims.
|
|
65
|
+
|
|
66
|
+
Repeated origins for one duplicate candidate produce one map edit. Preserve
|
|
67
|
+
all originating task and review IDs in the maintenance result so independent
|
|
68
|
+
review can trace why the edit exists.
|
|
69
|
+
|
|
70
|
+
## Validate The Normal Git Change
|
|
71
|
+
|
|
72
|
+
Run the supported product boundaries after the edit:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
semantic-atlas validate --repo <absolute-repository-root>
|
|
76
|
+
semantic-atlas render --repo <absolute-repository-root> \
|
|
77
|
+
--output <repository-root>/tmp/semantic-atlas-<business-domain>.html
|
|
78
|
+
git diff --check
|
|
79
|
+
git diff -- docs/business-map/<owning-file>.yaml
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Inspect the rendered projection for the changed neighborhood. Confirm the Git
|
|
83
|
+
diff changes one owning YAML surface and leaves retained observations
|
|
84
|
+
unchanged. Submit the ordinary map change for independent review; the reviewer
|
|
85
|
+
checks durable business meaning, relation direction, evidence support, complete
|
|
86
|
+
graph validity, and the one-domain boundary.
|
|
87
|
+
|
|
88
|
+
## Report The Result
|
|
89
|
+
|
|
90
|
+
Report the selected business domain, candidate origins, each maintenance
|
|
91
|
+
classification and decisive evidence, the owning YAML file, validation and
|
|
92
|
+
render results, the Git diff, and any discarded or unresolved leads. Separate
|
|
93
|
+
the proposed map change from independent-review approval and later merge.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Semantic Atlas Maintenance"
|
|
3
|
+
short_description: "Review one domain's map candidates against current evidence"
|
|
4
|
+
default_prompt: "Use $semantic-atlas-maintenance to reconcile retained candidates for one business domain into a reviewed map change."
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Reconciliation Evidence Guide
|
|
2
|
+
|
|
3
|
+
Use this guide after loading the versioned candidate report and selecting one
|
|
4
|
+
business domain.
|
|
5
|
+
|
|
6
|
+
## Read Candidate Provenance
|
|
7
|
+
|
|
8
|
+
Each candidate group represents one exact domain, kind, and proposed summary.
|
|
9
|
+
Every origin retains:
|
|
10
|
+
|
|
11
|
+
- its task-observation ID, task/run identity, and candidate position;
|
|
12
|
+
- the candidate-specific evidence and `confirmed`, `contradicted`, or
|
|
13
|
+
`unresolved` disposition;
|
|
14
|
+
- the task's map queries and current-evidence dispositions;
|
|
15
|
+
- any task or review human correction;
|
|
16
|
+
- every linked independent review and its accuracy assessment.
|
|
17
|
+
|
|
18
|
+
`confirmed` says task-time evidence supported the proposed correction.
|
|
19
|
+
`contradicted` says current evidence contradicted the mapped statement that the
|
|
20
|
+
candidate proposes to replace. `unresolved` identifies a useful lead whose
|
|
21
|
+
stable meaning was not established. These task dispositions organize the
|
|
22
|
+
maintenance investigation; independent review remains the correctness
|
|
23
|
+
authority for the engineering run that produced them.
|
|
24
|
+
|
|
25
|
+
## Decide Whether Meaning Is Durable
|
|
26
|
+
|
|
27
|
+
A correction belongs in the shared map when future tasks can independently
|
|
28
|
+
name, navigate to, depend on, constrain, read, write, publish, consume, or
|
|
29
|
+
change it. Keep methods, helpers, SQL details, folders, framework components,
|
|
30
|
+
temporary migrations, and one-off execution state as implementation-local
|
|
31
|
+
evidence.
|
|
32
|
+
|
|
33
|
+
Use current tracked product documents for durable intent and current source and
|
|
34
|
+
tests for implemented collaboration. Use runtime evidence when the conclusion
|
|
35
|
+
depends on deployed state. When these sources disagree, state the disagreement
|
|
36
|
+
and leave the candidate unresolved until the owning authority can decide it.
|
|
37
|
+
|
|
38
|
+
## Handle Drift And Duplicates
|
|
39
|
+
|
|
40
|
+
- A stale anchor can be accepted when the business concept remains durable and
|
|
41
|
+
current source provides the replacement navigation hint.
|
|
42
|
+
- A contradicted relation can be replaced after both current endpoints and the
|
|
43
|
+
relation direction are confirmed.
|
|
44
|
+
- A missing concept can be added when current evidence establishes stable
|
|
45
|
+
business identity, ownership, and meaning rather than only a source symbol.
|
|
46
|
+
- A duplicate candidate keeps all provenance but produces one YAML edit.
|
|
47
|
+
- A transient or implementation-local observation is discarded with a concise
|
|
48
|
+
evidence-backed reason and produces no map change.
|
|
49
|
+
|
|
50
|
+
## Keep One Review Surface
|
|
51
|
+
|
|
52
|
+
Edit one owning `docs/business-map/*.yaml` file for the selected domain. Validate
|
|
53
|
+
the complete graph because relation endpoints and containment remain
|
|
54
|
+
repository-wide even when the Git diff is local. Render the changed graph and
|
|
55
|
+
inspect the selected neighborhood. The final Git diff is the independent
|
|
56
|
+
review surface; retained observation artifacts stay unchanged.
|
package/README.md
CHANGED
|
@@ -1,322 +1,191 @@
|
|
|
1
|
-
|
|
2
|
-
<h1>Semantic Atlas</h1>
|
|
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>
|
|
1
|
+
# Semantic Atlas
|
|
5
2
|
|
|
6
|
-
|
|
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>
|
|
8
|
-
<a href="https://github.com/lzj960515/semantic-atlas/actions/workflows/ci.yml"><img alt="continuous integration" src="https://img.shields.io/github/actions/workflow/status/lzj960515/semantic-atlas/ci.yml?branch=main&style=flat-square&label=ci"></a>
|
|
9
|
-
<a href="https://www.npmjs.com/package/semantic-atlas"><img alt="supported Node.js version" src="https://img.shields.io/node/v/semantic-atlas?style=flat-square&color=43853d"></a>
|
|
10
|
-
<a href="./LICENSE"><img alt="MIT license" src="https://img.shields.io/github/license/lzj960515/semantic-atlas?style=flat-square&color=2d5b46"></a>
|
|
11
|
-
</p>
|
|
3
|
+
[](https://github.com/lzj960515/semantic-atlas/actions/workflows/ci.yml)
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
Semantic Atlas gives coding agents a compact map of the business before they
|
|
6
|
+
change the code. A repository describes stable domains, capabilities,
|
|
7
|
+
operations, data, rules, interfaces, and their relationships in tracked YAML.
|
|
8
|
+
The CLI validates that map, returns a small neighborhood for investigation, and
|
|
9
|
+
renders the same graph for people.
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
word appears. Neither tells it the complete business area affected by a product
|
|
20
|
-
change.
|
|
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.
|
|
26
|
-
|
|
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.
|
|
58
|
-
|
|
59
|
-
The map grows during normal engineering work:
|
|
60
|
-
|
|
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.
|
|
66
|
-
|
|
67
|
-
`index` publishes code structure; it does not guess a repository-wide business
|
|
68
|
-
model. A newly indexed project can honestly have an empty business map. The first
|
|
69
|
-
relevant task may introduce a provisional root such as "Refund eligibility".
|
|
70
|
-
Later work can discover "After-sales" and "Orders" above it and reparent the
|
|
71
|
-
existing node without changing its stable identity or evidence.
|
|
72
|
-
|
|
73
|
-
## What the agent actually does
|
|
74
|
-
|
|
75
|
-
Suppose a product request changes refund eligibility. A Semantic Atlas-aware
|
|
76
|
-
agent follows this path:
|
|
77
|
-
|
|
78
|
-
```text
|
|
79
|
-
status
|
|
80
|
-
-> refresh the structural snapshot when needed
|
|
81
|
-
-> view/search the business map
|
|
82
|
-
-> zoom into the refund region and inspect its evidence
|
|
83
|
-
-> use bounded code search only for gaps
|
|
84
|
-
-> confirm behavior in source and tests
|
|
85
|
-
-> make and verify the change
|
|
86
|
-
-> reindex, inspect semantic changes, and retain durable knowledge
|
|
87
|
-
```
|
|
88
|
-
|
|
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.
|
|
93
|
-
|
|
94
|
-
This workflow is delivered as one product:
|
|
95
|
-
|
|
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 **desktop Web viewer** lets people browse the same established business
|
|
102
|
-
map without changing Atlas knowledge or reading source first.
|
|
103
|
-
- The structural analyzer remains an internal evidence provider. Its directory
|
|
104
|
-
graph, CLI, storage schema, and terminology do not become the business map.
|
|
11
|
+
The map is deliberately advisory. It helps an agent enter through the right
|
|
12
|
+
business boundary; current source, tests, tracked product documents, and
|
|
13
|
+
required runtime evidence still decide what the system does now.
|
|
105
14
|
|
|
106
15
|
## Install
|
|
107
16
|
|
|
108
|
-
Semantic Atlas
|
|
109
|
-
TypeScript or JavaScript.
|
|
17
|
+
Semantic Atlas requires Node.js 24.
|
|
110
18
|
|
|
111
|
-
```
|
|
19
|
+
```bash
|
|
112
20
|
npm install --global semantic-atlas
|
|
113
21
|
semantic-atlas setup
|
|
114
22
|
semantic-atlas --version
|
|
115
|
-
semantic-atlas -h
|
|
116
23
|
```
|
|
117
24
|
|
|
118
|
-
`setup`
|
|
119
|
-
`~/.agents/skills
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
`~/.codex/skills/semantic-atlas` is removed only after the shared installation
|
|
123
|
-
succeeds.
|
|
25
|
+
`setup` installs the package's exact engineering and maintenance Skills under
|
|
26
|
+
`~/.agents/skills/`. Repeating it verifies the installed payloads, repairs a
|
|
27
|
+
modified managed copy, and upgrades a recognized Semantic Atlas v0.4 Skill. It
|
|
28
|
+
refuses to replace an unrelated same-named directory.
|
|
124
29
|
|
|
125
|
-
|
|
126
|
-
npm access is used only to install or upgrade Semantic Atlas.
|
|
30
|
+
## Upgrade
|
|
127
31
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
```sh
|
|
32
|
+
```bash
|
|
131
33
|
semantic-atlas upgrade
|
|
132
34
|
```
|
|
133
35
|
|
|
134
|
-
`upgrade`
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
Git project or open Atlas data.
|
|
139
|
-
|
|
140
|
-
## First project
|
|
141
|
-
|
|
142
|
-
The bundled Skill normally drives these commands for the agent. They are shown
|
|
143
|
-
here to make the lifecycle explicit. Run Atlas commands serially in the exact
|
|
144
|
-
target worktree:
|
|
145
|
-
|
|
146
|
-
```sh
|
|
147
|
-
semantic-atlas status
|
|
148
|
-
semantic-atlas index
|
|
149
|
-
semantic-atlas map view
|
|
150
|
-
semantic-atlas map search "checkout" --limit 10
|
|
151
|
-
semantic-atlas map view commerce/orders
|
|
152
|
-
semantic-atlas map show commerce/orders/checkout
|
|
153
|
-
```
|
|
36
|
+
`upgrade` resolves npm's current stable version, installs that exact package,
|
|
37
|
+
verifies the installed CLI identity, and asks the new CLI to synchronize both
|
|
38
|
+
managed Skills. The executable and Skills therefore move as one versioned
|
|
39
|
+
product.
|
|
154
40
|
|
|
155
|
-
|
|
156
|
-
`index` before querying. If a current world returns `regions: []` with
|
|
157
|
-
`BUSINESS_KNOWLEDGE_EMPTY`, the project has no verified business knowledge yet.
|
|
158
|
-
The agent then uses a bounded fallback:
|
|
41
|
+
## Add A Business Map
|
|
159
42
|
|
|
160
|
-
|
|
161
|
-
|
|
43
|
+
A target repository owns only its Git-tracked map documents:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
docs/business-map/*.yaml
|
|
162
47
|
```
|
|
163
48
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
49
|
+
Start with one file per stable business domain:
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
schemaVersion: 1
|
|
53
|
+
map:
|
|
54
|
+
id: commerce
|
|
55
|
+
title: Commerce
|
|
56
|
+
summary: Customer-facing product discovery and purchase.
|
|
57
|
+
|
|
58
|
+
nodes:
|
|
59
|
+
- id: commerce
|
|
60
|
+
kind: domain
|
|
61
|
+
name: Commerce
|
|
62
|
+
summary: Customer-facing product discovery and purchase.
|
|
63
|
+
aliases: []
|
|
64
|
+
anchors:
|
|
65
|
+
- kind: directory
|
|
66
|
+
value: src/commerce
|
|
67
|
+
description: Likely source entry point for Commerce behavior.
|
|
68
|
+
|
|
69
|
+
relations: []
|
|
70
|
+
```
|
|
167
71
|
|
|
168
|
-
|
|
72
|
+
The [map format](docs/map-format.md) defines supported concepts, relations,
|
|
73
|
+
anchors, validation rules, and lookup behavior.
|
|
169
74
|
|
|
170
|
-
|
|
75
|
+
## Query And Render
|
|
171
76
|
|
|
172
|
-
```
|
|
173
|
-
semantic-atlas
|
|
77
|
+
```bash
|
|
78
|
+
semantic-atlas validate --repo /path/to/repository
|
|
79
|
+
semantic-atlas context "Checkout" --repo /path/to/repository
|
|
80
|
+
semantic-atlas render --repo /path/to/repository --output ./business-map.html
|
|
174
81
|
```
|
|
175
82
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
The project rail contains only each repository's primary working tree when it
|
|
182
|
-
is currently on `main` or `master`. Linked worktrees and other branches never
|
|
183
|
-
appear. The viewer supports project selection, hierarchical business-map
|
|
184
|
-
navigation, business search, and node details with existing kind, certainty,
|
|
185
|
-
validity, relationships, and evidence. It cannot index, learn, modify source,
|
|
186
|
-
operate Git, or change Atlas data.
|
|
187
|
-
|
|
188
|
-
## Product insights
|
|
189
|
-
|
|
190
|
-
Normal work does not gain a new reporting step. When source confirmation shows
|
|
191
|
-
that Atlas materially blocked or slowed a task, the primary Skill can record one
|
|
192
|
-
compact, evidence-contextual report. Daily maintenance is handled by the
|
|
193
|
-
separate Insights Skill:
|
|
194
|
-
|
|
195
|
-
```sh
|
|
196
|
-
semantic-atlas insights summary --period yesterday
|
|
197
|
-
semantic-atlas insights feedback --period yesterday --status new
|
|
198
|
-
semantic-atlas insights feedback update --stdin
|
|
199
|
-
```
|
|
83
|
+
`validate` checks every map document as one graph. `context` returns the
|
|
84
|
+
selected concept, containment, direct incoming and outgoing relationships,
|
|
85
|
+
related concepts, and source-navigation anchors in a versioned JSON envelope.
|
|
86
|
+
`render` produces deterministic static HTML from that same normalized graph.
|
|
200
87
|
|
|
201
|
-
|
|
202
|
-
outcome, warning codes, duration, repository identity, and snapshot identity.
|
|
203
|
-
It never records prompts, command arguments, query text, source text, or command
|
|
204
|
-
output. Use the signals with fresh-agent evaluation and source-confirmed reports;
|
|
205
|
-
they show product usage and friction, not a standalone recall score.
|
|
88
|
+
## Evidence Order
|
|
206
89
|
|
|
207
|
-
|
|
90
|
+
For a business-changing engineering task:
|
|
208
91
|
|
|
209
|
-
|
|
210
|
-
|
|
92
|
+
1. Query the smallest useful map neighborhood.
|
|
93
|
+
2. Treat concepts, relations, summaries, and anchors as investigation leads.
|
|
94
|
+
3. Confirm every change-controlling claim in current source and tests.
|
|
95
|
+
4. Use tracked product documents for durable intent and runtime evidence for
|
|
96
|
+
state-dependent behavior.
|
|
97
|
+
5. Let current evidence override missing, stale, or contradicted map knowledge.
|
|
98
|
+
6. Implement and verify through the repository's normal engineering workflow.
|
|
211
99
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
- **Business facts carry evidence.** Learned nodes and relations bind to source
|
|
215
|
-
symbols, ranges, content hashes, certainty, and a repository snapshot.
|
|
216
|
-
- **Change invalidates confidence visibly.** Evidence that can no longer be
|
|
217
|
-
rebound becomes `stale`; it is not silently retained as current truth.
|
|
218
|
-
- **Uncertainty stays explicit.** Dynamic dispatch, reflection, unsupported
|
|
219
|
-
structure, hypotheses, and unresolved targets route the agent back to source.
|
|
220
|
-
- **The target project stays untouched.** Atlas does not edit source, run tests,
|
|
221
|
-
or operate Git. Generated worktree state is ignored and disposable.
|
|
100
|
+
The final engineering conclusion is expected to be more accurate than the map
|
|
101
|
+
that helped locate it.
|
|
222
102
|
|
|
223
|
-
##
|
|
103
|
+
## Agent Skills
|
|
224
104
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
105
|
+
`semantic-atlas setup` installs two package-owned Skills:
|
|
106
|
+
|
|
107
|
+
- `semantic-atlas` guides business-changing work from a bounded context query
|
|
108
|
+
into current-source confirmation.
|
|
109
|
+
- `semantic-atlas-maintenance` reviews retained candidates for one business
|
|
110
|
+
domain and prepares a normal reviewed YAML change.
|
|
111
|
+
|
|
112
|
+
Target repositories do not copy these Skills. They share only their business
|
|
113
|
+
maps through Git.
|
|
228
114
|
|
|
229
|
-
|
|
230
|
-
└── insights.db installation-level usage and feedback signals
|
|
115
|
+
## Accuracy Observations
|
|
231
116
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
117
|
+
Normal engineering work can retain task evidence and independent review
|
|
118
|
+
evidence without changing the business map:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
semantic-atlas observe task --stdin --repo /path/to/repository
|
|
122
|
+
semantic-atlas observe review --stdin --repo /path/to/repository
|
|
123
|
+
semantic-atlas insights summary --repo /path/to/repository --period 4w
|
|
235
124
|
```
|
|
236
125
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
126
|
+
A task observation records queries, current-evidence classifications, candidate
|
|
127
|
+
map corrections, and explicit human corrections. It never grades its own
|
|
128
|
+
accuracy. An independent review observation owns correctness, impact,
|
|
129
|
+
required-rework, and map-regression judgments. IDs are immutable: an exact
|
|
130
|
+
replay is idempotent and changed content conflicts.
|
|
242
131
|
|
|
243
|
-
|
|
244
|
-
|
|
132
|
+
See [accuracy observations](docs/observations.md) for the schemas and evidence
|
|
133
|
+
semantics.
|
|
245
134
|
|
|
246
|
-
##
|
|
135
|
+
## Reconciliation
|
|
247
136
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
137
|
+
```bash
|
|
138
|
+
semantic-atlas reconcile candidates --repo /path/to/repository
|
|
139
|
+
```
|
|
251
140
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
| Median unique source files opened | 6.5 | 4 | 38.46% fewer |
|
|
258
|
-
| Median observed source-input tokens | 1,351 | 688 | 49.07% fewer |
|
|
141
|
+
The command groups retained candidates by explicit business-domain ownership
|
|
142
|
+
while preserving each origin, evidence disposition, and linked independent
|
|
143
|
+
review. It is read-only. The maintenance Skill then confirms one domain against
|
|
144
|
+
current evidence and submits any accepted map correction through an ordinary
|
|
145
|
+
Git diff and independent review.
|
|
259
146
|
|
|
260
|
-
|
|
261
|
-
total model-token savings. Read the [evaluation protocol](docs/evaluation.md)
|
|
262
|
-
before interpreting them.
|
|
147
|
+
## Local Data And Privacy
|
|
263
148
|
|
|
264
|
-
|
|
149
|
+
Business maps stay in the target repository. Accuracy observations stay in
|
|
150
|
+
immutable JSON files under a hashed user-local repository partition:
|
|
265
151
|
|
|
266
152
|
```text
|
|
267
|
-
semantic-atlas
|
|
268
|
-
semantic-atlas upgrade
|
|
269
|
-
semantic-atlas -h | --help
|
|
270
|
-
semantic-atlas --version
|
|
271
|
-
semantic-atlas web [--repo <path>] [--port <n>] [--no-open]
|
|
272
|
-
|
|
273
|
-
semantic-atlas status [--repo <path>] [--pretty]
|
|
274
|
-
semantic-atlas index [--repo <path>] [--pretty]
|
|
275
|
-
semantic-atlas map view [business-key] [--repo <path>] [--pretty]
|
|
276
|
-
semantic-atlas map search <business-term> [--limit <n>] [--repo <path>] [--pretty]
|
|
277
|
-
semantic-atlas map show <business-key> [--repo <path>] [--pretty]
|
|
278
|
-
semantic-atlas code search <structural-term> [--limit <n>] [--repo <path>] [--pretty]
|
|
279
|
-
semantic-atlas learn --stdin [--repo <path>] [--pretty]
|
|
280
|
-
semantic-atlas changes [--from <snapshot-id>] [--to <snapshot-id>] [--repo <path>] [--pretty]
|
|
281
|
-
semantic-atlas feedback report --stdin [--repo <path>] [--pretty]
|
|
282
|
-
|
|
283
|
-
semantic-atlas insights summary [--period today|yesterday|7d|30d|all] [--pretty]
|
|
284
|
-
semantic-atlas insights feedback [--period today|yesterday|7d|30d|all] [--status new|triaged|resolved|dismissed] [--pretty]
|
|
285
|
-
semantic-atlas insights feedback update --stdin [--pretty]
|
|
153
|
+
~/.semantic-atlas/observations/v1/repositories/<repository-id>/
|
|
286
154
|
```
|
|
287
155
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
156
|
+
Observation files contain neither repository paths nor remote URLs. Semantic
|
|
157
|
+
Atlas has no remote observation service, account, telemetry upload, persistent
|
|
158
|
+
graph database, or automatic source/map mutation. `setup` and observation
|
|
159
|
+
commands do not add files to a target repository; `render` writes only the
|
|
160
|
+
explicitly requested local output.
|
|
293
161
|
|
|
294
|
-
##
|
|
162
|
+
## Development
|
|
295
163
|
|
|
296
|
-
```
|
|
297
|
-
corepack enable
|
|
164
|
+
```bash
|
|
298
165
|
pnpm install --frozen-lockfile
|
|
299
|
-
pnpm
|
|
300
|
-
pnpm test
|
|
301
|
-
pnpm build
|
|
302
|
-
pnpm package:verify
|
|
166
|
+
pnpm release:verify
|
|
303
167
|
```
|
|
304
168
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
169
|
+
The release-candidate gate runs contract and source tests, typecheck, build,
|
|
170
|
+
rendering checks, packed-tarball privacy checks, an anonymous installed-product
|
|
171
|
+
flow, a real public v0.4-to-v1 transition rehearsal, package dry-run, and Git
|
|
172
|
+
diff validation.
|
|
173
|
+
|
|
174
|
+
Publication is a separate operation. After the repository's immutable-release
|
|
175
|
+
setting is enabled, a non-prerelease GitHub Release for an annotated version tag
|
|
176
|
+
triggers the protected npm workflow. The workflow verifies the specific Release
|
|
177
|
+
is immutable in a read-only job before any tag checkout or npm credential
|
|
178
|
+
boundary. Only then does the protected publish job repeat the candidate gate
|
|
179
|
+
and publish with npm provenance.
|
|
308
180
|
|
|
309
|
-
##
|
|
181
|
+
## Documentation
|
|
310
182
|
|
|
311
183
|
- [Product contract](docs/product-contract.md)
|
|
312
|
-
- [
|
|
313
|
-
- [
|
|
314
|
-
- [
|
|
315
|
-
- [
|
|
316
|
-
- [HTTP API v1 contract](docs/contracts/http-api-v1.md)
|
|
317
|
-
- [Insights v1 contract](docs/contracts/insights-v1.md)
|
|
318
|
-
- [Evaluation protocol](docs/evaluation.md)
|
|
184
|
+
- [Architecture](docs/architecture.md)
|
|
185
|
+
- [Map format](docs/map-format.md)
|
|
186
|
+
- [Accuracy observations](docs/observations.md)
|
|
187
|
+
- [Evaluation](docs/evaluation.md)
|
|
319
188
|
|
|
320
189
|
## License
|
|
321
190
|
|
|
322
|
-
|
|
191
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CliError, ContextEnvelope, ValidateEnvelope } from "../contracts/cli.js";
|
|
2
|
+
import type { MapProjection } from "../contracts/projection.js";
|
|
3
|
+
import type { RepositoryMapSource } from "../contracts/map.js";
|
|
4
|
+
import { MapDocumentLoader } from "../map/map-document-loader.js";
|
|
5
|
+
import { MapValidator } from "../map/map-validator.js";
|
|
6
|
+
export type MapProjectionResult = {
|
|
7
|
+
readonly ok: true;
|
|
8
|
+
readonly repository: RepositoryMapSource;
|
|
9
|
+
readonly projection: MapProjection;
|
|
10
|
+
} | {
|
|
11
|
+
readonly ok: false;
|
|
12
|
+
readonly repository?: RepositoryMapSource;
|
|
13
|
+
readonly error: CliError;
|
|
14
|
+
};
|
|
15
|
+
export declare class MapApplication {
|
|
16
|
+
private readonly loader;
|
|
17
|
+
private readonly validator;
|
|
18
|
+
constructor(loader?: MapDocumentLoader, validator?: MapValidator);
|
|
19
|
+
validate(repositoryPath: string): Promise<ValidateEnvelope>;
|
|
20
|
+
context(repositoryPath: string, selector: string): Promise<ContextEnvelope>;
|
|
21
|
+
project(repositoryPath: string): Promise<MapProjectionResult>;
|
|
22
|
+
private loadValidatedMap;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=map-application.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-application.d.ts","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAevD,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;CACpC,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B,CAAC;AAEN,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,MAAM,oBAA0B,EAChC,SAAS,eAAqB;IAGpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAiB3D,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAsC3E,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;YAY5D,gBAAgB;CAuC/B"}
|