htm 0.0.31 → 0.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 (616) hide show
  1. checksums.yaml +4 -4
  2. data/.architecture/decisions/adrs/005-rag-based-retrieval-with-hybrid-search.md +4 -0
  3. data/.architecture/decisions/adrs/017-bitemporal-event-time.md +78 -0
  4. data/.architecture/decisions/adrs/018-memory-timelines-and-node-links.md +64 -0
  5. data/.architecture/decisions/adrs/019-epistemic-status.md +66 -0
  6. data/.claude.json +11 -0
  7. data/.envrc +9 -7
  8. data/.irbrc +16 -17
  9. data/.reek.yml +104 -0
  10. data/.rubocop.yml +173 -0
  11. data/.ruby-version +1 -0
  12. data/CHANGELOG.md +162 -54
  13. data/README.md +24 -17
  14. data/SETUP.md +49 -46
  15. data/_typos.toml +17 -0
  16. data/bin/htm +18 -0
  17. data/db/migrate/00008_create_node_relationships.rb +54 -0
  18. data/db/migrate/00009_fix_node_relationships_column_types.rb +17 -0
  19. data/db/migrate/00010_convert_embedding_to_sparsevec.rb +47 -0
  20. data/db/migrate/00011_strip_frontmatter_from_chunks.rb +66 -0
  21. data/db/migrate/00012_add_event_time_to_nodes.rb +110 -0
  22. data/db/migrate/00013_create_node_links.rb +158 -0
  23. data/db/migrate/00014_add_epistemic_status.rb +110 -0
  24. data/db/schema.sql +361 -7
  25. data/db/seed_data/README.md +11 -11
  26. data/db/seeds.rb +11 -11
  27. data/docs/api/database.md +43 -65
  28. data/docs/api/embedding-service.md +139 -263
  29. data/docs/api/htm.md +128 -12
  30. data/docs/api/index.md +34 -23
  31. data/docs/api/long-term-memory.md +8 -19
  32. data/docs/api/working-memory.md +42 -54
  33. data/docs/api/yard/HTM/Admin/Console.md +53 -0
  34. data/docs/api/yard/HTM/Admin/DatabaseCommands/Console.md +38 -0
  35. data/docs/api/yard/HTM/Admin/DatabaseCommands.md +127 -0
  36. data/docs/api/yard/HTM/Admin/EnrichCommands.md +85 -0
  37. data/docs/api/yard/HTM/Admin/Error.md +9 -0
  38. data/docs/api/yard/HTM/Admin/FileCommands/Console.md +50 -0
  39. data/docs/api/yard/HTM/Admin/FileCommands.md +83 -0
  40. data/docs/api/yard/HTM/Admin/MemoryCommands/Base.md +17 -0
  41. data/docs/api/yard/HTM/Admin/MemoryCommands/Edit.md +74 -0
  42. data/docs/api/yard/HTM/Admin/MemoryCommands/Search.md +77 -0
  43. data/docs/api/yard/HTM/Admin/MemoryCommands/TagSearch.md +46 -0
  44. data/docs/api/yard/HTM/Admin/MemoryCommands/WorkingMemory.md +36 -0
  45. data/docs/api/yard/HTM/Admin/MemoryCommands.md +67 -0
  46. data/docs/api/yard/HTM/Admin/TagCommands/Console.md +48 -0
  47. data/docs/api/yard/HTM/Admin/TagCommands.md +105 -0
  48. data/docs/api/yard/HTM/Admin/TagGraph.md +149 -0
  49. data/docs/api/yard/HTM/Admin/YardDocs.md +60 -0
  50. data/docs/api/yard/HTM/Admin.md +102 -0
  51. data/docs/api/yard/HTM/AuthorizationError.md +6 -6
  52. data/docs/api/yard/HTM/CLI/ConfigFile.md +40 -0
  53. data/docs/api/yard/HTM/CLI/Db.md +63 -0
  54. data/docs/api/yard/HTM/CLI/Enrich.md +39 -0
  55. data/docs/api/yard/HTM/CLI/ErrorSuggestion.md +56 -0
  56. data/docs/api/yard/HTM/CLI/Files.md +36 -0
  57. data/docs/api/yard/HTM/CLI/Group/ClassMethods.md +11 -0
  58. data/docs/api/yard/HTM/CLI/Group.md +13 -0
  59. data/docs/api/yard/HTM/CLI/MemoryCommand/ClassMethods.md +20 -0
  60. data/docs/api/yard/HTM/CLI/MemoryCommand.md +9 -0
  61. data/docs/api/yard/HTM/CLI/Robots.md +31 -0
  62. data/docs/api/yard/HTM/CLI/Support.md +9 -0
  63. data/docs/api/yard/HTM/CLI/Tags.md +57 -0
  64. data/docs/api/yard/HTM/CLI/WorkingMemory.md +24 -0
  65. data/docs/api/yard/HTM/CLI.md +84 -0
  66. data/docs/api/yard/HTM/CircuitBreaker/Guarded.md +29 -0
  67. data/docs/api/yard/HTM/CircuitBreaker/Settings.md +21 -0
  68. data/docs/api/yard/HTM/CircuitBreaker/Status.md +42 -0
  69. data/docs/api/yard/HTM/CircuitBreaker.md +54 -49
  70. data/docs/api/yard/HTM/CircuitBreakerOpenError.md +9 -9
  71. data/docs/api/yard/HTM/Config/Builder.md +87 -0
  72. data/docs/api/yard/HTM/Config/Coercion.md +59 -0
  73. data/docs/api/yard/HTM/Config/Database.md +102 -0
  74. data/docs/api/yard/HTM/Config/Readers.md +30 -0
  75. data/docs/api/yard/HTM/Config/RubyLlmSettings.md +32 -0
  76. data/docs/api/yard/HTM/Config/Validator.md +59 -0
  77. data/docs/api/yard/HTM/Config.md +224 -105
  78. data/docs/api/yard/HTM/ConfigurationError.md +20 -0
  79. data/docs/api/yard/HTM/Confirmation.md +22 -0
  80. data/docs/api/yard/HTM/Database/Connection.md +26 -0
  81. data/docs/api/yard/HTM/Database/Migrations.md +32 -0
  82. data/docs/api/yard/HTM/Database/Report.md +26 -0
  83. data/docs/api/yard/HTM/Database/SchemaFile.md +52 -0
  84. data/docs/api/yard/HTM/Database/Teardown.md +15 -0
  85. data/docs/api/yard/HTM/Database.md +58 -70
  86. data/docs/api/yard/HTM/DatabaseDocs.md +67 -0
  87. data/docs/api/yard/HTM/DatabaseError.md +6 -6
  88. data/docs/api/yard/HTM/Deletion.md +32 -0
  89. data/docs/api/yard/HTM/EmbeddingError.md +6 -6
  90. data/docs/api/yard/HTM/EmbeddingService.md +37 -38
  91. data/docs/api/yard/HTM/Epistemics.md +135 -0
  92. data/docs/api/yard/HTM/Error.md +6 -6
  93. data/docs/api/yard/HTM/EventTime.md +110 -0
  94. data/docs/api/yard/HTM/FileMemory.md +76 -0
  95. data/docs/api/yard/HTM/InputValidator.md +82 -0
  96. data/docs/api/yard/HTM/JobAdapter/Job.md +26 -0
  97. data/docs/api/yard/HTM/JobAdapter.md +35 -16
  98. data/docs/api/yard/HTM/Jobs/FailureLogging.md +14 -0
  99. data/docs/api/yard/HTM/Jobs/GenerateEmbeddingJob.md +16 -0
  100. data/docs/api/yard/HTM/Jobs/GeneratePropositionsJob.md +17 -0
  101. data/docs/api/yard/HTM/Jobs/GenerateRelationshipsJob.md +26 -0
  102. data/docs/api/yard/HTM/Jobs/GenerateTagsJob.md +17 -0
  103. data/docs/api/yard/HTM/Jobs/LlmCallTimer.md +58 -0
  104. data/docs/api/yard/HTM/Jobs/NodeLookup.md +14 -0
  105. data/docs/api/yard/HTM/Jobs.md +13 -0
  106. data/docs/api/yard/HTM/Loaders/ChunkSync/Chunk.md +22 -0
  107. data/docs/api/yard/HTM/Loaders/ChunkSync.md +50 -0
  108. data/docs/api/yard/HTM/Loaders/MarkdownChunker/Coalescer.md +24 -0
  109. data/docs/api/yard/HTM/Loaders/MarkdownChunker/Packer.md +20 -0
  110. data/docs/api/yard/HTM/Loaders/MarkdownChunker/Splitter.md +18 -0
  111. data/docs/api/yard/HTM/Loaders/MarkdownChunker.md +83 -0
  112. data/docs/api/yard/HTM/Loaders/MarkdownLoader/Document.md +43 -0
  113. data/docs/api/yard/HTM/Loaders/MarkdownLoader.md +62 -0
  114. data/docs/api/yard/HTM/Loaders.md +5 -0
  115. data/docs/api/yard/HTM/LongTermMemory/FulltextSearch.md +36 -0
  116. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfMerger.md +25 -0
  117. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfRows.md +30 -0
  118. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql/Query.md +79 -0
  119. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql/Source.md +45 -0
  120. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql.md +11 -0
  121. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/TagDepth.md +52 -0
  122. data/docs/api/yard/HTM/LongTermMemory/HybridSearch.md +52 -0
  123. data/docs/api/yard/HTM/LongTermMemory/NodeOperations.md +95 -0
  124. data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer/HierarchicalJaccard.md +58 -0
  125. data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer/TagSearch.md +27 -0
  126. data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer.md +81 -0
  127. data/docs/api/yard/HTM/LongTermMemory/RobotOperations.md +22 -0
  128. data/docs/api/yard/HTM/LongTermMemory/TagOperations/ExpiringValue.md +24 -0
  129. data/docs/api/yard/HTM/LongTermMemory/TagOperations/TagMatchSql.md +40 -0
  130. data/docs/api/yard/HTM/LongTermMemory/TagOperations.md +129 -0
  131. data/docs/api/yard/HTM/LongTermMemory/VectorSearch.md +30 -0
  132. data/docs/api/yard/HTM/LongTermMemory.md +279 -31
  133. data/docs/api/yard/HTM/MCP/AssembleContextTool.md +16 -0
  134. data/docs/api/yard/HTM/MCP/ClearGroupWorkingMemoryTool.md +12 -0
  135. data/docs/api/yard/HTM/MCP/ClearWorkingMemoryTool.md +12 -0
  136. data/docs/api/yard/HTM/MCP/ConfigResource.md +12 -0
  137. data/docs/api/yard/HTM/MCP/ConfirmTool.md +12 -0
  138. data/docs/api/yard/HTM/MCP/CreateGroupTool.md +12 -0
  139. data/docs/api/yard/HTM/MCP/EnrichPendingTool.md +16 -0
  140. data/docs/api/yard/HTM/MCP/ExtractPropositionsTool.md +12 -0
  141. data/docs/api/yard/HTM/MCP/FailoverTool.md +12 -0
  142. data/docs/api/yard/HTM/MCP/FileInfoTool.md +13 -0
  143. data/docs/api/yard/HTM/MCP/FileSourcesResource.md +12 -0
  144. data/docs/api/yard/HTM/MCP/FileSupport.md +7 -0
  145. data/docs/api/yard/HTM/MCP/FindByTopicTool.md +12 -0
  146. data/docs/api/yard/HTM/MCP/FirstMentionTool.md +12 -0
  147. data/docs/api/yard/HTM/MCP/ForgetContentTool.md +12 -0
  148. data/docs/api/yard/HTM/MCP/ForgetTool.md +12 -0
  149. data/docs/api/yard/HTM/MCP/GetGroupStatusTool.md +12 -0
  150. data/docs/api/yard/HTM/MCP/GetGroupWorkingMemoryTool.md +12 -0
  151. data/docs/api/yard/HTM/MCP/GetNodeTool.md +12 -0
  152. data/docs/api/yard/HTM/MCP/GetRobotTool.md +12 -0
  153. data/docs/api/yard/HTM/MCP/GetWorkingMemoryTool.md +12 -0
  154. data/docs/api/yard/HTM/MCP/GroupRecallTool.md +12 -0
  155. data/docs/api/yard/HTM/MCP/GroupRememberTool.md +12 -0
  156. data/docs/api/yard/HTM/MCP/GroupSession.md +23 -0
  157. data/docs/api/yard/HTM/MCP/JoinGroupTool.md +12 -0
  158. data/docs/api/yard/HTM/MCP/LeaveGroupTool.md +12 -0
  159. data/docs/api/yard/HTM/MCP/ListDeletedTool.md +12 -0
  160. data/docs/api/yard/HTM/MCP/ListFilesTool.md +13 -0
  161. data/docs/api/yard/HTM/MCP/ListGroupsTool.md +12 -0
  162. data/docs/api/yard/HTM/MCP/ListRobotsTool.md +12 -0
  163. data/docs/api/yard/HTM/MCP/ListTagsTool.md +12 -0
  164. data/docs/api/yard/HTM/MCP/LoadDirectoryTool.md +13 -0
  165. data/docs/api/yard/HTM/MCP/LoadFileTool.md +13 -0
  166. data/docs/api/yard/HTM/MCP/MemoryStatsResource.md +13 -0
  167. data/docs/api/yard/HTM/MCP/PopularTagsTool.md +12 -0
  168. data/docs/api/yard/HTM/MCP/PromoteRobotTool.md +12 -0
  169. data/docs/api/yard/HTM/MCP/PurgeDeletedTool.md +12 -0
  170. data/docs/api/yard/HTM/MCP/RecallTool.md +16 -0
  171. data/docs/api/yard/HTM/MCP/RecentMemoriesResource.md +13 -0
  172. data/docs/api/yard/HTM/MCP/RelatedNodesTool.md +12 -0
  173. data/docs/api/yard/HTM/MCP/RememberTool.md +12 -0
  174. data/docs/api/yard/HTM/MCP/RestoreTool.md +12 -0
  175. data/docs/api/yard/HTM/MCP/RobotGroupsResource.md +13 -0
  176. data/docs/api/yard/HTM/MCP/RobotTeamsStatusTool.md +13 -0
  177. data/docs/api/yard/HTM/MCP/RunRobotTeamsTool.md +13 -0
  178. data/docs/api/yard/HTM/MCP/SearchByTagsTool.md +16 -0
  179. data/docs/api/yard/HTM/MCP/SearchTagsTool.md +12 -0
  180. data/docs/api/yard/HTM/MCP/Server.md +37 -0
  181. data/docs/api/yard/HTM/MCP/Session.md +32 -0
  182. data/docs/api/yard/HTM/MCP/SetRobotTool.md +12 -0
  183. data/docs/api/yard/HTM/MCP/ShutdownGroupTool.md +12 -0
  184. data/docs/api/yard/HTM/MCP/StartupPromptResource.md +16 -0
  185. data/docs/api/yard/HTM/MCP/StatsTool.md +12 -0
  186. data/docs/api/yard/HTM/MCP/SyncFilesTool.md +13 -0
  187. data/docs/api/yard/HTM/MCP/SyncGroupTool.md +12 -0
  188. data/docs/api/yard/HTM/MCP/TagHierarchyResource.md +16 -0
  189. data/docs/api/yard/HTM/MCP/TagNodeTool.md +12 -0
  190. data/docs/api/yard/HTM/MCP/TagTreeTool.md +22 -0
  191. data/docs/api/yard/HTM/MCP/TeamNames.md +7 -0
  192. data/docs/api/yard/HTM/MCP/TimelineTool.md +12 -0
  193. data/docs/api/yard/HTM/MCP/Tool.md +24 -0
  194. data/docs/api/yard/HTM/MCP/ToolSupport.md +17 -0
  195. data/docs/api/yard/HTM/MCP/TopicRelationshipsTool.md +12 -0
  196. data/docs/api/yard/HTM/MCP/TransferWorkingMemoryTool.md +12 -0
  197. data/docs/api/yard/HTM/MCP/UnloadFileTool.md +13 -0
  198. data/docs/api/yard/HTM/MCP/UntagNodeTool.md +12 -0
  199. data/docs/api/yard/HTM/MCP.md +30 -0
  200. data/docs/api/yard/HTM/Migration.md +44 -0
  201. data/docs/api/yard/HTM/Models/FileSource.md +66 -0
  202. data/docs/api/yard/HTM/Models/Node/Scopes.md +74 -0
  203. data/docs/api/yard/HTM/Models/Node/SoftDeletion.md +22 -0
  204. data/docs/api/yard/HTM/Models/Node/VectorSimilarity.md +28 -0
  205. data/docs/api/yard/HTM/Models/Node.md +113 -0
  206. data/docs/api/yard/HTM/Models/NodeLink.md +65 -0
  207. data/docs/api/yard/HTM/Models/NodeRelationship.md +31 -0
  208. data/docs/api/yard/HTM/Models/NodeTag.md +38 -0
  209. data/docs/api/yard/HTM/Models/Robot.md +50 -0
  210. data/docs/api/yard/HTM/Models/RobotNode.md +35 -0
  211. data/docs/api/yard/HTM/Models/Tag/Scopes.md +32 -0
  212. data/docs/api/yard/HTM/Models/Tag.md +112 -0
  213. data/docs/api/yard/HTM/Models.md +5 -0
  214. data/docs/api/yard/HTM/NodeEnrichment.md +36 -0
  215. data/docs/api/yard/HTM/NodeView.md +113 -0
  216. data/docs/api/yard/HTM/NotFoundError.md +6 -5
  217. data/docs/api/yard/HTM/Observability.md +58 -40
  218. data/docs/api/yard/HTM/PropositionError.md +6 -6
  219. data/docs/api/yard/HTM/PropositionService.md +63 -29
  220. data/docs/api/yard/HTM/QueryCache/KeyNormalizer.md +25 -0
  221. data/docs/api/yard/HTM/QueryCache/NullStore.md +19 -0
  222. data/docs/api/yard/HTM/QueryCache/Store.md +43 -0
  223. data/docs/api/yard/HTM/QueryCache.md +41 -46
  224. data/docs/api/yard/HTM/QueryTimeoutError.md +9 -8
  225. data/docs/api/yard/HTM/Railtie.md +11 -7
  226. data/docs/api/yard/HTM/RecallQuery.md +111 -0
  227. data/docs/api/yard/HTM/ResourceExhaustedError.md +6 -6
  228. data/docs/api/yard/HTM/RobotGroup/CacheSync.md +35 -0
  229. data/docs/api/yard/HTM/RobotGroup/Membership.md +96 -0
  230. data/docs/api/yard/HTM/RobotGroup/TransferOptions.md +14 -0
  231. data/docs/api/yard/HTM/RobotGroup/WorkingMemoryLedger.md +65 -0
  232. data/docs/api/yard/HTM/RobotGroup.md +116 -360
  233. data/docs/api/yard/HTM/Robots/Actions/TagMove.md +31 -0
  234. data/docs/api/yard/HTM/Robots/Actions.md +153 -0
  235. data/docs/api/yard/HTM/Robots/Neighbors.md +20 -0
  236. data/docs/api/yard/HTM/Robots/Supervisor/Idler.md +26 -0
  237. data/docs/api/yard/HTM/Robots/Supervisor/Roster.md +26 -0
  238. data/docs/api/yard/HTM/Robots/Supervisor.md +42 -0
  239. data/docs/api/yard/HTM/Robots/Team.md +60 -0
  240. data/docs/api/yard/HTM/Robots/Teams/Archivist.md +43 -0
  241. data/docs/api/yard/HTM/Robots/Teams/Consolidator.md +29 -0
  242. data/docs/api/yard/HTM/Robots/Teams/ContradictionDetector.md +33 -0
  243. data/docs/api/yard/HTM/Robots/Teams/TagCurator.md +37 -0
  244. data/docs/api/yard/HTM/Robots/Teams.md +5 -0
  245. data/docs/api/yard/HTM/Robots/Tools/ArchiveNodes.md +12 -0
  246. data/docs/api/yard/HTM/Robots/Tools/Base.md +16 -0
  247. data/docs/api/yard/HTM/Robots/Tools/MergeNodes.md +12 -0
  248. data/docs/api/yard/HTM/Robots/Tools/MergeTags.md +12 -0
  249. data/docs/api/yard/HTM/Robots/Tools/Pass.md +12 -0
  250. data/docs/api/yard/HTM/Robots/Tools/RecordConflict.md +12 -0
  251. data/docs/api/yard/HTM/Robots/Tools/SupersedeNode.md +12 -0
  252. data/docs/api/yard/HTM/Robots/Tools.md +14 -0
  253. data/docs/api/yard/HTM/Robots.md +72 -0
  254. data/docs/api/yard/HTM/SearchFilters.md +82 -0
  255. data/docs/api/yard/HTM/SequelConfig.md +97 -0
  256. data/docs/api/yard/HTM/Settings.md +39 -0
  257. data/docs/api/yard/HTM/Sinatra/Helpers.md +37 -0
  258. data/docs/api/yard/HTM/Sinatra/Middleware.md +29 -0
  259. data/docs/api/yard/HTM/Sinatra.md +44 -0
  260. data/docs/api/yard/HTM/SqlBuilder/Sparsevec.md +69 -0
  261. data/docs/api/yard/HTM/SqlBuilder.md +62 -75
  262. data/docs/api/yard/HTM/StartupPrompt.md +45 -0
  263. data/docs/api/yard/HTM/TagError.md +6 -6
  264. data/docs/api/yard/HTM/TagService.md +100 -37
  265. data/docs/api/yard/HTM/TagTree/Branch.md +43 -0
  266. data/docs/api/yard/HTM/TagTree/SvgRenderer/Layout.md +51 -0
  267. data/docs/api/yard/HTM/TagTree/SvgRenderer.md +25 -0
  268. data/docs/api/yard/HTM/TagTree.md +65 -0
  269. data/docs/api/yard/HTM/Telemetry/NullInstrument.md +12 -9
  270. data/docs/api/yard/HTM/Telemetry/NullMeter.md +17 -9
  271. data/docs/api/yard/HTM/Telemetry.md +53 -50
  272. data/docs/api/yard/HTM/Timeframe/Result.md +13 -16
  273. data/docs/api/yard/HTM/Timeframe.md +17 -20
  274. data/docs/api/yard/HTM/TimeframeExtractor/Patterns.md +18 -0
  275. data/docs/api/yard/HTM/TimeframeExtractor/Result.md +13 -16
  276. data/docs/api/yard/HTM/TimeframeExtractor.md +27 -16
  277. data/docs/api/yard/HTM/Timeline.md +113 -0
  278. data/docs/api/yard/HTM/ValidationError.md +6 -5
  279. data/docs/api/yard/HTM/Workflows/RememberWorkflow/NodeState.md +73 -0
  280. data/docs/api/yard/HTM/Workflows/RememberWorkflow.md +80 -0
  281. data/docs/api/yard/HTM/Workflows.md +5 -0
  282. data/docs/api/yard/HTM/WorkingMemory/Entry.md +67 -0
  283. data/docs/api/yard/HTM/WorkingMemory/Store.md +54 -0
  284. data/docs/api/yard/HTM/WorkingMemory.md +113 -87
  285. data/docs/api/yard/HTM/WorkingMemoryChannel/Subscribers.md +28 -0
  286. data/docs/api/yard/HTM/WorkingMemoryChannel.md +108 -102
  287. data/docs/api/yard/HTM.md +483 -5
  288. data/docs/api/yard/README.md +211 -0
  289. data/docs/api/yard/Sinatra/Base.md +30 -0
  290. data/docs/api/yard/Sinatra.md +7 -0
  291. data/docs/api/yard/index.csv +1834 -181
  292. data/docs/api/yard-reference.md +228 -9
  293. data/docs/architecture/adrs/005-rag-retrieval.md +3 -0
  294. data/docs/architecture/adrs/index.md +1 -1
  295. data/docs/architecture/index.md +7 -9
  296. data/docs/architecture/overview.md +8 -11
  297. data/docs/assets/images/htm-architecture-overview.svg +1 -1
  298. data/docs/assets/images/htm-context-assembly-flow.svg +2 -2
  299. data/docs/assets/images/htm-layered-architecture.svg +3 -3
  300. data/docs/assets/images/project-structure.svg +2 -2
  301. data/docs/assets/images/two-tier-memory-architecture.svg +1 -1
  302. data/docs/database/INDEX.md +113 -0
  303. data/docs/database/README.md +60 -175
  304. data/docs/database/file_sources.md +51 -0
  305. data/docs/database/file_sources.svg +120 -0
  306. data/docs/database/naming-convention.md +12 -12
  307. data/docs/database/node_links.md +65 -0
  308. data/docs/database/node_links.svg +171 -0
  309. data/docs/database/node_relationships.md +62 -0
  310. data/docs/database/node_relationships.svg +124 -0
  311. data/docs/database/node_tags.md +50 -0
  312. data/docs/database/node_tags.svg +125 -0
  313. data/docs/database/nodes.md +120 -0
  314. data/docs/database/nodes.svg +394 -0
  315. data/docs/database/robot_nodes.md +57 -0
  316. data/docs/database/robot_nodes.svg +155 -0
  317. data/docs/database/robots.md +40 -0
  318. data/docs/database/robots.svg +131 -0
  319. data/docs/database/schema.svg +384 -275
  320. data/docs/database/schema_migrations.md +19 -0
  321. data/docs/database/schema_migrations.svg +31 -0
  322. data/docs/database/tags.md +47 -0
  323. data/docs/database/tags.svg +90 -0
  324. data/docs/development/asgard-tasks.md +114 -0
  325. data/docs/development/contributing.md +11 -11
  326. data/docs/development/index.md +19 -24
  327. data/docs/development/schema.md +113 -14
  328. data/docs/development/setup.md +99 -151
  329. data/docs/development/testing.md +58 -66
  330. data/docs/examples/basic-usage.md +9 -9
  331. data/docs/examples/config-files.md +8 -8
  332. data/docs/examples/file-loading.md +16 -16
  333. data/docs/examples/index.md +15 -8
  334. data/docs/examples/llm-configuration.md +13 -9
  335. data/docs/examples/mcp-client.md +61 -59
  336. data/docs/examples/rails-integration.md +5 -4
  337. data/docs/examples/sinatra-integration.md +5 -4
  338. data/docs/examples/standalone-app.md +17 -16
  339. data/docs/getting-started/index.md +3 -3
  340. data/docs/getting-started/installation.md +76 -83
  341. data/docs/getting-started/quick-start.md +28 -26
  342. data/docs/guides/adding-memories.md +28 -4
  343. data/docs/guides/cli.md +458 -0
  344. data/docs/guides/configuration.md +77 -42
  345. data/docs/guides/context-assembly.md +4 -4
  346. data/docs/guides/epistemic-status.md +138 -0
  347. data/docs/guides/event-time.md +106 -0
  348. data/docs/guides/file-loading.md +36 -32
  349. data/docs/guides/getting-started.md +23 -19
  350. data/docs/guides/long-term-memory.md +8 -28
  351. data/docs/guides/mcp-server.md +416 -173
  352. data/docs/guides/propositions.md +30 -40
  353. data/docs/guides/recalling-memories.md +27 -12
  354. data/docs/guides/robot-teams.md +96 -0
  355. data/docs/guides/search-strategies.md +10 -7
  356. data/docs/guides/tags.md +37 -32
  357. data/docs/guides/timeline.md +106 -0
  358. data/docs/index.md +7 -7
  359. data/docs/llms.txt +35 -0
  360. data/docs/multi_framework_support.md +14 -14
  361. data/docs/robots/hive-mind.md +1 -1
  362. data/docs/robots/multi-robot.md +2 -2
  363. data/docs/robots/robot-groups.md +10 -10
  364. data/docs/robots/two-tier-memory.md +85 -120
  365. data/docs/setup_local_database.md +41 -85
  366. data/examples/00_create_examples_db.rb +20 -7
  367. data/examples/01_basic_usage.rb +21 -18
  368. data/examples/02_config_file_example/README.md +13 -12
  369. data/examples/02_config_file_example/config/htm.local.yml +8 -8
  370. data/examples/02_config_file_example/show_config.rb +3 -4
  371. data/examples/03_custom_llm_configuration.rb +13 -12
  372. data/examples/04_file_loader_usage.rb +16 -21
  373. data/examples/05_timeframe_demo.rb +283 -234
  374. data/examples/06_example_app/.loki +36 -0
  375. data/examples/06_example_app/app.rb +22 -33
  376. data/examples/07_cli_app/README.md +18 -18
  377. data/examples/07_cli_app/htm_cli.rb +26 -19
  378. data/examples/08_sinatra_app/Gemfile +1 -0
  379. data/examples/08_sinatra_app/Gemfile.lock +101 -67
  380. data/examples/08_sinatra_app/app.rb +64 -62
  381. data/examples/09_mcp_client.rb +93 -119
  382. data/examples/10_telemetry/README.md +3 -3
  383. data/examples/10_telemetry/SETUP_README.md +2 -2
  384. data/examples/10_telemetry/demo.rb +6 -5
  385. data/examples/11_robot_groups/README.md +5 -4
  386. data/examples/11_robot_groups/lib/robot_worker.rb +0 -5
  387. data/examples/11_robot_groups/multi_process.rb +6 -4
  388. data/examples/11_robot_groups/same_process.rb +19 -17
  389. data/examples/12_rails_app/.envrc +12 -0
  390. data/examples/12_rails_app/Gemfile +8 -3
  391. data/examples/12_rails_app/Gemfile.lock +226 -172
  392. data/examples/12_rails_app/README.md +77 -22
  393. data/examples/12_rails_app/app/controllers/application_controller.rb +6 -0
  394. data/examples/12_rails_app/app/controllers/chats_controller.rb +275 -0
  395. data/examples/12_rails_app/app/controllers/dashboard_controller.rb +3 -0
  396. data/examples/12_rails_app/app/controllers/files_controller.rb +17 -2
  397. data/examples/12_rails_app/app/controllers/home_controller.rb +8 -0
  398. data/examples/12_rails_app/app/controllers/memories_controller.rb +16 -5
  399. data/examples/12_rails_app/app/controllers/messages_controller.rb +177 -0
  400. data/examples/12_rails_app/app/controllers/robots_controller.rb +11 -1
  401. data/examples/12_rails_app/app/controllers/search_controller.rb +7 -2
  402. data/examples/12_rails_app/app/controllers/tags_controller.rb +14 -1
  403. data/examples/12_rails_app/app/javascript/application.js +1 -1
  404. data/examples/12_rails_app/app/models/application_record.rb +5 -0
  405. data/examples/12_rails_app/app/models/chat.rb +3 -0
  406. data/examples/12_rails_app/app/models/message.rb +3 -0
  407. data/examples/12_rails_app/app/views/chats/index.html.erb +61 -0
  408. data/examples/12_rails_app/app/views/chats/show.html.erb +213 -0
  409. data/examples/12_rails_app/app/views/dashboard/index.html.erb +3 -0
  410. data/examples/12_rails_app/app/views/files/index.html.erb +10 -5
  411. data/examples/12_rails_app/app/views/files/new.html.erb +5 -3
  412. data/examples/12_rails_app/app/views/files/show.html.erb +19 -3
  413. data/examples/12_rails_app/app/views/home/index.html.erb +45 -0
  414. data/examples/12_rails_app/app/views/layouts/application.html.erb +20 -18
  415. data/examples/12_rails_app/app/views/memories/_memory_card.html.erb +2 -2
  416. data/examples/12_rails_app/app/views/memories/deleted.html.erb +3 -1
  417. data/examples/12_rails_app/app/views/memories/edit.html.erb +2 -0
  418. data/examples/12_rails_app/app/views/memories/index.html.erb +2 -0
  419. data/examples/12_rails_app/app/views/memories/new.html.erb +14 -0
  420. data/examples/12_rails_app/app/views/memories/show.html.erb +17 -2
  421. data/examples/12_rails_app/app/views/messages/_message.html.erb +20 -0
  422. data/examples/12_rails_app/app/views/robots/index.html.erb +2 -0
  423. data/examples/12_rails_app/app/views/robots/new.html.erb +2 -0
  424. data/examples/12_rails_app/app/views/robots/show.html.erb +2 -0
  425. data/examples/12_rails_app/app/views/search/index.html.erb +77 -10
  426. data/examples/12_rails_app/app/views/shared/_navbar.html.erb +75 -29
  427. data/examples/12_rails_app/app/views/tags/index.html.erb +2 -0
  428. data/examples/12_rails_app/app/views/tags/show.html.erb +3 -1
  429. data/examples/12_rails_app/config/application.rb +1 -1
  430. data/examples/12_rails_app/config/database.yml +9 -5
  431. data/examples/12_rails_app/config/importmap.rb +1 -1
  432. data/examples/12_rails_app/config/initializers/htm.rb +9 -2
  433. data/examples/12_rails_app/config/initializers/ruby_llm.rb +29 -0
  434. data/examples/12_rails_app/config/routes.rb +39 -23
  435. data/examples/12_rails_app/db/migrate/20261205061932_create_ruby_llm_records.rb +160 -0
  436. data/examples/12_rails_app/db/migrate/20261205061933_create_chats.rb +13 -0
  437. data/examples/12_rails_app/db/migrate/20261205061934_create_messages.rb +23 -0
  438. data/examples/12_rails_app/db/schema.rb +210 -0
  439. data/examples/README.md +53 -44
  440. data/examples/examples_helper.rb +52 -3
  441. data/htm.gemspec +68 -0
  442. data/lib/htm/admin/database_commands.rb +454 -0
  443. data/lib/htm/admin/enrich_commands.rb +209 -0
  444. data/lib/htm/admin/file_commands.rb +323 -0
  445. data/lib/htm/admin/memory_commands/edit.rb +157 -0
  446. data/lib/htm/admin/memory_commands/search.rb +178 -0
  447. data/lib/htm/admin/memory_commands/tag_search.rb +98 -0
  448. data/lib/htm/admin/memory_commands/text.rb +164 -0
  449. data/lib/htm/admin/memory_commands/working_memory.rb +71 -0
  450. data/lib/htm/admin/memory_commands.rb +179 -0
  451. data/lib/htm/admin/tag_commands.rb +352 -0
  452. data/lib/htm/admin/tag_graph.rb +290 -0
  453. data/lib/htm/admin/templates/tag_graph.html +295 -0
  454. data/lib/htm/admin/yard_docs.rb +206 -0
  455. data/lib/htm/admin.rb +253 -0
  456. data/lib/htm/circuit_breaker.rb +142 -69
  457. data/lib/htm/class_methods.rb +136 -0
  458. data/lib/htm/cli/config_file.rb +86 -0
  459. data/lib/htm/cli/db.rb +77 -0
  460. data/lib/htm/cli/enrich.rb +44 -0
  461. data/lib/htm/cli/environment.rb +74 -0
  462. data/lib/htm/cli/error_suggestion.rb +97 -0
  463. data/lib/htm/cli/files.rb +41 -0
  464. data/lib/htm/cli/group.rb +32 -0
  465. data/lib/htm/cli/memory.rb +320 -0
  466. data/lib/htm/cli/memory_command.rb +71 -0
  467. data/lib/htm/cli/robots.rb +71 -0
  468. data/lib/htm/cli/support.rb +46 -0
  469. data/lib/htm/cli/tags.rb +103 -0
  470. data/lib/htm/cli/working_memory.rb +41 -0
  471. data/lib/htm/cli.rb +75 -0
  472. data/lib/htm/config/builder.rb +106 -75
  473. data/lib/htm/config/coercion.rb +91 -0
  474. data/lib/htm/config/database.rb +94 -71
  475. data/lib/htm/config/defaults.yml +52 -16
  476. data/lib/htm/config/readers.rb +85 -0
  477. data/lib/htm/config/ruby_llm_settings.rb +58 -0
  478. data/lib/htm/config/validator.rb +47 -34
  479. data/lib/htm/config.rb +122 -296
  480. data/lib/htm/database.rb +330 -427
  481. data/lib/htm/database_docs.rb +149 -0
  482. data/lib/htm/embedding_service.rb +29 -74
  483. data/lib/htm/epistemics.rb +254 -0
  484. data/lib/htm/errors.rb +4 -4
  485. data/lib/htm/event_time.rb +201 -0
  486. data/lib/htm/file_memory.rb +106 -0
  487. data/lib/htm/input_validator.rb +158 -0
  488. data/lib/htm/integrations/sinatra.rb +45 -33
  489. data/lib/htm/job_adapter.rb +79 -91
  490. data/lib/htm/jobs/failure_logging.rb +49 -0
  491. data/lib/htm/jobs/generate_embedding_job.rb +28 -51
  492. data/lib/htm/jobs/generate_propositions_job.rb +59 -57
  493. data/lib/htm/jobs/generate_relationships_job.rb +141 -0
  494. data/lib/htm/jobs/generate_tags_job.rb +44 -71
  495. data/lib/htm/jobs/llm_call_timer.rb +53 -0
  496. data/lib/htm/jobs/node_lookup.rb +27 -0
  497. data/lib/htm/knowledge_memory.rb +153 -0
  498. data/lib/htm/loaders/chunk_sync.rb +168 -0
  499. data/lib/htm/loaders/markdown_chunker.rb +207 -36
  500. data/lib/htm/loaders/markdown_loader.rb +99 -190
  501. data/lib/htm/long_term_memory/fulltext_search.rb +16 -37
  502. data/lib/htm/long_term_memory/hybrid_search.rb +484 -385
  503. data/lib/htm/long_term_memory/node_operations.rb +111 -82
  504. data/lib/htm/long_term_memory/relevance_scorer.rb +254 -227
  505. data/lib/htm/long_term_memory/tag_operations.rb +225 -187
  506. data/lib/htm/long_term_memory/vector_search.rb +34 -62
  507. data/lib/htm/long_term_memory.rb +5 -16
  508. data/lib/htm/mcp/file_tools.rb +190 -0
  509. data/lib/htm/mcp/group_tools.rb +223 -233
  510. data/lib/htm/mcp/node_tools.rb +350 -0
  511. data/lib/htm/mcp/resources.rb +102 -28
  512. data/lib/htm/mcp/robot_team_tools.rb +119 -0
  513. data/lib/htm/mcp/server.rb +26 -15
  514. data/lib/htm/mcp/tag_tools.rb +130 -0
  515. data/lib/htm/mcp/tool.rb +40 -0
  516. data/lib/htm/mcp/tool_support.rb +88 -0
  517. data/lib/htm/mcp/tools.rb +230 -287
  518. data/lib/htm/migration.rb +10 -10
  519. data/lib/htm/models/file_source.rb +35 -20
  520. data/lib/htm/models/node.rb +288 -195
  521. data/lib/htm/models/node_link.rb +97 -0
  522. data/lib/htm/models/node_relationship.rb +73 -0
  523. data/lib/htm/models/node_tag.rb +24 -4
  524. data/lib/htm/models/robot.rb +4 -8
  525. data/lib/htm/models/robot_node.rb +7 -4
  526. data/lib/htm/models/tag.rb +54 -195
  527. data/lib/htm/node_enrichment.rb +75 -0
  528. data/lib/htm/node_view.rb +295 -0
  529. data/lib/htm/observability.rb +125 -115
  530. data/lib/htm/proposition_service.rb +41 -81
  531. data/lib/htm/query_cache.rb +148 -96
  532. data/lib/htm/railtie.rb +4 -9
  533. data/lib/htm/request_options.rb +149 -0
  534. data/lib/htm/robot_group/cache_sync.rb +69 -0
  535. data/lib/htm/robot_group/membership.rb +147 -0
  536. data/lib/htm/robot_group/working_memory_ledger.rb +111 -0
  537. data/lib/htm/robot_group.rb +130 -523
  538. data/lib/htm/robots/actions.rb +371 -0
  539. data/lib/htm/robots/neighbors.rb +63 -0
  540. data/lib/htm/robots/node_brief.rb +49 -0
  541. data/lib/htm/robots/supervisor.rb +140 -0
  542. data/lib/htm/robots/team.rb +124 -0
  543. data/lib/htm/robots/teams/archivist.rb +88 -0
  544. data/lib/htm/robots/teams/consolidator.rb +52 -0
  545. data/lib/htm/robots/teams/contradiction_detector.rb +67 -0
  546. data/lib/htm/robots/teams/tag_curator.rb +75 -0
  547. data/lib/htm/robots/tools.rb +127 -0
  548. data/lib/htm/robots.rb +125 -0
  549. data/lib/htm/search_filters.rb +116 -0
  550. data/lib/htm/sequel_config.rb +96 -59
  551. data/lib/htm/sql_builder.rb +162 -53
  552. data/lib/htm/startup_prompt.rb +73 -0
  553. data/lib/htm/tag_service.rb +105 -114
  554. data/lib/htm/tag_tree.rb +206 -0
  555. data/lib/htm/telemetry.rb +15 -16
  556. data/lib/htm/timeframe.rb +30 -13
  557. data/lib/htm/timeframe_extractor.rb +104 -123
  558. data/lib/htm/timeline.rb +230 -0
  559. data/lib/htm/version.rb +1 -1
  560. data/lib/htm/workflows/remember_workflow.rb +147 -141
  561. data/lib/htm/working_memory/entry.rb +53 -0
  562. data/lib/htm/working_memory/store.rb +97 -0
  563. data/lib/htm/working_memory.rb +135 -142
  564. data/lib/htm/working_memory_channel.rb +90 -40
  565. data/lib/htm.rb +185 -522
  566. data/mkdocs.yml +100 -23
  567. data/scripts/install_local_database.sh +7 -6
  568. metadata +1032 -669
  569. data/.tbls.yml +0 -31
  570. data/Rakefile +0 -159
  571. data/bin/htm_mcp +0 -27
  572. data/docs/api/yard/HTM/ActiveRecordConfig.md +0 -29
  573. data/docs/api/yard/HTM/ConfigSection.md +0 -28
  574. data/docs/database/public.file_sources.md +0 -42
  575. data/docs/database/public.file_sources.svg +0 -219
  576. data/docs/database/public.node_stats.md +0 -48
  577. data/docs/database/public.node_stats.svg +0 -41
  578. data/docs/database/public.node_tags.md +0 -41
  579. data/docs/database/public.node_tags.svg +0 -251
  580. data/docs/database/public.nodes.md +0 -61
  581. data/docs/database/public.nodes.svg +0 -283
  582. data/docs/database/public.nodes_tags.md +0 -39
  583. data/docs/database/public.nodes_tags.svg +0 -112
  584. data/docs/database/public.ontology_structure.md +0 -48
  585. data/docs/database/public.ontology_structure.svg +0 -38
  586. data/docs/database/public.operations_log.md +0 -42
  587. data/docs/database/public.operations_log.svg +0 -130
  588. data/docs/database/public.relationships.md +0 -39
  589. data/docs/database/public.relationships.svg +0 -41
  590. data/docs/database/public.robot_activity.md +0 -46
  591. data/docs/database/public.robot_activity.svg +0 -35
  592. data/docs/database/public.robot_nodes.md +0 -48
  593. data/docs/database/public.robot_nodes.svg +0 -251
  594. data/docs/database/public.robots.md +0 -34
  595. data/docs/database/public.robots.svg +0 -165
  596. data/docs/database/public.schema_migrations.md +0 -29
  597. data/docs/database/public.schema_migrations.svg +0 -26
  598. data/docs/database/public.tags.md +0 -38
  599. data/docs/database/public.tags.svg +0 -147
  600. data/docs/database/public.topic_relationships.md +0 -45
  601. data/docs/database/public.topic_relationships.svg +0 -32
  602. data/docs/database/schema.json +0 -1814
  603. data/docs/database_rake_tasks.md +0 -353
  604. data/docs/development/rake-tasks.md +0 -1113
  605. data/docs/using_rake_tasks_in_your_app.md +0 -383
  606. data/examples/06_example_app/Rakefile +0 -71
  607. data/lib/htm/mcp/cli.rb +0 -582
  608. data/lib/htm/tasks.rb +0 -79
  609. data/lib/tasks/db.rake +0 -17
  610. data/lib/tasks/doc.rake +0 -300
  611. data/lib/tasks/files.rake +0 -292
  612. data/lib/tasks/htm.rake +0 -704
  613. data/lib/tasks/jobs.rake +0 -435
  614. data/lib/tasks/tags.rake +0 -189
  615. data/scripts/backfill_parent_tags.rb +0 -376
  616. data/scripts/normalize_plural_tags.rb +0 -335
