ltcai 8.8.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +33 -37
  2. package/auto_setup.py +84 -70
  3. package/docs/CHANGELOG.md +113 -237
  4. package/docs/CODE_REVIEW_2026-07-06.md +764 -0
  5. package/docs/COMMUNITY_AND_PLUGINS.md +3 -3
  6. package/docs/DEVELOPMENT.md +10 -10
  7. package/docs/LEGACY_COMPATIBILITY.md +1 -1
  8. package/docs/ONBOARDING.md +2 -2
  9. package/docs/PRODUCT_DIRECTION_REVIEW.md +3 -2
  10. package/docs/ROADMAP_RECOMMENDATIONS.md +61 -36
  11. package/docs/TRUST_MODEL.md +5 -1
  12. package/docs/WHY_LATTICE.md +4 -3
  13. package/docs/architecture.md +4 -0
  14. package/docs/kg-schema.md +1 -1
  15. package/lattice_brain/__init__.py +1 -1
  16. package/lattice_brain/archive.py +4 -9
  17. package/lattice_brain/conversations.py +156 -21
  18. package/lattice_brain/embeddings.py +38 -2
  19. package/lattice_brain/graph/_kg_common.py +39 -496
  20. package/lattice_brain/graph/_kg_constants.py +243 -0
  21. package/lattice_brain/graph/_kg_fsutil.py +297 -0
  22. package/lattice_brain/graph/discovery.py +0 -948
  23. package/lattice_brain/graph/discovery_index.py +972 -0
  24. package/lattice_brain/graph/json_utils.py +25 -0
  25. package/lattice_brain/graph/retrieval.py +66 -597
  26. package/lattice_brain/graph/retrieval_docgen.py +210 -0
  27. package/lattice_brain/graph/retrieval_vector.py +460 -0
  28. package/lattice_brain/graph/runtime.py +16 -0
  29. package/lattice_brain/graph/store.py +6 -0
  30. package/lattice_brain/ingestion.py +68 -0
  31. package/lattice_brain/portability.py +1 -9
  32. package/lattice_brain/quality.py +98 -4
  33. package/lattice_brain/runtime/agent_runtime.py +166 -0
  34. package/lattice_brain/runtime/multi_agent.py +1 -1
  35. package/lattice_brain/utils.py +28 -0
  36. package/latticeai/__init__.py +1 -1
  37. package/latticeai/api/chat.py +368 -418
  38. package/latticeai/api/chat_helpers.py +227 -0
  39. package/latticeai/api/computer_use.py +149 -31
  40. package/latticeai/api/marketplace.py +11 -0
  41. package/latticeai/api/mcp.py +3 -2
  42. package/latticeai/api/models.py +4 -1
  43. package/latticeai/api/permissions.py +72 -33
  44. package/latticeai/api/setup.py +17 -2
  45. package/latticeai/api/tools.py +105 -62
  46. package/latticeai/app_factory.py +101 -296
  47. package/latticeai/core/agent.py +25 -7
  48. package/latticeai/core/io_utils.py +37 -0
  49. package/latticeai/core/legacy_compatibility.py +1 -1
  50. package/latticeai/core/local_embeddings.py +2 -4
  51. package/latticeai/core/marketplace.py +33 -2
  52. package/latticeai/core/mcp_catalog.py +450 -0
  53. package/latticeai/core/mcp_registry.py +2 -441
  54. package/latticeai/core/sessions.py +11 -3
  55. package/latticeai/core/tool_registry.py +15 -4
  56. package/latticeai/core/users.py +4 -9
  57. package/latticeai/core/workspace_os.py +1 -1
  58. package/latticeai/core/workspace_os_utils.py +3 -17
  59. package/latticeai/integrations/telegram_bot.py +7 -2
  60. package/latticeai/models/model_providers.py +111 -0
  61. package/latticeai/models/router.py +58 -136
  62. package/latticeai/runtime/audit_runtime.py +27 -16
  63. package/latticeai/runtime/automation_runtime.py +9 -0
  64. package/latticeai/runtime/bootstrap.py +1 -1
  65. package/latticeai/runtime/history_runtime.py +163 -0
  66. package/latticeai/runtime/namespace_runtime.py +173 -0
  67. package/latticeai/runtime/network_config_runtime.py +56 -0
  68. package/latticeai/runtime/sso_config_runtime.py +128 -0
  69. package/latticeai/runtime/user_key_runtime.py +106 -0
  70. package/latticeai/services/app_context.py +1 -0
  71. package/latticeai/services/architecture_readiness.py +2 -2
  72. package/latticeai/services/memory_service.py +213 -0
  73. package/latticeai/services/model_engines.py +79 -12
  74. package/latticeai/services/model_runtime.py +24 -4
  75. package/latticeai/services/platform_runtime.py +9 -1
  76. package/latticeai/services/process_audit.py +208 -0
  77. package/latticeai/services/product_readiness.py +11 -11
  78. package/latticeai/services/review_queue.py +64 -11
  79. package/latticeai/services/run_executor.py +21 -0
  80. package/latticeai/services/search_service.py +106 -30
  81. package/latticeai/services/setup_detection.py +80 -0
  82. package/latticeai/services/tool_dispatch.py +66 -0
  83. package/latticeai/services/workspace_service.py +15 -0
  84. package/package.json +1 -1
  85. package/scripts/check_i18n_literals.mjs +20 -8
  86. package/scripts/i18n_literal_allowlist.json +34 -0
  87. package/scripts/lint_frontend.mjs +6 -2
  88. package/setup_wizard.py +196 -74
  89. package/src-tauri/Cargo.lock +1 -1
  90. package/src-tauri/Cargo.toml +1 -1
  91. package/src-tauri/tauri.conf.json +1 -1
  92. package/static/app/asset-manifest.json +11 -11
  93. package/static/app/assets/{Act-C7K9wsO9.js → Act-21lIXx2E.js} +1 -1
  94. package/static/app/assets/Brain-BqUd5UJJ.js +321 -0
  95. package/static/app/assets/{Capture-B3V4_5Xp.js → Capture-BA7Z2Q1u.js} +1 -1
  96. package/static/app/assets/{Library-Cgj-EF50.js → Library-bFMtyni3.js} +1 -1
  97. package/static/app/assets/System-K6krGCqn.js +1 -0
  98. package/static/app/assets/index-C4R3ws30.js +17 -0
  99. package/static/app/assets/index-ChSeOB02.css +2 -0
  100. package/static/app/assets/primitives-sQU3it5I.js +1 -0
  101. package/static/app/assets/{textarea-CVQkN2Tk.js → textarea-DK3Fd_lR.js} +1 -1
  102. package/static/app/index.html +2 -2
  103. package/static/css/tokens.css +4 -2
  104. package/static/sw.js +1 -1
  105. package/tools/local_files.py +6 -0
  106. package/latticeai/runtime/sso_runtime.py +0 -52
  107. package/static/app/assets/Brain-I1OSzxJu.js +0 -321
  108. package/static/app/assets/System-D1Lkei3I.js +0 -1
  109. package/static/app/assets/index--P0ksosz.js +0 -17
  110. package/static/app/assets/index-DCh5AoXt.css +0 -2
  111. package/static/app/assets/primitives-BLqaKk5g.js +0 -1
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,118 @@ existed at that release.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ No unreleased changes yet.
10
+
11
+ ## [9.0.0] - 2026-07-08
12
+
13
+ ### Added
14
+ - Added Brain Brief suggested questions that turn current memory, recall proof,
15
+ graph concepts, and conversation history into clickable first-screen prompts.
16
+ - Suggested Brain questions now send immediately from the first screen instead
17
+ of only filling the composer.
18
+ - Added one-click follow-up prompts under the latest Brain answer for turning a
19
+ reply into a checklist, evidence review, or prioritized next steps.
20
+ - Added a Brain chat to Review Center handoff so users can save an answer as a
21
+ reviewable task draft and manage it alongside automation suggestions.
22
+ - Added direct Brain-to-Agent delegation and successful agent-run synthesis into
23
+ durable Brain memory/graph context.
24
+ - Surfaced recent agent-synthesis memories in Brain overview and memory rings
25
+ so delegated work is visibly reflected on the home screen.
26
+ - Improved agent-run Brain synthesis quality by splitting successful results
27
+ into key facts, decisions, and follow-up memories with structured metadata.
28
+ - Agent follow-ups now enter Review Center as task drafts so delegated work
29
+ produces actionable approval candidates instead of passive memory only.
30
+ - Approving an Agent follow-up review item now promotes it into a manual
31
+ workflow draft with trigger, agent, and output nodes.
32
+ - Added large-feature foundations for KG/Retrieval scale diagnostics,
33
+ background ingestion scheduling, offline multimodal image captions,
34
+ proactive contradiction detection, and ingestion bridge marketplace templates.
35
+ - Added proactive Brain action cards that turn Brain Brief evidence into
36
+ one-click ask, Agent delegation, Review Center draft, or graph navigation
37
+ actions on the Brain home screen.
38
+ - Added a visible proactive Brain action trail so one-click suggestions show
39
+ their running/completed/failed state after the user acts on them.
40
+
41
+ ### Changed
42
+ - Continued app-factory decomposition by extracting user profile/API-key helper
43
+ wiring into `latticeai.runtime.user_key_runtime`, keeping the legacy
44
+ `server_app` callable surface while making keyring/plaintext fallback policy
45
+ independently testable.
46
+ - Split additional runtime and static-data seams out of app, chat, MCP, model,
47
+ and Knowledge Graph modules while preserving re-export compatibility for
48
+ existing imports.
49
+ - Routed Computer Use direct `/cu/*` actions through the shared ToolRegistry
50
+ policy gate and audit lifecycle, preserving route paths while blocking
51
+ non-admin direct desktop control by default.
52
+ - Moved blocked-system-prefix protection into `tools.local_write` itself so
53
+ local filesystem writes fail closed even when called outside the HTTP approval
54
+ route.
55
+ - Narrowed the lazy `server_app` compatibility namespace by filtering
56
+ app-factory scratch imports and runtime wiring dictionaries while preserving
57
+ explicit legacy helpers, and added a typed `RuntimeBundle` migration target
58
+ behind the legacy `_RUNTIME_BUNDLE` dict.
59
+
60
+ ### Fixed
61
+ - Added regression coverage for provider API-key lookup/storage behavior,
62
+ including keyring precedence, plaintext fallback gating, legacy plaintext
63
+ cleanup after keyring writes, and identity creation on plaintext fallback.
64
+ - Added regression coverage for Computer Use policy enforcement, audit-safe
65
+ typed-text metadata, and direct local-write system-prefix blocking.
66
+ - Fixed functional findings from the July 8 code review: file generation now
67
+ fails cleanly when no model is loaded, chat/document streams preserve a
68
+ terminal SSE event on generation errors, agent runs persist failed status on
69
+ executor exceptions, Brain delegation treats HTTP failures as failures, and
70
+ local permission expiry cleanup no longer corrupts the active token lookup.
71
+ - Tightened non-security chat intent detection, Telegram bot server URL
72
+ configuration, LATTICE_TZ-aware runtime audit timestamps, local embedding
73
+ dimension consistency, and stale Brain UI version copy.
74
+ - Paid down the remaining July 8 cleanup debt by moving duplicated JSON/ISO/hash
75
+ and setup detection helpers into shared modules, switching runtime audit
76
+ appends to JSONL while preserving legacy JSON reads, making the legacy runtime
77
+ namespace allowlist-based, clarifying static-vs-SPA design token ownership,
78
+ and consolidating duplicated frontend helper functions.
79
+ - Reduced the remaining chat-router risk by extracting repeated chat history,
80
+ bridge notification, no-model, single-answer, direct-file, and agent-file
81
+ response paths out of the main `/chat` handler, with regression coverage for
82
+ the shared fast-path epilogue.
83
+
84
+ ## [8.9.0] - 2026-07-06
85
+
86
+ ### Added
87
+ - Added authenticated user/workspace scoping to durable conversation history
88
+ reads and deletes.
89
+ - Added workspace-aware Knowledge Graph search, traversal, relationship, node,
90
+ and chat-context reads.
91
+ - Added direct HTTP/MCP Tool API policy enforcement for registry-governed tools.
92
+ - Added permission approval queue hashing and atomic writes so raw tokens are
93
+ not persisted at rest.
94
+ - Added confirmation-token guarded installer/process command plans with redacted
95
+ local process audit events.
96
+ - Added regression coverage for scoped history, graph scoping, tool policy
97
+ gates, AgentRuntime approval semantics, permission tokens, session TTL
98
+ injection, and model-download runtime config.
99
+
100
+ ### Changed
101
+ - AgentRuntime now requires explicit human approval for non-auto-approved plans
102
+ and rolls back git-governed tool results even when `success` is omitted.
103
+ - Model download consent now uses configured runtime state instead of direct
104
+ environment-variable reads.
105
+ - Frontend API base logic, CSS token/base rules, and i18n literal checks were
106
+ split into smaller maintainability seams.
107
+ - Version bumped to 8.9.0 across Python, npm, VS Code extension, Tauri, static
108
+ metadata, readiness gates, release notes, and current-release documentation.
109
+ - Documentation now states that SQLite is the live local Brain store; Postgres
110
+ remains optional scale/migration tooling.
111
+
112
+ ### Fixed
113
+ - Conversation store migration now creates the workspace index only after the
114
+ scope columns exist.
115
+ - Direct `write_file`/`edit_file` policy lookup now blocks system write
116
+ prefixes consistently with local-file approvals.
117
+ - Workspace selection clearing now removes the persisted workspace id.
118
+ - Tauri/local API fetches now include credentials for localhost backend
119
+ sessions.
120
+
9
121
  ## [8.8.0] - 2026-07-06
