ltcai 8.9.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 (89) hide show
  1. package/README.md +28 -39
  2. package/auto_setup.py +11 -62
  3. package/docs/CHANGELOG.md +76 -237
  4. package/docs/COMMUNITY_AND_PLUGINS.md +2 -2
  5. package/docs/DEVELOPMENT.md +8 -8
  6. package/docs/LEGACY_COMPATIBILITY.md +1 -1
  7. package/docs/ONBOARDING.md +2 -2
  8. package/docs/ROADMAP_RECOMMENDATIONS.md +61 -36
  9. package/docs/TRUST_MODEL.md +1 -1
  10. package/docs/WHY_LATTICE.md +2 -2
  11. package/docs/kg-schema.md +1 -1
  12. package/lattice_brain/__init__.py +1 -1
  13. package/lattice_brain/archive.py +4 -9
  14. package/lattice_brain/embeddings.py +38 -2
  15. package/lattice_brain/graph/_kg_common.py +27 -462
  16. package/lattice_brain/graph/_kg_constants.py +243 -0
  17. package/lattice_brain/graph/_kg_fsutil.py +297 -0
  18. package/lattice_brain/graph/discovery.py +0 -948
  19. package/lattice_brain/graph/discovery_index.py +972 -0
  20. package/lattice_brain/graph/retrieval.py +0 -570
  21. package/lattice_brain/graph/retrieval_docgen.py +210 -0
  22. package/lattice_brain/graph/retrieval_vector.py +460 -0
  23. package/lattice_brain/graph/store.py +6 -0
  24. package/lattice_brain/ingestion.py +68 -0
  25. package/lattice_brain/portability.py +1 -9
  26. package/lattice_brain/quality.py +98 -4
  27. package/lattice_brain/runtime/agent_runtime.py +166 -0
  28. package/lattice_brain/runtime/multi_agent.py +1 -1
  29. package/lattice_brain/utils.py +28 -0
  30. package/latticeai/__init__.py +1 -1
  31. package/latticeai/api/chat.py +340 -407
  32. package/latticeai/api/chat_helpers.py +227 -0
  33. package/latticeai/api/computer_use.py +149 -31
  34. package/latticeai/api/marketplace.py +11 -0
  35. package/latticeai/api/permissions.py +3 -3
  36. package/latticeai/api/tools.py +1 -0
  37. package/latticeai/app_factory.py +82 -360
  38. package/latticeai/core/io_utils.py +37 -0
  39. package/latticeai/core/legacy_compatibility.py +1 -1
  40. package/latticeai/core/local_embeddings.py +2 -4
  41. package/latticeai/core/marketplace.py +33 -2
  42. package/latticeai/core/mcp_catalog.py +450 -0
  43. package/latticeai/core/mcp_registry.py +2 -441
  44. package/latticeai/core/users.py +4 -9
  45. package/latticeai/core/workspace_os.py +1 -1
  46. package/latticeai/core/workspace_os_utils.py +3 -17
  47. package/latticeai/integrations/telegram_bot.py +7 -2
  48. package/latticeai/models/model_providers.py +111 -0
  49. package/latticeai/models/router.py +58 -136
  50. package/latticeai/runtime/audit_runtime.py +27 -16
  51. package/latticeai/runtime/automation_runtime.py +9 -0
  52. package/latticeai/runtime/history_runtime.py +163 -0
  53. package/latticeai/runtime/namespace_runtime.py +173 -0
  54. package/latticeai/runtime/network_config_runtime.py +56 -0
  55. package/latticeai/runtime/sso_config_runtime.py +128 -0
  56. package/latticeai/runtime/user_key_runtime.py +106 -0
  57. package/latticeai/services/architecture_readiness.py +2 -2
  58. package/latticeai/services/memory_service.py +213 -0
  59. package/latticeai/services/platform_runtime.py +9 -1
  60. package/latticeai/services/product_readiness.py +11 -11
  61. package/latticeai/services/review_queue.py +64 -11
  62. package/latticeai/services/run_executor.py +21 -0
  63. package/latticeai/services/setup_detection.py +80 -0
  64. package/latticeai/services/tool_dispatch.py +1 -1
  65. package/package.json +1 -1
  66. package/setup_wizard.py +11 -55
  67. package/src-tauri/Cargo.lock +1 -1
  68. package/src-tauri/Cargo.toml +1 -1
  69. package/src-tauri/tauri.conf.json +1 -1
  70. package/static/app/asset-manifest.json +11 -11
  71. package/static/app/assets/{Act-fZokUnC0.js → Act-21lIXx2E.js} +1 -1
  72. package/static/app/assets/Brain-BqUd5UJJ.js +321 -0
  73. package/static/app/assets/{Capture-D5KV3Cu7.js → Capture-BA7Z2Q1u.js} +1 -1
  74. package/static/app/assets/{Library-C9kyFkSt.js → Library-bFMtyni3.js} +1 -1
  75. package/static/app/assets/System-K6krGCqn.js +1 -0
  76. package/static/app/assets/index-C4R3ws30.js +17 -0
  77. package/static/app/assets/index-ChSeOB02.css +2 -0
  78. package/static/app/assets/primitives-sQU3it5I.js +1 -0
  79. package/static/app/assets/{textarea-CD8UNKIy.js → textarea-DK3Fd_lR.js} +1 -1
  80. package/static/app/index.html +2 -2
  81. package/static/css/tokens.css +4 -2
  82. package/static/sw.js +1 -1
  83. package/tools/local_files.py +6 -0
  84. package/latticeai/runtime/sso_runtime.py +0 -52
  85. package/static/app/assets/Brain-DtyuWubr.js +0 -321
  86. package/static/app/assets/System-VbChmX7r.js +0 -1
  87. package/static/app/assets/index-DCh5AoXt.css +0 -2
  88. package/static/app/assets/index-DPdcPoF0.js +0 -17
  89. package/static/app/assets/primitives-DFeanEV6.js +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lattice AI
