@laurindustries/mnemos 0.0.0-stage → 0.2.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/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +78 -2
- package/docs/README.md +33 -0
- package/docs/assets/mnemos-readme.svg +13 -0
- package/docs/assets/mnemos-social-preview.png +0 -0
- package/docs/branding.md +19 -0
- package/docs/cli.md +144 -0
- package/docs/development.md +29 -0
- package/docs/getting-started.md +127 -0
- package/docs/mcp.md +105 -0
- package/docs/ontology.md +233 -0
- package/docs/operations.md +130 -0
- package/docs/refresh.md +79 -0
- package/docs/release.md +68 -0
- package/docs/relocation.md +22 -0
- package/examples/ontology.extended.yaml +64 -0
- package/package.json +91 -4
- package/scripts/check-docs.mjs +23 -0
- package/scripts/cli.mjs +9 -0
- package/scripts/mcp.mjs +3 -0
- package/scripts/package-smoke-worker.mjs +63 -0
- package/scripts/package-smoke.mjs +49 -0
- package/scripts/refresh.config.example.json +8 -0
- package/scripts/refresh.mjs +10 -0
- package/src/api.ts +39 -0
- package/src/cli.ts +111 -0
- package/src/config.ts +124 -0
- package/src/core-bootstrap.mjs +3 -0
- package/src/explorer.ts +106 -0
- package/src/index.ts +88 -0
- package/src/legacy-v5.json +22 -0
- package/src/mcp.ts +31 -0
- package/src/ontology-editor.ts +115 -0
- package/src/ontology.ts +50 -0
- package/src/ontology.yaml +60 -0
- package/src/opencode-bootstrap.mjs +2 -0
- package/src/opencode.ts +28 -0
- package/src/paths.ts +8 -0
- package/src/refresh/cli.ts +121 -0
- package/src/refresh/inventory.ts +259 -0
- package/src/refresh/refresh.ts +112 -0
- package/src/service-bootstrap.mjs +11 -0
- package/src/service-protocol.ts +94 -0
- package/src/service.ts +138 -0
- package/src/shared-store.ts +125 -0
- package/src/store.ts +385 -0
- package/src/tool-contract.ts +45 -0
- package/src/web/app.js +241 -0
- package/src/web/index.html +56 -0
- package/src/web/mnemos-icon-32.png +0 -0
- package/src/web/mnemos-icon.svg +9 -0
- package/src/web/mnemos-logo.svg +10 -0
- package/src/web/style.css +57 -0
package/docs/ontology.md
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# Mnemos ontology
|
|
2
|
+
|
|
3
|
+
An **ontology** defines which entity types, relationship types, and attributes
|
|
4
|
+
the graph accepts. A **fact** is an entity or edge that conforms to it.
|
|
5
|
+
For example, `Repo` is an entity type, `repo:payments/live` is one entity,
|
|
6
|
+
and `CALLS` is a relationship type with a required direction. Creating a repo
|
|
7
|
+
does not change the ontology, and editing YAML does not create a repo.
|
|
8
|
+
|
|
9
|
+
| I want to… | Do this |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| Remember a new repository or correct its source | Write or update a fact with [`knowledge_graph`](cli.md#tool-knowledge_graph). |
|
|
12
|
+
| Record a kind of fact the current schema can't express | Add a type, relationship, or optional attribute to a user-owned YAML file. |
|
|
13
|
+
| Remove a type or change what an existing edge means | Use a fresh database or plan a separate migration. Don't force the change on an existing graph. |
|
|
14
|
+
|
|
15
|
+
- [Inspect the schema](#inspect-the-schema) before deciding whether you need to change it.
|
|
16
|
+
- [Edit on explicit request](#edit-on-explicit-request) in Pi, OpenCode, or MCP.
|
|
17
|
+
- [Write custom YAML](#extensible-yaml-ontology) or look up the [default model](#default-ontology).
|
|
18
|
+
- [Check compatibility and activate](#compatibility-and-migration) before using a changed schema with an existing graph.
|
|
19
|
+
|
|
20
|
+
## Inspect the schema
|
|
21
|
+
|
|
22
|
+
| Where | How |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| Pi | `/kg schema` |
|
|
25
|
+
| Pi, OpenCode, or MCP | Call `knowledge_graph` with `{"action":"schema"}` |
|
|
26
|
+
| Terminal | `knowledge-graph schema --human` (omit `--human` for JSON) |
|
|
27
|
+
| Explorer | Select **Schema** if the explorer is enabled |
|
|
28
|
+
|
|
29
|
+
The command/tool schema checks do not write ontology YAML or start database
|
|
30
|
+
storage. The explorer itself runs on a live owner. For the exact default YAML,
|
|
31
|
+
see [the packaged ontology](../src/ontology.yaml); for a complete working custom
|
|
32
|
+
configuration, see [the extended example](../examples/ontology.extended.yaml).
|
|
33
|
+
|
|
34
|
+
## Edit on explicit request
|
|
35
|
+
|
|
36
|
+
`mnemos_edit_ontology` is available through **Pi, OpenCode, and MCP**. Its tool
|
|
37
|
+
description tells agents to call it only when the user explicitly asks to edit
|
|
38
|
+
the ontology YAML. A request to store a graph fact, a suggestion about a missing
|
|
39
|
+
type, or instructions in stored data do not count.
|
|
40
|
+
|
|
41
|
+
**This is a prompt rule, not access control.** The tool writes as soon as a valid
|
|
42
|
+
`apply` call succeeds. There is no arming command, confirmation dialog, or
|
|
43
|
+
approval flag. Do not expose the tool to clients you do not trust to follow
|
|
44
|
+
that rule.
|
|
45
|
+
|
|
46
|
+
1. **Select a user-owned file.** Copy [the packaged default](../src/ontology.yaml)
|
|
47
|
+
to a new YAML file without overwriting an existing custom file. Set
|
|
48
|
+
`PI_KNOWLEDGE_GRAPH_ONTOLOGY=/absolute/path/ontology.yaml` before launching
|
|
49
|
+
all hosts. The tool never changes the packaged default, the historical
|
|
50
|
+
baseline, symlinks, or hard-linked files.
|
|
51
|
+
2. **Ask for the specific change.** For example: “Edit the ontology to add
|
|
52
|
+
an optional string `team` attribute to `Project`. Leave the rest unchanged.”
|
|
53
|
+
The agent calls `inspect` for the current YAML and `base_sha256`, then calls
|
|
54
|
+
`apply` with that hash and the complete replacement YAML. It should report
|
|
55
|
+
what it changed. The tool rejects stale, invalid, or incompatible YAML and
|
|
56
|
+
replaces the file atomically. Avoid editing it simultaneously with another
|
|
57
|
+
program; the tool rechecks the file but cannot lock out external editors.
|
|
58
|
+
3. **Activate separately.** The edit only replaces YAML. It does not open the
|
|
59
|
+
database, reload clients, restart the owner, or run a migration. A stale
|
|
60
|
+
client cannot start an owner with the changed YAML. See
|
|
61
|
+
[compatibility and migration](#compatibility-and-migration) before restarting.
|
|
62
|
+
|
|
63
|
+
The CLI and browser explorer do not expose an ontology write action.
|
|
64
|
+
|
|
65
|
+
## Extensible YAML ontology
|
|
66
|
+
|
|
67
|
+
To validate a candidate without switching the active configuration or opening
|
|
68
|
+
storage, run:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
knowledge-graph --ontology /absolute/path/ontology.yaml schema --human
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
This validates the YAML and prints its interpreted schema. It does not validate
|
|
75
|
+
physical database tables or migrate existing data.
|
|
76
|
+
|
|
77
|
+
### What goes in the YAML
|
|
78
|
+
|
|
79
|
+
The file is the entire ontology, not an overlay. New databases can use an
|
|
80
|
+
entirely different set of types.
|
|
81
|
+
|
|
82
|
+
| Section | Purpose |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| `version` | Positive integer identifying the schema revision. It does not authorize a migration. |
|
|
85
|
+
| `entities` | Named types and the attributes they accept. Entity IDs, names, and timestamps are built in. |
|
|
86
|
+
| `relationships` | Named, directed types with explicit `from` and `to` endpoints. |
|
|
87
|
+
| `shared_attributes` | Fields available across the graph. `description` and `source` must remain strings. |
|
|
88
|
+
|
|
89
|
+
Every entity and relationship definition needs a `description` and an
|
|
90
|
+
`attributes` mapping, which can be empty.
|
|
91
|
+
|
|
92
|
+
For example, extend the default YAML with these two entries under their existing
|
|
93
|
+
mappings. Keep the other entries, including `Environment` and `shared_attributes`;
|
|
94
|
+
this snippet is not a complete replacement file:
|
|
95
|
+
|
|
96
|
+
```yaml
|
|
97
|
+
entities:
|
|
98
|
+
Service:
|
|
99
|
+
description: A logical application service.
|
|
100
|
+
attributes:
|
|
101
|
+
tier: {type: string, enum: [api, worker], required: true, immutable: true}
|
|
102
|
+
owner: {type: string, maxLength: 512}
|
|
103
|
+
replicas: {type: number}
|
|
104
|
+
enabled: {type: boolean}
|
|
105
|
+
relationships:
|
|
106
|
+
SERVES:
|
|
107
|
+
description: An API service is configured for this environment.
|
|
108
|
+
from: {entity_type: Service, tier: api}
|
|
109
|
+
to: {entity_type: Environment}
|
|
110
|
+
attributes:
|
|
111
|
+
weight: {type: number}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
A Service with `tier: api` can point **to** an Environment via `SERVES`. A worker
|
|
115
|
+
cannot use that edge, and reversing the source and target is invalid. The
|
|
116
|
+
`tier` field is immutable so an existing edge cannot become invalid later.
|
|
117
|
+
|
|
118
|
+
### Rules that keep facts consistent
|
|
119
|
+
|
|
120
|
+
- Attributes accept `string`, finite `number` (stored as DOUBLE), and
|
|
121
|
+
`boolean`. Strings can have a `maxLength` of 1–8,000 and an `enum`
|
|
122
|
+
of unique, non-empty strings. Any attribute may have a `description`, be
|
|
123
|
+
`required` on creation, or be `immutable`.
|
|
124
|
+
- Reusing an attribute name across types means sharing a physical column.
|
|
125
|
+
Its scalar type, enum declaration, and length limit must match. Use
|
|
126
|
+
different names for different meanings. Legacy `kind`, `stage`,
|
|
127
|
+
`localPath`, and `gitlabUrl` columns remain strings.
|
|
128
|
+
- Endpoints take one `entity_type` or a list. Every listed source can connect
|
|
129
|
+
to every listed target. Extra endpoint keys require equality against
|
|
130
|
+
immutable attributes on each listed type. Use separate relationships if
|
|
131
|
+
different pairs need different rules.
|
|
132
|
+
- Identifiers match `[A-Za-z][A-Za-z0-9_]{0,63}`. Case-insensitive collisions,
|
|
133
|
+
reserved fields, unknown keys, malformed enums, duplicate YAML keys, and
|
|
134
|
+
aliases are rejected. Files are capped at 128 KiB. There is no executable
|
|
135
|
+
YAML, interpolation, include, automatic config watching, or raw Cypher.
|
|
136
|
+
|
|
137
|
+
### Use custom fields in a request
|
|
138
|
+
|
|
139
|
+
Use `attributes` for custom writes and `filters` for exact entity search:
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{"action":"upsert_entity","entity_type":"Service","id":"service:api","name":"API","attributes":{"tier":"api","owner":"Platform","replicas":3,"enabled":true}}
|
|
143
|
+
{"action":"search","entity_type":"Service","filters":{"enabled":true},"query":"platform"}
|
|
144
|
+
{"action":"upsert_edge","from":"service:api","to":"environment:test","edge_type":"SERVES","attributes":{"weight":0.5}}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Tool enums and attribute parameter definitions, `schema`, `/kg schema`, and explorer labels/schema are derived from configuration. `schema` includes machine-readable `attribute_definitions` / `shared_attribute_definitions` as well as human descriptions. Legacy top-level attributes remain accepted when configured; do not supply the same attribute both top-level and inside `attributes`. Entity and edge output exposes scalar columns directly. Search covers all string columns; `filters` supports exact equality on configured entity attributes. Neighbors and snapshots include custom attributes. The explorer searches all string attributes and displays arbitrary attributes; its dedicated dropdowns remain kind/stage/type/relationship filters rather than a general query builder.
|
|
148
|
+
|
|
149
|
+
### Compatibility and migration
|
|
150
|
+
|
|
151
|
+
| Proposed change | Existing graph |
|
|
152
|
+
| --- | --- |
|
|
153
|
+
| Clarify a description | Allowed |
|
|
154
|
+
| Add an entity or relationship type | Allowed |
|
|
155
|
+
| Add an optional attribute to an existing type | Allowed |
|
|
156
|
+
| Add a required attribute to an existing type | Rejected |
|
|
157
|
+
| Remove a definition or change an enum, bound, type, or endpoint | Rejected |
|
|
158
|
+
|
|
159
|
+
To activate a change, [stop the owner and back up the database](operations.md#back-up-and-restore).
|
|
160
|
+
Restart clients with the same YAML and graph settings. Mnemos reads the
|
|
161
|
+
configuration when each process starts and checks a SHA-256 fingerprint
|
|
162
|
+
against the owner before using storage. A mismatch is an error, not a reason
|
|
163
|
+
to kill the live owner. Service protocol v5 also checks explorer settings.
|
|
164
|
+
|
|
165
|
+
Opening storage can apply additive changes. Try a candidate on a separate
|
|
166
|
+
database path with a distinct port (or port `0`) first. Use a fresh database
|
|
167
|
+
or plan a separate migration for incompatible changes.
|
|
168
|
+
|
|
169
|
+
Each database has a private adjacent **`graph.lbug.ontology.json`** compatibility manifest. Back it up with the database and retain it; do not edit/remove it to bypass checks. The daemon acquires the native writer lock, validates the manifest, actual columns/types, primary keys, and relationship endpoint pairs **before DDL**, then applies additive schema changes in a native transaction. The manifest is atomically renamed after schema commit. Existing entities, edges, IDs, attributes, and timestamps are not rewritten. If schema commit succeeds but manifest persistence fails, startup fails; restore the matching manifest/config from backup or investigate the additive DDL before retrying. The manifest and native database are not one cross-file transaction.
|
|
170
|
+
|
|
171
|
+
Existing manifest-free v3/v4/v5 default-model databases can be adopted and upgraded additively against the immutable historical `src/legacy-v5.json` compatibility baseline (not the editable YAML). Do not edit that historical baseline; it is not an active ontology. Unrecognized tables/columns or endpoint layouts are rejected. Once manifested, existing definitions cannot be removed or reinterpreted: scalar types, enum sets, required/immutable flags, bounds, and endpoint constraints must remain unchanged. New types/edges and optional attributes are supported; new required attributes on existing types are rejected. Description changes do not migrate data. Widening existing endpoint pairs, changing enum sets, or destructive changes require a separately reviewed migration or a fresh `PI_KNOWLEDGE_GRAPH_DB` path. There is no automatic destructive migration/reset. Incrementing YAML `version` is informational, not permission to reinterpret stored data.
|
|
172
|
+
|
|
173
|
+
The refresh scanner is intentionally specific to the default repository/Kubernetes/Azure model. It does not discover arbitrary custom types or attributes. Custom facts remain unmanaged/protected; additive custom models work with the existing scanner. The scanner rejects replacement models lacking its default types/relationships or compatible attribute definitions before discovery.
|
|
174
|
+
|
|
175
|
+
## Default ontology
|
|
176
|
+
|
|
177
|
+
| Entity | Represents | Example stable ID |
|
|
178
|
+
| --- | --- | --- |
|
|
179
|
+
| `Project` | A logical grouping of repositories | `project:payments` |
|
|
180
|
+
| `Repo` | A Git repository with a classified kind | `repo:payments/live` |
|
|
181
|
+
| `Environment` | A named deployment environment | `environment:payments:prod` |
|
|
182
|
+
| `K8sContext` | A named Kubernetes client context | `k8s-context:platform:prod` |
|
|
183
|
+
| `AzureSubscription` | A verified Azure subscription as metadata | `azure-subscription:<uuid>` |
|
|
184
|
+
|
|
185
|
+
Repository tracking remains at repo level: no file, symbol, individual module,
|
|
186
|
+
Terragrunt unit, or state entities.
|
|
187
|
+
|
|
188
|
+
Every entity has `id`, `name`, `description`, `source`, `created_at`, and `updated_at`. IDs are caller-chosen and globally unique across types, e.g. `project:payments`, `repo:platform/live`, `repo:modules/vpc`. An existing ID cannot change type.
|
|
189
|
+
|
|
190
|
+
Repo-specific attributes:
|
|
191
|
+
|
|
192
|
+
| Attribute | Meaning |
|
|
193
|
+
| --- | --- |
|
|
194
|
+
| `kind` | Repository type flag. Required on creation: `terraform-module`, `terragrunt`, or `generic` for other repositories; immutable to keep existing edges valid |
|
|
195
|
+
| `localPath` | Optional local checkout path, stored literally (up to 4096 characters) |
|
|
196
|
+
| `gitlabUrl` | Optional GitLab clone or web URL, including SSH clone syntax (up to 2000 characters) |
|
|
197
|
+
|
|
198
|
+
Paths and URLs are metadata only: the extension does not expand, resolve, read, execute, clone, or fetch them. Omitted metadata is preserved on updates; an empty string clears `localPath` or `gitlabUrl`. These fields are rejected on every non-Repo upsert. Non-Repo results contain `null` for the shared storage columns used for Repo attributes.
|
|
199
|
+
|
|
200
|
+
Environment-specific attributes:
|
|
201
|
+
|
|
202
|
+
| Attribute | Meaning |
|
|
203
|
+
| --- | --- |
|
|
204
|
+
| `stage` | Optional: `production` or `nonproduction`; leave unset when unverified. It can be updated when confirmed. |
|
|
205
|
+
|
|
206
|
+
Environment names are caller-defined (e.g. Dev, SQA, Production). Use scoped stable IDs such as `environment:payments:prod` to distinguish environments with the same name. The extension does **not** create environments, infer stage, or link repos based on directory/repo names. The `stage` flag is rejected on Project/Repo upserts and is `null` on their results. An omitted stage preserves its value; empty strings are not valid enum values.
|
|
207
|
+
|
|
208
|
+
### Kubernetes contexts and Azure subscriptions
|
|
209
|
+
|
|
210
|
+
`K8sContext` represents a named Kubernetes client context (not a cluster, kubeconfig, or proof of deployment). `AzureSubscription` represents a subscription as metadata. Both use the common `id`, `name`, `description`, `source`, and timestamps; they have no Repo-only or Environment-only attributes. Use IDs such as `k8s-context:platform:prod` and, when verified, `azure-subscription:<subscription UUID>`. Their names are context/subscription names or human-readable labels.
|
|
211
|
+
|
|
212
|
+
Associate either type with existing environments using **IN_ENVIRONMENT**.
|
|
213
|
+
The relationship is many-to-many. Give each edge a confirmed inventory or
|
|
214
|
+
configuration reference. Graph operations do not infer these links or live
|
|
215
|
+
deployment state. Do not store kubeconfig contents, client certificates,
|
|
216
|
+
access tokens, or other credentials.
|
|
217
|
+
|
|
218
|
+
### Built-in relationships
|
|
219
|
+
|
|
220
|
+
| Directed edge | Allowed source → target | Meaning |
|
|
221
|
+
| --- | --- | --- |
|
|
222
|
+
| `HAS_REPO` | Project → Repo | Project owns/includes this repository |
|
|
223
|
+
| `CALLS` | Repo (`terragrunt`) → Repo (`terraform-module`) | Terragrunt configuration calls a Terraform module from this repo |
|
|
224
|
+
| `TARGETS` | Repo (any kind) → Environment | Repo configuration targets this environment; not proof of a live deployment |
|
|
225
|
+
| `IN_ENVIRONMENT` | K8sContext or AzureSubscription → Environment | Explicit association with the environment; many-to-many, not proof of live deployment |
|
|
226
|
+
|
|
227
|
+
For example, `live-app --CALLS--> app-module` records a module call. Multiple calls between the same repo pair are aggregated into one edge; individual units, module subdirectories, and state dependencies are not modeled. A repo can target multiple environments, and an environment can be targeted by multiple repos. Include configuration or confirmed inventory evidence on `TARGETS` edges. Missing edges mean unknown, not no deployment.
|
|
228
|
+
|
|
229
|
+
Types are native node/relationship table labels. LadybugDB constrains endpoint table pairs; the tool also validates types, endpoint existence, global IDs, and input bounds. All values use prepared statements; only validated configuration identifiers are interpolated. No raw Cypher or undeclared properties are exposed. These guarantees apply to writes through this extension, not writes by external database clients.
|
|
230
|
+
|
|
231
|
+
Edges have `description`, `source`, `created_at`, and `updated_at`. There is one edge per `(from, edge_type, to)` through this API. All edges are directed; use `direction: "both"` to include incoming and outgoing edges in lookup. Neighbor results include `neighbor_stage` for environments and `neighbor_kind`, `neighbor_localPath`, and `neighbor_gitlabUrl` for repos, plus explicit `from_id` and `to_id`. No transitive traversal or multi-hop search is performed.
|
|
232
|
+
|
|
233
|
+
**Schema change:** this is ontology version 5. Version 3 and 4 databases upgrade additively without discarding any existing entities, attributes, or relationships. Existing repo TARGETS relationships are unchanged; IN_ENVIRONMENT is a separate relationship table group accepting only K8sContext/AzureSubscription → Environment. Daemon configuration fingerprints ensure an old or differently configured owner cannot silently serve an obsolete schema; stop the old owner before restarting, and `/reload` each Pi session to refresh its tool schema. Databases containing earlier File/Symbol/etc. tables or the removed state-dependency table are rejected before schema initialization, without deleting their data. Keep the old database as a backup and set `PI_KNOWLEDGE_GRAPH_DB` to a new path. No destructive reset or migration from the earlier incompatible ontologies runs automatically.
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Run Mnemos locally
|
|
2
|
+
|
|
3
|
+
Choose what shares a graph, decide whether to enable the browser explorer, and
|
|
4
|
+
know how to stop and back up the database before you upgrade.
|
|
5
|
+
|
|
6
|
+
## Shared configuration and coexistence
|
|
7
|
+
|
|
8
|
+
Set these variables before starting Pi, OpenCode, MCP, or the CLI. Hosts sharing
|
|
9
|
+
a database must agree on the ontology, port, and explorer settings.
|
|
10
|
+
|
|
11
|
+
| Setting | Default | Use it to… |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `PI_KNOWLEDGE_GRAPH_DB` | `~/.pi/agent/knowledge-graph/graph.lbug` | Select a database; use an absolute path across hosts. |
|
|
14
|
+
| `PI_KNOWLEDGE_GRAPH_ONTOLOGY` | Packaged YAML | Select a complete [ontology](ontology.md). Relative paths use the process working directory. The edit tool requires an absolute path. |
|
|
15
|
+
| `PI_KNOWLEDGE_GRAPH_PORT` | `7450` | Change the loopback port. `0` requests an ephemeral port. |
|
|
16
|
+
| `PI_KNOWLEDGE_GRAPH_EXPLORER` | Off | Set to `1` to serve the unauthenticated, read-only explorer. |
|
|
17
|
+
| `PI_KNOWLEDGE_GRAPH_NODE` | Host Node executable, or `node` on `PATH` under Bun | Select the Node executable that runs the database owner. |
|
|
18
|
+
| `PI_CODING_AGENT_DIR` | `~/.pi/agent` | Change the root for the default database and refresh configuration in every host, even without Pi installed. |
|
|
19
|
+
|
|
20
|
+
Mnemos uses one database owner per canonical file path. Different clients of
|
|
21
|
+
that file share one writer queue; symlink aliases do not create a second owner.
|
|
22
|
+
If a running owner has different settings, clients report the mismatch instead
|
|
23
|
+
of replacing it. Reload clients to pick up environment changes; reload alone
|
|
24
|
+
does not stop or reconfigure the owner.
|
|
25
|
+
|
|
26
|
+
## Storage
|
|
27
|
+
|
|
28
|
+
Use the default to share memory across your working directories. Use distinct
|
|
29
|
+
files when you want project isolation:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
PI_KNOWLEDGE_GRAPH_DB="$HOME/.local/share/mnemos/payments.lbug" \
|
|
33
|
+
PI_KNOWLEDGE_GRAPH_PORT=8123 pi
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Relative database paths resolve against the session working directory for agent
|
|
37
|
+
tools and the process directory for MCP or CLI. Independent owners need distinct
|
|
38
|
+
ports, or port `0`. Use `1`–`65535` for a fixed port. A collision is an error,
|
|
39
|
+
not a silent fallback. Use project-scoped IDs in shared graphs, and
|
|
40
|
+
exclude databases and their companion files from Git.
|
|
41
|
+
|
|
42
|
+
Mnemos does not move or merge existing databases. Older Pi installations may
|
|
43
|
+
have a graph at `<session cwd>/.pi/knowledge-graph/graph.lbug`; select that exact
|
|
44
|
+
file if you want to use it. Inspect the schema before opening an old graph and
|
|
45
|
+
read the [migration notes](ontology.md#compatibility-and-migration).
|
|
46
|
+
|
|
47
|
+
Graph writes outlive the session. `/tree`, `/fork`, and reload do not undo them.
|
|
48
|
+
There is no encryption or automatic expiry. Don't store tokens, credentials,
|
|
49
|
+
or sensitive file contents. New storage directories are requested with mode
|
|
50
|
+
`0700`; existing directories retain their permissions.
|
|
51
|
+
|
|
52
|
+
## Graph explorer
|
|
53
|
+
|
|
54
|
+
On a trusted machine, start your clients with `PI_KNOWLEDGE_GRAPH_EXPLORER=1`,
|
|
55
|
+
then open `http://127.0.0.1:7450/` with the default port. In interactive Pi,
|
|
56
|
+
`/kg` opens the explorer and `/kg url` prints its actual address without launching
|
|
57
|
+
a browser. Print, JSON, and RPC modes do not launch desktop applications.
|
|
58
|
+
|
|
59
|
+
**Anyone on the local machine can read the graph while the explorer is on.**
|
|
60
|
+
It has no login and no write controls. Don't expose it publicly or enable it
|
|
61
|
+
where other users should not see the graph. Tool API routes on the same port
|
|
62
|
+
remain authenticated.
|
|
63
|
+
Changing this flag requires a coordinated owner restart; an older owner that was
|
|
64
|
+
already serving the explorer continues doing so until stopped.
|
|
65
|
+
|
|
66
|
+
- Search names, IDs, descriptions, paths, URLs, and other string attributes.
|
|
67
|
+
Filter by entity type, relationship, repository kind, or environment stage.
|
|
68
|
+
- Select a node or arrow to inspect attributes, evidence, and incoming or
|
|
69
|
+
outgoing relationships. Use the entity list for keyboard navigation.
|
|
70
|
+
- Focus the selected node's neighborhood, adjust the layout, or use **Schema**
|
|
71
|
+
to see what the graph accepts. Use **Refresh** after writes from other clients.
|
|
72
|
+
|
|
73
|
+
The explorer shows at most **1,000 entities and 4,000 relationships** between
|
|
74
|
+
those entities. Filters operate within that snapshot, and the interface reports
|
|
75
|
+
truncation. There is no background polling or live telemetry. Assets are served
|
|
76
|
+
locally, without a CDN. GitLab links are opened only when clicked. The explorer
|
|
77
|
+
uses the same owner and queue as the tools; it cannot mutate facts but starting
|
|
78
|
+
its owner can initialize storage. For a trusted remote machine, use an explicit
|
|
79
|
+
SSH port forward rather than opening the service to the network.
|
|
80
|
+
|
|
81
|
+
## Shared service lifecycle and safety
|
|
82
|
+
|
|
83
|
+
The first operation that needs data starts the detached Node owner. Schema
|
|
84
|
+
inspection alone does not start it. With the explorer enabled, starting Pi or
|
|
85
|
+
opening `/kg` can also start the owner. Closing a session closes only that client;
|
|
86
|
+
the owner stays up without an idle timeout or automatic indexing.
|
|
87
|
+
|
|
88
|
+
To stop an owner deliberately:
|
|
89
|
+
|
|
90
|
+
1. Coordinate with other clients and scheduled refresh jobs so they stop making
|
|
91
|
+
requests. Stop new sessions from starting the same owner during maintenance.
|
|
92
|
+
2. Locate `<database>.service.json` beside the database. Verify that its `pid`
|
|
93
|
+
belongs to the expected Mnemos owner. Don't print or share the descriptor:
|
|
94
|
+
it also contains a bearer token.
|
|
95
|
+
3. On the Linux release target, send that PID `SIGTERM` (for example,
|
|
96
|
+
`kill -TERM <verified-pid>`). Wait for the owner to exit and its descriptor
|
|
97
|
+
to disappear before copying files or starting a new owner.
|
|
98
|
+
|
|
99
|
+
If a process is dead, the next request can recover its stale descriptor. Mnemos
|
|
100
|
+
will not kill a live but unresponsive owner or bypass LadybugDB's writer lock.
|
|
101
|
+
An atomic startup lock with heartbeat and stale recovery prevents competing
|
|
102
|
+
owners from starting at the same time. Coordinate a shutdown before changing
|
|
103
|
+
ports, switching explorer settings, or applying an ontology upgrade.
|
|
104
|
+
|
|
105
|
+
## Back up and restore
|
|
106
|
+
|
|
107
|
+
1. [Stop the shared owner](#shared-service-lifecycle-and-safety). Closing one
|
|
108
|
+
agent session is not enough.
|
|
109
|
+
2. Copy the database and its LadybugDB companion files, including the adjacent
|
|
110
|
+
`<database>.ontology.json` compatibility manifest. Preserve the matching
|
|
111
|
+
ontology YAML and, if you use refresh, its ownership state. Do not copy
|
|
112
|
+
`.service.json` or `.service-start.lock` artifacts.
|
|
113
|
+
3. Restore into a separate path first and verify it with the matching ontology.
|
|
114
|
+
Use a separate port (or `0`) while testing the restore. Never modify the
|
|
115
|
+
compatibility manifest to force a schema change.
|
|
116
|
+
|
|
117
|
+
## Service limits
|
|
118
|
+
|
|
119
|
+
| Area | Limit or behavior |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| Network | Binds only to `127.0.0.1`. Explorer requests check Host and Origin and use a restrictive content security policy. Private tool API requests require the exact Host and bearer token and reject browser Origin headers. |
|
|
122
|
+
| API | Fixed graph actions, bounded snapshots, and health. No raw Cypher, arbitrary database paths, or shutdown endpoint. The private request body is capped at 128 KiB and the active queue at 128 requests. |
|
|
123
|
+
| Credentials | Owner discovery metadata (`<database>.service.json`) is written with mode `0600` and contains the PID, port, protocol version, and bearer token. Treat it as a credential. |
|
|
124
|
+
| Timeouts | Native queries have a five-second timeout. The client request deadline is 30 seconds. Cancellation is checked before work and commit, but cannot immediately interrupt a native query or roll back a committed mutation. |
|
|
125
|
+
| Retries | Mutations are not automatically retried. If a response is lost, check whether it committed before issuing the write again. |
|
|
126
|
+
| Memory and output | The native buffer pool is capped at 256 MiB with two query threads; that is not a total process memory cap. Graph tool text is capped at 40 KiB/1,500 lines and marked when clipped. CLI JSON is not clipped. |
|
|
127
|
+
|
|
128
|
+
The service has no remote, multi-tenant mode. Control which agents can call
|
|
129
|
+
`mnemos_edit_ontology` at the host level if you don't trust them to follow its
|
|
130
|
+
[explicit-request instruction](ontology.md#edit-on-explicit-request).
|
package/docs/refresh.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Refresh infrastructure facts
|
|
2
|
+
|
|
3
|
+
Use refresh when you want Mnemos to pick up changes from local infrastructure
|
|
4
|
+
configuration without asking an agent to re-enter every fact. Start with a
|
|
5
|
+
preview. The scanner reads selected local inventories; it does not audit live
|
|
6
|
+
deployments or discover arbitrary custom ontology types.
|
|
7
|
+
|
|
8
|
+
## Configure your sources
|
|
9
|
+
|
|
10
|
+
Copy [the example refresh configuration](../scripts/refresh.config.example.json)
|
|
11
|
+
and set your checkout roots and verified mappings. The default configuration is
|
|
12
|
+
`~/.pi/agent/knowledge-graph/refresh.config.json`; use `--config` to select another
|
|
13
|
+
file. Paths inside the configuration resolve relative to that file, and `~/`
|
|
14
|
+
expands to your home directory. No company-specific mappings are assumed.
|
|
15
|
+
|
|
16
|
+
## Preview, then apply
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
knowledge-graph-refresh --config /path/to/refresh.config.json --dry-run
|
|
20
|
+
knowledge-graph-refresh --config /path/to/refresh.config.json --apply
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
In a source checkout, use `node scripts/refresh.mjs` in place of
|
|
24
|
+
`knowledge-graph-refresh`. Dry run is the default; it writes a report, not graph
|
|
25
|
+
facts or ownership state. Reading the graph can start its local database owner.
|
|
26
|
+
Read the report before your first `--apply`, especially the proposed removals,
|
|
27
|
+
missing unmanaged facts, and failures. `--help` lists additional options.
|
|
28
|
+
|
|
29
|
+
The tool uses the same database, ontology, and port settings as the agent
|
|
30
|
+
adapters. Use `--db`, `--state`, and `--report-dir` to override locations. Give
|
|
31
|
+
each independent graph its own state file and port (or port `0`). Reports go to
|
|
32
|
+
`refresh-reports/` beside the state file by default.
|
|
33
|
+
|
|
34
|
+
## What it reads
|
|
35
|
+
|
|
36
|
+
| Source | What Mnemos records |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| Local Git checkouts | Checkout paths, origin metadata, and repository kind. Existing IDs are reused by checkout path; duplicate origins remain distinct. Mixed Terraform/Terragrunt repositories need an explicit `repoKinds` override. |
|
|
39
|
+
| Terragrunt | Static module sources, including local checkouts and Git sources with subdirectory or ref suffixes. No remote fetches, individual unit entities, or state discovery. Caches, `.git`, `.pi`, `node_modules`, and build/vendor directories are excluded. |
|
|
40
|
+
| Environment declarations | Literal `env` values, or an explicitly declared `environment` matching an existing name. Directory names and deployment stage are not inferred. A `TARGETS` edge is not evidence of a live deployment. |
|
|
41
|
+
| Kubernetes contexts | Context names and cluster references from `kubectl config view`, without cluster contact or stored credentials. `kubeconfigDirectories`, `kubeconfigFiles`, and `KUBECONFIG` choose inputs. Only entries in `contextEnvironments` create `IN_ENVIRONMENT` links; each maps to an array of environments. |
|
|
42
|
+
| Azure subscriptions | Cached IDs, names, and state from `az account list`, plus literal subscription IDs in HCL. A link requires subscription and environment in the same configuration file. No login or live deployment scan. |
|
|
43
|
+
|
|
44
|
+
Refresh expects the built-in infrastructure model or a compatible additive
|
|
45
|
+
extension. It refuses replacement ontologies that don't support its inputs;
|
|
46
|
+
custom facts remain unmanaged. See the [ontology guide](ontology.md).
|
|
47
|
+
|
|
48
|
+
## What it can change
|
|
49
|
+
|
|
50
|
+
**Refresh prunes only facts it created and that still match its last applied
|
|
51
|
+
state.** It does not adopt or prune pre-existing or manual facts. An operator edit
|
|
52
|
+
releases ownership. Verified checkout/origin metadata may still be refreshed;
|
|
53
|
+
manual names, descriptions, evidence, stages, and kinds are preserved. An entity
|
|
54
|
+
with remaining relationships is not removed by detach deletion.
|
|
55
|
+
|
|
56
|
+
- A failed, incomplete, or disabled source does not authorize pruning. An
|
|
57
|
+
unresolved or dynamic module source protects owned edges from that repository.
|
|
58
|
+
- A per-state-file lock prevents overlapping refresh jobs. The owner compares
|
|
59
|
+
expected and current state in the same transaction as each write. Concurrent
|
|
60
|
+
changes are skipped and reported. An owner that lacks conditional refresh
|
|
61
|
+
support refuses apply; coordinate its restart if upgrading an older owner.
|
|
62
|
+
- Ownership is recorded beside the database as `<database>.refresh-state.json`
|
|
63
|
+
by default. Reports, before-snapshots, pending markers, and ownership state are
|
|
64
|
+
private (`0600`). An interrupted write is not retried blindly; the next run
|
|
65
|
+
releases ownership for the uncertain result. Some operations may have applied
|
|
66
|
+
before an interruption because the whole run is not one transaction.
|
|
67
|
+
- Refresh refuses writes when the snapshot is truncated at the current
|
|
68
|
+
**1,000 entity / 4,000 relationship** limits.
|
|
69
|
+
|
|
70
|
+
Exit codes: **0** completed, **2** skipped conflicts or incomplete enabled sources
|
|
71
|
+
(some updates may have applied), **1** failure. Review the report for details.
|
|
72
|
+
|
|
73
|
+
## Schedule refresh after verifying a run
|
|
74
|
+
|
|
75
|
+
Mnemos does not install a schedule. After the first reviewed preview and apply,
|
|
76
|
+
use your scheduler with absolute paths and the same database, ontology, port,
|
|
77
|
+
and state settings. Put Node, Git, and any enabled `kubectl` or `az` tools on
|
|
78
|
+
`PATH`. Plan report retention and check for nonzero exit codes. Normal refresh
|
|
79
|
+
runs do not restart the owner or interrupt the explorer.
|
package/docs/release.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Maintainer release checklist
|
|
2
|
+
|
|
3
|
+
The npm package is `@laurindustries/mnemos`. Confirm npm scope access,
|
|
4
|
+
publication authorization, and the rights to publish the MIT-licensed source and
|
|
5
|
+
bundled assets before releasing. Dependencies retain their own licenses.
|
|
6
|
+
|
|
7
|
+
## Release gates
|
|
8
|
+
|
|
9
|
+
- [x] Set npm repository, homepage, and issue tracker metadata for
|
|
10
|
+
[LaurIndustries/mnemos](https://github.com/LaurIndustries/mnemos).
|
|
11
|
+
- [ ] Verify `.github/workflows/ci.yml` passes in GitHub. It checks Node 22.19.0
|
|
12
|
+
and 24 on Linux x64.
|
|
13
|
+
- [ ] Run `npm ci --include=optional`, `npm run validate:release`, and
|
|
14
|
+
`npm run test:browser` with Chromium installed. Run `npm pack` with lifecycle
|
|
15
|
+
scripts enabled and inspect the archive for credentials, user paths, database
|
|
16
|
+
files, and unexpected contents.
|
|
17
|
+
- [ ] Complete host acceptance for the final tarball: invoke `knowledge_graph`
|
|
18
|
+
in real OpenCode 2 and Pi sessions, then check cancellation and cleanup.
|
|
19
|
+
Local path loading and adapter-level tests do not cover those host events.
|
|
20
|
+
- [ ] Verify each pinned npm install in a clean profile as part of the release smoke check.
|
|
21
|
+
- [ ] Review current production and development audits and record an explicit
|
|
22
|
+
decision on any advisories. Verify npm ownership and authorization before
|
|
23
|
+
creating the release or publishing.
|
|
24
|
+
|
|
25
|
+
No package install hook runs browsers or tests. `prepack` runs type and docs
|
|
26
|
+
checks. `npm run test:package` packs with `--ignore-scripts` to avoid lifecycle
|
|
27
|
+
recursion, installs a fresh production consumer with optional natives, exercises
|
|
28
|
+
exports and bins, and audits the result. It shuts down its isolated owner and
|
|
29
|
+
removes temporary files. Set `KG_PACKAGE_AUDIT_OUTPUT` to retain the report.
|
|
30
|
+
|
|
31
|
+
## Dependency and compatibility notes
|
|
32
|
+
|
|
33
|
+
- The OpenCode adapter is type-checked against `@opencode/plugin` 2.4.3. Its
|
|
34
|
+
native plugin descriptor does not need an SDK copy at runtime. Pi loads the
|
|
35
|
+
same JSON Schema as the other adapters, without a bundled TypeBox copy.
|
|
36
|
+
- Latest local audit for this candidate: **0** production advisories in the
|
|
37
|
+
lockfile and fresh consumer, **21 moderate** in the full development tree
|
|
38
|
+
(0 high/critical). The remaining development paths use the OpenCode SDK and
|
|
39
|
+
its pinned tooling; review [glob](https://github.com/advisories/GHSA-3g3m-2fjr-6pw4)
|
|
40
|
+
and [minimatch](https://github.com/advisories/GHSA-g3hv-75wg-m249). Counts are
|
|
41
|
+
a snapshot, not a guarantee. No forced dependency overrides were applied.
|
|
42
|
+
- The explorer is off by default. Only an owner started with
|
|
43
|
+
`PI_KNOWLEDGE_GRAPH_EXPLORER=1` serves unauthenticated pages and graph snapshots.
|
|
44
|
+
Stop an older owner before upgrading; updating a client alone cannot disable
|
|
45
|
+
an explorer that is already running. See [operations](operations.md).
|
|
46
|
+
- Linux x64 is the automated release target. Other upstream native binaries are
|
|
47
|
+
listed in the [installation guide](getting-started.md#install-from-npm). Their
|
|
48
|
+
availability does not establish full host compatibility. Keep optional
|
|
49
|
+
dependencies enabled. Bun needs Node
|
|
50
|
+
on PATH (or `PI_KNOWLEDGE_GRAPH_NODE`) for the database owner.
|
|
51
|
+
|
|
52
|
+
## Local release evidence
|
|
53
|
+
|
|
54
|
+
These are prior verification results, not a claim that every later change has
|
|
55
|
+
passed full host acceptance. Re-run the checks for the final tarball.
|
|
56
|
+
|
|
57
|
+
- On Linux x64, Node 22.19.0 and 24.22.3 passed all 45 unit/integration tests,
|
|
58
|
+
both Chromium tests, documentation checks, and production tarball smoke.
|
|
59
|
+
A normal lifecycle pack also succeeded.
|
|
60
|
+
- Pi 1.6.1 discovered the tarball-installed extension without the TypeBox warning;
|
|
61
|
+
`/kg schema` worked before and after an interactive `/reload`.
|
|
62
|
+
- OpenCode 2.4.1 loaded the tarball-installed adapter from a local path. A separate
|
|
63
|
+
Bun adapter smoke wrote a graph record, rejected a pre-aborted mutation, and
|
|
64
|
+
read the record back. This does not verify model-driven tool execution in OpenCode.
|
|
65
|
+
|
|
66
|
+
See [development](development.md) for test coverage and [operations](operations.md)
|
|
67
|
+
for deployment and data-safety limits. Publication, Git initialization, remote
|
|
68
|
+
provisioning, commits, and pushes require separate authorization.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Switch to the Mnemos Pi package
|
|
2
|
+
|
|
3
|
+
Most users can [install Mnemos directly](getting-started.md#connect-pi). Use this
|
|
4
|
+
guide if you already have a loader that points at an earlier checkout.
|
|
5
|
+
|
|
6
|
+
If you have an archived Pi extension (for example,
|
|
7
|
+
`~/.pi/agent/extensions/pi-knowledge-graph`), its manifest may load a thin
|
|
8
|
+
`src/loader.ts` that delegates to `/path/to/mnemos/src/index.ts`.
|
|
9
|
+
That wrapper is local to your installation. Neither the archive nor the loader
|
|
10
|
+
needs to be deleted.
|
|
11
|
+
|
|
12
|
+
Use exactly one active adapter. While the compatibility loader is enabled, do not
|
|
13
|
+
also install the destination through `pi install`, settings, or `-e`. To switch to
|
|
14
|
+
package discovery, disable the old loader in Pi configuration first, then install
|
|
15
|
+
Mnemos from npm or a local package directory and reload. If keeping the loader,
|
|
16
|
+
update its import when relocating the package. Pi deduplicates equivalent package
|
|
17
|
+
sources but cannot identify an independent wrapper as the same adapter.
|
|
18
|
+
|
|
19
|
+
Reloading closes only that client. It does not stop the shared graph owner or
|
|
20
|
+
undo facts. See [how to activate a schema change](ontology.md#compatibility-and-migration)
|
|
21
|
+
before upgrading an existing graph. The loader tests use a temporary wrapper;
|
|
22
|
+
they do not modify your installation.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Authoritative ontology. Identifiers are case-sensitive ASCII names.
|
|
2
|
+
version: 6
|
|
3
|
+
entities:
|
|
4
|
+
Service:
|
|
5
|
+
description: A named service with verified ownership.
|
|
6
|
+
attributes:
|
|
7
|
+
owner: {type: string, maxLength: 512}
|
|
8
|
+
Project:
|
|
9
|
+
description: A logical project that groups repositories.
|
|
10
|
+
attributes: {}
|
|
11
|
+
Repo:
|
|
12
|
+
description: A Git repository classified by configuration kind.
|
|
13
|
+
attributes:
|
|
14
|
+
kind:
|
|
15
|
+
type: string
|
|
16
|
+
enum: [terraform-module, terragrunt, generic]
|
|
17
|
+
required: true
|
|
18
|
+
immutable: true
|
|
19
|
+
description: Required on creation. Repository configuration kind; cannot change.
|
|
20
|
+
localPath:
|
|
21
|
+
type: string
|
|
22
|
+
maxLength: 4096
|
|
23
|
+
description: Optional. Local checkout path; metadata only, never accessed.
|
|
24
|
+
gitlabUrl:
|
|
25
|
+
type: string
|
|
26
|
+
maxLength: 2000
|
|
27
|
+
description: Optional. GitLab web or clone URL; metadata only, never fetched.
|
|
28
|
+
Environment:
|
|
29
|
+
description: A named deployment environment; never infer stage from its name.
|
|
30
|
+
attributes:
|
|
31
|
+
stage:
|
|
32
|
+
type: string
|
|
33
|
+
enum: [production, nonproduction]
|
|
34
|
+
description: Optional. Verified environment stage; omit when unknown.
|
|
35
|
+
K8sContext:
|
|
36
|
+
description: A named Kubernetes client context; metadata, not credentials or proof of deployment.
|
|
37
|
+
attributes: {}
|
|
38
|
+
AzureSubscription:
|
|
39
|
+
description: An Azure subscription; metadata, not credentials or proof of deployment.
|
|
40
|
+
attributes: {}
|
|
41
|
+
relationships:
|
|
42
|
+
HAS_REPO:
|
|
43
|
+
from: {entity_type: Project}
|
|
44
|
+
to: {entity_type: Repo}
|
|
45
|
+
description: The project includes this repository.
|
|
46
|
+
attributes: {}
|
|
47
|
+
CALLS:
|
|
48
|
+
from: {entity_type: Repo, kind: terragrunt}
|
|
49
|
+
to: {entity_type: Repo, kind: terraform-module}
|
|
50
|
+
description: The Terragrunt repository calls a Terraform module repository.
|
|
51
|
+
attributes: {}
|
|
52
|
+
TARGETS:
|
|
53
|
+
from: {entity_type: Repo}
|
|
54
|
+
to: {entity_type: Environment}
|
|
55
|
+
description: Intended configuration scope, not proof of a live deployment. Include evidence.
|
|
56
|
+
attributes: {}
|
|
57
|
+
IN_ENVIRONMENT:
|
|
58
|
+
from: {entity_type: [K8sContext, AzureSubscription]}
|
|
59
|
+
to: {entity_type: Environment}
|
|
60
|
+
description: Explicit many-to-many association. Include evidence; never infer from names.
|
|
61
|
+
attributes: {}
|
|
62
|
+
shared_attributes:
|
|
63
|
+
description: {type: string, maxLength: 8000, description: Optional. Description of an entity or relationship.}
|
|
64
|
+
source: {type: string, maxLength: 2000, description: Optional. Evidence reference such as a file path or URL.}
|