ltcai 5.2.0 → 5.3.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.
package/README.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Lattice AI
2
2
 
3
+ **Lattice AI is a local-first Digital Brain that keeps your knowledge durable across any AI model.**
4
+
5
+ **Lattice AI는 모델이 바뀌어도 내 지식과 맥락을 보존하는 로컬 우선 AI 브레인입니다.**
6
+
7
+ Your model is the voice you use today. Your Brain is the asset you keep.
8
+ Lattice AI preserves conversations, documents, decisions, project context,
9
+ relationships, and workflows on your computer by default. Cloud models, model
10
+ downloads, update checks, and other external communication happen only after
11
+ explicit consent.
12
+
13
+ It is not a ChatGPT clone, a model launcher, a graph database, or a note app.
14
+ It is a private AI memory layer wrapped in a Living Brain experience.
15
+
3
16
  [![PyPI Version](https://img.shields.io/pypi/v/ltcai?label=PyPI)](https://pypi.org/project/ltcai/)
4
17
  [![npm Version](https://img.shields.io/npm/v/ltcai?label=npm)](https://www.npmjs.com/package/ltcai)
5
18
  [![VS Code Marketplace Version](https://vsmarketplacebadges.dev/version-short/parktaesoo.ltcai.svg)](https://marketplace.visualstudio.com/items?itemName=parktaesoo.ltcai)
@@ -7,146 +20,103 @@
7
20
  [![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
21
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
9
22
 
10
- **Your private AI memory layer. Keep your knowledge. Switch any model.**
23
+ ## Why You Need It
11
24
 
12
- **모델은 바꿔도, 지식은 남는 로컬 AI 브레인.**
25
+ You need Lattice AI when:
13
26
 
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.
27
+ - you ask different AI models about the same project and lose the context each time;
28
+ - your decisions are scattered across chats, notes, PDFs, folders, and tools;
29
+ - you want to switch models without rebuilding memory from zero;
30
+ - you want your AI Brain to stay on your computer by default;
31
+ - you want backup, restore, inspect, and export paths for your Brain.
18
32
 
19
- Use Lattice AI when you want to:
33
+ 이런 사람에게 필요합니다:
20
34
 
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.
35
+ - 매번 AI를 바꿀 때마다 프로젝트 맥락을 다시 설명하는 사람
36
+ - 문서, 대화, 결정, 파일이 여기저기 흩어져 있는 사람
37
+ - 지식을 특정 AI 서비스 안에 묶어두고 싶지 않은 사람
38
+ - 로컬에 저장되는 개인 AI 브레인을 원하는 사람
29
39
 
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.
40
+ ## What You Can Do
34
41
 
35
- External package registries are owner-published and can lag behind this GitHub
36
- Release. Release uploads must use the exact v5.2.0 artifact filenames below.
42
+ - Chat with a Brain that remembers useful context instead of treating every
43
+ session as disposable.
44
+ - Add documents, local folders, notes, screenshots, and conversations with
45
+ source-aware memory.
46
+ - See recent memories, older memories, topics, relationships, and the full
47
+ knowledge graph when you want deeper structure.
48
+ - Use a recommended local model without learning model internals first.
49
+ - Keep advanced controls, audit logs, roles, and retention in a separate Admin
50
+ surface.
51
+ - Export or back up your Brain as an encrypted `.latticebrain` archive.
37
52
 
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.
53
+ ## One-Minute Flow
54
+
55
+ 1. Launch the app.
56
+ 2. Create or open a local profile.
57
+ 3. Let Lattice explain what this computer can run.
58
+ 4. Start with the recommended model, or skip and choose later.
59
+ 5. Talk to your Brain.
60
+ 6. Watch memories, topics, relationships, and graph structure emerge from real use.
61
+ 7. Back up, inspect, export, or restore the Brain when you need ownership actions.
45
62
 
46
63
  ## Living Brain Flow
47
64
 
48
65
  ### 1. Login
49
66
 
50
- First launch opens to Login only. The local profile is the beginning of the
51
- Brain, not a dashboard, graph, or setup grid. The first screen frames Lattice as
52
- a durable knowledge home where models are replaceable and ownership stays with
53
- the user. v5.2.0 adds a transparent verified model registry, load-ready catalog,
54
- and workspace-scoped marketplace install state.
67
+ Choose the owner of the Brain. The profile is not a SaaS account by default; it
68
+ is the local identity for the knowledge you keep.
55
69
 
56
- ![Login](output/release/v5.2.0/screenshots/01-login.png)
70
+ ![Login](output/release/v5.3.0/screenshots/01-login.png)
57
71
 
58
72
  ### 2. Environment Analysis
59
73
 
60
- Lattice reads the machine locally and summarizes what kind of Brain this
61
- computer can support.
74
+ See what kind of local AI experience this computer can support before choosing a
75
+ model.
62
76
 
63
- ![Environment Analysis](output/release/v5.2.0/screenshots/02-environment-analysis.png)
77
+ ![Environment Analysis](output/release/v5.3.0/screenshots/02-environment-analysis.png)
64
78
 
65
79
  ### 3. Recommended Models
66
80
 
67
- The model step is a short recommendation list. It avoids catalog noise and keeps
68
- runtime/install details behind clear user consent. Users who do not know which
69
- model to choose can start with the recommended model in one click.
81
+ Start with a short list: safest recommendation, faster model, stronger model.
82
+ Advanced details stay available without overwhelming first-time users.
70
83
 
71
- ![Recommended Models](output/release/v5.2.0/screenshots/03-recommended-models.png)
84
+ ![Recommended Models](output/release/v5.3.0/screenshots/03-recommended-models.png)
72
85
 
73
86
  ### 4. Install And Load
74
87
 
75
- The install screen keeps consent visible and shows install, download, validate,
76
- and load progress. No model download or runtime install starts silently, and the
77
- screen explains that large downloads may take minutes without inventing fake ETA
78
- data.
88
+ Download and load only after consent. Lattice explains model size, local
89
+ execution, and network use before work starts.
79
90
 
80
- ![Install and Load](output/release/v5.2.0/screenshots/04-install-load-progress.png)
91
+ ![Install and Load](output/release/v5.3.0/screenshots/04-install-load-progress.png)
81
92
 
82
93
  ### 5. Brain Chat
83
94
 
84
- After setup, the home experience is the living Brain plus conversation. The Brain
85
- stays present while the user types, recalls context, and receives responses. The
86
- home now includes a compact Brain overview for recent memories, older memories,
87
- and major topics, plus saved-to-memory feedback after chat.
95
+ Talk normally. Useful decisions and context become memory, then appear later as
96
+ topics, relationships, and graph structure.
88
97
 
89
- ![Brain Chat Home](output/release/v5.2.0/screenshots/05-brain-chat-home.png)
98
+ ![Brain Chat Home](output/release/v5.3.0/screenshots/05-brain-chat-home.png)
90
99
 
91
100
  ## Brain Depths
92
101
 
93
- The user travels inward through the Brain. Each depth keeps conversation nearby
94
- while revealing more structure.
102
+ The user travels inward from everyday memory to deeper structure:
95
103
 
96
- | Depth | Experience | Evidence |
104
+ | Level | User name | What the user gets |
97
105
  | --- | --- | --- |
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) |
106
+ | Level 1 | Now memory | The living Brain presence and current conversation context |
107
+ | Level 2 | Older memory | Durable memories with source-aware recall |
108
+ | Level 3 | Topics | Recurring themes across chats and documents |
109
+ | Level 4 | Relationships | How decisions, people, files, and ideas connect |
110
+ | Level 5 | Full knowledge graph | Nodes, edges, search, and focused detail for advanced exploration |
103
111
 
104
112
  Walkthrough:
105
113
 
106
- ![v5.2.0 Living Brain walkthrough](output/release/v5.2.0/gifs/v5.2.0-living-brain-walkthrough.gif)
107
-
108
- Model setup status evidence:
109
-
110
- ![Model setup status](output/release/v5.2.0/screenshots/11-model-setup-status.png)
111
-
112
- Separate admin console evidence:
113
-
114
- ![Admin Console](output/release/v5.2.0/screenshots/12-admin-console.png)
114
+ ![v5.3.0 Living Brain walkthrough](output/release/v5.3.0/gifs/v5.3.0-living-brain-walkthrough.gif)
115
115
 
116
116
  Screenshot index and capture notes:
117
- [output/release/v5.2.0/SCREENSHOT_INDEX.md](output/release/v5.2.0/SCREENSHOT_INDEX.md)
118
-
119
- ## Architecture At A Glance
117
+ [output/release/v5.3.0/SCREENSHOT_INDEX.md](output/release/v5.3.0/SCREENSHOT_INDEX.md)
120
118
 
121
- - **Desktop shell**: Tauri 2 is the release desktop shell and starts the
122
- localhost sidecar.
123
- - **Frontend**: React, TypeScript, Vite, TanStack Query, Zustand, Cytoscape.js,
124
- React Flow, Tailwind/shadcn-style primitives, and generated OpenAPI types.
125
- - **Backend**: FastAPI on localhost is the UI source of truth.
126
- - **Brain Core**: independent `lattice_brain` package for graph, memory,
127
- context, conversations, ingestion, runtime, workflow, storage, and
128
- portability. Isolation tests prevent `lattice_brain` from importing
129
- `latticeai`.
130
- - **Storage**: `StorageEngine` abstraction with SQLite default and optional
131
- PostgreSQL/pgvector scale mode.
132
- - **Portability**: encrypted `.latticebrain` archives plus backup, restore,
133
- inspect, verify, import dry-run, and confirmed restore/import flows. The
134
- Brain home keeps conversation first and surfaces the everyday "Care for my
135
- Brain" ownership path as a collapsed control with export, backup, archive,
136
- inspect, and restore preview actions while keeping destructive confirmed
137
- restore in Settings. Restore operations create pre-restore backups and roll
138
- back failed DB/blob swaps so the current Brain is not left half-restored.
139
- - **Privacy**: local-first and private-first by default. Cloud models, Telegram,
140
- Brain Network, Docker/Postgres setup, model downloads, and update checks are
141
- opt-in paths.
142
- - **Admin separation**: user chat and Brain ownership stay in the main Brain
143
- surface; user directory, audit logs, security events, policies, and index
144
- rebuild controls live under the separate `#/admin` console. Admin history,
145
- audit, stats, and sensitivity reads honor the active workspace when present.
146
-
147
- See [ARCHITECTURE.md](ARCHITECTURE.md) for the detailed v5.2.0 architecture.
148
-
149
- ## Installation
119
+ ## Install
150
120
 
151
121
  Run from Python:
152
122
 
@@ -174,19 +144,27 @@ Apple Silicon local model extras:
174
144
  pip install "ltcai[local]"
175
145
  ```
176
146
 
177
- ## Release Artifacts
178
-
179
- Validated 5.2.0 artifacts (current release):
147
+ ## Architecture At A Glance
180
148
 
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`
149
+ - **Product category**: local-first Digital Brain.
150
+ - **Core capability**: private AI memory layer for conversations, documents,
151
+ decisions, relationships, workflows, and project context.
152
+ - **UX metaphor**: Living Brain.
153
+ - **Desktop shell**: Tauri 2 starts a localhost sidecar.
154
+ - **Frontend**: React, TypeScript, Vite, TanStack Query, Zustand, Cytoscape.js,
155
+ React Flow, and generated OpenAPI types.
156
+ - **Backend**: FastAPI on localhost is the UI source of truth.
157
+ - **Brain Core**: independent `lattice_brain` package for graph, memory,
158
+ context, conversations, ingestion, runtime, workflow, storage, and portability.
159
+ - **Storage**: SQLite default; PostgreSQL/pgvector is optional scale mode.
160
+ - **Portability**: encrypted `.latticebrain` archives plus backup, restore,
161
+ inspect, verify, import dry-run, and confirmed restore/import flows.
162
+ - **Trust boundary**: local-first by default; cloud calls, downloads, Telegram,
163
+ Brain Network, Docker/Postgres setup, and update checks are opt-in.
164
+ - **Admin separation**: normal Brain use stays separate from users, audit logs,
165
+ policies, security events, retention, and index rebuilds.
186
166
 
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.
167
+ See [ARCHITECTURE.md](ARCHITECTURE.md) for the current architecture.
190
168
 
191
169
  ## Local Development
192
170
 
@@ -195,13 +173,6 @@ npm install
195
173
  npm run dev
196
174
  ```
197
175
 
198
- Build and validate release artifacts:
199
-
200
- ```bash
201
- npm run release:artifacts
202
- npm run release:validate
203
- ```
204
-
205
176
  Main validation set:
206
177
 
207
178
  ```bash
@@ -213,66 +184,73 @@ npm run test:unit
213
184
  npm run test:integration
214
185
  npm run test:visual
215
186
  npm run desktop:tauri:check
216
- node scripts/run_python.mjs scripts/wheel_smoke.py --wheel dist/ltcai-5.2.0-py3-none-any.whl
217
- npm pack --dry-run
218
187
  npm run docs:check-links
219
188
  ```
220
189
 
190
+ See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for developer workflow details.
191
+
192
+ ## Current Release Preparation
193
+
194
+ The current development target is **5.3.0 Product Clarity and Runtime Cleanup**:
195
+
196
+ - README and first-run copy are organized around the local-first Digital Brain.
197
+ - Product descriptions are aligned across package metadata, architecture docs,
198
+ feature status, release notes, and extension metadata.
199
+ - Release artifacts and exact filenames are kept in the release section instead
200
+ of interrupting the product introduction.
201
+ - `app_factory.py` is being thinned by moving config, security, and Brain runtime
202
+ assembly seams into `latticeai.runtime`.
203
+ - Legacy root modules are documented in
204
+ [docs/LEGACY_COMPATIBILITY.md](docs/LEGACY_COMPATIBILITY.md).
205
+
206
+ Expected artifacts for a future 5.3.0 release must use exact filenames:
207
+
208
+ - `dist/ltcai-5.3.0-py3-none-any.whl`
209
+ - `dist/ltcai-5.3.0.tar.gz`
210
+ - `ltcai-5.3.0.tgz`
211
+ - `dist/ltcai-5.3.0.vsix`
212
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_5.3.0_aarch64.dmg`
213
+
214
+ Do not upload `dist/*`. Package registry publishing remains owner-run.
215
+
221
216
  ## Known Limitations
222
217
 
223
- - External package registries are owner-published and can lag behind the GitHub
224
- Release.
225
- - PostgreSQL/pgvector is optional scale mode. SQLite is the default local brain.
226
- - Docker, model downloads, cloud model calls, Telegram, Brain Network, and
227
- update checks require explicit user action.
218
+ - External package registries are owner-published and can lag behind GitHub.
219
+ - PostgreSQL/pgvector is optional scale mode. SQLite is the default local Brain.
220
+ - Docker, model downloads, cloud model calls, Telegram, Brain Network, and update
221
+ checks require explicit user action.
228
222
  - Conversation does not fabricate answers when no model is loaded.
229
- - Agent/workflow simulation without a loaded LLM is deterministic and does not call a model.
230
- It is labeled as LLM-free/model-free rather than presented as autonomous model
231
- success.
232
- - Historical artifacts can remain in `dist/`; uploads must use exact target version (e.g. 5.2.0)
233
- filenames.
223
+ - Agent/workflow simulation without a loaded LLM is deterministic and does not
224
+ call a model; it is labeled as LLM-free/model-free rather than presented as
225
+ autonomous model success.
234
226
 
235
227
  ## Release History
236
228
 
237
229
  | Version | Theme |
238
230
  | --- | --- |
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 |
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 |
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 |
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 |
243
- | 4.6.1 | Living Brain Release Refresh: publishable version bump after v4.6.0 PyPI immutability, refreshed README/screenshots/GIFs, synchronized release docs, and exact v4.6.1 artifacts |
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 |
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 |
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 |
247
-
248
- ## Current Documentation
249
-
250
- - [ARCHITECTURE.md](ARCHITECTURE.md) - v5.2.0 architecture.
251
- - [docs/WHY_LATTICE.md](docs/WHY_LATTICE.md) - why Lattice AI exists.
231
+ | 5.3.0 | Product Clarity and Runtime Cleanup: user-first README/onboarding, unified Digital Brain identity, legacy compatibility map, and app factory runtime seams |
232
+ | 5.2.0 | User-Focused Model Transformation: structured model capability registry, HF verification transparency, model recommendation UX, and workspace-scoped marketplace state |
233
+ | 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 evidence |
234
+ | 5.0.0 | Multilingual Brain Foundation Release: adds persisted Korean/English language choice across first-run onboarding, Brain home, graph exploration, and Admin Console |
235
+ | 4.7.2 | Intuitive Brain UX Release: safer login, one-click recommended setup, direct Brain views, memory-save feedback, and exact artifacts |
236
+ | 4.7.0 | Admin Separation Release: adds the separate Admin Console for users/logs/security/Brain operations |
237
+ | 4.6.1 | Living Brain Release Refresh: publishable version bump after v4.6.0 PyPI immutability |
238
+ | 4.6.0 | Living Brain Experience: made Brain plus conversation the home product |
239
+ | 4.5.1 | Product Reimagining RC: reset shell, navigation, onboarding, and visual system |
240
+ | 4.5.0 | Product Experience Recovery RC: restored first-run setup, workspace/model onboarding, and graph discoverability |
241
+
242
+ ## Documentation
243
+
244
+ - [docs/WHY_LATTICE.md](docs/WHY_LATTICE.md) - product philosophy.
252
245
  - [docs/TRUST_MODEL.md](docs/TRUST_MODEL.md) - local-first trust model.
253
246
  - [PRIVACY.md](PRIVACY.md) - privacy and external communication policy.
254
- - [docs/PRODUCT_DIRECTION_REVIEW.md](docs/PRODUCT_DIRECTION_REVIEW.md) -
255
- Brain-first product direction review.
256
- - [FEATURE_STATUS.md](FEATURE_STATUS.md) - current feature status and historical
257
- status ledger.
258
- - [RELEASE_NOTES.md](RELEASE_NOTES.md) - release notes index.
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.
265
- - [RELEASE_NOTES_v4.6.1.md](RELEASE_NOTES_v4.6.1.md) - v4.6.1 release refresh history.
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.
269
- - [RELEASE.md](RELEASE.md) - release checklist and exact artifact guidance.
247
+ - [ARCHITECTURE.md](ARCHITECTURE.md) - current technical architecture.
248
+ - [FEATURE_STATUS.md](FEATURE_STATUS.md) - current feature status and known limitations.
249
+ - [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) - developer workflow.
250
+ - [docs/LEGACY_COMPATIBILITY.md](docs/LEGACY_COMPATIBILITY.md) - root legacy shim map.
251
+ - [RELEASE.md](RELEASE.md) - release guide and current release notes.
252
+ - [docs/CHANGELOG.md](docs/CHANGELOG.md) - historical changes.
270
253
  - [SECURITY.md](SECURITY.md) - security posture.
271
- - [docs/CHANGELOG.md](docs/CHANGELOG.md) - changelog.
272
- - [docs/V4_7_1_ADMIN_OPERATIONS_REPORT.md](docs/V4_7_1_ADMIN_OPERATIONS_REPORT.md) - v4.7.1 admin operations history.
273
- - [docs/V4_7_0_ADMIN_SEPARATION_REPORT.md](docs/V4_7_0_ADMIN_SEPARATION_REPORT.md) - v4.7.0 admin separation history.
274
- - [docs/V4_6_1_RELEASE_REFRESH_REPORT.md](docs/V4_6_1_RELEASE_REFRESH_REPORT.md) - v4.6.1 release refresh report.
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.
276
254
 
277
255
  ## License
278
256
 
package/docs/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  The top entry is the current release-preparation target. Older entries are
4
4
  historical and may describe behavior as it existed at that release.
5
5
 
6
+ ## [5.3.0] - 2026-06-14
7
+
8
+ > Product Clarity and Runtime Cleanup. Lattice AI is now presented consistently
9
+ > as a local-first Digital Brain that keeps user knowledge durable across any AI
10
+ > model, while the first runtime extraction seams move out of `app_factory.py`.
11
+
12
+ ### Added
13
+ - `docs/DEVELOPMENT.md` for contributor setup, validation gates, runtime
14
+ assembly expectations, and documentation sync rules.
15
+ - `docs/LEGACY_COMPATIBILITY.md` to explain root compatibility modules, their
16
+ current homes, why they remain packaged, and the safe removal checklist.
17
+ - v5.3.0 release evidence index and copied screenshot/GIF paths under
18
+ `output/release/v5.3.0/`.
19
+
20
+ ### Changed
21
+ - Reorganized README around product identity, user need, user actions,
22
+ one-minute flow, screenshots, installation, architecture, and release
23
+ preparation. Release artifacts no longer interrupt the first screen.
24
+ - Unified public descriptions in README, package metadata, pyproject, feature
25
+ status, architecture, release notes, and VS Code extension docs.
26
+ - Improved onboarding and model setup copy around local ownership, explicit
27
+ consent, model-as-voice, Brain-as-asset, and what happens before download/load.
28
+ - Simplified Basic model setup to a shorter recommendation set while Advanced
29
+ keeps hardware, verification, load strategy, license, and safety detail.
30
+ - Moved config, security, and Brain runtime builders from `latticeai.app_factory`
31
+ into `latticeai.runtime` modules while preserving lazy import compatibility.
32
+ - Bumped synchronized package/runtime/static versions to `5.3.0`.
33
+
34
+ ### Preserved
35
+ - No package registry publishing automation.
36
+ - Local-first defaults and explicit consent gates for downloads, cloud calls,
37
+ Telegram, Brain Network, Docker/Postgres setup, and update checks.
38
+ - `server_app.__getattr__` lazy compatibility and app factory import side-effect
39
+ boundaries.
40
+
6
41
  ## [5.2.0] - 2026-06-14
7
42
 
8
43
  > Lattice AI 5.2.0 — Aggressive User-Focused Model Transformation. Transparent
@@ -22,6 +57,7 @@ historical and may describe behavior as it existed at that release.
22
57
  - `model_recommendation.py` `_classify_one` now forwards 5.2 fields (hf_repo, verification, hardware, load_strategy, license, safety, recommended_default).
23
58
  - `verification.verified` and verified-model API lists now require HF presence plus config and tokenizer hints, with weights-hint detail exposed separately, so the UI badge matches the actual load-readiness contract.
24
59
  - Marketplace template installs now keep registry entries scoped per workspace, and `/marketplace/templates/registry` returns only the authorized workspace scope.
60
+ - SQLite restore now checkpoints WAL state before taking the pre-restore backup, keeping failed blob restores rollback-safe on Linux/Python 3.12 CI and local builds.
25
61
  - Backend model APIs return rich fields; frontend can render verified badges, modality, hardware notes, strategies.
26
62
  - Library.tsx (ModelsPanel): added "multimodal" + "✓ HF" verified badges, recommended_default support, hardware notes line, load_strategy plus license/safety notes in advanced detail, updated guided setup copy for transparency and consent.
27
63
  - All registry HF ids confirmed present via HF API on 2026-06-14; 15/16 expose config/tokenizer hints, Pixtral remains available-but-not-local-load-verified, and large models are flagged with explicit limitations.
@@ -0,0 +1,99 @@
1
+ # Lattice AI Development
2
+
3
+ This document is for contributors working on the local-first Digital Brain
4
+ codebase. Product positioning and quick start stay in `README.md`; release
5
+ history stays in `docs/CHANGELOG.md` and `RELEASE.md`.
6
+
7
+ ## Product Contract
8
+
9
+ Lattice AI is a local-first Digital Brain that keeps your knowledge durable
10
+ across any AI model.
11
+
12
+ Engineering work should preserve these boundaries:
13
+
14
+ - the Brain is the durable asset;
15
+ - models are replaceable voices;
16
+ - SQLite is the default local store;
17
+ - PostgreSQL, Docker, cloud models, downloads, update checks, Telegram, and
18
+ Brain Network are opt-in;
19
+ - import-only paths must not initialize MLX/GPU, write files, or make network
20
+ calls;
21
+ - normal Brain use must stay separate from Admin/operator controls.
22
+
23
+ ## Local Setup
24
+
25
+ ```bash
26
+ npm install
27
+ npm run dev
28
+ ```
29
+
30
+ The local app is served through the FastAPI sidecar at:
31
+
32
+ ```text
33
+ http://127.0.0.1:4825/app
34
+ ```
35
+
36
+ Apple Silicon local model extras:
37
+
38
+ ```bash
39
+ pip install "ltcai[local]"
40
+ ```
41
+
42
+ ## Validation
43
+
44
+ Run the smallest affected gate while iterating. Before committing broad runtime,
45
+ API, UI, or release work, run:
46
+
47
+ ```bash
48
+ npm run check:python
49
+ node scripts/run_python.mjs -m ruff check .
50
+ npm run lint
51
+ npm run typecheck
52
+ npm run test:unit
53
+ npm run docs:check-links
54
+ ```
55
+
56
+ Use these when the change touches the relevant surface:
57
+
58
+ ```bash
59
+ npm run test:integration
60
+ npm run test:visual
61
+ npm run desktop:tauri:check
62
+ npm run release:artifacts
63
+ npm run release:validate
64
+ ```
65
+
66
+ ## Runtime Assembly
67
+
68
+ `latticeai.app_factory` is the composition root. Keep it import-safe:
69
+
70
+ - no MLX/GPU init at module import time;
71
+ - no singleton construction at module import time;
72
+ - no filesystem writes at module import time;
73
+ - no external network calls at module import time.
74
+
75
+ Runtime assembly seams live under `latticeai.runtime`:
76
+
77
+ - `config_runtime.py` derives app config values from `Config`;
78
+ - `security_runtime.py` applies trusted proxy/security-derived settings;
79
+ - `brain_runtime.py` constructs Brain Core and conversation primitives.
80
+
81
+ Future extraction should continue with router assembly, model runtime assembly,
82
+ platform/hooks assembly, static asset serving, and lifespan/startup/shutdown.
83
+
84
+ ## Documentation Sync
85
+
86
+ For user-facing, API, runtime, release, or packaging changes, check:
87
+
88
+ - `README.md`
89
+ - `ARCHITECTURE.md`
90
+ - `FEATURE_STATUS.md`
91
+ - `RELEASE.md`
92
+ - `docs/CHANGELOG.md`
93
+ - `SECURITY.md` when trust/security changes
94
+ - `vscode-extension/README.md` when editor integration changes
95
+ - `docs/LEGACY_COMPATIBILITY.md` when root compatibility files change
96
+
97
+ Release/publish examples must use exact target-version filenames. Do not
98
+ document wildcard upload commands such as `dist/*`.
99
+
@@ -0,0 +1,55 @@
1
+ # Legacy Compatibility Map
2
+
3
+ Lattice AI is moving toward a smaller, modular architecture centered on
4
+ `lattice_brain`, `latticeai.services`, `latticeai.api`, and `latticeai.runtime`.
5
+ Some root-level modules remain packaged for compatibility with older imports,
6
+ CLI entrypoints, or extension workflows. Their presence does not define the
7
+ current architecture.
8
+
9
+ ## Current Policy
10
+
11
+ - Keep compatibility shims while public imports or package entrypoints still
12
+ depend on them.
13
+ - Prefer moving implementation into focused packages before removing a root
14
+ module.
15
+ - Add deprecation notes before removal.
16
+ - Avoid breaking package users during a minor release.
17
+ - Do not silently remove rollback, backup, restore, or migration paths.
18
+
19
+ ## Root Module Map
20
+
21
+ | Legacy root module | Current home / direction | Why it remains |
22
+ | --- | --- | --- |
23
+ | `knowledge_graph.py` | `lattice_brain.graph` / `lattice_brain.knowledge` | Compatibility for older graph imports and historical tooling |
24
+ | `knowledge_graph_api.py` | `latticeai.api.memory`, `latticeai.api.search`, graph-related API routers | Compatibility for older API import paths |
25
+ | `kg_schema.py` | `lattice_brain` storage/schema modules | Compatibility for graph schema references |
26
+ | `auto_setup.py` | setup/model recommendation services | Compatibility for zero-config setup probes and historical auto-setup commands |
27
+ | `llm_router.py` | `latticeai.models.router` | Compatibility for older local model routing imports |
28
+ | `ltcai_cli.py` | package console entrypoint (`ltcai`) | Compatibility for the installed CLI contract |
29
+ | `mcp_registry.py` | `latticeai.core.mcp_registry` and service-backed registries | Compatibility for MCP/skills lookup entrypoints |
30
+ | `local_knowledge_api.py` | `lattice_brain.ingestion`, workspace capture APIs | Compatibility for local folder/file watcher flows |
31
+ | `p_reinforce.py` | gardener/maintenance service direction | Compatibility for existing Brain gardening runtime hooks |
32
+ | `telegram_bot.py` | opt-in integration package or disabled-by-default connector | Compatibility only; Telegram must remain opt-in |
33
+ | `setup_wizard.py` | setup and model recommendation services | Compatibility for first-run recommendation calls |
34
+ | `server.py` | lazy proxy to `latticeai.server_app` / `latticeai.app_factory` | Preserves historical `server.app` imports without import-time construction |
35
+
36
+ ## Packaging Notes
37
+
38
+ `pyproject.toml` and `package.json` still include several root modules because
39
+ older installed packages may import them directly. That is intentional for now.
40
+ The long-term target is:
41
+
42
+ - move implementation into `lattice_brain`, `latticeai.core`, `latticeai.models`,
43
+ `latticeai.services`, or `latticeai.api`;
44
+ - leave thin shims with docstrings/deprecation warnings;
45
+ - remove a shim only after tests prove no supported entrypoint relies on it.
46
+
47
+ ## Removal Checklist
48
+
49
+ Before removing or excluding a legacy module:
50
+
51
+ 1. Search imports in the repository and generated package files.
52
+ 2. Add or update a compatibility test.
53
+ 3. Confirm the package still imports from a fresh non-repo working directory.
54
+ 4. Update `README.md`, `ARCHITECTURE.md`, `FEATURE_STATUS.md`, and this file.
55
+ 5. Run unit tests, package build, and wheel smoke validation.
@@ -1,6 +1,6 @@
1
1
  # Why Lattice AI Exists
2
2
 
3
- **Your private AI memory layer. Keep your knowledge. Switch any model.**
3
+ **Lattice AI is a local-first Digital Brain that keeps your knowledge durable across any AI model.**
4
4
 
5
5
  **모델은 바꿔도, 내 지식은 남는 로컬 AI 브레인.**
6
6
 
@@ -26,7 +26,9 @@ Lattice AI is a local-first private AI memory layer. It keeps conversations,
26
26
  documents, decisions, relationships, and project history in a Brain that belongs
27
27
  to the user. Models can be local, cloud, current, or future. The Brain remains.
28
28
 
29
- The graph is real, but it is not the product identity. Users start with Brain
29
+ The graph is real, but it is not the product identity. Product category is
30
+ local-first Digital Brain; core capability is a private AI memory layer; UX
31
+ metaphor is the Living Brain. Users start with Brain
30
32
  Chat, memory, topics, relationships, ownership, backup, and graph exploration.
31
33
  Advanced admin logs, roles, hooks, workflows, Telegram, Brain Network, Docker,
32
34
  Postgres, and plugin details stay outside the normal user flow.
@@ -51,4 +53,3 @@ Postgres, and plugin details stay outside the normal user flow.
51
53
  - Not a ChatGPT or Claude clone.
52
54
 
53
55
  Lattice AI is for people who want their knowledge to survive model changes.
54
-