10
122
 
11
123
  ### Added
@@ -196,7 +308,7 @@ existed at that release.
196
308
  - Updated architecture and product readiness targets to 8.0.0.
197
309
  - Synchronized package/runtime/static/Tauri metadata to 8.0.0.
198
310
  - Updated current-release docs and exact artifact names to 8.0.0 while
199
- preserving historical 7.x entries.
311
+ setting 8.0.0 as the oldest retained release-history entry.
200
312
 
201
313
  ### Fixed
202
314
  - Made logical Knowledge Graph `replace` imports transactional so malformed
@@ -205,239 +317,3 @@ existed at that release.
205
317
  `relationship_search`, and `traverse`.
206
318
  - Preserved colliding legacy edge labels during logical import/backfill while
207
319
  keeping native write-door synonym dedupe canonical.
208
-
209
- ## [7.9.0] - 2026-06-23
210
-
211
- ### Changed
212
- - Added `SingleAgentRuntime` as the explicit name for the legacy single-agent
213
- state machine while preserving `AgentRuntime` as a compatibility alias.
214
- - Updated tool dispatch to build `SingleAgentRuntime` directly.
215
- - Moved single-agent git rollback behind an injected `rollback_file` port owned
216
- by `ToolDispatchService`, keeping shell execution out of the core state
217
- machine.
218
- - Added a shared `runtime-boundary/v1` descriptor so product and single-agent
219
- runtime boundaries are machine-readable in config/tests.
220
- - Added `RuntimeBoundaryProtocol` as the minimal shared inspection surface for
221
- runtime-boundary-aware dependency injection.
222
- - Updated architecture and product readiness targets to 7.9.0.
223
-
224
- ## [7.8.0] - 2026-06-22
225
-
226
- ### Changed
227
- - Rebuilt Brain Chat Home around immediate conversation: chat purpose, starter
228
- prompts, and the composer now occupy the first viewport.
229
- - Collapsed source ingestion, readiness, proof, timeline, overview, model
230
- continuity, and care controls behind one utility drawer.
231
- - Kept workspace navigation visible on the default Brain surface.
232
- - Hid default depth controls until the user intentionally travels deeper.
233
- - Integrated the six post-7.7 UX drafts into the canonical Brain experience:
234
- first-run value cards, stronger recommendation affordances, product-toned
235
- Brain Home copy, and routed legacy Brain conversation entry points to the
236
- canonical Brain Home surface.
237
- - Removed obsolete Brain conversation and first-run guide components.
238
- - Moved draft onboarding polish out of inline styles and into the shared design
239
- stylesheet with responsive behavior and bilingual copy.
240
- - Updated architecture and product readiness targets to 7.8.0.
241
- - Refreshed 7.8.0 release screenshots, walkthrough video/GIF, and capture
242
- notes under `output/release/v7.8.0/`.
243
-
244
- ## [7.7.0] - 2026-06-22
245
-
246
- > 7.7.0 marks the complete, finished product stage for Lattice AI.
247
- > After 7.6.0 architecture closure, this release polishes every surface so that anyone looking at the code, UI, docs, or running app immediately recognizes: "this is now a product".
248
-
249
- Lattice AI v7.7 delivers the Living Brain as the undeniable center, production-grade runtime contracts, stable ToolRegistry, full ingestion-to-graph flows, bilingual professional UX, and zero-beta signals. Classifiers moved to Production/Stable. All prior gates remain enforced under finished product contract.
250
-
251
- Package metadata, Tauri, frontend, Python all aligned to 7.7.0. UI/UX microcopy and signals updated to convey finished professional tool.
252
-
253
- ### Productization Highlights
254
- - Extreme self + claude-code (pts_claudecode) used for polish, evaluation, iteration.
255
- - "This is a product" bar: clear durable knowledge ownership, no loose ends.
256
- - Validation: typecheck, unit, cargo, build scripts exercised.
257
-
258
- ### Changed
259
- - Package/runtime/static metadata synchronized to 7.7.0.
260
- - Development status to Production/Stable.
261
- - All current-release references point to 7.7.0.
262
-
263
- ## [7.6.0] - 2026-06-22
264
-
265
- > Brain-Centered UX & Architecture Closure. Incorporates the two local review
266
- > files into the release line with a Wake Brain first-run surface, memory rings
267
- > plus direct depth controls, and machine-checkable architecture readiness gates.
268
-
269
- ### Added
270
- - Wake Brain first-run entry before owner/profile setup, reducing onboarding to
271
- the product promise first and the setup mechanics second.
272
- - Concentric memory rings around Brain Home plus direct controls for Now, Memory,
273
- Topics, Relationships, and Full Graph navigation.
274
- - `latticeai.services.architecture_readiness.architecture_readiness()` and
275
- `tests/unit/test_v76_review_completion.py` to keep AgentRuntime, ToolRegistry,
276
- Config, server decomposition, KG hardening, and Brain UX review closure under
277
- test.
278
-
279
- ### Changed
280
- - Package/runtime/static metadata is synchronized to 7.6.0; package publish and
281
- deployment remain owner-run only.
282
- - README and release docs now describe 7.6.0 as the current release and point to
283
- refreshed 7.6.0 screenshots, walkthrough GIF, and release evidence index under
284
- `output/release/v7.6.0/`.
285
-
286
- ## [7.5.0] - 2026-06-20
287
-
288
- > Runtime Debt Burn-down & Release Risk Cleanup. Turns the 7.4.0 contract
289
- > envelope into a consumed API surface, expands retrieval quality to a 250+
290
- > record local corpus fixture, and removes release/security warnings.
291
-
292
- ### Added
293
- - `extract_contract`, `require_contract`, `contract_view`, and `contract_views`
294
- helpers for consumers that need a surface-agnostic `agent-run-contract/v1`
295
- projection.
296
- - AgentRuntime status/list/detail/events and realtime feed responses now expose
297
- compact `contracts` views alongside legacy payloads.
298
- - Deterministic 250+ record retrieval benchmark corpus while keeping 12 judged
299
- queries and real `KnowledgeGraphStore` + `SearchService` execution.
300
- - Refreshed README release evidence screenshots and walkthrough GIF under
301
- `output/release/v7.5.0/`.
302
-
303
- ### Changed
304
- - Tauri Rust/CLI dependencies are updated within the Tauri 2 line, removing the
305
- old transitive `block v0.1.6` future-incompatibility warning.
306
- - npm dependency overrides move `js-yaml` to a non-vulnerable version; `npm
307
- audit` reports 0 vulnerabilities.
308
- - CI lint compatibility is restored for the Brain quality gate script.
309
- - Local MLX model preparation now recognizes valid existing Hugging Face cache
310
- snapshots, avoiding an unnecessary re-download when the model already exists
311
- outside Lattice's managed `~/.ltcai/hf-models` directory.
312
- - Package/runtime/static metadata is synchronized to 7.5.0; package publish and
313
- deployment remain owner-run only.
314
-
315
- ## [7.4.0] - 2026-06-20
316
-
317
- > Runtime Contract Convergence & Corpus Retrieval. Completes the
318
- > agent-run-contract/v1 family across run storage, workflow execution, audit
319
- > events, realtime events, and a real corpus-scale retrieval quality gate.
320
-
321
- ### Added
322
- - Persisted agent and workflow run rows now carry refreshed contract metadata
323
- for queued, running, terminal, cancelled, and interrupted states.
324
- - Workflow engine results, replay payloads, audit log events, and realtime SSE
325
- feed events now expose the same `agent-run-contract/v1` family envelope while
326
- preserving existing top-level compatibility fields.
327
- - Corpus-scale retrieval fixture with 30+ documents, judged queries,
328
- must-include expectations, and thresholds for recall, precision, NDCG, and
329
- hit rate.
330
- - `scripts/brain_quality_eval.py` now exercises the real local
331
- `KnowledgeGraphStore` + `SearchService` hybrid retrieval path before scoring.
332
-
333
- ### Changed
334
- - `RetrievalBenchmarkRunner` reports dynamic metric aliases for the selected
335
- `top_k` and a `must_include_hit_rate`.
336
- - Package/runtime/static metadata is synchronized to 7.4.0; package publish and
337
- deployment remain owner-run only.
338
-
339
- ## [7.3.0] - 2026-06-20
340
-
341
- > Runtime Contract & Retrieval Quality. Turns the next AgentRuntime extraction
342
- > step and the uploaded roadmap's hybrid-search quality goals into a small,
343
- > tested release: shared run contracts and deterministic recall regression.
344
-
345
- ### Added
346
- - `lattice_brain.runtime.contracts.AgentRunContract`, a serializable
347
- `agent-run-contract/v1` payload shared by single-agent and multi-agent
348
- execution paths.
349
- - Multi-agent API result/run patches now include the shared contract with
350
- runtime, mode, status, roles, retries, timeline, and terminal-state data.
351
- - Single-agent runtime exposes the same contract helper for UI/API/storage
352
- convergence in the next extraction pass.
353
- - `scripts/brain_quality_eval.py` now runs deterministic hybrid recall/ranking
354
- regression checks with recall and precision thresholds.
355
-
356
- ### Changed
357
- - Package/runtime/static metadata is synchronized to 7.3.0; package publish and
358
- deployment remain owner-run only.
359
-
360
- ## [7.2.0] - 2026-06-20
361
-
362
- > Runtime Trust Baseline. Adds execution preview and registry diagnostics so
363
- > agent runs and tool permissions become inspectable contracts before action.
364
-
365
- ### Added
366
- - `POST /agents/api/run/preview` for AgentRuntime readiness, role selection,
367
- input keys, retry clamping, and blocking reasons without starting a run.
368
- - `GET /tools/registry` for the live ToolRegistry manifest across dispatch
369
- handlers, governance policy, catalog descriptions, and permissions.
370
- - `GET /tools/registry/diagnostics` for a compact drift check suitable for CI,
371
- admin views, and runtime health panels.
372
- - Unit coverage for AgentRuntime preview and ToolRegistry manifest diagnostics.
373
-
374
- ### Changed
375
- - Tool governance now covers `read_document`, and the catalog describes
376
- `create_web_project`, closing the current dispatch/governance/catalog drift.
377
- - Package/runtime/static metadata is synchronized to 7.2.0; package publish and
378
- deployment remain owner-run only.
379
-
380
- ## [7.1.0] - 2026-06-20
381
-
382
- > Brain Usability Completion. Completes the 7.1.0 first-run through editor-sync
383
- > usability pass: clear onboarding, visible ingestion, graph controls, inline
384
- > proof, workspace/admin discovery, feedback states, and VS Code sync status.
385
-
386
- ### Added
387
- - Hardware visualization, expected timing, install timeline, and next-action
388
- copy in first-run onboarding.
389
- - Brain Home ingestion stage disclosure and memory emergence timeline for file,
390
- folder, note, and URL sources.
391
- - Knowledge Graph search suggestions, entity type filters, recent/all-time time
392
- exploration, focus clearing, and neighbor highlighting.
393
- - Inline answer citation markers with keyboard-accessible proof cards.
394
- - Workspace/profile switcher, Admin Console gate, consent revoke feedback, and
395
- shared empty/error feedback surfaces in the Brain shell.
396
- - VS Code extension heartbeat/status endpoint plus extension and main-app sync
397
- indicators for connected/indexing/synced/offline states.
398
-
399
- ### Changed
400
- - Package/runtime/static metadata is synchronized to 7.1.0; package publish and
401
- deployment remain owner-run only.
402
-
403
- ## [7.0.0] - 2026-06-18
404
-
405
- > Brain Productization Loop. Turns the Brain proof work into a first-five-minute
406
- > product flow: add sources, ask a question, see proof/citations, and verify the
407
- > same Brain evidence after switching models.
408
-
409
- ### Added
410
- - Brain Home ingestion panel for files, local folder paths, notes, and web URLs,
411
- all backed by existing workspace-scoped ingestion routes.
412
- - Answer-level Memory proof and source citation cards rendered under assistant
413
- responses after Brain proof refreshes for the user's query.
414
- - Model-continuity demo strip that lets the user recheck the same Brain
415
- evidence and jump to model switching from the Brain flow.
416
- - Deterministic `scripts/brain_quality_eval.py` recall/KG quality gate, wired
417
- into CI after the unit suite.
418
- - Visual mock coverage for Brain proof, document upload, note ingest, folder
419
- indexing, and web URL ingestion endpoints.
420
-
421
- ### Changed
422
- - Brain Home is now ingestion-first instead of chat-first: first screen action
423
- labels are files/folders/notes/web, with deeper graph/model/settings still
424
- reachable from the shell.
425
- - Package/runtime/static metadata is synchronized to 7.0.0; package publish and
426
- deployment remain owner-run only.
427
-
428
- - Completed ALL Recommended next refactor items from report #15 in this session:
429
- - Server decomp wave (model_runtime globals/wiring): model_loading.py for prepare_and_load and stream, _MODEL_RUNTIME_STATE, model_engines.
430
- - Deeper WorkspaceOSStore (timeline + plugins + snapshots + memory).
431
- - KG embed: set_embed_dim.
432
- - All refactoring needed finished this session per AGENTS. 767 tests, builds, greps clean.
433
-
434
- ### Added (this session features)
435
- - `vision_analyze` tool: new multimodal vision analysis tool using screenshot b64 + prompt. Leverages existing VLM support (image_data in generate). Added to computer-use agent prompt and general tools. Fits seamlessly with computer_use, agent runtime, tool registry, and VLM models without affecting text-only paths.
436
- - More recent multimodal models in user recommendations (Llama 3.2 11B Vision, Phi-3.5 Vision, Qwen2.5-VL 7B, Moondream2) + family order update in model_recommendation. Expanded curated list in model_capability_registry for better local VLM choices on Apple Silicon and other.
437
- - All additions checked for compatibility with existing KG (descriptions can be ingested), agents/tools dispatch, chat/computer_use (image pass-through), model rec logic, and non-multimodal fallbacks.
438
-
439
- - Perfect completion of report #15 recommended refactor:
440
- - Server decomp wave: ModelRuntimeState class (not dict) for globals/wiring in model_runtime; sync_to_module_globals for compat; further clean.
441
- - Deeper WorkspaceOSStore: timeline/plugins managers fully delegated and composed (record, has_permission etc all through).
442
- - KG embed: set_embed_dim available for optional central handling.
443
- - All changes preserve legacy exactly, full composition, small modules.