ltcai 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +75 -55
  2. package/docs/CHANGELOG.md +96 -2354
  3. package/docs/TRUST_MODEL.md +66 -0
  4. package/docs/V4_1_VALIDATION_REPORT.md +1 -1
  5. package/docs/V4_3_PRODUCT_HARDENING_REPORT.md +2 -2
  6. package/docs/V4_5_1_VALIDATION_REPORT.md +2 -1
  7. package/docs/WHY_LATTICE.md +54 -0
  8. package/frontend/src/App.tsx +1 -1
  9. package/frontend/src/components/primitives.tsx +1 -1
  10. package/frontend/src/i18n.ts +6 -4
  11. package/frontend/src/pages/Library.tsx +29 -4
  12. package/frontend/src/pages/System.tsx +1 -1
  13. package/lattice_brain/__init__.py +1 -1
  14. package/lattice_brain/portability.py +11 -7
  15. package/lattice_brain/runtime/multi_agent.py +1 -1
  16. package/latticeai/__init__.py +1 -1
  17. package/latticeai/api/chat.py +19 -11
  18. package/latticeai/api/marketplace.py +2 -2
  19. package/latticeai/api/models.py +26 -4
  20. package/latticeai/api/security_dashboard.py +3 -15
  21. package/latticeai/api/static_routes.py +16 -0
  22. package/latticeai/app_factory.py +114 -40
  23. package/latticeai/core/audit.py +3 -1
  24. package/latticeai/core/builtin_hooks.py +7 -9
  25. package/latticeai/core/logging_safety.py +5 -21
  26. package/latticeai/core/marketplace.py +1 -1
  27. package/latticeai/core/security.py +67 -9
  28. package/latticeai/core/workspace_os.py +18 -4
  29. package/latticeai/services/model_capability_registry.py +483 -0
  30. package/latticeai/services/model_catalog.py +99 -96
  31. package/latticeai/services/model_recommendation.py +12 -1
  32. package/package.json +2 -2
  33. package/scripts/clean_release_artifacts.mjs +16 -1
  34. package/scripts/com.pts.claudecode.discord.plist +31 -0
  35. package/scripts/pts-claudecode-discord-bridge.mjs +189 -0
  36. package/scripts/run_integration_tests.mjs +91 -0
  37. package/scripts/start-pts-claudecode-discord.sh +51 -0
  38. package/scripts/verify_hf_model_registry.py +308 -0
  39. package/src-tauri/Cargo.lock +1 -1
  40. package/src-tauri/Cargo.toml +1 -1
  41. package/src-tauri/tauri.conf.json +3 -2
  42. package/static/app/asset-manifest.json +5 -5
  43. package/static/app/assets/index-CQmHhk8Q.css +2 -0
  44. package/static/app/assets/{index-FR1UZkCD.js → index-DsnfomFs.js} +2 -2
  45. package/static/app/assets/index-DsnfomFs.js.map +1 -0
  46. package/static/app/index.html +2 -2
  47. package/static/app/assets/index-DuYYT2oh.css +0 -2
  48. package/static/app/assets/index-FR1UZkCD.js.map +0 -1
