@x12i/memorix-docs 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/generated/bundle.d.ts +4849 -3
  2. package/dist/generated/bundle.d.ts.map +1 -1
  3. package/dist/generated/bundle.js +7580 -45
  4. package/dist/generated/bundle.js.map +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +6 -4
  8. package/dist/index.js.map +1 -1
  9. package/files/INDEX.md +84 -0
  10. package/files/SEARCH.json +3087 -0
  11. package/files/agent-manifest.json +1785 -0
  12. package/files/apis/memorix-records/overview.md +22 -0
  13. package/files/concepts/abstracts-bindings.md +27 -0
  14. package/files/concepts/agents-inheritance.md +28 -0
  15. package/files/concepts/analysis-objects.md +26 -0
  16. package/files/concepts/composition.md +27 -0
  17. package/files/concepts/decisions-content.md +27 -0
  18. package/files/concepts/effective-metadata.md +27 -0
  19. package/files/concepts/explicit-metadata-installation.md +26 -0
  20. package/files/concepts/intelligence-proposals.md +27 -0
  21. package/files/concepts/mappings-transforms.md +26 -0
  22. package/files/concepts/object-content-category.md +26 -0
  23. package/files/concepts/org-agent-scope.md +27 -0
  24. package/files/concepts/people-union.md +27 -0
  25. package/files/concepts/raw-records.md +26 -0
  26. package/files/concepts/record-revisions.md +26 -0
  27. package/files/concepts/relationship-definitions.md +26 -0
  28. package/files/concepts/relationship-references.md +27 -0
  29. package/files/concepts/resolved-unresolved.md +27 -0
  30. package/files/concepts/sources-and-memory.md +26 -0
  31. package/files/concepts/traversal.md +27 -0
  32. package/files/diagrams/agent-inheritance.md +34 -0
  33. package/files/diagrams/intelligence-journey.md +38 -0
  34. package/files/diagrams/memorix-central-journey.md +51 -0
  35. package/files/diagrams/metadata-lifecycle.md +40 -0
  36. package/files/diagrams/people-union-diagram.md +36 -0
  37. package/files/diagrams/record-content-model.md +43 -0
  38. package/files/diagrams/relationship-traversal.md +40 -0
  39. package/files/diagrams/revision-safe-write.md +39 -0
  40. package/files/examples/analysis-decision-records.md +11 -0
  41. package/files/examples/memorix-record-envelope.md +11 -0
  42. package/files/examples/metadata-pack-install.md +11 -0
  43. package/files/examples/people-abstract-query.md +11 -0
  44. package/files/examples/raw-vs-composed.md +11 -0
  45. package/files/examples/relationship-def-and-ref.md +11 -0
  46. package/files/examples/revision-conflict-response.md +11 -0
  47. package/files/examples/revision-safe-write.md +11 -0
  48. package/files/examples/traversal-resolved-unresolved.md +11 -0
  49. package/files/glossary/abstract.md +9 -0
  50. package/files/glossary/agent.md +9 -0
  51. package/files/glossary/analysis.md +9 -0
  52. package/files/glossary/binding.md +9 -0
  53. package/files/glossary/composition.md +9 -0
  54. package/files/glossary/content-type.md +9 -0
  55. package/files/glossary/data-category.md +9 -0
  56. package/files/glossary/decision.md +9 -0
  57. package/files/glossary/effective-metadata.md +9 -0
  58. package/files/glossary/intelligence-proposal.md +9 -0
  59. package/files/glossary/mapping.md +9 -0
  60. package/files/glossary/memory.md +9 -0
  61. package/files/glossary/object-type.md +9 -0
  62. package/files/glossary/relationship-definition.md +9 -0
  63. package/files/glossary/relationship-reference.md +9 -0
  64. package/files/glossary/revision.md +9 -0
  65. package/files/glossary/scope.md +9 -0
  66. package/files/glossary/source.md +9 -0
  67. package/files/glossary/traversal.md +9 -0
  68. package/files/guides/apply-scope.md +40 -0
  69. package/files/guides/choose-access-method.md +24 -0
  70. package/files/guides/compose-subject-ui.md +24 -0
  71. package/files/guides/define-traverse-relationship.md +26 -0
  72. package/files/guides/diagnose-unresolved.md +24 -0
  73. package/files/guides/evidence-to-decision.md +25 -0
  74. package/files/guides/first-revision-safe-write.md +30 -0
  75. package/files/guides/inspect-effective-metadata.md +30 -0
  76. package/files/guides/query-people-abstract.md +25 -0
  77. package/files/guides/reload-retry-conflict.md +32 -0
  78. package/files/guides/validate-install-pack.md +32 -0
  79. package/files/indexes/books.json +95 -0
  80. package/files/indexes/books.md +17 -0
  81. package/files/indexes/concepts.json +119 -0
  82. package/files/indexes/concepts.md +21 -0
  83. package/files/indexes/diagrams.json +53 -0
  84. package/files/indexes/diagrams.md +10 -0
  85. package/files/indexes/guides.json +71 -0
  86. package/files/indexes/guides.md +13 -0
  87. package/files/indexes/scenarios.json +41 -0
  88. package/files/indexes/scenarios.md +8 -0
  89. package/files/indexes/tutorials.json +47 -0
  90. package/files/indexes/tutorials.md +9 -0
  91. package/files/indexes/use-cases.json +239 -0
  92. package/files/indexes/use-cases.md +41 -0
  93. package/files/knowledge.json +2940 -0
  94. package/files/packs/concept/abstracts-bindings/PACK.md +11 -0
  95. package/files/packs/concept/abstracts-bindings/pack.json +13 -0
  96. package/files/packs/concept/agents-inheritance/PACK.md +11 -0
  97. package/files/packs/concept/agents-inheritance/pack.json +13 -0
  98. package/files/packs/concept/analysis-objects/PACK.md +11 -0
  99. package/files/packs/concept/analysis-objects/pack.json +14 -0
  100. package/files/packs/concept/composition/PACK.md +11 -0
  101. package/files/packs/concept/composition/pack.json +13 -0
  102. package/files/packs/concept/decisions-content/PACK.md +11 -0
  103. package/files/packs/concept/decisions-content/pack.json +13 -0
  104. package/files/packs/concept/effective-metadata/PACK.md +11 -0
  105. package/files/packs/concept/effective-metadata/pack.json +13 -0
  106. package/files/packs/concept/explicit-metadata-installation/PACK.md +11 -0
  107. package/files/packs/concept/explicit-metadata-installation/pack.json +14 -0
  108. package/files/packs/concept/intelligence-proposals/PACK.md +11 -0
  109. package/files/packs/concept/intelligence-proposals/pack.json +13 -0
  110. package/files/packs/concept/mappings-transforms/PACK.md +11 -0
  111. package/files/packs/concept/mappings-transforms/pack.json +13 -0
  112. package/files/packs/concept/object-content-category/PACK.md +11 -0
  113. package/files/packs/concept/object-content-category/pack.json +14 -0
  114. package/files/packs/concept/org-agent-scope/PACK.md +11 -0
  115. package/files/packs/concept/org-agent-scope/pack.json +14 -0
  116. package/files/packs/concept/people-union/PACK.md +11 -0
  117. package/files/packs/concept/people-union/pack.json +13 -0
  118. package/files/packs/concept/raw-records/PACK.md +11 -0
  119. package/files/packs/concept/raw-records/pack.json +14 -0
  120. package/files/packs/concept/record-revisions/PACK.md +11 -0
  121. package/files/packs/concept/record-revisions/pack.json +13 -0
  122. package/files/packs/concept/relationship-definitions/PACK.md +11 -0
  123. package/files/packs/concept/relationship-definitions/pack.json +14 -0
  124. package/files/packs/concept/relationship-references/PACK.md +11 -0
  125. package/files/packs/concept/relationship-references/pack.json +13 -0
  126. package/files/packs/concept/resolved-unresolved/PACK.md +11 -0
  127. package/files/packs/concept/resolved-unresolved/pack.json +13 -0
  128. package/files/packs/concept/sources-and-memory/PACK.md +11 -0
  129. package/files/packs/concept/sources-and-memory/pack.json +13 -0
  130. package/files/packs/concept/traversal/PACK.md +11 -0
  131. package/files/packs/concept/traversal/pack.json +13 -0
  132. package/files/packs/guide/apply-scope/PACK.md +11 -0
  133. package/files/packs/guide/apply-scope/pack.json +13 -0
  134. package/files/packs/guide/choose-access-method/PACK.md +11 -0
  135. package/files/packs/guide/choose-access-method/pack.json +15 -0
  136. package/files/packs/guide/compose-subject-ui/PACK.md +11 -0
  137. package/files/packs/guide/compose-subject-ui/pack.json +13 -0
  138. package/files/packs/guide/define-traverse-relationship/PACK.md +11 -0
  139. package/files/packs/guide/define-traverse-relationship/pack.json +14 -0
  140. package/files/packs/guide/diagnose-unresolved/PACK.md +11 -0
  141. package/files/packs/guide/diagnose-unresolved/pack.json +13 -0
  142. package/files/packs/guide/evidence-to-decision/PACK.md +11 -0
  143. package/files/packs/guide/evidence-to-decision/pack.json +14 -0
  144. package/files/packs/guide/first-revision-safe-write/PACK.md +11 -0
  145. package/files/packs/guide/first-revision-safe-write/pack.json +13 -0
  146. package/files/packs/guide/inspect-effective-metadata/PACK.md +11 -0
  147. package/files/packs/guide/inspect-effective-metadata/pack.json +13 -0
  148. package/files/packs/guide/query-people-abstract/PACK.md +11 -0
  149. package/files/packs/guide/query-people-abstract/pack.json +13 -0
  150. package/files/packs/guide/reload-retry-conflict/PACK.md +11 -0
  151. package/files/packs/guide/reload-retry-conflict/pack.json +13 -0
  152. package/files/packs/guide/validate-install-pack/PACK.md +11 -0
  153. package/files/packs/guide/validate-install-pack/pack.json +13 -0
  154. package/files/packs/scenario/choose-subject-view/PACK.md +11 -0
  155. package/files/packs/scenario/choose-subject-view/pack.json +11 -0
  156. package/files/packs/scenario/pack-valid-not-installed/PACK.md +11 -0
  157. package/files/packs/scenario/pack-valid-not-installed/pack.json +11 -0
  158. package/files/packs/scenario/scope-mismatch/PACK.md +11 -0
  159. package/files/packs/scenario/scope-mismatch/pack.json +11 -0
  160. package/files/packs/scenario/stale-revision-conflict/PACK.md +11 -0
  161. package/files/packs/scenario/stale-revision-conflict/pack.json +11 -0
  162. package/files/packs/scenario/traversal-direction/PACK.md +11 -0
  163. package/files/packs/scenario/traversal-direction/pack.json +11 -0
  164. package/files/packs/scenario/unresolved-relationship/PACK.md +11 -0
  165. package/files/packs/scenario/unresolved-relationship/pack.json +11 -0
  166. package/files/packs/tutorial/analysis-decision-lab/PACK.md +11 -0
  167. package/files/packs/tutorial/analysis-decision-lab/pack.json +14 -0
  168. package/files/packs/tutorial/compare-views/PACK.md +11 -0
  169. package/files/packs/tutorial/compare-views/pack.json +14 -0
  170. package/files/packs/tutorial/conflict-lab/PACK.md +11 -0
  171. package/files/packs/tutorial/conflict-lab/pack.json +13 -0
  172. package/files/packs/tutorial/first-revision-safe-record/PACK.md +11 -0
  173. package/files/packs/tutorial/first-revision-safe-record/pack.json +13 -0
  174. package/files/packs/tutorial/install-pack-lab/PACK.md +11 -0
  175. package/files/packs/tutorial/install-pack-lab/pack.json +13 -0
  176. package/files/packs/tutorial/relationships-lab/PACK.md +11 -0
  177. package/files/packs/tutorial/relationships-lab/pack.json +13 -0
  178. package/files/packs/tutorial/start-with-sample-data/PACK.md +11 -0
  179. package/files/packs/tutorial/start-with-sample-data/pack.json +13 -0
  180. package/files/sample-data/memorix-synthetic-basic.md +13 -0
  181. package/files/scenarios/choose-subject-view.md +36 -0
  182. package/files/scenarios/pack-valid-not-installed.md +33 -0
  183. package/files/scenarios/scope-mismatch.md +44 -0
  184. package/files/scenarios/stale-revision-conflict.md +38 -0
  185. package/files/scenarios/traversal-direction.md +30 -0
  186. package/files/scenarios/unresolved-relationship.md +31 -0
  187. package/files/tutorials/analysis-decision-lab.md +18 -0
  188. package/files/tutorials/compare-views.md +22 -0
  189. package/files/tutorials/conflict-lab.md +18 -0
  190. package/files/tutorials/first-revision-safe-record.md +18 -0
  191. package/files/tutorials/install-pack-lab.md +22 -0
  192. package/files/tutorials/relationships-lab.md +18 -0
  193. package/files/tutorials/start-with-sample-data.md +18 -0
  194. package/files/ui/clients/memorix-studio.md +9 -0
  195. package/files/use-cases/abstract-people-list.md +237 -0
  196. package/files/use-cases/ai-pipeline-fail-closed.md +117 -0
  197. package/files/use-cases/author-pipeline-e2e.md +339 -0
  198. package/files/use-cases/build-callable-service.md +347 -0
  199. package/files/use-cases/builder-acceptance-ops.md +112 -0
  200. package/files/use-cases/choose-access-method.md +111 -0
  201. package/files/use-cases/client-first-read-write.md +374 -0
  202. package/files/use-cases/compose-for-ui.md +97 -0
  203. package/files/use-cases/custom-kind-descriptors.md +137 -0
  204. package/files/use-cases/data-journey-evidence.md +115 -0
  205. package/files/use-cases/discriminated-content-writes.md +152 -0
  206. package/files/use-cases/embed-studio-host.md +165 -0
  207. package/files/use-cases/four-field-links.md +246 -0
  208. package/files/use-cases/http-process-compliance.md +225 -0
  209. package/files/use-cases/install-metadata-pack.md +180 -0
  210. package/files/use-cases/intelligence-propose-install.md +163 -0
  211. package/files/use-cases/knowx-claims-review.md +396 -0
  212. package/files/use-cases/learn-record-envelope.md +233 -0
  213. package/files/use-cases/lists-cursors-pagination.md +196 -0
  214. package/files/use-cases/local-acceptance-g12ops.md +160 -0
  215. package/files/use-cases/memory-hourly-ingest.md +276 -0
  216. package/files/use-cases/metadata-before-write.md +145 -0
  217. package/files/use-cases/migrate-associated-star.md +159 -0
  218. package/files/use-cases/openapi-typed-client.md +78 -0
  219. package/files/use-cases/ops-pack-fixtures.md +168 -0
  220. package/files/use-cases/orient-platform.md +172 -0
  221. package/files/use-cases/pipeline-retry-evidence.md +121 -0
  222. package/files/use-cases/relationship-rebuild-verify.md +128 -0
  223. package/files/use-cases/revision-stale-conflicts.md +194 -0
  224. package/files/use-cases/start-from-zero.md +171 -0
  225. package/files/use-cases/studio-design-types.md +122 -0
  226. package/files/use-cases/studio-explore-subject.md +89 -0
  227. package/files/use-cases/studio-operate-pipelines.md +100 -0
  228. package/files/use-cases/studio-review-intelligence.md +74 -0
  229. package/files/use-cases/studio-scope-isolation.md +67 -0
  230. package/files/use-cases/studio-stale-conflict-ui.md +54 -0
  231. package/files/use-cases/troubleshoot-http-matrix.md +164 -0
  232. package/files/use-cases/trusted-in-process-embed.md +94 -0
  233. package/files/use-cases/workflow-sibling-api.md +212 -0
  234. package/files/visuals/revision-conflict.md +19 -0
  235. package/files/visuals/scope-apply.md +19 -0
  236. package/package.json +4 -3