2
2
 
3
- **Lattice AI 8.9.0 is the local-first Digital Brain platform. This release hardens authenticated history and graph scoping, blocks unapproved direct Tool API execution paths, makes local permission approvals and installer/process execution safer to audit, and keeps package, desktop, extension, static app, and documentation metadata synchronized to the 8.9.0 line.**
3
+ **Lattice AI 9.0.0 is the local-first Digital Brain platform. This release closes the July 8 code-review follow-up, hardens chat/runtime reliability, pays down cleanup debt across runtime utilities and setup detection, and keeps package, desktop, extension, static app, and documentation metadata synchronized to the 9.0.0 line.**
4
4
 
5
5
  **Lattice AI는 모델이 바뀌어도 내 지식과 맥락을 보존하는 로컬 우선 AI 브레인입니다.**
6
6
 
@@ -67,9 +67,9 @@ You need Lattice AI when:
67
67
  The screenshots below are the latest checked-in visual evidence captures. They
68
68
  keep the first-run Brain flow, memory graph, source capture, model library,
69
69
  system view, admin console, and review center visible as release gates while
70
- 8.9.0 focuses on scoped memory isolation, direct Tool API policy enforcement,
71
- AgentRuntime human-approval semantics, confirmation-token guarded installer
72
- execution, and frontend/runtime maintainability.
70
+ 9.0.0 focuses on code-review closure, chat/runtime reliability,
71
+ AgentRuntime and ToolRegistry maintainability, release artifact correctness,
72
+ and frontend/runtime cleanup.
73
73
 
74
74
  ### 1. Wake Brain
75
75
 
@@ -210,40 +210,38 @@ See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for developer workflow details.
210
210
 
211
211
  ## Current Release
212
212
 