@@ -1,294 +1,403 @@
1
1
  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
2
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
3
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
- <!-- Generated by graphviz version 12.1.2 (20240928.0832)
4
+ <!-- Generated by graphviz version 16.1.2 (20261121.0218)
5
5
  -->
6
- <!-- Title: htm_development Pages: 1 -->
7
- <svg width="2221pt" height="1494pt"
8
- viewBox="0.00 0.00 2220.69 1493.60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
- <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 1489.6)">
10
- <title>htm_development</title>
11
- <polygon fill="white" stroke="none" points="-4,4 -4,-1489.6 2216.69,-1489.6 2216.69,4 -4,4"/>
12
- <!-- public.file_sources -->
6
+ <!-- Title: schema Pages: 1 -->
7
+ <svg width="675pt" height="696pt"
8
+ viewBox="0.00 0.00 675.00 696.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 692.25)">
10
+ <title>schema</title>
11
+ <!-- file_sources -->
13
12
  <g id="node1" class="node">
14
- <title>public.file_sources</title>
15
- <polygon fill="#efefef" stroke="none" points="834.64,-320.4 834.64,-366.4 1326.38,-366.4 1326.38,-320.4 834.64,-320.4"/>
16
- <polygon fill="none" stroke="black" points="834.64,-320.4 834.64,-366.4 1326.38,-366.4 1326.38,-320.4 834.64,-320.4"/>
17
- <text text-anchor="start" x="950.04" y="-344.2" font-family="Arial Bold" font-size="18.00">public.file_sources</text>
18
- <text text-anchor="start" x="1086.5" y="-344.2" font-family="Arial" font-size="14.00">    </text>
19
- <text text-anchor="start" x="1117.61" y="-344.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
20
- <text text-anchor="start" x="947.04" y="-329.8" font-family="Arial" font-size="14.00" fill="#333333">Source file metadata for loaded documents</text>
21
- <polygon fill="none" stroke="black" points="834.64,-289.6 834.64,-320.4 1326.38,-320.4 1326.38,-289.6 834.64,-289.6"/>
22
- <text text-anchor="start" x="841.64" y="-301.8" font-family="Arial" font-size="14.00">created_at </text>
23
- <text text-anchor="start" x="911.69" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
24
- <polygon fill="none" stroke="black" points="834.64,-258.8 834.64,-289.6 1326.38,-289.6 1326.38,-258.8 834.64,-258.8"/>
25
- <text text-anchor="start" x="841.64" y="-271" font-family="Arial" font-size="14.00">file_hash </text>
26
- <text text-anchor="start" x="901.57" y="-271" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
27
- <text text-anchor="start" x="980.93" y="-271" font-family="Arial" font-size="14.00"> SHA&#45;256 hash of file content</text>
28
- <polygon fill="none" stroke="black" points="834.64,-228 834.64,-258.8 1326.38,-258.8 1326.38,-228 834.64,-228"/>
29
- <text text-anchor="start" x="841.64" y="-240.2" font-family="Arial" font-size="14.00">file_path </text>
30
- <text text-anchor="start" x="898.46" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
31
- <text text-anchor="start" x="928.81" y="-240.2" font-family="Arial" font-size="14.00"> Absolute path to source file</text>
32
- <polygon fill="none" stroke="black" points="834.64,-197.2 834.64,-228 1326.38,-228 1326.38,-197.2 834.64,-197.2"/>
33
- <text text-anchor="start" x="841.64" y="-209.4" font-family="Arial" font-size="14.00">file_size </text>
34
- <text text-anchor="start" x="896.11" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
35
- <text text-anchor="start" x="946.7" y="-209.4" font-family="Arial" font-size="14.00"> File size in bytes</text>
36
- <polygon fill="none" stroke="black" points="834.64,-166.4 834.64,-197.2 1326.38,-197.2 1326.38,-166.4 834.64,-166.4"/>
37
- <text text-anchor="start" x="841.64" y="-178.6" font-family="Arial" font-size="14.00">frontmatter </text>
38
- <text text-anchor="start" x="913.22" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[jsonb]</text>
39
- <text text-anchor="start" x="954.47" y="-178.6" font-family="Arial" font-size="14.00"> Parsed YAML frontmatter</text>
40
- <polygon fill="none" stroke="black" points="834.64,-135.6 834.64,-166.4 1326.38,-166.4 1326.38,-135.6 834.64,-135.6"/>
41
- <text text-anchor="start" x="841.64" y="-147.8" font-family="Arial" font-size="14.00">id </text>
42
- <text text-anchor="start" x="856.43" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
43
- <polygon fill="none" stroke="black" points="834.64,-104.8 834.64,-135.6 1326.38,-135.6 1326.38,-104.8 834.64,-104.8"/>
44
- <text text-anchor="start" x="841.64" y="-117" font-family="Arial" font-size="14.00">last_synced_at </text>
45
- <text text-anchor="start" x="938.92" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
46
- <text text-anchor="start" x="1104.65" y="-117" font-family="Arial" font-size="14.00"> When file was last synced to HTM</text>
47
- <polygon fill="none" stroke="black" points="834.64,-74 834.64,-104.8 1326.38,-104.8 1326.38,-74 834.64,-74"/>
48
- <text text-anchor="start" x="841.64" y="-86.2" font-family="Arial" font-size="14.00">mtime </text>
49
- <text text-anchor="start" x="883.64" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
50
- <text text-anchor="start" x="1049.36" y="-86.2" font-family="Arial" font-size="14.00"> File modification time</text>
51
- <polygon fill="none" stroke="black" points="834.64,-43.2 834.64,-74 1326.38,-74 1326.38,-43.2 834.64,-43.2"/>
52
- <text text-anchor="start" x="841.64" y="-55.4" font-family="Arial" font-size="14.00">updated_at </text>
53
- <text text-anchor="start" x="915.6" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
54
- </g>
55
- <!-- public.node_tags -->
13
+ <title>file_sources</title>
14
+ <g id="a_node1"><a xlink:href="file_sources.md" xlink:title="Source file metadata for loaded documents">
15
+ <g id="a_node1_0"><a xlink:href="file_sources.md" xlink:title="Source file metadata for loaded documents">
16
+ <polygon fill="#2b3a55" stroke="none" points="551,-244.5 551,-277.25 658.75,-277.25 658.75,-244.5 551,-244.5"/>
17
+ <polygon fill="none" stroke="#c8d1dc" points="551,-244.5 551,-277.25 658.75,-277.25 658.75,-244.5 551,-244.5"/>
18
+ <text xml:space="preserve" text-anchor="start" x="558" y="-256.05" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">file_sources</text>
19
+ </a>
20
+ </g>
21
+ <g id="a_node1_1"><a xlink:href="file_sources.md" xlink:title="Source file metadata for loaded documents">
22
+ <polygon fill="none" stroke="#c8d1dc" points="551,-216.25 551,-244.5 658.75,-244.5 658.75,-216.25 551,-216.25"/>
23
+ <text xml:space="preserve" text-anchor="start" x="558" y="-227.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
24
+ <text xml:space="preserve" text-anchor="start" x="570.75" y="-227.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
25
+ </a>
26
+ </g>
27
+ </a>
28
+ </g>
29
+ </g>
30
+ <!-- node_links -->
56
31
  <g id="node2" class="node">