@@ -0,0 +1,22 @@
1
+ ---
2
+ id: "memorix-records"
3
+ type: "api"
4
+ title: "Memorix records API"
5
+ summary: "Read and conditionally write Memorix records with revision preconditions."
6
+ why: "Agents and services need exact revision-safe operations."
7
+ ---
8
+ # Memorix records API
9
+
10
+ Read and conditionally write Memorix records with revision preconditions.
11
+
12
+ ## Why
13
+
14
+ Agents and services need exact revision-safe operations.
15
+
16
+ ## GET /api/records/{id}
17
+
18
+ Read a record envelope and content.
19
+
20
+ ## PATCH /api/records/{id}
21
+
22
+ Conditionally update a record with expected revision.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "abstracts-bindings"
3
+ type: "concept"
4
+ title: "Abstracts and bindings"
5
+ summary: "An abstract is a virtual union projected through bindings — not stored rows."
6
+ problem: "Callers otherwise duplicate union queries across concrete types."
7
+ why: "Abstracts give stable read models without denormalizing storage."
8
+ mentalModel: "Bindings map concrete members into an abstract projection."
9
+ audiences: ["developers", "builders"]
10
+ related: ["people-union"]
11
+ next: ["people-union"]
12
+ ---
13
+ # Abstracts and bindings
14
+
15
+ An abstract is a virtual union projected through bindings — not stored rows.
16
+
17
+ ## Problem
18
+
19
+ Callers otherwise duplicate union queries across concrete types.
20
+
21
+ ## Why
22
+
23
+ Abstracts give stable read models without denormalizing storage.
24
+
25
+ ## Mental model
26
+
27
+ Bindings map concrete members into an abstract projection.
@@ -0,0 +1,28 @@
1
+ ---
2
+ id: "agents-inheritance"
3
+ type: "concept"
4
+ title: "Agents and inheritance"
5
+ summary: "Child agents inherit definitions; Studio shows the effective result."
6
+ problem: "Reading only local files hides parent contributions and conflicts."
7
+ why: "Inheritance keeps shared definitions DRY while allowing replacement and additive behavior."
8
+ mentalModel: "Oldest-parent-first resolution into an effective model."
9
+ audiences: ["developers", "builders"]
10
+ prerequisites: ["org-agent-scope"]
11
+ related: ["effective-metadata"]
12
+ next: ["effective-metadata"]
13
+ ---
14
+ # Agents and inheritance
15
+
16
+ Child agents inherit definitions; Studio shows the effective result.
17
+
18
+ ## Problem
19
+
20
+ Reading only local files hides parent contributions and conflicts.
21
+
22
+ ## Why
23
+
24
+ Inheritance keeps shared definitions DRY while allowing replacement and additive behavior.
25
+
26
+ ## Mental model
27
+
28
+ Oldest-parent-first resolution into an effective model.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "analysis-objects"
3
+ type: "concept"
4
+ title: "Analysis objects"
5
+ summary: "Analysis captures evaluated evidence distinct from operational decisions."
6
+ problem: "Mixing analysis with decisions hides how conclusions formed."
7
+ why: "Separating analysis keeps auditability and replay."
8
+ mentalModel: "Evidence → analysis → (later) decision."
9
+ audiences: ["developers", "builders"]
10
+ related: ["decisions-content", "intelligence-proposals"]
11
+ ---
12
+ # Analysis objects
13
+
14
+ Analysis captures evaluated evidence distinct from operational decisions.
15
+
16
+ ## Problem
17
+
18
+ Mixing analysis with decisions hides how conclusions formed.
19
+
20
+ ## Why
21
+
22
+ Separating analysis keeps auditability and replay.
23
+
24
+ ## Mental model
25
+
26
+ Evidence → analysis → (later) decision.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "composition"
3
+ type: "concept"
4
+ title: "Same-subject composition"
5
+ summary: "Multiple content instances can belong to one subject when composition is explicit."
6
+ problem: "Callers otherwise assume one row per subject."
7
+ why: "Subjects accumulate history and alternate content types."
8
+ mentalModel: "Subject → composed bag of content instances."
9
+ audiences: ["developers", "builders"]
10
+ prerequisites: ["raw-records"]
11
+ related: ["people-union"]
12
+ ---
13
+ # Same-subject composition
14
+
15
+ Multiple content instances can belong to one subject when composition is explicit.
16
+
17
+ ## Problem
18
+
19
+ Callers otherwise assume one row per subject.
20
+
21
+ ## Why
22
+
23
+ Subjects accumulate history and alternate content types.
24
+
25
+ ## Mental model
26
+
27
+ Subject → composed bag of content instances.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "decisions-content"
3
+ type: "concept"
4
+ title: "Decisions"
5
+ summary: "Decisions record chosen actions distinct from analysis content."
6
+ problem: "If decisions are only implied in chats, systems cannot act reliably."
7
+ why: "Durable decisions drive workflows and audits."
8
+ mentalModel: "Analysis informs; decision commits."
9
+ audiences: ["developers", "builders"]
10
+ prerequisites: ["analysis-objects"]
11
+ related: ["intelligence-proposals"]
12
+ ---
13
+ # Decisions
14
+
15
+ Decisions record chosen actions distinct from analysis content.
16
+
17
+ ## Problem
18
+
19
+ If decisions are only implied in chats, systems cannot act reliably.
20
+
21
+ ## Why
22
+
23
+ Durable decisions drive workflows and audits.
24
+
25
+ ## Mental model
26
+
27
+ Analysis informs; decision commits.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "effective-metadata"
3
+ type: "concept"
4
+ title: "Effective metadata"
5
+ summary: "The resolved definitions after inheritance and installation."
6
+ problem: "Authors confuse source files with what the runtime actually uses."
7
+ why: "Readers and writers must see the effective model before mutating data."
8
+ mentalModel: "Installed + inherited → effective."
9
+ audiences: ["developers", "builders"]
10
+ prerequisites: ["explicit-metadata-installation", "agents-inheritance"]
11
+ related: ["org-agent-scope"]
12
+ ---
13
+ # Effective metadata
14
+
15
+ The resolved definitions after inheritance and installation.
16
+
17
+ ## Problem
18
+
19
+ Authors confuse source files with what the runtime actually uses.
20
+
21
+ ## Why
22
+
23
+ Readers and writers must see the effective model before mutating data.
24
+
25
+ ## Mental model
26
+
27
+ Installed + inherited → effective.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "explicit-metadata-installation"
3
+ type: "concept"
4
+ title: "Explicit metadata validation and installation"
5
+ summary: "Validation does not install; installation requires confirmation."
6
+ problem: "Auto-applying packs or proposals would silently change runtime behavior."
7
+ why: "Reviewable, deterministic, reversible configuration changes."
8
+ mentalModel: "Treat metadata packs like deployments."
9
+ audiences: ["builders", "developers"]
10
+ related: ["intelligence-proposals", "effective-metadata"]
11
+ ---
12
+ # Explicit metadata validation and installation
13
+
14
+ Validation does not install; installation requires confirmation.
15
+
16
+ ## Problem
17
+
18
+ Auto-applying packs or proposals would silently change runtime behavior.
19
+
20
+ ## Why
21
+
22
+ Reviewable, deterministic, reversible configuration changes.
23
+
24
+ ## Mental model
25
+
26
+ Treat metadata packs like deployments.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "intelligence-proposals"
3
+ type: "concept"
4
+ title: "Intelligence proposals"
5
+ summary: "Intelligence may propose metadata or actions but never auto-installs them."
6
+ problem: "Silent installation would violate reviewability."
7
+ why: "Humans remain the confirmation boundary for runtime-changing packs."
8
+ mentalModel: "Propose → review → explicit install or reject."
9
+ audiences: ["builders", "developers"]
10
+ prerequisites: ["explicit-metadata-installation"]
11
+ related: ["explicit-metadata-installation"]
12
+ ---
13
+ # Intelligence proposals
14
+
15
+ Intelligence may propose metadata or actions but never auto-installs them.
16
+
17
+ ## Problem
18
+
19
+ Silent installation would violate reviewability.
20
+
21
+ ## Why
22
+
23
+ Humans remain the confirmation boundary for runtime-changing packs.
24
+
25
+ ## Mental model
26
+
27
+ Propose → review → explicit install or reject.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "mappings-transforms"
3
+ type: "concept"
4
+ title: "Mappings and transforms"
5
+ summary: "Mappings describe how source shapes become Memory content."
6
+ problem: "Ad-hoc transforms hide field provenance."
7
+ why: "Explicit mappings make validation and recovery possible."
8
+ mentalModel: "Declared mapping, not implicit guesswork."
9
+ audiences: ["developers"]
10
+ related: ["raw-records"]
11
+ ---
12
+ # Mappings and transforms
13
+
14
+ Mappings describe how source shapes become Memory content.
15
+
16
+ ## Problem
17
+
18
+ Ad-hoc transforms hide field provenance.
19
+
20
+ ## Why
21
+
22
+ Explicit mappings make validation and recovery possible.
23
+
24
+ ## Mental model
25
+
26
+ Declared mapping, not implicit guesswork.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "object-content-category"
3
+ type: "concept"
4
+ title: "Object type, content type, and data category"
5
+ summary: "Identity, payload shape, and category are separate axes."
6
+ problem: "Collapsing them forces brittle one-size schemas."
7
+ why: "Memorix needs the same subject to carry multiple content shapes over time."
8
+ mentalModel: "Object identity × content type × category."
9
+ audiences: ["developers"]
10
+ related: ["raw-records", "composition"]
11
+ ---
12
+ # Object type, content type, and data category
13
+
14
+ Identity, payload shape, and category are separate axes.
15
+
16
+ ## Problem
17
+
18
+ Collapsing them forces brittle one-size schemas.
19
+
20
+ ## Why
21
+
22
+ Memorix needs the same subject to carry multiple content shapes over time.
23
+
24
+ ## Mental model
25
+
26
+ Object identity × content type × category.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "org-agent-scope"
3
+ type: "concept"
4
+ title: "Organization and agent scope"
5
+ summary: "Scope selects which organization and agent context reads and writes apply to."
6
+ problem: "Acting without explicit scope can touch the wrong workspace."
7
+ why: "Memorix isolates tenants and agent inheritance behind deliberate scope selection."
8
+ mentalModel: "Scope is a workspace lock, not decoration."
9
+ audiences: ["developers", "builders"]
10
+ related: ["agents-inheritance", "effective-metadata"]
11
+ next: ["agents-inheritance"]
12
+ ---
13
+ # Organization and agent scope
14
+
15
+ Scope selects which organization and agent context reads and writes apply to.
16
+
17
+ ## Problem
18
+
19
+ Acting without explicit scope can touch the wrong workspace.
20
+
21
+ ## Why
22
+
23
+ Memorix isolates tenants and agent inheritance behind deliberate scope selection.
24
+
25
+ ## Mental model
26
+
27
+ Scope is a workspace lock, not decoration.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "people-union"
3
+ type: "concept"
4
+ title: "People union"
5
+ summary: "People combines employees and contractors through explicit bindings."
6
+ problem: "UIs need one people list without merging tables by hand."
7
+ why: "Abstract projection preserves concrete types while enabling combined reads."
8
+ mentalModel: "employees ∪ contractors → People."
9
+ audiences: ["developers", "builders"]
10
+ prerequisites: ["abstracts-bindings"]
11
+ related: ["composition"]
12
+ ---
13
+ # People union
14
+
15
+ People combines employees and contractors through explicit bindings.
16
+
17
+ ## Problem
18
+
19
+ UIs need one people list without merging tables by hand.
20
+
21
+ ## Why
22
+
23
+ Abstract projection preserves concrete types while enabling combined reads.
24
+
25
+ ## Mental model
26
+
27
+ employees ∪ contractors → People.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "raw-records"
3
+ type: "concept"
4
+ title: "Raw records"
5
+ summary: "Raw retains the original payload beside envelope metadata."
6
+ problem: "Losing raw makes audits and remapping impossible."
7
+ why: "Memorix keeps evidence of what arrived."
8
+ mentalModel: "Envelope + raw body; choose views deliberately."
9
+ audiences: ["developers", "builders"]
10
+ related: ["composition", "object-content-category"]
11
+ ---
12
+ # Raw records
13
+
14
+ Raw retains the original payload beside envelope metadata.
15
+
16
+ ## Problem
17
+
18
+ Losing raw makes audits and remapping impossible.
19
+
20
+ ## Why
21
+
22
+ Memorix keeps evidence of what arrived.
23
+
24
+ ## Mental model
25
+
26
+ Envelope + raw body; choose views deliberately.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "record-revisions"
3
+ type: "concept"
4
+ title: "Record revisions and stale-write conflicts"
5
+ summary: "Writes carry an expected revision; stale writers cannot overwrite newer data."
6
+ problem: "Lost updates when concurrent writers race."
7
+ why: "Revision preconditions preserve newer data and force explicit recovery."
8
+ mentalModel: "Load → mutate → write with expected revision → reload on conflict."
9
+ audiences: ["developers", "builders"]
10
+ related: ["raw-records"]
11
+ ---
12
+ # Record revisions and stale-write conflicts
13
+
14
+ Writes carry an expected revision; stale writers cannot overwrite newer data.
15
+
16
+ ## Problem
17
+
18
+ Lost updates when concurrent writers race.
19
+
20
+ ## Why
21
+
22
+ Revision preconditions preserve newer data and force explicit recovery.
23
+
24
+ ## Mental model
25
+
26
+ Load → mutate → write with expected revision → reload on conflict.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "relationship-definitions"
3
+ type: "concept"
4
+ title: "Relationship definitions"
5
+ summary: "A relationship definition is metadata describing allowed links — not a stored edge on a record."
6
+ problem: "Confusing definitions with instances breaks traversal expectations."
7
+ why: "Definitions make forward/inverse traversal predictable."
8
+ mentalModel: "Definition first; references second."
9
+ audiences: ["developers"]
10
+ related: ["relationship-references", "traversal"]
11
+ ---
12
+ # Relationship definitions
13
+
14
+ A relationship definition is metadata describing allowed links — not a stored edge on a record.
15
+
16
+ ## Problem
17
+
18
+ Confusing definitions with instances breaks traversal expectations.
19
+
20
+ ## Why
21
+
22
+ Definitions make forward/inverse traversal predictable.
23
+
24
+ ## Mental model
25
+
26
+ Definition first; references second.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "relationship-references"
3
+ type: "concept"
4
+ title: "Stored relationship references"
5
+ summary: "Records store relationship references that point at targets under a definition."
6
+ problem: "Without stored refs, graphs cannot be rebuilt or verified."
7
+ why: "References are the durable facts; definitions are the schema."
8
+ mentalModel: "Record holds refs typed by definition id."
9
+ audiences: ["developers"]
10
+ prerequisites: ["relationship-definitions"]
11
+ related: ["resolved-unresolved"]
12
+ ---
13
+ # Stored relationship references
14
+
15
+ Records store relationship references that point at targets under a definition.
16
+
17
+ ## Problem
18
+
19
+ Without stored refs, graphs cannot be rebuilt or verified.
20
+
21
+ ## Why
22
+
23
+ References are the durable facts; definitions are the schema.
24
+
25
+ ## Mental model
26
+
27
+ Record holds refs typed by definition id.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "resolved-unresolved"
3
+ type: "concept"
4
+ title: "Resolved and unresolved relationships"
5
+ summary: "Unresolved targets are retained and shown — not silently dropped."
6
+ problem: "Hiding unresolved links loses operational truth."
7
+ why: "Operators need to repair, wait, or escalate deliberately."
8
+ mentalModel: "Absence of a target is a first-class state."
9
+ audiences: ["developers", "builders"]
10
+ prerequisites: ["traversal"]
11
+ related: ["relationship-references"]
12
+ ---
13
+ # Resolved and unresolved relationships
14
+
15
+ Unresolved targets are retained and shown — not silently dropped.
16
+
17
+ ## Problem
18
+
19
+ Hiding unresolved links loses operational truth.
20
+
21
+ ## Why
22
+
23
+ Operators need to repair, wait, or escalate deliberately.
24
+
25
+ ## Mental model
26
+
27
+ Absence of a target is a first-class state.
@@ -0,0 +1,26 @@
1
+ ---
2
+ id: "sources-and-memory"
3
+ type: "concept"
4
+ title: "Sources and Memory"
5
+ summary: "Sources feed Memory; Memory holds durable product records."
6
+ problem: "Without a clear boundary, pipelines and storage blur."
7
+ why: "Separating ingest from durable memory keeps provenance and retries understandable."
8
+ mentalModel: "Source → validated content → Memory record."
9
+ audiences: ["developers", "builders"]
10
+ related: ["raw-records"]
11
+ ---
12
+ # Sources and Memory
13
+
14
+ Sources feed Memory; Memory holds durable product records.
15
+
16
+ ## Problem
17
+
18
+ Without a clear boundary, pipelines and storage blur.
19
+
20
+ ## Why
21
+
22
+ Separating ingest from durable memory keeps provenance and retries understandable.
23
+
24
+ ## Mental model
25
+
26
+ Source → validated content → Memory record.
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: "traversal"
3
+ type: "concept"
4
+ title: "Forward and inverse traversal"
5
+ summary: "Traversal follows definitions forward or inverse, optionally expanding targets."
6
+ problem: "Callers guess direction and miss inverse edges."
7
+ why: "Explicit direction matches authored relationship semantics."
8
+ mentalModel: "Pick definition → direction → expand or not."
9
+ audiences: ["developers"]
10
+ prerequisites: ["relationship-references"]
11
+ related: ["resolved-unresolved"]
12
+ ---
13
+ # Forward and inverse traversal
14
+
15
+ Traversal follows definitions forward or inverse, optionally expanding targets.
16
+
17
+ ## Problem
18
+
19
+ Callers guess direction and miss inverse edges.
20
+
21
+ ## Why
22
+
23
+ Explicit direction matches authored relationship semantics.
24
+
25
+ ## Mental model
26
+
27
+ Pick definition → direction → expand or not.
@@ -0,0 +1,34 @@
1
+ ---
2
+ id: "agent-inheritance"
3
+ type: "diagram"
4
+ title: "Agent inheritance"
5
+ summary: "Parent and child agents resolve into effective definitions."
6
+ why: "Explains why Studio shows effective results, not only local files."
7
+ diagramType: "hierarchy"
8
+ ---
9
+ # Agent inheritance
10
+
11
+ Parent and child agents resolve into effective definitions.
12
+
13
+ ## Why
14
+
15
+ Explains why Studio shows effective results, not only local files.
16
+
17
+ ## How to read
18
+
19
+ Parents contribute first; children may replace or add.
20
+
21
+ ## Text alternative
22
+
23
+ Parent agent definitions flow to a child agent; the effective model is what runtime uses after resolution.
24
+
25
+ ## Nodes
26
+
27
+ - **Parent agent** (`parent`)
28
+ - **Child agent** (`child`)
29
+ - **Effective definitions** (`effective`)
30
+
31
+ ## Edges
32
+
33
+ - parent → child (inherit)
34
+ - child → effective (resolve)
@@ -0,0 +1,38 @@
1
+ ---
2
+ id: "intelligence-journey"
3
+ type: "diagram"
4
+ title: "Intelligence journey"
5
+ summary: "Evidence can yield analysis, decision, and proposals that still require explicit install."
6
+ why: "Keeps human confirmation on runtime-changing actions."
7
+ diagramType: "flow"
8
+ ---
9
+ # Intelligence journey
10
+
11
+ Evidence can yield analysis, decision, and proposals that still require explicit install.
12
+
13
+ ## Why
14
+
15
+ Keeps human confirmation on runtime-changing actions.
16
+
17
+ ## How to read
18
+
19
+ Proposals do not skip the install confirmation gate.
20
+
21
+ ## Text alternative
22
+
23
+ Source and content evidence can produce analysis and a decision. An intelligence proposal may follow but requires explicit human-controlled installation or operational action.
24
+
25
+ ## Nodes
26
+
27
+ - **Evidence** (`evidence`)
28
+ - **Analysis** (`analysis`)
29
+ - **Decision** (`decision`)
30
+ - **Proposal** (`proposal`)
31
+ - **Explicit action** (`install`)
32
+
33
+ ## Edges
34
+
35
+ - evidence → analysis
36
+ - analysis → decision
37
+ - decision → proposal
38
+ - proposal → install (confirm)
@@ -0,0 +1,51 @@
1
+ ---
2
+ id: "memorix-central-journey"
3
+ type: "diagram"
4
+ title: "Memorix central product journey"
5
+ summary: "Conceptual path from scope through metadata, records, relationships, analysis, and decisions."
6
+ why: "Orients every concept page in the same mental model."
7
+ diagramType: "journey"
8
+ audiences: ["developers", "builders"]
9
+ ---
10
+ # Memorix central product journey
11
+
12
+ Conceptual path from scope through metadata, records, relationships, analysis, and decisions.
13
+
14
+ ## Why
15
+
16
+ Orients every concept page in the same mental model.
17
+
18
+ ## How to read
19
+
20
+ Left to right is conceptual learning order — not an auto-discovered runtime trace.
21
+
22
+ ## Text alternative
23
+
24
+ Scope leads to explicit metadata and an effective model, then to concrete/raw data, composition and abstracts, relationships, analysis, and decisions/operation.
25
+
26
+ ## Nodes
27
+
28
+ - **Scope** (`scope`)
29
+ - **Explicit metadata** (`metadata`)
30
+ - **Effective model** (`effective`)
31
+ - **Raw/concrete** (`raw`)
32
+ - **Composition/abstracts** (`compose`)
33
+ - **Relationships** (`rels`)
34
+ - **Analysis** (`analysis`)
35
+ - **Decisions** (`decisions`)
36
+
37
+ ## Edges
38
+
39
+ - scope → metadata (select)
40
+ - metadata → effective (install/resolve)
41
+ - effective → raw (shape data)
42
+ - raw → compose (project)
43
+ - compose → rels (link)
44
+ - rels → analysis (evaluate)
45
+ - analysis → decisions (commit)
46
+
47
+ ## Key takeaways
48
+
49
+ - Conceptual journey
50
+ - Each stage links to concepts
51
+ - Not a discovered trace