213
- The current release is **8.9.0 — Scoped Memory & Tool Policy Hardening**:
214
-
215
- - Conversation history reads and deletes now scope by authenticated user and
216
- readable workspace, while preserving legacy-global rows only in no-auth or
217
- explicitly compatible flows.
218
- - Knowledge Graph search, graph traversal, relationships, node reads, and chat
219
- context now apply workspace scope at the graph/service boundary.
220
- - Direct HTTP/MCP Tool API calls enforce ToolRegistry policy before hooks or
221
- handlers run; destructive paths and non-auto-approved user writes are blocked.
222
- - AgentRuntime no longer treats “requires approval” plans as implicitly
223
- approved, and rollback now handles tool results that omit `success`.
224
- - Local permission approvals hash tokens at rest, use atomic queue writes, and
225
- reject write approvals for blocked system prefixes.
226
- - Frontend API base handling, Tauri credentials, workspace clearing, CSS tokens,
227
- and i18n literal checks are split into safer maintainability seams.
228
-
229
- Expected artifacts for 8.9.0 release must use exact filenames:
230
-
231
- - `dist/ltcai-8.9.0-py3-none-any.whl`
232
- - `dist/ltcai-8.9.0.tar.gz`
233
- - `ltcai-8.9.0.tgz`
234
- - `dist/ltcai-8.9.0.vsix`
235
- - `src-tauri/target/release/bundle/dmg/Lattice AI_8.9.0_aarch64.dmg`
213
+ The current release is **9.0.0Code Review Closure & Runtime Cleanup**:
214
+
215
+ - July 8 code-review follow-ups are fixed across chat, agent runs, permissions,
216
+ Telegram integration, runtime audit timestamps, embeddings, and Brain UI copy.
217
+ - Chat/document streaming now preserves terminal SSE events and history/trace
218
+ persistence when generation fails mid-stream.
219
+ - Runtime audit appends use JSONL while legacy JSON reads remain compatible.
220
+ - Shared JSON/ISO/hash, setup detection, and frontend helper utilities replace
221
+ duplicated implementations across runtime, Brain Core, setup, and React code.
222
+ - The legacy `server_app` namespace is allowlist-based instead of exposing all
223
+ app-factory locals.
224
+ - The main `/chat` handler now routes through focused intent handlers and shared
225
+ response epilogues for lower future regression risk.
226
+
227
+ Expected artifacts for 9.0.0 release must use exact filenames:
228
+
229
+ - `dist/ltcai-9.0.0-py3-none-any.whl`
230
+ - `dist/ltcai-9.0.0.tar.gz`
231
+ - `ltcai-9.0.0.tgz`
232
+ - `dist/ltcai-9.0.0.vsix`
233
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_9.0.0_aarch64.dmg`
236
234
 
237
235
  Do not use wildcard artifact uploads. Package registry publishing remains owner-run.
238
236
 
239
237
  See [docs/ROADMAP_RECOMMENDATIONS.md](docs/ROADMAP_RECOMMENDATIONS.md) for the
240
- strategic roadmap slices applied through 8.9.0 and the follow-up tracks.
238
+ strategic roadmap slices applied through 9.0.0 and the follow-up tracks.
241
239
 
242
240
  ## Known Limitations
243
241
 
244
242
  - External package registries are owner-published and can lag behind GitHub.
245
243
  - PostgreSQL/pgvector is optional scale/migration tooling. SQLite remains the
246
- live local Brain store in 8.9.0.
244
+ live local Brain store in 9.0.0.
247
245
  - Docker, model downloads, cloud model calls, Telegram, Brain Network, and update
248
246
  checks require explicit user action.
249
247
  - Conversation does not fabricate answers when no model is loaded.
@@ -255,6 +253,7 @@ strategic roadmap slices applied through 8.9.0 and the follow-up tracks.
255
253
 
256
254
  | Version | Theme |
257
255
  | --- | --- |
256
+ | 9.0.0 | Code Review Closure & Runtime Cleanup: July 8 code-review follow-ups fixed, chat/runtime reliability improved, duplicated utility surfaces consolidated, runtime audit append paths moved to JSONL, and release metadata/artifacts synchronized |
258
257
  | 8.9.0 | Scoped Memory & Tool Policy Hardening: authenticated history/KG reads are workspace-scoped, direct Tool API paths enforce registry policy, local approvals hash tokens at rest, AgentRuntime approval semantics are explicit, and frontend/runtime seams are split |
259
258
  | 8.8.0 | Brain Core Extraction & Recall Proof Hardening: internal-only Brain shim layers are removed, AgentRuntime run contracts/retry budgets are tighter, Brain Chat gains conversation controls, and citation recall exposes matched evidence |
260
259
  | 8.7.0 | Runtime State Hygiene & Release Evidence Refresh: model-runtime internals prefer typed state over legacy globals, compatibility sync is deprecated, 8.7.0 visual evidence is refreshed, and all release metadata/docs are synchronized |
@@ -265,16 +264,6 @@ strategic roadmap slices applied through 8.9.0 and the follow-up tracks.
265
264
  | 8.2.0 | Brain Brief: evidence-backed home briefing, honest empty-state guidance, recall/graph/model-proof next actions, and continued model/workspace runtime extraction |
266
265
  | 8.1.0 | Intuitive Brain Home: living Brain, recent memory, connected topic, next action, and composer are visible in one product-first screen with refreshed 8.1.0 evidence and artifacts |
267
266
  | 8.0.0 | Runtime Architecture Contract: AgentRuntime, ToolRegistry, central Config, server decomposition, and KG hardening are captured as machine-checkable release boundaries with exact 8.0.0 artifacts |
268
- | 7.9.0 | Agent Runtime Boundary Hardening: explicit `SingleAgentRuntime`, compatibility alias preservation, injected rollback port, and release/readiness docs aligned to the product AgentRuntime facade |
269
- | 7.8.0 | Brain Chat Home UX Simplification: chat-first first viewport, visible workspace navigation, collapsed source/status utilities, hidden default depth controls, and removal of obsolete Brain UX components |
270
- | 7.7.0 | Complete Product Polish: command-center Brain Home, repaired Review Center evidence, exact 7.7 docs/artifacts, product readiness gate, and stronger CI/release checks |
271
- | 7.6.0 | Brain-Centered UX & Architecture Closure: Wake Brain first-run surface, concentric memory rings with direct depth controls, and machine-checkable closure of the two architecture/UX review files |
272
- | 7.5.0 | Runtime Debt Burn-down & Release Risk Cleanup: API consumers get normalized contract views, retrieval quality uses a 250+ record corpus fixture, stale artifact risk is removed, npm audit is clean, and Tauri is updated past the old block warning |
273
- | 7.4.0 | Runtime Contract Convergence & Corpus Retrieval: agent/workflow/audit/realtime records share the agent-run-contract/v1 family, and retrieval quality gates run against a real corpus-scale fixture |
274
- | 7.3.0 | Runtime Contract & Retrieval Quality: shared agent-run contract across runtimes plus deterministic hybrid recall/ranking regression gates |
275
- | 7.2.0 | Runtime Trust Baseline: agent run preview/readiness, simulation-mode guardrails, live ToolRegistry manifest/diagnostics, and tests for dispatch/governance/catalog drift |
276
- | 7.1.0 | Brain Usability Completion: clearer first-run onboarding, ingestion progress/emergence, richer graph controls, inline answer proof, workspace/profile/admin discovery, empty/error/consent feedback, and VS Code sync status |
277
- | 7.0.0 | Brain Productization Loop: first-screen ingestion for files/folders/notes/web, answer-level memory proof and source citations, model-continuity demo flow, five-minute first-run loop, and recall/KG quality eval in CI |
278
267
 
279
268
  ## Documentation
280
269
 
package/auto_setup.py CHANGED
@@ -54,6 +54,12 @@ from latticeai.services.process_audit import (
54
54
  command_plan_for_commands,
55
55
  require_command_confirmation,
56
56
  )
57
+ from latticeai.services.setup_detection import (
58
+ detect_cuda,
59
+ detect_tools,
60
+ detect_wsl_from_text,
61
+ parse_windows_video_controllers as _parse_windows_video_controllers,
62
+ )
57
63
 
58
64
  __all__ = [
59
65
  "SystemProfile", "Recommendation", "InstallPlan",
@@ -153,44 +159,6 @@ def _which(binary: str) -> Optional[str]:
153
159
  return None
154
160
 
155
161
 
156
- def _parse_windows_video_controllers(raw: str) -> List[Dict[str, Any]]:
157
- controllers: List[Dict[str, Any]] = []
158
- if not raw:
159
- return controllers
160
- try:
161
- data = json.loads(raw)
162
- if isinstance(data, dict):
163
- data = [data]
164
- if isinstance(data, list):
165
- for item in data:
166
- name = str(item.get("Name") or "").strip()
167
- if not name:
168
- continue
169
- try:
170
- ram_mb = int(item.get("AdapterRAM") or 0) // (1024 * 1024)
171
- except Exception:
172
- ram_mb = 0
173
- controllers.append({"name": name, "vram_mb": ram_mb})
174
- if controllers:
175
- return controllers
176
- except Exception:
177
- pass
178
- current: Dict[str, Any] = {}
179
- for line in raw.splitlines():
180
- if line.startswith("Name="):
181
- if current:
182
- controllers.append(current)
183
- current = {"name": line.split("=", 1)[-1].strip(), "vram_mb": 0}
184
- elif line.startswith("AdapterRAM=") and current:
185
- try:
186
- current["vram_mb"] = int(line.split("=", 1)[-1].strip()) // (1024 * 1024)
187
- except ValueError:
188
- current["vram_mb"] = 0
189
- if current:
190
- controllers.append(current)
191
- return controllers
192
-
193
-
194
162
  def _detect_gpu(prof_os: str, arch: str) -> GPUInfo:
195
163
  """OS별 휴리스틱으로 GPU 감지. 외부 라이브러리 없이 가능한 만큼만."""
196
164
  gpu = GPUInfo()
@@ -276,36 +244,17 @@ def _detect_package_manager(prof_os: str) -> Optional[str]:
276
244
 
277
245
 
278
246
  def _detect_tools() -> Dict[str, str]:
279
- tools: Dict[str, str] = {}
280
- for binary in ("ollama", "lms", "nvidia-smi", "nvcc", "winget", "brew", "apt", "git", "node", "python", "python3"):
281
- found = _which(binary)
282
- if found:
283
- tools[binary] = found
284
- return tools
247
+ detected = detect_tools(_which, ("ollama", "lms", "nvidia-smi", "nvcc", "winget", "brew", "apt", "git", "node", "python", "python3"))
248
+ return {binary: path for binary, path in detected.items() if path}
285
249
 
286
250
 
287
251
  def _detect_wsl(prof_os: str) -> Tuple[bool, str]:
288
- if prof_os != "linux":
289
- return False, ""
290
- raw = _read_text("/proc/version")
291
- is_wsl = "microsoft" in raw.lower() or "wsl" in raw.lower()
292
- version = "2" if "microsoft-standard" in raw.lower() or "wsl2" in raw.lower() else ("1" if is_wsl else "")
293
- return is_wsl, version
252
+ return detect_wsl_from_text(prof_os, _read_text("/proc/version"))
294
253
 
295
254
 
296
255
  def _detect_cuda() -> Tuple[bool, str]:
297
- nvidia_smi = _which("nvidia-smi")
298
- nvcc = _which("nvcc")
299
- version = ""
300
- if nvidia_smi:
301
- raw = _run([nvidia_smi, "--query-gpu=driver_version", "--format=csv,noheader"], timeout=4.0)
302
- version = raw.splitlines()[0].strip() if raw.splitlines() else ""
303
- if nvcc:
304
- raw = _run([nvcc, "--version"], timeout=4.0)
305
- m = re.search(r"release\s+([\d.]+)", raw)
306
- if m:
307
- version = m.group(1)
308
- return bool(nvidia_smi or nvcc), version
256
+ available, version, _nvidia_smi, _nvcc = detect_cuda(_which, lambda args: _run(args, timeout=4.0))
257
+ return available, version
309
258
 
310
259
 
311
260
  def _detect_cpu_details(prof_os: str) -> Tuple[str, int, int, List[str]]:
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,81 @@ 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
+
9
84
  ## [8.9.0] - 2026-07-06
10
85
 
11
86
  ### Added
@@ -233,7 +308,7 @@ existed at that release.
233
308
  - Updated architecture and product readiness targets to 8.0.0.
234
309
  - Synchronized package/runtime/static/Tauri metadata to 8.0.0.
235
310
  - Updated current-release docs and exact artifact names to 8.0.0 while
236
- preserving historical 7.x entries.
311
+ setting 8.0.0 as the oldest retained release-history entry.
237
312
 
238
313
  ### Fixed
239
314
  - Made logical Knowledge Graph `replace` imports transactional so malformed
@@ -242,239 +317,3 @@ existed at that release.
242
317
  `relationship_search`, and `traverse`.
243
318
  - Preserved colliding legacy edge labels during logical import/backfill while
244
319
  keeping native write-door synonym dedupe canonical.
245
-
246
- ## [7.9.0] - 2026-06-23
247
-
248
- ### Changed
249
- - Added `SingleAgentRuntime` as the explicit name for the legacy single-agent
250
- state machine while preserving `AgentRuntime` as a compatibility alias.
251
- - Updated tool dispatch to build `SingleAgentRuntime` directly.
252
- - Moved single-agent git rollback behind an injected `rollback_file` port owned
253
- by `ToolDispatchService`, keeping shell execution out of the core state
254
- machine.
255
- - Added a shared `runtime-boundary/v1` descriptor so product and single-agent
256
- runtime boundaries are machine-readable in config/tests.
257
- - Added `RuntimeBoundaryProtocol` as the minimal shared inspection surface for
258
- runtime-boundary-aware dependency injection.
259
- - Updated architecture and product readiness targets to 7.9.0.
260
-
261
- ## [7.8.0] - 2026-06-22
262
-
263
- ### Changed
264
- - Rebuilt Brain Chat Home around immediate conversation: chat purpose, starter
265
- prompts, and the composer now occupy the first viewport.
266
- - Collapsed source ingestion, readiness, proof, timeline, overview, model
267
- continuity, and care controls behind one utility drawer.
268
- - Kept workspace navigation visible on the default Brain surface.
269
- - Hid default depth controls until the user intentionally travels deeper.
270
- - Integrated the six post-7.7 UX drafts into the canonical Brain experience:
271
- first-run value cards, stronger recommendation affordances, product-toned
272
- Brain Home copy, and routed legacy Brain conversation entry points to the
273
- canonical Brain Home surface.
274
- - Removed obsolete Brain conversation and first-run guide components.
275
- - Moved draft onboarding polish out of inline styles and into the shared design
276
- stylesheet with responsive behavior and bilingual copy.
277
- - Updated architecture and product readiness targets to 7.8.0.
278
- - Refreshed 7.8.0 release screenshots, walkthrough video/GIF, and capture
279
- notes under `output/release/v7.8.0/`.
280
-
281
- ## [7.7.0] - 2026-06-22
282
-
283
- > 7.7.0 marks the complete, finished product stage for Lattice AI.
284
- > 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".
285
-
286
- 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.
287
-
288
- Package metadata, Tauri, frontend, Python all aligned to 7.7.0. UI/UX microcopy and signals updated to convey finished professional tool.
289
-
290
- ### Productization Highlights
291
- - Extreme self + claude-code (pts_claudecode) used for polish, evaluation, iteration.
292
- - "This is a product" bar: clear durable knowledge ownership, no loose ends.
293
- - Validation: typecheck, unit, cargo, build scripts exercised.
294
-
295
- ### Changed
296
- - Package/runtime/static metadata synchronized to 7.7.0.
297
- - Development status to Production/Stable.
298
- - All current-release references point to 7.7.0.
299
-
300
- ## [7.6.0] - 2026-06-22
301
-
302
- > Brain-Centered UX & Architecture Closure. Incorporates the two local review
303
- > files into the release line with a Wake Brain first-run surface, memory rings
304
- > plus direct depth controls, and machine-checkable architecture readiness gates.
305
-
306
- ### Added
307
- - Wake Brain first-run entry before owner/profile setup, reducing onboarding to
308
- the product promise first and the setup mechanics second.
309
- - Concentric memory rings around Brain Home plus direct controls for Now, Memory,
310
- Topics, Relationships, and Full Graph navigation.
311
- - `latticeai.services.architecture_readiness.architecture_readiness()` and
312
- `tests/unit/test_v76_review_completion.py` to keep AgentRuntime, ToolRegistry,
313
- Config, server decomposition, KG hardening, and Brain UX review closure under
314
- test.
315
-
316
- ### Changed
317
- - Package/runtime/static metadata is synchronized to 7.6.0; package publish and
318
- deployment remain owner-run only.
319
- - README and release docs now describe 7.6.0 as the current release and point to
320
- refreshed 7.6.0 screenshots, walkthrough GIF, and release evidence index under
321
- `output/release/v7.6.0/`.
322
-
323
- ## [7.5.0] - 2026-06-20
324
-
325
- > Runtime Debt Burn-down & Release Risk Cleanup. Turns the 7.4.0 contract
326
- > envelope into a consumed API surface, expands retrieval quality to a 250+
327
- > record local corpus fixture, and removes release/security warnings.
328
-
329
- ### Added
330
- - `extract_contract`, `require_contract`, `contract_view`, and `contract_views`
331
- helpers for consumers that need a surface-agnostic `agent-run-contract/v1`
332
- projection.
333
- - AgentRuntime status/list/detail/events and realtime feed responses now expose
334
- compact `contracts` views alongside legacy payloads.
335
- - Deterministic 250+ record retrieval benchmark corpus while keeping 12 judged
336
- queries and real `KnowledgeGraphStore` + `SearchService` execution.
337
- - Refreshed README release evidence screenshots and walkthrough GIF under
338
- `output/release/v7.5.0/`.
339
-
340
- ### Changed
341
- - Tauri Rust/CLI dependencies are updated within the Tauri 2 line, removing the
342
- old transitive `block v0.1.6` future-incompatibility warning.
343
- - npm dependency overrides move `js-yaml` to a non-vulnerable version; `npm
344
- audit` reports 0 vulnerabilities.
345
- - CI lint compatibility is restored for the Brain quality gate script.
346
- - Local MLX model preparation now recognizes valid existing Hugging Face cache
347
- snapshots, avoiding an unnecessary re-download when the model already exists
348
- outside Lattice's managed `~/.ltcai/hf-models` directory.
349
- - Package/runtime/static metadata is synchronized to 7.5.0; package publish and
350
- deployment remain owner-run only.
351
-
352
- ## [7.4.0] - 2026-06-20
353
-
354
- > Runtime Contract Convergence & Corpus Retrieval. Completes the
355
- > agent-run-contract/v1 family across run storage, workflow execution, audit
356
- > events, realtime events, and a real corpus-scale retrieval quality gate.
357
-
358
- ### Added
359
- - Persisted agent and workflow run rows now carry refreshed contract metadata
360
- for queued, running, terminal, cancelled, and interrupted states.
361
- - Workflow engine results, replay payloads, audit log events, and realtime SSE
362
- feed events now expose the same `agent-run-contract/v1` family envelope while
363
- preserving existing top-level compatibility fields.
364
- - Corpus-scale retrieval fixture with 30+ documents, judged queries,
365
- must-include expectations, and thresholds for recall, precision, NDCG, and
366
- hit rate.
367
- - `scripts/brain_quality_eval.py` now exercises the real local
368
- `KnowledgeGraphStore` + `SearchService` hybrid retrieval path before scoring.
369
-
370
- ### Changed
371
- - `RetrievalBenchmarkRunner` reports dynamic metric aliases for the selected
372
- `top_k` and a `must_include_hit_rate`.
373
- - Package/runtime/static metadata is synchronized to 7.4.0; package publish and
374
- deployment remain owner-run only.
375
-
376
- ## [7.3.0] - 2026-06-20
377
-
378
- > Runtime Contract & Retrieval Quality. Turns the next AgentRuntime extraction
379
- > step and the uploaded roadmap's hybrid-search quality goals into a small,
380
- > tested release: shared run contracts and deterministic recall regression.
381
-
382
- ### Added
383
- - `lattice_brain.runtime.contracts.AgentRunContract`, a serializable
384
- `agent-run-contract/v1` payload shared by single-agent and multi-agent
385
- execution paths.
386
- - Multi-agent API result/run patches now include the shared contract with
387
- runtime, mode, status, roles, retries, timeline, and terminal-state data.
388
- - Single-agent runtime exposes the same contract helper for UI/API/storage
389
- convergence in the next extraction pass.
390
- - `scripts/brain_quality_eval.py` now runs deterministic hybrid recall/ranking
391
- regression checks with recall and precision thresholds.
392
-
393
- ### Changed
394
- - Package/runtime/static metadata is synchronized to 7.3.0; package publish and
395
- deployment remain owner-run only.
396
-
397
- ## [7.2.0] - 2026-06-20
398
-
399
- > Runtime Trust Baseline. Adds execution preview and registry diagnostics so
400
- > agent runs and tool permissions become inspectable contracts before action.
401
-
402
- ### Added
403
- - `POST /agents/api/run/preview` for AgentRuntime readiness, role selection,
404
- input keys, retry clamping, and blocking reasons without starting a run.
405
- - `GET /tools/registry` for the live ToolRegistry manifest across dispatch
406
- handlers, governance policy, catalog descriptions, and permissions.
407
- - `GET /tools/registry/diagnostics` for a compact drift check suitable for CI,
408
- admin views, and runtime health panels.
409
- - Unit coverage for AgentRuntime preview and ToolRegistry manifest diagnostics.
410
-
411
- ### Changed
412
- - Tool governance now covers `read_document`, and the catalog describes
413
- `create_web_project`, closing the current dispatch/governance/catalog drift.
414
- - Package/runtime/static metadata is synchronized to 7.2.0; package publish and
415
- deployment remain owner-run only.
416
-
417
- ## [7.1.0] - 2026-06-20
418
-
419
- > Brain Usability Completion. Completes the 7.1.0 first-run through editor-sync
420
- > usability pass: clear onboarding, visible ingestion, graph controls, inline
421
- > proof, workspace/admin discovery, feedback states, and VS Code sync status.
422
-
423
- ### Added
424
- - Hardware visualization, expected timing, install timeline, and next-action
425
- copy in first-run onboarding.
426
- - Brain Home ingestion stage disclosure and memory emergence timeline for file,
427
- folder, note, and URL sources.
428
- - Knowledge Graph search suggestions, entity type filters, recent/all-time time
429
- exploration, focus clearing, and neighbor highlighting.
430
- - Inline answer citation markers with keyboard-accessible proof cards.
431
- - Workspace/profile switcher, Admin Console gate, consent revoke feedback, and
432
- shared empty/error feedback surfaces in the Brain shell.
433
- - VS Code extension heartbeat/status endpoint plus extension and main-app sync
434
- indicators for connected/indexing/synced/offline states.
435
-
436
- ### Changed
437
- - Package/runtime/static metadata is synchronized to 7.1.0; package publish and
438
- deployment remain owner-run only.
439
-
440
- ## [7.0.0] - 2026-06-18
441
-
442
- > Brain Productization Loop. Turns the Brain proof work into a first-five-minute
443
- > product flow: add sources, ask a question, see proof/citations, and verify the
444
- > same Brain evidence after switching models.
445
-
446
- ### Added
447
- - Brain Home ingestion panel for files, local folder paths, notes, and web URLs,
448
- all backed by existing workspace-scoped ingestion routes.
449
- - Answer-level Memory proof and source citation cards rendered under assistant
450
- responses after Brain proof refreshes for the user's query.
451
- - Model-continuity demo strip that lets the user recheck the same Brain
452
- evidence and jump to model switching from the Brain flow.
453
- - Deterministic `scripts/brain_quality_eval.py` recall/KG quality gate, wired
454
- into CI after the unit suite.
455
- - Visual mock coverage for Brain proof, document upload, note ingest, folder
456
- indexing, and web URL ingestion endpoints.
457
-
458
- ### Changed
459
- - Brain Home is now ingestion-first instead of chat-first: first screen action
460
- labels are files/folders/notes/web, with deeper graph/model/settings still
461
- reachable from the shell.
462
- - Package/runtime/static metadata is synchronized to 7.0.0; package publish and
463
- deployment remain owner-run only.
464
-
465
- - Completed ALL Recommended next refactor items from report #15 in this session:
466
- - Server decomp wave (model_runtime globals/wiring): model_loading.py for prepare_and_load and stream, _MODEL_RUNTIME_STATE, model_engines.
467
- - Deeper WorkspaceOSStore (timeline + plugins + snapshots + memory).
468
- - KG embed: set_embed_dim.
469
- - All refactoring needed finished this session per AGENTS. 767 tests, builds, greps clean.
470
-
471
- ### Added (this session features)
472
- - `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.
473
- - 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.
474
- - 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.
475
-
476
- - Perfect completion of report #15 recommended refactor:
477
- - Server decomp wave: ModelRuntimeState class (not dict) for globals/wiring in model_runtime; sync_to_module_globals for compat; further clean.
478
- - Deeper WorkspaceOSStore: timeline/plugins managers fully delegated and composed (record, has_permission etc all through).
479
- - KG embed: set_embed_dim available for optional central handling.
480
- - All changes preserve legacy exactly, full composition, small modules.
@@ -1,11 +1,11 @@
1
1
  # Community And Plugins