package/README.md CHANGED
@@ -7,24 +7,41 @@
7
7
  [![CI Status](https://github.com/TaeSooPark-PTS/LatticeAI/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/TaeSooPark-PTS/LatticeAI/actions/workflows/ci.yml)
8
8
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
9
9
 
10
- **Lattice AI v5.0.0 is the local-first Living Brain multilingual foundation release.**
11
- It keeps the v4 Brain Core, StorageEngine, FastAPI localhost API, Tauri shell,
12
- backup, restore, model runtime, graph, and portability architecture intact while
13
- making the normal user surface easier for non-technical users: safer login,
14
- clearer model setup, one-click Memory/Topic/Relationship/Graph views, visible feedback when conversation becomes Brain memory, and Korean/English language choice across first-run and Brain screens. Admin logs, role
15
- permissions, security events, retention posture, and Brain operations remain in
16
- the separate Admin Console.
17
-
18
- The product opens by stating the core reason to exist: models will change, but
19
- the user's knowledge should not. It creates a private local profile, studies the
20
- computer, recommends a replaceable model voice, asks before install/download/load
21
- work, then lands in Brain Chat with starter prompts for durable decisions,
22
- projects, documents, and context. The Brain home now gives direct buttons for
23
- memory, topics, relationships, and the full graph, so the graph is still real
24
- and searchable without becoming the first screen or a separate dashboard.
10
+ **Your private AI memory layer. Keep your knowledge. Switch any model.**
11
+
12
+ **모델은 바꿔도, 지식은 남는 로컬 AI 브레인.**
13
+
14
+ Lattice AI is a local-first Digital Brain for your conversations, documents,
15
+ decisions, project history, relationships, and workflows. It is not a ChatGPT
16
+ clone, a model launcher, a graph database, or a note app. The model is the voice
17
+ you use today. The Brain is the durable asset you keep.
18
+
19
+ Use Lattice AI when you want to:
20
+
21
+ - remember project decisions across weeks or months and see the source later;
22
+ - preserve context when switching between local, cloud, or future models;
23
+ - connect documents, conversations, files, notes, and decisions into one Brain;
24
+ - export, backup, inspect, verify, and move the Brain as an encrypted
25
+ `.latticebrain` archive;
26
+ - avoid cloud lock-in and keep knowledge local by default;
27
+ - get an honest unavailable state instead of a fake answer when no model or
28
+ evidence is available.
29
+
30
+ By default, Lattice binds to localhost, stores the Brain on your machine, keeps
31
+ model downloads and cloud calls behind explicit consent, and separates normal
32
+ Brain use from the Admin Console. Korean and English UI copy share the same
33
+ underlying Brain, so language preference changes the interface, not your data.
25
34
 
26
35
  External package registries are owner-published and can lag behind this GitHub
27
- Release. Release uploads must use the exact v5.0.0 artifact filenames below.
36
+ Release. Release uploads must use the exact v5.2.0 artifact filenames below.
37
+
38
+ **5.2.0 major update**: Structured model capability registry + automated HF
39
+ verification (scripts/verify_hf_model_registry.py) + expanded modern multimodal
40
+ candidates. User-facing recommendations are narrowed to current load-ready
41
+ families; registry-only candidates stay visible for verification transparency
42
+ until config/tokenizer/load readiness is confirmed. Frontend now shows verified
43
+ status, modality badges, hardware fit notes, and explicit download/load
44
+ strategies before consent. See RELEASE.md and docs/CHANGELOG.md.
28
45
 
29
46
  ## Living Brain Flow
30
47
 
@@ -33,17 +50,17 @@ Release. Release uploads must use the exact v5.0.0 artifact filenames below.
33
50
  First launch opens to Login only. The local profile is the beginning of the
34
51
  Brain, not a dashboard, graph, or setup grid. The first screen frames Lattice as
35
52
  a durable knowledge home where models are replaceable and ownership stays with
36
- the user. v5.0.0 also prevents an email typo or wrong saved-user password from
37
- silently creating a new empty Brain.
53
+ the user. v5.2.0 adds a transparent verified model registry, load-ready catalog,
54
+ and workspace-scoped marketplace install state.
38
55
 
39
- ![Login](output/release/v5.0.0/screenshots/01-login.png)
56
+ ![Login](output/release/v5.2.0/screenshots/01-login.png)
40
57
 
41
58
  ### 2. Environment Analysis
42
59
 
43
60
  Lattice reads the machine locally and summarizes what kind of Brain this
44
61
  computer can support.
45
62
 
46
- ![Environment Analysis](output/release/v5.0.0/screenshots/02-environment-analysis.png)
63
+ ![Environment Analysis](output/release/v5.2.0/screenshots/02-environment-analysis.png)
47
64
 
48
65
  ### 3. Recommended Models
49
66
 
@@ -51,7 +68,7 @@ The model step is a short recommendation list. It avoids catalog noise and keeps
51
68
  runtime/install details behind clear user consent. Users who do not know which
52
69
  model to choose can start with the recommended model in one click.
53
70
 
54
- ![Recommended Models](output/release/v5.0.0/screenshots/03-recommended-models.png)
71
+ ![Recommended Models](output/release/v5.2.0/screenshots/03-recommended-models.png)
55
72
 
56
73
  ### 4. Install And Load
57
74
 
@@ -60,7 +77,7 @@ and load progress. No model download or runtime install starts silently, and the
60
77
  screen explains that large downloads may take minutes without inventing fake ETA
61
78
  data.
62
79
 
63
- ![Install and Load](output/release/v5.0.0/screenshots/04-install-load-progress.png)
80
+ ![Install and Load](output/release/v5.2.0/screenshots/04-install-load-progress.png)
64
81
 
65
82
  ### 5. Brain Chat
66
83
 
@@ -69,7 +86,7 @@ stays present while the user types, recalls context, and receives responses. The
69
86
  home now includes a compact Brain overview for recent memories, older memories,
70
87
  and major topics, plus saved-to-memory feedback after chat.
71
88
 
72
- ![Brain Chat Home](output/release/v5.0.0/screenshots/05-brain-chat-home.png)
89
+ ![Brain Chat Home](output/release/v5.2.0/screenshots/05-brain-chat-home.png)
73
90
 
74
91
  ## Brain Depths
75
92
 
@@ -78,26 +95,26 @@ while revealing more structure.
78
95
 
79
96
  | Depth | Experience | Evidence |
80
97
  | --- | --- | --- |
81
- | Level 1 | Living Brain presence | ![Living Brain Level 1](output/release/v5.0.0/screenshots/06-living-brain-level-1.png) |
82
- | Level 2 | Memory Layer | ![Memory Layer](output/release/v5.0.0/screenshots/07-memory-layer.png) |
83
- | Level 3 | Knowledge Layer | ![Knowledge Layer](output/release/v5.0.0/screenshots/08-knowledge-layer.png) |
84
- | Level 4 | Relationship Layer | ![Relationship Layer](output/release/v5.0.0/screenshots/09-relationship-layer.png) |
85
- | Level 5 | Knowledge Graph with nodes, edges, search, and focus detail | ![Knowledge Graph Layer](output/release/v5.0.0/screenshots/10-knowledge-graph-layer.png) |
98
+ | Level 1 | Living Brain presence | ![Living Brain Level 1](output/release/v5.2.0/screenshots/06-living-brain-level-1.png) |
99
+ | Level 2 | Memory Layer | ![Memory Layer](output/release/v5.2.0/screenshots/07-memory-layer.png) |
100
+ | Level 3 | Knowledge Layer | ![Knowledge Layer](output/release/v5.2.0/screenshots/08-knowledge-layer.png) |
101
+ | Level 4 | Relationship Layer | ![Relationship Layer](output/release/v5.2.0/screenshots/09-relationship-layer.png) |
102
+ | Level 5 | Knowledge Graph with nodes, edges, search, and focus detail | ![Knowledge Graph Layer](output/release/v5.2.0/screenshots/10-knowledge-graph-layer.png) |
86
103
 
87
104
  Walkthrough:
88
105
 
89
- ![v5.0.0 Living Brain walkthrough](output/release/v5.0.0/gifs/v5.0.0-living-brain-walkthrough.gif)
106
+ ![v5.2.0 Living Brain walkthrough](output/release/v5.2.0/gifs/v5.2.0-living-brain-walkthrough.gif)
90
107
 
91
108
  Model setup status evidence:
92
109
 
93
- ![Model setup status](output/release/v5.0.0/screenshots/11-model-setup-status.png)
110
+ ![Model setup status](output/release/v5.2.0/screenshots/11-model-setup-status.png)
94
111
 
95
112
  Separate admin console evidence:
96
113
 
97
- ![Admin Console](output/release/v5.0.0/screenshots/12-admin-console.png)
114
+ ![Admin Console](output/release/v5.2.0/screenshots/12-admin-console.png)
98
115
 
99
116
  Screenshot index and capture notes:
100
- [output/release/v5.0.0/SCREENSHOT_INDEX.md](output/release/v5.0.0/SCREENSHOT_INDEX.md)
117
+ [output/release/v5.2.0/SCREENSHOT_INDEX.md](output/release/v5.2.0/SCREENSHOT_INDEX.md)
101
118
 
102
119
  ## Architecture At A Glance
103
120
 
@@ -127,7 +144,7 @@ Screenshot index and capture notes:
127
144
  rebuild controls live under the separate `#/admin` console. Admin history,
128
145
  audit, stats, and sensitivity reads honor the active workspace when present.
129
146
 
130
- See [ARCHITECTURE.md](ARCHITECTURE.md) for the detailed v5.0.0 architecture.
147
+ See [ARCHITECTURE.md](ARCHITECTURE.md) for the detailed v5.2.0 architecture.
131
148
 
132
149
  ## Installation
133
150
 
@@ -159,15 +176,17 @@ pip install "ltcai[local]"
159
176
 
160
177
  ## Release Artifacts
161
178
 
162
- Validated v5.0.0 artifacts:
179
+ Validated 5.2.0 artifacts (current release):
163
180
 
164
- - `dist/ltcai-5.0.0-py3-none-any.whl`
165
- - `dist/ltcai-5.0.0.tar.gz`
166
- - `ltcai-5.0.0.tgz`
167
- - `dist/ltcai-5.0.0.vsix`
168
- - `src-tauri/target/release/bundle/dmg/Lattice AI_5.0.0_aarch64.dmg`
181
+ - `dist/ltcai-5.2.0-py3-none-any.whl`
182
+ - `dist/ltcai-5.2.0.tar.gz`
183
+ - `ltcai-5.2.0.tgz`
184
+ - `dist/ltcai-5.2.0.vsix`
185
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_5.2.0_aarch64.dmg`
169
186
 
170
- Attach only those exact files to the GitHub Release. Do not upload `dist/*`.
187
+ Attach only those exact files to the GitHub Release. Do not upload a wildcard
188
+ from the `dist` directory. Historical artifact references in release history are
189
+ intentionally preserved.
171
190
 
172
191
  ## Local Development
173
192
 
@@ -194,7 +213,7 @@ npm run test:unit
194
213
  npm run test:integration
195
214
  npm run test:visual
196
215
  npm run desktop:tauri:check
197
- node scripts/run_python.mjs scripts/wheel_smoke.py --wheel dist/ltcai-5.0.0-py3-none-any.whl
216
+ node scripts/run_python.mjs scripts/wheel_smoke.py --wheel dist/ltcai-5.2.0-py3-none-any.whl
198
217
  npm pack --dry-run
199
218
  npm run docs:check-links
200
219
  ```
@@ -210,13 +229,14 @@ npm run docs:check-links
210
229
  - Agent/workflow simulation without a loaded LLM is deterministic and does not call a model.
211
230
  It is labeled as LLM-free/model-free rather than presented as autonomous model
212
231
  success.
213
- - Historical artifacts can remain in `dist/`; uploads must use exact v5.0.0
232
+ - Historical artifacts can remain in `dist/`; uploads must use exact target version (e.g. 5.2.0)
214
233
  filenames.
215
234
 
216
235
  ## Release History
217
236
 
218
237
  | Version | Theme |
219
238
  | --- | --- |
239
+ | 5.1.0 | Product Trust & Clarity Release: clarifies the private AI memory-layer promise, hardens CSP/secret/auto-read/download gates, adds trust/privacy docs, and refreshes v5.1.0 evidence |
220
240
  | 5.0.0 | Multilingual Brain Foundation Release: adds persisted Korean/English language choice across first-run onboarding, Brain home, graph exploration, and Admin Console while preserving the v4 runtime foundations |
221
241
  | 4.7.2 | Intuitive Brain UX Release: safer login, one-click recommended setup, direct Brain views, memory-save feedback, and exact v4.7.2 artifacts |
222
242
  | 4.7.0 | Admin Separation Release: added the separate Admin Console for users/logs/security/Brain operations, refreshed screenshots/GIFs, synchronized release docs, and built exact v4.7.0 artifacts |
@@ -224,32 +244,32 @@ npm run docs:check-links
224
244
  | 4.6.0 | Living Brain Experience: made Brain plus conversation the home product, added an animated living Brain presence, and moved graph exploration to the deepest intentional layer |
225
245
  | 4.5.1 | Product Reimagining RC: replaced the desktop shell, navigation model, onboarding journey, first-viewport hierarchy, and visual system while preserving capabilities and local-first architecture |
226
246
  | 4.5.0 | Product Experience Recovery RC: restored first-run setup, workspace/model onboarding, explicit model install/download/validate/load flow, Gemma 4 runtime compatibility gating, Basic-mode polish, and graph discoverability |
227
- | 4.4.0 | Brain Engine Extraction: Brain Core physically moved into `lattice_brain` with isolation tests |
228
- | 4.3.3 | Dead-Code Cleanup Release |
229
- | 4.3.2 | Product Polish & Graph UX Overhaul RC |
230
- | 4.3.1 | End-User Audit Repair RC |
231
- | 4.3.0 | Portability & Product Hardening RC |
232
- | 4.2.0 | Brain Core & Storage Rebuild |
233
- | 4.1.0 | Frontend & Desktop Rebuild |
234
- | 4.0.1 | Digital Brain maintenance |
235
- | 4.0.0 | Digital Brain Platform foundation |
236
- | 3.0.0 | v3 local-first AI workspace platform |
237
247
 
238
248
  ## Current Documentation
239
249
 
240
- - [ARCHITECTURE.md](ARCHITECTURE.md) - v5.0.0 architecture.
250
+ - [ARCHITECTURE.md](ARCHITECTURE.md) - v5.2.0 architecture.
251
+ - [docs/WHY_LATTICE.md](docs/WHY_LATTICE.md) - why Lattice AI exists.
252
+ - [docs/TRUST_MODEL.md](docs/TRUST_MODEL.md) - local-first trust model.
253
+ - [PRIVACY.md](PRIVACY.md) - privacy and external communication policy.
241
254
  - [docs/PRODUCT_DIRECTION_REVIEW.md](docs/PRODUCT_DIRECTION_REVIEW.md) -
242
255
  Brain-first product direction review.
243
256
  - [FEATURE_STATUS.md](FEATURE_STATUS.md) - current feature status and historical
244
257
  status ledger.
245
258
  - [RELEASE_NOTES.md](RELEASE_NOTES.md) - release notes index.
246
- - [RELEASE_NOTES_v5.0.0.md](RELEASE_NOTES_v5.0.0.md) - v5.0.0 intuitive Brain UX release notes.
259
+ - [RELEASE.md](RELEASE.md) - current v5.2.0 release notes and historical release history.
260
+ - [RELEASE_NOTES_v5.2.0.md](RELEASE_NOTES_v5.2.0.md) - v5.2.0 user-focused model transformation release notes.
261
+ - [RELEASE_NOTES_v5.0.0.md](RELEASE_NOTES_v5.0.0.md) - v5.0.0 multilingual foundation history.
262
+ - [RELEASE_NOTES_v4.7.2.md](RELEASE_NOTES_v4.7.2.md) - v4.7.2 intuitive Brain UX history.
263
+ - [RELEASE_NOTES_v4.7.1.md](RELEASE_NOTES_v4.7.1.md) - v4.7.1 admin operations history.
264
+ - [RELEASE_NOTES_v4.7.0.md](RELEASE_NOTES_v4.7.0.md) - v4.7.0 admin separation history.
247
265
  - [RELEASE_NOTES_v4.6.1.md](RELEASE_NOTES_v4.6.1.md) - v4.6.1 release refresh history.
248
266
  - [RELEASE_NOTES_v4.6.0.md](RELEASE_NOTES_v4.6.0.md) - v4.6.0 Living Brain history.
267
+ - [RELEASE_NOTES_v4.5.1.md](RELEASE_NOTES_v4.5.1.md) - v4.5.1 product reimagining history.
268
+ - [RELEASE_NOTES_v4.5.0.md](RELEASE_NOTES_v4.5.0.md) - v4.5.0 product recovery history.
249
269
  - [RELEASE.md](RELEASE.md) - release checklist and exact artifact guidance.
250
270
  - [SECURITY.md](SECURITY.md) - security posture.
251
271
  - [docs/CHANGELOG.md](docs/CHANGELOG.md) - changelog.
252
- - [docs/V4_7_1_ADMIN_OPERATIONS_REPORT.md](docs/V4_7_1_ADMIN_OPERATIONS_REPORT.md) - v5.0.0 admin operations report.
272
+ - [docs/V4_7_1_ADMIN_OPERATIONS_REPORT.md](docs/V4_7_1_ADMIN_OPERATIONS_REPORT.md) - v4.7.1 admin operations history.
253
273
  - [docs/V4_7_0_ADMIN_SEPARATION_REPORT.md](docs/V4_7_0_ADMIN_SEPARATION_REPORT.md) - v4.7.0 admin separation history.
254
274
  - [docs/V4_6_1_RELEASE_REFRESH_REPORT.md](docs/V4_6_1_RELEASE_REFRESH_REPORT.md) - v4.6.1 release refresh report.
255
275
  - [docs/V4_6_0_LIVING_BRAIN_EXPERIENCE_REPORT.md](docs/V4_6_0_LIVING_BRAIN_EXPERIENCE_REPORT.md) - v4.6.0 Living Brain design notes.