57
- <title>public.node_tags</title>
58
- <polygon fill="#efefef" stroke="none" points="493.91,-1319.4 493.91,-1365.4 963.12,-1365.4 963.12,-1319.4 493.91,-1319.4"/>
59
- <polygon fill="none" stroke="black" points="493.91,-1319.4 493.91,-1365.4 963.12,-1365.4 963.12,-1319.4 493.91,-1319.4"/>
60
- <text text-anchor="start" x="605.03" y="-1343.2" font-family="Arial Bold" font-size="18.00">public.node_tags</text>
61
- <text text-anchor="start" x="727.51" y="-1343.2" font-family="Arial" font-size="14.00">    </text>
62
- <text text-anchor="start" x="758.62" y="-1343.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
63
- <text text-anchor="start" x="567.43" y="-1328.8" font-family="Arial" font-size="14.00" fill="#333333">Join table connecting nodes to tags (many&#45;to&#45;many)</text>
64
- <polygon fill="none" stroke="black" points="493.91,-1288.6 493.91,-1319.4 963.12,-1319.4 963.12,-1288.6 493.91,-1288.6"/>
65
- <text text-anchor="start" x="500.91" y="-1300.8" font-family="Arial" font-size="14.00">created_at </text>
66
- <text text-anchor="start" x="570.95" y="-1300.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
67
- <text text-anchor="start" x="736.68" y="-1300.8" font-family="Arial" font-size="14.00"> When this association was created</text>
68
- <polygon fill="none" stroke="black" points="493.91,-1257.8 493.91,-1288.6 963.12,-1288.6 963.12,-1257.8 493.91,-1257.8"/>
69
- <text text-anchor="start" x="500.91" y="-1270" font-family="Arial" font-size="14.00">deleted_at </text>
70
- <text text-anchor="start" x="570.19" y="-1270" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
71
- <text text-anchor="start" x="735.91" y="-1270" font-family="Arial" font-size="14.00"> Soft delete timestamp</text>
72
- <polygon fill="none" stroke="black" points="493.91,-1227 493.91,-1257.8 963.12,-1257.8 963.12,-1227 493.91,-1227"/>
73
- <text text-anchor="start" x="500.91" y="-1239.2" font-family="Arial" font-size="14.00">id </text>
74
- <text text-anchor="start" x="515.69" y="-1239.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
75
- <polygon fill="none" stroke="black" points="493.91,-1196.2 493.91,-1227 963.12,-1227 963.12,-1196.2 493.91,-1196.2"/>
76
- <text text-anchor="start" x="500.91" y="-1208.4" font-family="Arial" font-size="14.00">node_id </text>
77
- <text text-anchor="start" x="554.62" y="-1208.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
78
- <text text-anchor="start" x="595.87" y="-1208.4" font-family="Arial" font-size="14.00"> ID of the node being tagged</text>
79
- <polygon fill="none" stroke="black" points="493.91,-1165.4 493.91,-1196.2 963.12,-1196.2 963.12,-1165.4 493.91,-1165.4"/>
80
- <text text-anchor="start" x="500.91" y="-1177.6" font-family="Arial" font-size="14.00">tag_id </text>
81
- <text text-anchor="start" x="542.94" y="-1177.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
82
- <text text-anchor="start" x="584.19" y="-1177.6" font-family="Arial" font-size="14.00"> ID of the tag being applied</text>
83
- </g>
84
- <!-- public.nodes -->
85
- <g id="node3" class="node">
86
- <title>public.nodes</title>
87
- <polygon fill="#efefef" stroke="none" points="752.49,-920 752.49,-966 1408.53,-966 1408.53,-920 752.49,-920"/>
88
- <polygon fill="none" stroke="black" points="752.49,-920 752.49,-966 1408.53,-966 1408.53,-920 752.49,-920"/>
89
- <text text-anchor="start" x="972.53" y="-943.8" font-family="Arial Bold" font-size="18.00">public.nodes</text>
90
- <text text-anchor="start" x="1064.01" y="-943.8" font-family="Arial" font-size="14.00">    </text>
91
- <text text-anchor="start" x="1095.13" y="-943.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
92
- <text text-anchor="start" x="889.09" y="-929.4" font-family="Arial" font-size="14.00" fill="#333333">Core memory storage for conversation messages and context</text>
93
- <polygon fill="none" stroke="black" points="752.49,-889.2 752.49,-920 1408.53,-920 1408.53,-889.2 752.49,-889.2"/>
94
- <text text-anchor="start" x="759.49" y="-901.4" font-family="Arial" font-size="14.00">access_count </text>
95
- <text text-anchor="start" x="848.99" y="-901.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
96
- <text text-anchor="start" x="899.58" y="-901.4" font-family="Arial" font-size="14.00"> Number of times this node has been accessed/retrieved</text>
97
- <polygon fill="none" stroke="black" points="752.49,-858.4 752.49,-889.2 1408.53,-889.2 1408.53,-858.4 752.49,-858.4"/>
98
- <text text-anchor="start" x="759.49" y="-870.6" font-family="Arial" font-size="14.00">chunk_position </text>
99
- <text text-anchor="start" x="856.78" y="-870.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
100
- <text text-anchor="start" x="907.37" y="-870.6" font-family="Arial" font-size="14.00"> Position within source file (0&#45;indexed)</text>
101
- <polygon fill="none" stroke="black" points="752.49,-827.6 752.49,-858.4 1408.53,-858.4 1408.53,-827.6 752.49,-827.6"/>
102
- <text text-anchor="start" x="759.49" y="-839.8" font-family="Arial" font-size="14.00">content </text>
103
- <text text-anchor="start" x="809.31" y="-839.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
104
- <text text-anchor="start" x="839.65" y="-839.8" font-family="Arial" font-size="14.00"> The conversation message/utterance content</text>
105
- <polygon fill="none" stroke="black" points="752.49,-796.8 752.49,-827.6 1408.53,-827.6 1408.53,-796.8 752.49,-796.8"/>
106
- <text text-anchor="start" x="759.49" y="-809" font-family="Arial" font-size="14.00">content_hash </text>
107
- <text text-anchor="start" x="847.45" y="-809" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
108
- <text text-anchor="start" x="926.81" y="-809" font-family="Arial" font-size="14.00"> SHA&#45;256 hash of content for deduplication</text>
109
- <polygon fill="none" stroke="black" points="752.49,-766 752.49,-796.8 1408.53,-796.8 1408.53,-766 752.49,-766"/>
110
- <text text-anchor="start" x="759.49" y="-778.2" font-family="Arial" font-size="14.00">created_at </text>
111
- <text text-anchor="start" x="829.54" y="-778.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
112
- <text text-anchor="start" x="995.26" y="-778.2" font-family="Arial" font-size="14.00"> When this memory was created</text>
113
- <polygon fill="none" stroke="black" points="752.49,-735.2 752.49,-766 1408.53,-766 1408.53,-735.2 752.49,-735.2"/>
114
- <text text-anchor="start" x="759.49" y="-747.4" font-family="Arial" font-size="14.00">deleted_at </text>
115
- <text text-anchor="start" x="828.78" y="-747.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
116
- <text text-anchor="start" x="994.5" y="-747.4" font-family="Arial" font-size="14.00"> Soft delete timestamp &#45; node is considered deleted when set</text>
117
- <polygon fill="none" stroke="black" points="752.49,-704.4 752.49,-735.2 1408.53,-735.2 1408.53,-704.4 752.49,-704.4"/>
118
- <text text-anchor="start" x="759.49" y="-716.6" font-family="Arial" font-size="14.00">embedding </text>
119
- <text text-anchor="start" x="832.66" y="-716.6" font-family="Arial" font-size="14.00" fill="#666666">[vector(2000)]</text>
120
- <text text-anchor="start" x="919.03" y="-716.6" font-family="Arial" font-size="14.00"> Vector embedding (max 2000 dimensions) for semantic search</text>
121
- <polygon fill="none" stroke="black" points="752.49,-673.6 752.49,-704.4 1408.53,-704.4 1408.53,-673.6 752.49,-673.6"/>
122
- <text text-anchor="start" x="759.49" y="-685.8" font-family="Arial" font-size="14.00">embedding_dimension </text>
123
- <text text-anchor="start" x="904.26" y="-685.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
124
- <text text-anchor="start" x="954.84" y="-685.8" font-family="Arial" font-size="14.00"> Actual number of dimensions used in the embedding vector (max 2000)</text>
125
- <polygon fill="none" stroke="black" points="752.49,-642.8 752.49,-673.6 1408.53,-673.6 1408.53,-642.8 752.49,-642.8"/>
126
- <text text-anchor="start" x="759.49" y="-655" font-family="Arial" font-size="14.00">id </text>
127
- <text text-anchor="start" x="774.28" y="-655" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
128
- <polygon fill="none" stroke="black" points="752.49,-612 752.49,-642.8 1408.53,-642.8 1408.53,-612 752.49,-612"/>
129
- <text text-anchor="start" x="759.49" y="-624.2" font-family="Arial" font-size="14.00">last_accessed </text>
130
- <text text-anchor="start" x="852.1" y="-624.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
131
- <text text-anchor="start" x="1017.82" y="-624.2" font-family="Arial" font-size="14.00"> When this memory was last accessed</text>
132
- <polygon fill="none" stroke="black" points="752.49,-581.2 752.49,-612 1408.53,-612 1408.53,-581.2 752.49,-581.2"/>
133
- <text text-anchor="start" x="759.49" y="-593.4" font-family="Arial" font-size="14.00">metadata </text>
134
- <text text-anchor="start" x="821.76" y="-593.4" font-family="Arial" font-size="14.00" fill="#666666">[jsonb]</text>
135
- <text text-anchor="start" x="863" y="-593.4" font-family="Arial" font-size="14.00"> Flexible metadata storage (memory_type, importance, source, etc.)</text>
136
- <polygon fill="none" stroke="black" points="752.49,-550.4 752.49,-581.2 1408.53,-581.2 1408.53,-550.4 752.49,-550.4"/>
137
- <text text-anchor="start" x="759.49" y="-562.6" font-family="Arial" font-size="14.00">source_id </text>
138
- <text text-anchor="start" x="824.09" y="-562.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
139
- <text text-anchor="start" x="865.33" y="-562.6" font-family="Arial" font-size="14.00"> Reference to source file (for file&#45;loaded nodes)</text>
140
- <polygon fill="none" stroke="black" points="752.49,-519.6 752.49,-550.4 1408.53,-550.4 1408.53,-519.6 752.49,-519.6"/>
141
- <text text-anchor="start" x="759.49" y="-531.8" font-family="Arial" font-size="14.00">token_count </text>
142
- <text text-anchor="start" x="839.67" y="-531.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
143
- <text text-anchor="start" x="890.25" y="-531.8" font-family="Arial" font-size="14.00"> Number of tokens in the content (for context budget management)</text>
144
- <polygon fill="none" stroke="black" points="752.49,-488.8 752.49,-519.6 1408.53,-519.6 1408.53,-488.8 752.49,-488.8"/>
145
- <text text-anchor="start" x="759.49" y="-501" font-family="Arial" font-size="14.00">updated_at </text>
146
- <text text-anchor="start" x="833.45" y="-501" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
147
- <text text-anchor="start" x="999.18" y="-501" font-family="Arial" font-size="14.00"> When this memory was last modified</text>
148
- </g>
149
- <!-- public.node_tags&#45;&gt;public.nodes -->
32
+ <title>node_links</title>
33
+ <g id="a_node2"><a xlink:href="node_links.md" xlink:title="How nodes replace, absorb and derive from one another: the history behind HTM#timeline">
34
+ <g id="a_node2_2"><a xlink:href="node_links.md" xlink:title="How nodes replace, absorb and derive from one another: the history behind HTM#timeline">
35
+ <polygon fill="#2b3a55" stroke="none" points="27.5,-560.88 27.5,-593.62 153.25,-593.62 153.25,-560.88 27.5,-560.88"/>
36
+ <polygon fill="none" stroke="#c8d1dc" points="27.5,-560.88 27.5,-593.62 153.25,-593.62 153.25,-560.88 27.5,-560.88"/>
37
+ <text xml:space="preserve" text-anchor="start" x="48.38" y="-572.42" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">node_links</text>
38
+ </a>
39
+ </g>
40
+ <g id="a_node2_3"><a xlink:href="node_links.md" xlink:title="How nodes replace, absorb and derive from one another: the history behind HTM#timeline">
41
+ <polygon fill="none" stroke="#c8d1dc" points="27.5,-532.62 27.5,-560.88 153.25,-560.88 153.25,-532.62 27.5,-532.62"/>
42
+ <text xml:space="preserve" text-anchor="start" x="34.5" y="-543.48" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
43
+ <text xml:space="preserve" text-anchor="start" x="47.25" y="-543.48" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
44
+ </a>
45
+ </g>
46
+ <g id="a_node2_4"><a xlink:href="node_links.md" xlink:title="Node the link starts at (the newer state for supersedes; the retired node for merged_into/archived_into)">
47
+ <polygon fill="none" stroke="#c8d1dc" points="27.5,-504.38 27.5,-532.62 153.25,-532.62 153.25,-504.38 27.5,-504.38"/>
48
+ <text xml:space="preserve" text-anchor="start" x="34.5" y="-515.23" font-family="Arial" font-size="12.00" fill="#e6e6e6">from_node_id </text>
49
+ <text xml:space="preserve" text-anchor="start" x="111" y="-515.23" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
50
+ </a>
51
+ </g>
52
+ <g id="a_node2_5"><a xlink:href="node_links.md" xlink:title="Node the link points to">
53
+ <polygon fill="none" stroke="#c8d1dc" points="27.5,-476.12 27.5,-504.38 153.25,-504.38 153.25,-476.12 27.5,-476.12"/>
54
+ <text xml:space="preserve" text-anchor="start" x="34.5" y="-486.98" font-family="Arial" font-size="12.00" fill="#e6e6e6">to_node_id </text>
55
+ <text xml:space="preserve" text-anchor="start" x="97.5" y="-486.98" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
56
+ </a>
57
+ </g>
58
+ <g id="a_node2_6"><a xlink:href="node_links.md" xlink:title="Robot that recorded the link (NULL when unknown)">
59
+ <polygon fill="none" stroke="#c8d1dc" points="27.5,-447.88 27.5,-476.12 153.25,-476.12 153.25,-447.88 27.5,-447.88"/>
60
+ <text xml:space="preserve" text-anchor="start" x="34.5" y="-458.73" font-family="Arial" font-size="12.00" fill="#e6e6e6">robot_id </text>
61
+ <text xml:space="preserve" text-anchor="start" x="81" y="-458.73" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
62
+ </a>
63
+ </g>
64
+ </a>
65
+ </g>
66
+ </g>
67
+ <!-- nodes -->
68
+ <g id="node5" class="node">
69
+ <title>nodes</title>
70
+ <g id="a_node5"><a xlink:href="nodes.md" xlink:title="Core memory storage for conversation messages and context">
71
+ <g id="a_node5_7"><a xlink:href="nodes.md" xlink:title="Core memory storage for conversation messages and context">
72
+ <polygon fill="#2b3a55" stroke="none" points="317.75,-272.62 317.75,-305.38 422.5,-305.38 422.5,-272.62 317.75,-272.62"/>
73
+ <polygon fill="none" stroke="#c8d1dc" points="317.75,-272.62 317.75,-305.38 422.5,-305.38 422.5,-272.62 317.75,-272.62"/>
74
+ <text xml:space="preserve" text-anchor="start" x="346.5" y="-284.18" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">nodes</text>
75
+ </a>
76
+ </g>
77
+ <g id="a_node5_8"><a xlink:href="nodes.md" xlink:title="Core memory storage for conversation messages and context">
78
+ <polygon fill="none" stroke="#c8d1dc" points="317.75,-244.38 317.75,-272.62 422.5,-272.62 422.5,-244.38 317.75,-244.38"/>
79
+ <text xml:space="preserve" text-anchor="start" x="324.75" y="-255.22" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
80
+ <text xml:space="preserve" text-anchor="start" x="337.5" y="-255.22" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
81
+ </a>
82
+ </g>
83
+ <g id="a_node5_9"><a xlink:href="nodes.md" xlink:title="Reference to source file (for file&#45;loaded nodes)">
84
+ <polygon fill="none" stroke="#c8d1dc" points="317.75,-216.12 317.75,-244.38 422.5,-244.38 422.5,-216.12 317.75,-216.12"/>
85
+ <text xml:space="preserve" text-anchor="start" x="324.75" y="-226.97" font-family="Arial" font-size="12.00" fill="#e6e6e6">source_id </text>
86
+ <text xml:space="preserve" text-anchor="start" x="380.25" y="-226.97" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
87
+ </a>
88
+ </g>
89
+ </a>
90
+ </g>
91
+ </g>
92
+ <!-- node_links&#45;&gt;nodes -->
150
93
  <g id="edge1" class="edge">
151
- <title>public.node_tags:node_id&#45;&gt;public.nodes:id</title>
152
- <path fill="none" stroke="black" d="M974.1,-1210.09C999.92,-1200.98 981.7,-1152.86 963.12,-1122.2 908.07,-1031.35 807.17,-1100.28 752.49,-1009.2 712.35,-942.32 673.49,-658.2 751.49,-658.2"/>
153
- <polygon fill="black" stroke="black" points="974.34,-1210.05 963.77,-1207.1 969.06,-1210.85 964.78,-1211.5 964.78,-1211.5 964.78,-1211.5 969.06,-1210.85 965.12,-1216 974.34,-1210.05"/>
154
- <text text-anchor="start" x="971.12" y="-1221.6" font-family="Arial" font-size="10.00">FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE</text>
94
+ <title>node_links:e&#45;&gt;nodes:w</title>
95
+ <g id="a_edge1"><a xlink:href="node_links.md" xlink:title="node_links.from_node_id references nodes.id">
96
+ <path fill="none" stroke="#7aa2f7" d="M164.43,-518.34C217,-516.63 239.53,-500.67 273.75,-455.75 324.93,-388.55 238.34,-273.06 302.87,-259.76"/>
97
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="164.58,-518.34 154.51,-514 159.25,-518.42 154.92,-518.49 154.92,-518.49 154.92,-518.49 159.25,-518.42 154.65,-522.99 164.58,-518.34"/>
98
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="315.3,-253.61 316.21,-263.57 314.21,-263.75 313.31,-253.79 315.3,-253.61"/>
99
+ <polyline fill="none" stroke="#7aa2f7" points="316.75,-258.5 311.77,-258.95"/>
100
+ <ellipse fill="none" stroke="#7aa2f7" cx="307.29" cy="-259.36" rx="4" ry="4"/>
101
+ </a>
102
+ </g>
103
+ <g id="a_edge1&#45;label"><a xlink:href="node_links.md" xlink:title="from_node_id">
104
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-509.19" font-family="Arial" font-size="9.00" fill="#9aa4b2">from_node_id</text>
105
+ </a>
106
+ </g>
155
107
  </g>
156
- <!-- public.tags -->
108
+ <!-- node_links&#45;&gt;nodes -->
109
+ <g id="edge3" class="edge">
110
+ <title>node_links:e&#45;&gt;nodes:w</title>
111
+ <g id="a_edge3"><a xlink:href="node_links.md" xlink:title="node_links.to_node_id references nodes.id">
112
+ <path fill="none" stroke="#7aa2f7" d="M164.31,-488.29C179.22,-481.02 171.58,-454.89 180.75,-432.75 198.43,-390.07 189.35,-372.44 216.75,-335.25 217.58,-334.13 279.48,-286.06 305.47,-266.57"/>
113
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="164.39,-488.27 153.72,-485.77 159.16,-489.29 154.91,-490.12 154.91,-490.12 154.91,-490.12 159.16,-489.29 155.44,-494.6 164.39,-488.27"/>
114
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="313.03,-255.02 318.85,-263.15 317.22,-264.31 311.4,-256.18 313.03,-255.02"/>
115
+ <polyline fill="none" stroke="#7aa2f7" points="316.75,-258.5 312.68,-261.41"/>
116
+ <ellipse fill="none" stroke="#7aa2f7" cx="309.03" cy="-264.03" rx="4" ry="4"/>
117
+ </a>
118
+ </g>
119
+ <g id="a_edge3&#45;label"><a xlink:href="node_links.md" xlink:title="to_node_id">
120
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-337.2" font-family="Arial" font-size="9.00" fill="#9aa4b2">to_node_id</text>
121
+ </a>
122
+ </g>
123
+ </g>
124
+ <!-- robots -->
157
125
  <g id="node7" class="node">
158
- <title>public.tags</title>
159
- <polygon fill="#efefef" stroke="none" points="43.2,-766 43.2,-812 647.83,-812 647.83,-766 43.2,-766"/>
160
- <polygon fill="none" stroke="black" points="43.2,-766 43.2,-812 647.83,-812 647.83,-766 43.2,-766"/>
161
- <text text-anchor="start" x="244.02" y="-789.8" font-family="Arial Bold" font-size="18.00">public.tags</text>
162
- <text text-anchor="start" x="322.51" y="-789.8" font-family="Arial" font-size="14.00">    </text>
163
- <text text-anchor="start" x="353.63" y="-789.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
164
- <text text-anchor="start" x="233.06" y="-775.4" font-family="Arial" font-size="14.00" fill="#333333">Unique tag names for categorization</text>
165
- <polygon fill="none" stroke="black" points="43.2,-735.2 43.2,-766 647.83,-766 647.83,-735.2 43.2,-735.2"/>
166
- <text text-anchor="start" x="50.2" y="-747.4" font-family="Arial" font-size="14.00">created_at </text>
167
- <text text-anchor="start" x="120.25" y="-747.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
168
- <text text-anchor="start" x="285.97" y="-747.4" font-family="Arial" font-size="14.00"> When this tag was created</text>
169
- <polygon fill="none" stroke="black" points="43.2,-704.4 43.2,-735.2 647.83,-735.2 647.83,-704.4 43.2,-704.4"/>
170
- <text text-anchor="start" x="50.2" y="-716.6" font-family="Arial" font-size="14.00">deleted_at </text>
171
- <text text-anchor="start" x="119.48" y="-716.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
172
- <text text-anchor="start" x="285.21" y="-716.6" font-family="Arial" font-size="14.00"> Soft delete timestamp</text>
173
- <polygon fill="none" stroke="black" points="43.2,-673.6 43.2,-704.4 647.83,-704.4 647.83,-673.6 43.2,-673.6"/>
174
- <text text-anchor="start" x="50.2" y="-685.8" font-family="Arial" font-size="14.00">id </text>
175
- <text text-anchor="start" x="64.99" y="-685.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
176
- <polygon fill="none" stroke="black" points="43.2,-642.8 43.2,-673.6 647.83,-673.6 647.83,-642.8 43.2,-642.8"/>
177
- <text text-anchor="start" x="50.2" y="-655" font-family="Arial" font-size="14.00">name </text>
178
- <text text-anchor="start" x="89.11" y="-655" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
179
- <text text-anchor="start" x="119.45" y="-655" font-family="Arial" font-size="14.00"> Hierarchical tag in format: root:level1:level2 (e.g., database:postgresql:timescaledb)</text>
180
- </g>
181
- <!-- public.node_tags&#45;&gt;public.tags -->
126
+ <title>robots</title>
127
+ <g id="a_node7"><a xlink:href="robots.md" xlink:title="Registry of all LLM robots using the HTM system">
128
+ <g id="a_node7_10"><a xlink:href="robots.md" xlink:title="Registry of all LLM robots using the HTM system">
129
+ <polygon fill="#2b3a55" stroke="none" points="338.38,-385.5 338.38,-418.25 401.88,-418.25 401.88,-385.5 338.38,-385.5"/>
130
+ <polygon fill="none" stroke="#c8d1dc" points="338.38,-385.5 338.38,-418.25 401.88,-418.25 401.88,-385.5 338.38,-385.5"/>
131
+ <text xml:space="preserve" text-anchor="start" x="345.38" y="-397.05" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">robots</text>
132
+ </a>
133
+ </g>
134
+ <g id="a_node7_11"><a xlink:href="robots.md" xlink:title="Registry of all LLM robots using the HTM system">
135
+ <polygon fill="none" stroke="#c8d1dc" points="338.38,-357.25 338.38,-385.5 401.88,-385.5 401.88,-357.25 338.38,-357.25"/>
136
+ <text xml:space="preserve" text-anchor="start" x="345.38" y="-368.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
137
+ <text xml:space="preserve" text-anchor="start" x="358.12" y="-368.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
138
+ </a>
139
+ </g>
140
+ </a>
141
+ </g>
142
+ </g>
143
+ <!-- node_links&#45;&gt;robots -->
182
144
  <g id="edge2" class="edge">
183
- <title>public.node_tags:tag_id&#45;&gt;public.tags:id</title>
184
- <path fill="none" stroke="black" d="M482.99,-1177.8C473.66,-1169.03 488.21,-1142.79 493.91,-1122.2 530.44,-990.19 612.02,-987.41 647.83,-855.2 667.13,-783.9 722.69,-689 648.83,-689"/>
185
- <polygon fill="black" stroke="black" points="483.02,-1177.81 491.28,-1185.01 488.12,-1179.35 492.27,-1180.61 492.27,-1180.61 492.27,-1180.61 488.12,-1179.35 493.89,-1176.4 483.02,-1177.81"/>
186
- <text text-anchor="start" x="163.05" y="-1190.8" font-family="Arial" font-size="10.00">FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE</text>
145
+ <title>node_links:e&#45;&gt;robots:w</title>
146
+ <g id="a_edge2"><a xlink:href="node_links.md" xlink:title="node_links.robot_id references robots.id">
147
+ <path fill="none" stroke="#7aa2f7" d="M164.49,-461.6C240.89,-455.42 249.36,-380.3 323.77,-372.1"/>
148
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="164.58,-461.59 154.41,-457.49 159.25,-461.8 154.92,-461.97 154.92,-461.97 154.92,-461.97 159.25,-461.8 154.76,-466.48 164.58,-461.59"/>
149
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="336.11,-366.44 336.64,-376.42 334.65,-376.53 334.11,-366.54 336.11,-366.44"/>
150
+ <polyline fill="none" stroke="#7aa2f7" points="337.38,-371.38 332.38,-371.64"/>
151
+ <ellipse fill="none" stroke="#7aa2f7" cx="327.89" cy="-371.88" rx="4" ry="4"/>
152
+ </a>
187
153
  </g>
188
- <!-- public.nodes&#45;&gt;public.file_sources -->
189
- <g id="edge3" class="edge">
190
- <title>public.nodes:source_id&#45;&gt;public.file_sources:id</title>
191
- <path fill="none" stroke="black" d="M1419.75,-563.95C1497.06,-534.03 1417.68,-151 1327.38,-151"/>
192
- <polygon fill="black" stroke="black" points="1419.7,-563.96 1409.06,-561.31 1414.45,-564.91 1410.19,-565.68 1410.19,-565.68 1410.19,-565.68 1414.45,-564.91 1410.66,-570.17 1419.7,-563.96"/>
193
- <text text-anchor="start" x="1416.53" y="-575.8" font-family="Arial" font-size="10.00">FOREIGN KEY (source_id) REFERENCES file_sources(id) ON DELETE SET NULL</text>
154
+ <g id="a_edge2&#45;label"><a xlink:href="node_links.md" xlink:title="robot_id">
155
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-442.05" font-family="Arial" font-size="9.00" fill="#9aa4b2">robot_id</text>
156
+ </a>
194
157
  </g>
195
- <!-- public.robot_nodes -->
196
- <g id="node4" class="node">
197
- <title>public.robot_nodes</title>
198
- <polygon fill="#efefef" stroke="none" points="1107.77,-1396.4 1107.77,-1442.4 1737.26,-1442.4 1737.26,-1396.4 1107.77,-1396.4"/>
199
- <polygon fill="none" stroke="black" points="1107.77,-1396.4 1107.77,-1442.4 1737.26,-1442.4 1737.26,-1396.4 1107.77,-1396.4"/>
200
- <text text-anchor="start" x="1291.03" y="-1420.2" font-family="Arial Bold" font-size="18.00">public.robot_nodes</text>
201
- <text text-anchor="start" x="1429.51" y="-1420.2" font-family="Arial" font-size="14.00">    </text>
202
- <text text-anchor="start" x="1460.63" y="-1420.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
203
- <text text-anchor="start" x="1255.2" y="-1405.8" font-family="Arial" font-size="14.00" fill="#333333">Join table connecting robots to nodes (many&#45;to&#45;many)</text>
204
- <polygon fill="none" stroke="black" points="1107.77,-1365.6 1107.77,-1396.4 1737.26,-1396.4 1737.26,-1365.6 1107.77,-1365.6"/>
205
- <text text-anchor="start" x="1114.77" y="-1377.8" font-family="Arial" font-size="14.00">created_at </text>
206
- <text text-anchor="start" x="1184.82" y="-1377.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
207
- <polygon fill="none" stroke="black" points="1107.77,-1334.8 1107.77,-1365.6 1737.26,-1365.6 1737.26,-1334.8 1107.77,-1334.8"/>
208
- <text text-anchor="start" x="1114.77" y="-1347" font-family="Arial" font-size="14.00">deleted_at </text>
209
- <text text-anchor="start" x="1184.05" y="-1347" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
210
- <text text-anchor="start" x="1349.77" y="-1347" font-family="Arial" font-size="14.00"> Soft delete timestamp</text>
211
- <polygon fill="none" stroke="black" points="1107.77,-1304 1107.77,-1334.8 1737.26,-1334.8 1737.26,-1304 1107.77,-1304"/>
212
- <text text-anchor="start" x="1114.77" y="-1316.2" font-family="Arial" font-size="14.00">first_remembered_at </text>
213
- <text text-anchor="start" x="1247.82" y="-1316.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
214
- <text text-anchor="start" x="1413.55" y="-1316.2" font-family="Arial" font-size="14.00"> When this robot first remembered this content</text>
215
- <polygon fill="none" stroke="black" points="1107.77,-1273.2 1107.77,-1304 1737.26,-1304 1737.26,-1273.2 1107.77,-1273.2"/>
216
- <text text-anchor="start" x="1114.77" y="-1285.4" font-family="Arial" font-size="14.00">id </text>
217
- <text text-anchor="start" x="1129.55" y="-1285.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
218
- <polygon fill="none" stroke="black" points="1107.77,-1242.4 1107.77,-1273.2 1737.26,-1273.2 1737.26,-1242.4 1107.77,-1242.4"/>
219
- <text text-anchor="start" x="1114.77" y="-1254.6" font-family="Arial" font-size="14.00">last_remembered_at </text>
220
- <text text-anchor="start" x="1247.06" y="-1254.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
221
- <text text-anchor="start" x="1412.78" y="-1254.6" font-family="Arial" font-size="14.00"> When this robot last tried to remember this content</text>
222
- <polygon fill="none" stroke="black" points="1107.77,-1211.6 1107.77,-1242.4 1737.26,-1242.4 1737.26,-1211.6 1107.77,-1211.6"/>
223
- <text text-anchor="start" x="1114.77" y="-1223.8" font-family="Arial" font-size="14.00">node_id </text>
224
- <text text-anchor="start" x="1168.49" y="-1223.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
225
- <text text-anchor="start" x="1209.73" y="-1223.8" font-family="Arial" font-size="14.00"> ID of the node being remembered</text>
226
- <polygon fill="none" stroke="black" points="1107.77,-1180.8 1107.77,-1211.6 1737.26,-1211.6 1737.26,-1180.8 1107.77,-1180.8"/>
227
- <text text-anchor="start" x="1114.77" y="-1193" font-family="Arial" font-size="14.00">remember_count </text>
228
- <text text-anchor="start" x="1224.49" y="-1193" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
229
- <text text-anchor="start" x="1275.07" y="-1193" font-family="Arial" font-size="14.00"> Number of times this robot has tried to remember this content</text>
230
- <polygon fill="none" stroke="black" points="1107.77,-1150 1107.77,-1180.8 1737.26,-1180.8 1737.26,-1150 1107.77,-1150"/>
231
- <text text-anchor="start" x="1114.77" y="-1162.2" font-family="Arial" font-size="14.00">robot_id </text>
232
- <text text-anchor="start" x="1169.25" y="-1162.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
233
- <text text-anchor="start" x="1210.5" y="-1162.2" font-family="Arial" font-size="14.00"> ID of the robot that remembered this node</text>
234
- <polygon fill="none" stroke="black" points="1107.77,-1119.2 1107.77,-1150 1737.26,-1150 1737.26,-1119.2 1107.77,-1119.2"/>
235
- <text text-anchor="start" x="1114.77" y="-1131.4" font-family="Arial" font-size="14.00">updated_at </text>
236
- <text text-anchor="start" x="1188.73" y="-1131.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
237
- <polygon fill="none" stroke="black" points="1107.77,-1088.4 1107.77,-1119.2 1737.26,-1119.2 1737.26,-1088.4 1107.77,-1088.4"/>
238
- <text text-anchor="start" x="1114.77" y="-1100.6" font-family="Arial" font-size="14.00">working_memory </text>
239
- <text text-anchor="start" x="1225.24" y="-1100.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
240
- <text text-anchor="start" x="1282.85" y="-1100.6" font-family="Arial" font-size="14.00"> True if this node is currently in the robot working memory</text>
241
- </g>
242
- <!-- public.robot_nodes&#45;&gt;public.nodes -->
243
- <g id="edge5" class="edge">
244
- <title>public.robot_nodes:node_id&#45;&gt;public.nodes:id</title>
245
- <path fill="none" stroke="black" d="M1096.53,-1226.28C1028.54,-1216.21 1056.39,-1102.78 1107.77,-1045.2 1197.41,-944.75 1319.03,-1109.77 1408.53,-1009.2 1460.39,-950.93 1487.53,-658.2 1409.53,-658.2"/>
246
- <polygon fill="black" stroke="black" points="1096.46,-1226.28 1106.12,-1231.47 1101.78,-1226.65 1106.1,-1226.95 1106.1,-1226.95 1106.1,-1226.95 1101.78,-1226.65 1106.75,-1222.49 1096.46,-1226.28"/>
247
- <text text-anchor="start" x="848.61" y="-1211" font-family="Arial" font-size="10.00">FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE</text>
248
158
  </g>
249
- <!-- public.robots -->
250
- <g id="node5" class="node">
251
- <title>public.robots</title>
252
- <polygon fill="#efefef" stroke="none" points="1513.41,-766 1513.41,-812 2017.62,-812 2017.62,-766 1513.41,-766"/>
253
- <polygon fill="none" stroke="black" points="1513.41,-766 1513.41,-812 2017.62,-812 2017.62,-766 1513.41,-766"/>
254
- <text text-anchor="start" x="1656.02" y="-789.8" font-family="Arial Bold" font-size="18.00">public.robots</text>
255
- <text text-anchor="start" x="1750.51" y="-789.8" font-family="Arial" font-size="14.00">    </text>
256
- <text text-anchor="start" x="1781.63" y="-789.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
257
- <text text-anchor="start" x="1614.57" y="-775.4" font-family="Arial" font-size="14.00" fill="#333333">Registry of all LLM robots using the HTM system</text>
258
- <polygon fill="none" stroke="black" points="1513.41,-735.2 1513.41,-766 2017.62,-766 2017.62,-735.2 1513.41,-735.2"/>
259
- <text text-anchor="start" x="1520.41" y="-747.4" font-family="Arial" font-size="14.00">created_at </text>
260
- <text text-anchor="start" x="1590.45" y="-747.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
261
- <text text-anchor="start" x="1756.18" y="-747.4" font-family="Arial" font-size="14.00"> When the robot was first registered</text>
262
- <polygon fill="none" stroke="black" points="1513.41,-704.4 1513.41,-735.2 2017.62,-735.2 2017.62,-704.4 1513.41,-704.4"/>
263
- <text text-anchor="start" x="1520.41" y="-716.6" font-family="Arial" font-size="14.00">id </text>
264
- <text text-anchor="start" x="1535.19" y="-716.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
265
- <polygon fill="none" stroke="black" points="1513.41,-673.6 1513.41,-704.4 2017.62,-704.4 2017.62,-673.6 1513.41,-673.6"/>
266
- <text text-anchor="start" x="1520.41" y="-685.8" font-family="Arial" font-size="14.00">last_active </text>
267
- <text text-anchor="start" x="1590.44" y="-685.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
268
- <text text-anchor="start" x="1756.16" y="-685.8" font-family="Arial" font-size="14.00"> Last time the robot accessed the system</text>
269
- <polygon fill="none" stroke="black" points="1513.41,-642.8 1513.41,-673.6 2017.62,-673.6 2017.62,-642.8 1513.41,-642.8"/>
270
- <text text-anchor="start" x="1520.41" y="-655" font-family="Arial" font-size="14.00">name </text>
271
- <text text-anchor="start" x="1559.32" y="-655" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
272
- <text text-anchor="start" x="1589.66" y="-655" font-family="Arial" font-size="14.00"> Human&#45;readable name for the robot</text>
273
- </g>
274
- <!-- public.robot_nodes&#45;&gt;public.robots -->
159
+ <!-- node_relationships -->
160
+ <g id="node3" class="node">
161
+ <title>node_relationships</title>
162
+ <g id="a_node3"><a xlink:href="node_relationships.md" xlink:title="Weighted directed edges between nodes for graph traversal">
163
+ <g id="a_node3_12"><a xlink:href="node_relationships.md" xlink:title="Weighted directed edges between nodes for graph traversal">
164
+ <polygon fill="#2b3a55" stroke="none" points="9.88,-236.75 9.88,-269.5 170.88,-269.5 170.88,-236.75 9.88,-236.75"/>
165
+ <polygon fill="none" stroke="#c8d1dc" points="9.88,-236.75 9.88,-269.5 170.88,-269.5 170.88,-236.75 9.88,-236.75"/>
166
+ <text xml:space="preserve" text-anchor="start" x="16.88" y="-248.3" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">node_relationships</text>
167
+ </a>
168
+ </g>
169
+ <g id="a_node3_13"><a xlink:href="node_relationships.md" xlink:title="Weighted directed edges between nodes for graph traversal">
170
+ <polygon fill="none" stroke="#c8d1dc" points="9.88,-208.5 9.88,-236.75 170.88,-236.75 170.88,-208.5 9.88,-208.5"/>
171
+ <text xml:space="preserve" text-anchor="start" x="16.88" y="-219.35" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
172
+ <text xml:space="preserve" text-anchor="start" x="29.62" y="-219.35" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
173
+ </a>
174
+ </g>
175
+ <g id="a_node3_14"><a xlink:href="node_relationships.md" xlink:title="Starting node of the relationship">
176
+ <polygon fill="none" stroke="#c8d1dc" points="9.88,-180.25 9.88,-208.5 170.88,-208.5 170.88,-180.25 9.88,-180.25"/>
177
+ <text xml:space="preserve" text-anchor="start" x="16.88" y="-191.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">source_id </text>
178
+ <text xml:space="preserve" text-anchor="start" x="72.38" y="-191.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
179
+ </a>
180
+ </g>
181
+ <g id="a_node3_15"><a xlink:href="node_relationships.md" xlink:title="Ending node of the relationship">
182
+ <polygon fill="none" stroke="#c8d1dc" points="9.88,-152 9.88,-180.25 170.88,-180.25 170.88,-152 9.88,-152"/>
183
+ <text xml:space="preserve" text-anchor="start" x="16.88" y="-162.85" font-family="Arial" font-size="12.00" fill="#e6e6e6">target_id </text>
184
+ <text xml:space="preserve" text-anchor="start" x="66.38" y="-162.85" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
185
+ </a>
186
+ </g>
187
+ </a>
188
+ </g>
189
+ </g>
190
+ <!-- node_relationships&#45;&gt;nodes -->
275
191
  <g id="edge4" class="edge">
276
- <title>public.robot_nodes:robot_id&#45;&gt;public.robots:id</title>
277
- <path fill="none" stroke="black" d="M1748.29,-1164.37C1787.26,-1155.42 1758.31,-1090.19 1737.26,-1045.2 1681.95,-927.01 1568.66,-973.42 1513.41,-855.2 1487.93,-800.68 1452.23,-719.8 1512.41,-719.8"/>
278
- <polygon fill="black" stroke="black" points="1748.54,-1164.34 1738.13,-1160.89 1743.23,-1164.89 1738.92,-1165.33 1738.92,-1165.33 1738.92,-1165.33 1743.23,-1164.89 1739.05,-1169.84 1748.54,-1164.34"/>
279
- <text text-anchor="start" x="1745.26" y="-1149.4" font-family="Arial" font-size="10.00">FOREIGN KEY (robot_id) REFERENCES robots(id) ON DELETE CASCADE</text>
192
+ <title>node_relationships:e&#45;&gt;nodes:w</title>
193
+ <g id="a_edge4"><a xlink:href="node_relationships.md" xlink:title="node_relationships.source_id references nodes.id">
194
+ <path fill="none" stroke="#7aa2f7" d="M182.11,-194.7C222.18,-197.37 232.86,-216.07 273.75,-235.25 288.35,-242.1 293,-251.59 303.3,-256.03"/>
195
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="182.2,-194.7 172.35,-189.89 176.87,-194.53 172.54,-194.4 172.54,-194.4 172.54,-194.4 176.87,-194.53 172.07,-198.88 182.2,-194.7"/>
196
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="316.67,-253.4 314.86,-263.24 312.89,-262.87 314.7,-253.04 316.67,-253.4"/>
197
+ <polyline fill="none" stroke="#7aa2f7" points="316.75,-258.5 311.83,-257.6"/>
198
+ <ellipse fill="none" stroke="#7aa2f7" cx="307.41" cy="-256.78" rx="4" ry="4"/>
199
+ </a>
200
+ </g>
201
+ <g id="a_edge4&#45;label"><a xlink:href="node_relationships.md" xlink:title="source_id">
202
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-237.2" font-family="Arial" font-size="9.00" fill="#9aa4b2">source_id</text>
203
+ </a>
280
204
  </g>
281
- <!-- public.schema_migrations -->
205
+ </g>
206
+ <!-- node_relationships&#45;&gt;nodes -->
207
+ <g id="edge5" class="edge">
208
+ <title>node_relationships:e&#45;&gt;nodes:w</title>
209
+ <g id="a_edge5"><a xlink:href="node_relationships.md" xlink:title="node_relationships.target_id references nodes.id">
210
+ <path fill="none" stroke="#7aa2f7" d="M182.23,-166.06C221.11,-165.58 238.93,-163.51 273.75,-188.25 298.93,-206.14 286.17,-243.85 303.56,-255.2"/>
211
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="182.21,-166.06 172.18,-161.62 176.87,-166.09 172.54,-166.12 172.54,-166.12 172.54,-166.12 176.87,-166.09 172.24,-170.62 182.21,-166.06"/>
212
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="316.99,-253.41 314.57,-263.11 312.63,-262.62 315.05,-252.92 316.99,-253.41"/>
213
+ <polyline fill="none" stroke="#7aa2f7" points="316.75,-258.5 311.9,-257.29"/>
214
+ <ellipse fill="none" stroke="#7aa2f7" cx="307.53" cy="-256.2" rx="4" ry="4"/>
215
+ </a>
216
+ </g>
217
+ <g id="a_edge5&#45;label"><a xlink:href="node_relationships.md" xlink:title="target_id">
218
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-190.2" font-family="Arial" font-size="9.00" fill="#9aa4b2">target_id</text>
219
+ </a>
220
+ </g>
221
+ </g>
222
+ <!-- node_tags -->
223
+ <g id="node4" class="node">
224
+ <title>node_tags</title>
225
+ <g id="a_node4"><a xlink:href="node_tags.md" xlink:title="Join table connecting nodes to tags (many&#45;to&#45;many)">
226
+ <g id="a_node4_16"><a xlink:href="node_tags.md" xlink:title="Join table connecting nodes to tags (many&#45;to&#45;many)">
227
+ <polygon fill="#2b3a55" stroke="none" points="42.5,-88.75 42.5,-121.5 138.25,-121.5 138.25,-88.75 42.5,-88.75"/>
228
+ <polygon fill="none" stroke="#c8d1dc" points="42.5,-88.75 42.5,-121.5 138.25,-121.5 138.25,-88.75 42.5,-88.75"/>
229
+ <text xml:space="preserve" text-anchor="start" x="50.25" y="-100.3" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">node_tags</text>
230
+ </a>
231
+ </g>
232
+ <g id="a_node4_17"><a xlink:href="node_tags.md" xlink:title="Join table connecting nodes to tags (many&#45;to&#45;many)">
233
+ <polygon fill="none" stroke="#c8d1dc" points="42.5,-60.5 42.5,-88.75 138.25,-88.75 138.25,-60.5 42.5,-60.5"/>
234
+ <text xml:space="preserve" text-anchor="start" x="49.5" y="-71.35" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
235
+ <text xml:space="preserve" text-anchor="start" x="62.25" y="-71.35" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
236
+ </a>
237
+ </g>
238
+ <g id="a_node4_18"><a xlink:href="node_tags.md" xlink:title="ID of the node being tagged">
239
+ <polygon fill="none" stroke="#c8d1dc" points="42.5,-32.25 42.5,-60.5 138.25,-60.5 138.25,-32.25 42.5,-32.25"/>
240
+ <text xml:space="preserve" text-anchor="start" x="49.5" y="-43.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">node_id </text>
241
+ <text xml:space="preserve" text-anchor="start" x="96" y="-43.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
242
+ </a>
243
+ </g>
244
+ <g id="a_node4_19"><a xlink:href="node_tags.md" xlink:title="ID of the tag being applied">
245
+ <polygon fill="none" stroke="#c8d1dc" points="42.5,-4 42.5,-32.25 138.25,-32.25 138.25,-4 42.5,-4"/>
246
+ <text xml:space="preserve" text-anchor="start" x="49.5" y="-14.85" font-family="Arial" font-size="12.00" fill="#e6e6e6">tag_id </text>
247
+ <text xml:space="preserve" text-anchor="start" x="85.5" y="-14.85" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
248
+ </a>
249
+ </g>
250
+ </a>
251
+ </g>
252
+ </g>
253
+ <!-- node_tags&#45;&gt;nodes -->
254
+ <g id="edge7" class="edge">
255
+ <title>node_tags:e&#45;&gt;nodes:w</title>
256
+ <g id="a_edge7"><a xlink:href="node_tags.md" xlink:title="node_tags.node_id references nodes.id">
257
+ <path fill="none" stroke="#7aa2f7" d="M149.47,-46.66C216.12,-50.49 230.43,-92.75 273.75,-150.25 301.61,-187.24 272.61,-244.67 303.24,-256.38"/>
258
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="149.58,-46.66 139.71,-41.89 144.25,-46.51 139.92,-46.39 139.92,-46.39 139.92,-46.39 144.25,-46.51 139.46,-50.88 149.58,-46.66"/>
259
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="316.54,-253.41 314.99,-263.28 313.01,-262.97 314.56,-253.09 316.54,-253.41"/>
260
+ <polyline fill="none" stroke="#7aa2f7" points="316.75,-258.5 311.81,-257.72"/>
261
+ <ellipse fill="none" stroke="#7aa2f7" cx="307.37" cy="-257.02" rx="4" ry="4"/>
262
+ </a>
263
+ </g>
264
+ <g id="a_edge7&#45;label"><a xlink:href="node_tags.md" xlink:title="node_id">
265
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-152.2" font-family="Arial" font-size="9.00" fill="#9aa4b2">node_id</text>
266
+ </a>
267
+ </g>
268
+ </g>
269
+ <!-- tags -->
270
+ <g id="node9" class="node">
271
+ <title>tags</title>
272
+ <g id="a_node9"><a xlink:href="tags.md" xlink:title="Unique tag names for categorization">
273
+ <g id="a_node9_20"><a xlink:href="tags.md" xlink:title="Unique tag names for categorization">
274
+ <polygon fill="#2b3a55" stroke="none" points="339.12,-32.5 339.12,-65.25 401.12,-65.25 401.12,-32.5 339.12,-32.5"/>
275
+ <polygon fill="none" stroke="#c8d1dc" points="339.12,-32.5 339.12,-65.25 401.12,-65.25 401.12,-32.5 339.12,-32.5"/>
276
+ <text xml:space="preserve" text-anchor="start" x="353.62" y="-44.05" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">tags</text>
277
+ </a>
278
+ </g>
279
+ <g id="a_node9_21"><a xlink:href="tags.md" xlink:title="Unique tag names for categorization">
280
+ <polygon fill="none" stroke="#c8d1dc" points="339.12,-4.25 339.12,-32.5 401.12,-32.5 401.12,-4.25 339.12,-4.25"/>
281
+ <text xml:space="preserve" text-anchor="start" x="346.12" y="-15.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
282
+ <text xml:space="preserve" text-anchor="start" x="358.88" y="-15.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
283
+ </a>
284
+ </g>
285
+ </a>
286
+ </g>
287
+ </g>
288
+ <!-- node_tags&#45;&gt;tags -->
289
+ <g id="edge6" class="edge">
290
+ <title>node_tags:e&#45;&gt;tags:w</title>
291
+ <g id="a_edge6"><a xlink:href="node_tags.md" xlink:title="node_tags.tag_id references tags.id">
292
+ <path fill="none" stroke="#7aa2f7" d="M149.31,-18.13C224.93,-18.14 250.32,-18.35 324.26,-18.37"/>
293
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="149.58,-18.13 139.59,-13.63 144.25,-18.13 139.92,-18.13 139.92,-18.13 139.92,-18.13 144.25,-18.13 139.58,-22.63 149.58,-18.13"/>
294
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="337.13,-13.37 337.12,-23.37 335.12,-23.37 335.13,-13.37 337.13,-13.37"/>
295
+ <polyline fill="none" stroke="#7aa2f7" points="338.12,-18.38 333.13,-18.37"/>
296
+ <ellipse fill="none" stroke="#7aa2f7" cx="328.63" cy="-18.37" rx="4" ry="4"/>
297
+ </a>
298
+ </g>
299
+ <g id="a_edge6&#45;label"><a xlink:href="node_tags.md" xlink:title="tag_id">
300
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-20.27" font-family="Arial" font-size="9.00" fill="#9aa4b2">tag_id</text>
301
+ </a>
302
+ </g>
303
+ </g>
304
+ <!-- nodes&#45;&gt;file_sources -->
305
+ <g id="edge8" class="edge">
306
+ <title>nodes:e&#45;&gt;file_sources:w</title>
307
+ <g id="a_edge8"><a xlink:href="nodes.md" xlink:title="nodes.source_id references file_sources.id">
308
+ <path fill="none" stroke="#7aa2f7" d="M433.87,-230.25C477.22,-230.26 494.18,-230.36 536.12,-230.37"/>
309
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="433.83,-230.25 423.84,-225.75 428.5,-230.25 424.17,-230.25 424.17,-230.25 424.17,-230.25 428.5,-230.25 423.83,-234.75 433.83,-230.25"/>
310
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="549,-225.37 549,-235.37 547,-235.37 547,-225.37 549,-225.37"/>
311
+ <polyline fill="none" stroke="#7aa2f7" points="550,-230.38 545,-230.37"/>
312
+ <ellipse fill="none" stroke="#7aa2f7" cx="540.5" cy="-230.37" rx="4" ry="4"/>
313
+ </a>
314
+ </g>
315
+ <g id="a_edge8&#45;label"><a xlink:href="nodes.md" xlink:title="source_id">
316
+ <text xml:space="preserve" text-anchor="middle" x="486.75" y="-232.29" font-family="Arial" font-size="9.00" fill="#9aa4b2">source_id</text>
317
+ </a>
318
+ </g>
319
+ </g>
320
+ <!-- robot_nodes -->
282
321
  <g id="node6" class="node">
283
- <title>public.schema_migrations</title>
284
- <polygon fill="#efefef" stroke="none" points="1841.54,-1263 1841.54,-1298.6 2169.49,-1298.6 2169.49,-1263 1841.54,-1263"/>
285
- <polygon fill="none" stroke="black" points="1841.54,-1263 1841.54,-1298.6 2169.49,-1298.6 2169.49,-1263 1841.54,-1263"/>
286
- <text text-anchor="start" x="1848.54" y="-1276.4" font-family="Arial Bold" font-size="18.00">public.schema_migrations</text>
287
- <text text-anchor="start" x="2038" y="-1276.4" font-family="Arial" font-size="14.00">    </text>
288
- <text text-anchor="start" x="2069.11" y="-1276.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
289
- <polygon fill="none" stroke="black" points="1841.54,-1232.2 1841.54,-1263 2169.49,-1263 2169.49,-1232.2 1841.54,-1232.2"/>
290
- <text text-anchor="start" x="1848.54" y="-1244.4" font-family="Arial" font-size="14.00">version </text>
291
- <text text-anchor="start" x="1897.56" y="-1244.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar]</text>
322
+ <title>robot_nodes</title>
323
+ <g id="a_node6"><a xlink:href="robot_nodes.md" xlink:title="Join table connecting robots to nodes (many&#45;to&#45;many)">
324
+ <g id="a_node6_22"><a xlink:href="robot_nodes.md" xlink:title="Join table connecting robots to nodes (many&#45;to&#45;many)">
325
+ <polygon fill="#2b3a55" stroke="none" points="35,-384.75 35,-417.5 145.75,-417.5 145.75,-384.75 35,-384.75"/>
326
+ <polygon fill="none" stroke="#c8d1dc" points="35,-384.75 35,-417.5 145.75,-417.5 145.75,-384.75 35,-384.75"/>
327
+ <text xml:space="preserve" text-anchor="start" x="42" y="-396.3" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">robot_nodes</text>
328
+ </a>
329
+ </g>
330
+ <g id="a_node6_23"><a xlink:href="robot_nodes.md" xlink:title="Join table connecting robots to nodes (many&#45;to&#45;many)">
331
+ <polygon fill="none" stroke="#c8d1dc" points="35,-356.5 35,-384.75 145.75,-384.75 145.75,-356.5 35,-356.5"/>
332
+ <text xml:space="preserve" text-anchor="start" x="42" y="-367.35" font-family="Arial" font-size="12.00" fill="#e6e6e6">id </text>
333
+ <text xml:space="preserve" text-anchor="start" x="54.75" y="-367.35" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
334
+ </a>
335
+ </g>
336
+ <g id="a_node6_24"><a xlink:href="robot_nodes.md" xlink:title="ID of the robot that remembered this node">
337
+ <polygon fill="none" stroke="#c8d1dc" points="35,-328.25 35,-356.5 145.75,-356.5 145.75,-328.25 35,-328.25"/>
338
+ <text xml:space="preserve" text-anchor="start" x="42" y="-339.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">robot_id </text>
339
+ <text xml:space="preserve" text-anchor="start" x="88.5" y="-339.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
340
+ </a>
341
+ </g>
342
+ <g id="a_node6_25"><a xlink:href="robot_nodes.md" xlink:title="ID of the node being remembered">
343
+ <polygon fill="none" stroke="#c8d1dc" points="35,-300 35,-328.25 145.75,-328.25 145.75,-300 35,-300"/>
344
+ <text xml:space="preserve" text-anchor="start" x="42" y="-310.85" font-family="Arial" font-size="12.00" fill="#e6e6e6">node_id </text>
345
+ <text xml:space="preserve" text-anchor="start" x="88.5" y="-310.85" font-family="Arial" font-size="12.00" fill="#9aa4b2">[bigint]</text>
346
+ </a>
347
+ </g>
348
+ </a>
349
+ </g>
350
+ </g>
351
+ <!-- robot_nodes&#45;&gt;nodes -->
352
+ <g id="edge10" class="edge">
353
+ <title>robot_nodes:e&#45;&gt;nodes:w</title>
354
+ <g id="a_edge10"><a xlink:href="robot_nodes.md" xlink:title="robot_nodes.node_id references nodes.id">
355
+ <path fill="none" stroke="#7aa2f7" d="M157.08,-313.33C182.4,-309.13 187.5,-289.38 216.75,-279.25 254.95,-266.02 268.42,-259.9 302.98,-258.72"/>
356
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="157.05,-313.33 146.74,-309.61 151.74,-313.74 147.42,-314.07 147.42,-314.07 147.42,-314.07 151.74,-313.74 147.43,-318.59 157.05,-313.33"/>
357
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="315.67,-253.52 315.83,-263.52 313.83,-263.55 313.67,-253.55 315.67,-253.52"/>
358
+ <polyline fill="none" stroke="#7aa2f7" points="316.75,-258.5 311.75,-258.58"/>
359
+ <ellipse fill="none" stroke="#7aa2f7" cx="307.25" cy="-258.65" rx="4" ry="4"/>
360
+ </a>
361
+ </g>
362
+ <g id="a_edge10&#45;label"><a xlink:href="robot_nodes.md" xlink:title="node_id">
363
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-281.2" font-family="Arial" font-size="9.00" fill="#9aa4b2">node_id</text>
364
+ </a>
365
+ </g>
366
+ </g>
367
+ <!-- robot_nodes&#45;&gt;robots -->
368
+ <g id="edge9" class="edge">
369
+ <title>robot_nodes:e&#45;&gt;robots:w</title>
370
+ <g id="a_edge9"><a xlink:href="robot_nodes.md" xlink:title="robot_nodes.robot_id references robots.id">
371
+ <path fill="none" stroke="#7aa2f7" d="M156.97,-342.52C229.61,-344.58 252.53,-368.33 323.53,-371.11"/>
372
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="157.08,-342.52 147.15,-337.88 151.75,-342.44 147.42,-342.38 147.42,-342.38 147.42,-342.38 151.75,-342.44 147.02,-346.88 157.08,-342.52"/>
373
+ <polygon fill="#7aa2f7" stroke="#7aa2f7" points="336.47,-366.36 336.28,-376.35 334.28,-376.32 334.47,-366.32 336.47,-366.36"/>
374
+ <polyline fill="none" stroke="#7aa2f7" points="337.38,-371.38 332.38,-371.28"/>
375
+ <ellipse fill="none" stroke="#7aa2f7" cx="327.88" cy="-371.19" rx="4" ry="4"/>
376
+ </a>
377
+ </g>
378
+ <g id="a_edge9&#45;label"><a xlink:href="robot_nodes.md" xlink:title="robot_id">
379
+ <text xml:space="preserve" text-anchor="middle" x="245.25" y="-366.32" font-family="Arial" font-size="9.00" fill="#9aa4b2">robot_id</text>
380
+ </a>
381
+ </g>
382
+ </g>
383
+ <!-- schema_migrations -->
384
+ <g id="node8" class="node">
385
+ <title>schema_migrations</title>
386
+ <g id="a_node8"><a xlink:href="schema_migrations.md" xlink:title="&lt;TABLE&gt;">
387
+ <g id="a_node8_26"><a xlink:href="schema_migrations.md" xlink:title="&lt;TABLE&gt;">
388
+ <polygon fill="#2b3a55" stroke="none" points="8,-651.5 8,-684.25 172.75,-684.25 172.75,-651.5 8,-651.5"/>
389
+ <polygon fill="none" stroke="#c8d1dc" points="8,-651.5 8,-684.25 172.75,-684.25 172.75,-651.5 8,-651.5"/>
390
+ <text xml:space="preserve" text-anchor="start" x="15" y="-663.05" font-family="Arial" font-weight="bold" font-size="16.00" fill="#ffffff">schema_migrations</text>
391
+ </a>
392
+ </g>
393
+ <g id="a_node8_27"><a xlink:href="schema_migrations.md" xlink:title="&lt;TABLE&gt;">
394
+ <polygon fill="none" stroke="#c8d1dc" points="8,-623.25 8,-651.5 172.75,-651.5 172.75,-623.25 8,-623.25"/>
395
+ <text xml:space="preserve" text-anchor="start" x="15" y="-634.1" font-family="Arial" font-size="12.00" fill="#e6e6e6">version </text>
396
+ <text xml:space="preserve" text-anchor="start" x="57" y="-634.1" font-family="Arial" font-size="12.00" fill="#9aa4b2">[character varying]</text>
397
+ </a>
398
+ </g>
399
+ </a>
400
+ </g>
292
401
  </g>
293
402
  </g>
294
403
  </svg>