2
2
 
3
- Current release: **8.9.0 — Scoped Memory & Tool Policy Hardening**.
3
+ Current release: **9.0.0Code Review Closure & Runtime Cleanup**.
4
4
 
5
5
  LatticeAI defines the path from a strong local-first framework (8.4.0
6
6
  action-aware baseline, 8.5.0 registry+DI hardening, 8.6.0 capture/navigation
7
7
  reliability, 8.7.0 runtime-state hygiene, 8.8.0 Brain Core extraction
8
- readiness, and 8.9.0 scoped Tool API hardening) to a product ecosystem. The
8
+ readiness, 8.9.0 scoped Tool API hardening, and 9.0.0 cleanup closure) to a product ecosystem. The
9
9
  immediate goal is small and practical: make it clear how
10
10
  contributors can extend the Brain without weakening local-first trust,
11
11
  workspace scoping, or release quality.
@@ -1,10 +1,10 @@
1
1
  # Lattice AI Development
2
2
 
3
- Current release: **8.9.0 — Scoped Memory & Tool Policy Hardening**.
3
+ Current release: **9.0.0Code Review Closure & Runtime Cleanup**.
4
4
 
5
5
  This document is for contributors working on the local-first Digital Brain
6
6
  codebase. Product positioning and quick start stay in `README.md`; release
7
- history is intentionally limited to 7.0.0-8.9.0 in `docs/CHANGELOG.md` and
7
+ history is intentionally limited to 8.0.0-9.0.0 in `docs/CHANGELOG.md` and
8
8
  `RELEASE.md`.
9
9
 
10
10
  ## Product Contract
@@ -114,10 +114,10 @@ For user-facing, API, runtime, release, or packaging changes, check:
114
114
  Release/publish examples must use exact target-version filenames. Do not
115
115
  document wildcard artifact upload commands.
116
116
 
117
- For 8.9.0 release work, exact artifacts are:
117
+ For 9.0.0 release work, exact artifacts are:
118
118
 
119
- - `dist/ltcai-8.9.0-py3-none-any.whl`
120
- - `dist/ltcai-8.9.0.tar.gz`
121
- - `ltcai-8.9.0.tgz`
122
- - `dist/ltcai-8.9.0.vsix`
123
- - `src-tauri/target/release/bundle/dmg/Lattice AI_8.9.0_aarch64.dmg`
119
+ - `dist/ltcai-9.0.0-py3-none-any.whl`
120
+ - `dist/ltcai-9.0.0.tar.gz`
121
+ - `ltcai-9.0.0.tgz`
122
+ - `dist/ltcai-9.0.0.vsix`
123
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_9.0.0_aarch64.dmg`
@@ -1,6 +1,6 @@
1
1
  # Legacy Compatibility Map
2
2
 
3
- Current target: **8.9.0 — Scoped Memory & Tool Policy Hardening**.
3
+ Current target: **9.0.0Code Review Closure & Runtime Cleanup**.
4
4
 
5
5
  Lattice AI is moving toward a smaller, modular architecture centered on
6
6
  `lattice_brain`, `latticeai.services`, `latticeai.api`, and `latticeai.runtime`.
@@ -1,6 +1,6 @@
1
1
  # Lattice AI Onboarding
2
2
 
3
- Current release: **8.9.0 — Scoped Memory & Tool Policy Hardening**.
3
+ Current release: **9.0.0Code Review Closure & Runtime Cleanup**.
4
4
 
5
5
  The first-run goal is a five-minute path from "I opened the app" to "my Brain
6
6
  has a source, a question, and proof." This page is the product contract behind
@@ -32,7 +32,7 @@ read the docs first.
32
32
 
33
33
  ## Release Gate
34
34
 
35
- 8.9.0 treats onboarding as a release gate, not marketing copy. The current
35
+ 9.0.0 treats onboarding as a release gate, not marketing copy. The current
36
36
  machine-checkable product readiness report requires this five-minute contract,
37
37
  the Brain Home surface, setup helpers, graph ingestion tests, and exact release
38
38
  artifact documentation before the release can be called complete.