ltcai 5.2.0 → 5.4.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 +144 -164
- package/docs/CHANGELOG.md +63 -0
- package/docs/DEVELOPMENT.md +99 -0
- package/docs/LEGACY_COMPATIBILITY.md +55 -0
- package/docs/WHY_LATTICE.md +4 -3
- package/frontend/src/App.tsx +8 -2
- package/frontend/src/api/client.ts +2 -0
- package/frontend/src/components/FirstRunGuide.tsx +5 -5
- package/frontend/src/components/ProductFlow.tsx +1 -1
- package/frontend/src/i18n.ts +40 -40
- package/frontend/src/pages/Act.tsx +82 -1
- package/frontend/src/pages/Library.tsx +18 -6
- package/lattice_brain/__init__.py +1 -1
- package/lattice_brain/archive.py +12 -0
- package/lattice_brain/portability.py +14 -0
- package/lattice_brain/runtime/__init__.py +53 -0
- package/lattice_brain/runtime/agent_runtime.py +7 -0
- package/lattice_brain/runtime/hooks.py +6 -0
- package/lattice_brain/runtime/multi_agent.py +7 -2
- package/latticeai/__init__.py +1 -1
- package/latticeai/api/workflow_designer.py +60 -0
- package/latticeai/app_factory.py +5 -78
- package/latticeai/core/marketplace.py +1 -1
- package/latticeai/core/workspace_os.py +1 -1
- package/latticeai/runtime/__init__.py +2 -0
- package/latticeai/runtime/brain_runtime.py +41 -0
- package/latticeai/runtime/config_runtime.py +36 -0
- package/latticeai/runtime/security_runtime.py +27 -0
- package/latticeai/services/brain_automation.py +214 -0
- package/latticeai/services/model_capability_registry.py +2 -3
- package/latticeai/services/triggers.py +61 -4
- package/package.json +2 -2
- package/scripts/verify_hf_model_registry.py +1 -3
- package/src-tauri/Cargo.lock +1 -1
- package/src-tauri/Cargo.toml +1 -1
- package/src-tauri/tauri.conf.json +1 -1
- package/static/app/asset-manifest.json +5 -5
- package/static/app/assets/index-C7vzwUjU.js +16 -0
- package/static/app/assets/index-C7vzwUjU.js.map +1 -0
- package/static/app/assets/index-HN4f2wbe.css +2 -0
- package/static/app/index.html +2 -2
- package/static/app/assets/index-CQmHhk8Q.css +0 -2
- package/static/app/assets/index-DsnfomFs.js +0 -16
- package/static/app/assets/index-DsnfomFs.js.map +0 -1
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
|
[](https://pypi.org/project/ltcai/)
|
|
4
17
|
[](https://www.npmjs.com/package/ltcai)
|
|
5
18
|
[](https://marketplace.visualstudio.com/items?itemName=parktaesoo.ltcai)
|
|
@@ -7,146 +20,105 @@
|
|
|
7
20
|
[](https://github.com/TaeSooPark-PTS/LatticeAI/actions/workflows/ci.yml)
|
|
8
21
|
[](LICENSE)
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
## Why You Need It
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
You need Lattice AI when:
|
|
13
26
|
|
|
14
|
-
|
|
15
|
-
decisions,
|
|
16
|
-
|
|
17
|
-
you
|
|
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
|
-
|
|
33
|
+
이런 사람에게 필요합니다:
|
|
20
34
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
+
- Create consent-first Brain automation drafts for memory digests, project
|
|
49
|
+
reviews, and follow-up suggestions before any schedule is enabled.
|
|
50
|
+
- Use a recommended local model without learning model internals first.
|
|
51
|
+
- Keep advanced controls, audit logs, roles, and retention in a separate Admin
|
|
52
|
+
surface.
|
|
53
|
+
- Export or back up your Brain as an encrypted `.latticebrain` archive.
|
|
37
54
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
## One-Minute Flow
|
|
56
|
+
|
|
57
|
+
1. Launch the app.
|
|
58
|
+
2. Create or open a local profile.
|
|
59
|
+
3. Let Lattice explain what this computer can run.
|
|
60
|
+
4. Start with the recommended model, or skip and choose later.
|
|
61
|
+
5. Talk to your Brain.
|
|
62
|
+
6. Watch memories, topics, relationships, and graph structure emerge from real use.
|
|
63
|
+
7. Back up, inspect, export, or restore the Brain when you need ownership actions.
|
|
45
64
|
|
|
46
65
|
## Living Brain Flow
|
|
47
66
|
|
|
48
67
|
### 1. Login
|
|
49
68
|
|
|
50
|
-
|
|
51
|
-
|
|
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.
|
|
69
|
+
Choose the owner of the Brain. The profile is not a SaaS account by default; it
|
|
70
|
+
is the local identity for the knowledge you keep.
|
|
55
71
|
|
|
56
|
-

|
|
57
73
|
|
|
58
74
|
### 2. Environment Analysis
|
|
59
75
|
|
|
60
|
-
|
|
61
|
-
|
|
76
|
+
See what kind of local AI experience this computer can support before choosing a
|
|
77
|
+
model.
|
|
62
78
|
|
|
63
|
-

|
|
64
80
|
|
|
65
81
|
### 3. Recommended Models
|
|
66
82
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
model to choose can start with the recommended model in one click.
|
|
83
|
+
Start with a short list: safest recommendation, faster model, stronger model.
|
|
84
|
+
Advanced details stay available without overwhelming first-time users.
|
|
70
85
|
|
|
71
|
-

|
|
72
87
|
|
|
73
88
|
### 4. Install And Load
|
|
74
89
|
|
|
75
|
-
|
|
76
|
-
and
|
|
77
|
-
screen explains that large downloads may take minutes without inventing fake ETA
|
|
78
|
-
data.
|
|
90
|
+
Download and load only after consent. Lattice explains model size, local
|
|
91
|
+
execution, and network use before work starts.
|
|
79
92
|
|
|
80
|
-

|
|
81
94
|
|
|
82
95
|
### 5. Brain Chat
|
|
83
96
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
home now includes a compact Brain overview for recent memories, older memories,
|
|
87
|
-
and major topics, plus saved-to-memory feedback after chat.
|
|
97
|
+
Talk normally. Useful decisions and context become memory, then appear later as
|
|
98
|
+
topics, relationships, and graph structure.
|
|
88
99
|
|
|
89
|
-

|
|
90
101
|
|
|
91
102
|
## Brain Depths
|
|
92
103
|
|
|
93
|
-
The user travels inward
|
|
94
|
-
while revealing more structure.
|
|
104
|
+
The user travels inward from everyday memory to deeper structure:
|
|
95
105
|
|
|
96
|
-
|
|
|
106
|
+
| Level | User name | What the user gets |
|
|
97
107
|
| --- | --- | --- |
|
|
98
|
-
| Level 1 |
|
|
99
|
-
| Level 2 |
|
|
100
|
-
| Level 3 |
|
|
101
|
-
| Level 4 |
|
|
102
|
-
| Level 5 |
|
|
108
|
+
| Level 1 | Now memory | The living Brain presence and current conversation context |
|
|
109
|
+
| Level 2 | Older memory | Durable memories with source-aware recall |
|
|
110
|
+
| Level 3 | Topics | Recurring themes across chats and documents |
|
|
111
|
+
| Level 4 | Relationships | How decisions, people, files, and ideas connect |
|
|
112
|
+
| Level 5 | Full knowledge graph | Nodes, edges, search, and focused detail for advanced exploration |
|
|
103
113
|
|
|
104
114
|
Walkthrough:
|
|
105
115
|
|
|
106
|
-

|
|
111
|
-
|
|
112
|
-
Separate admin console evidence:
|
|
113
|
-
|
|
114
|
-

|
|
116
|
+

|
|
115
117
|
|
|
116
118
|
Screenshot index and capture notes:
|
|
117
|
-
[output/release/v5.
|
|
118
|
-
|
|
119
|
-
## Architecture At A Glance
|
|
119
|
+
[output/release/v5.3.0/SCREENSHOT_INDEX.md](output/release/v5.3.0/SCREENSHOT_INDEX.md)
|
|
120
120
|
|
|
121
|
-
|
|
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
|
|
121
|
+
## Install
|
|
150
122
|
|
|
151
123
|
Run from Python:
|
|
152
124
|
|
|
@@ -174,19 +146,27 @@ Apple Silicon local model extras:
|
|
|
174
146
|
pip install "ltcai[local]"
|
|
175
147
|
```
|
|
176
148
|
|
|
177
|
-
##
|
|
178
|
-
|
|
179
|
-
Validated 5.2.0 artifacts (current release):
|
|
149
|
+
## Architecture At A Glance
|
|
180
150
|
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
151
|
+
- **Product category**: local-first Digital Brain.
|
|
152
|
+
- **Core capability**: private AI memory layer for conversations, documents,
|
|
153
|
+
decisions, relationships, workflows, and project context.
|
|
154
|
+
- **UX metaphor**: Living Brain.
|
|
155
|
+
- **Desktop shell**: Tauri 2 starts a localhost sidecar.
|
|
156
|
+
- **Frontend**: React, TypeScript, Vite, TanStack Query, Zustand, Cytoscape.js,
|
|
157
|
+
React Flow, and generated OpenAPI types.
|
|
158
|
+
- **Backend**: FastAPI on localhost is the UI source of truth.
|
|
159
|
+
- **Brain Core**: independent `lattice_brain` package for graph, memory,
|
|
160
|
+
context, conversations, ingestion, runtime, workflow, storage, and portability.
|
|
161
|
+
- **Storage**: SQLite default; PostgreSQL/pgvector is optional scale mode.
|
|
162
|
+
- **Portability**: encrypted `.latticebrain` archives plus backup, restore,
|
|
163
|
+
inspect, verify, import dry-run, and confirmed restore/import flows.
|
|
164
|
+
- **Trust boundary**: local-first by default; cloud calls, downloads, Telegram,
|
|
165
|
+
Brain Network, Docker/Postgres setup, and update checks are opt-in.
|
|
166
|
+
- **Admin separation**: normal Brain use stays separate from users, audit logs,
|
|
167
|
+
policies, security events, retention, and index rebuilds.
|
|
186
168
|
|
|
187
|
-
|
|
188
|
-
from the `dist` directory. Historical artifact references in release history are
|
|
189
|
-
intentionally preserved.
|
|
169
|
+
See [ARCHITECTURE.md](ARCHITECTURE.md) for the current architecture.
|
|
190
170
|
|
|
191
171
|
## Local Development
|
|
192
172
|
|
|
@@ -195,13 +175,6 @@ npm install
|
|
|
195
175
|
npm run dev
|
|
196
176
|
```
|
|
197
177
|
|
|
198
|
-
Build and validate release artifacts:
|
|
199
|
-
|
|
200
|
-
```bash
|
|
201
|
-
npm run release:artifacts
|
|
202
|
-
npm run release:validate
|
|
203
|
-
```
|
|
204
|
-
|
|
205
178
|
Main validation set:
|
|
206
179
|
|
|
207
180
|
```bash
|
|
@@ -213,66 +186,73 @@ npm run test:unit
|
|
|
213
186
|
npm run test:integration
|
|
214
187
|
npm run test:visual
|
|
215
188
|
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
189
|
npm run docs:check-links
|
|
219
190
|
```
|
|
220
191
|
|
|
192
|
+
See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for developer workflow details.
|
|
193
|
+
|
|
194
|
+
## Current Release Preparation
|
|
195
|
+
|
|
196
|
+
The current development target is **5.4.0 Brain Automation Scheduler**:
|
|
197
|
+
|
|
198
|
+
- Consent-first Brain automation recipes (Daily Memory Digest, Weekly Project Review,
|
|
199
|
+
Follow-up Radar) install from Automate page as reviewable disabled drafts.
|
|
200
|
+
- TriggerService provides scheduler/brain-event triggers with dedup guards,
|
|
201
|
+
LATTICE_TZ support, consecutive failure degraded status, and explicit enabled:false
|
|
202
|
+
disarming.
|
|
203
|
+
- lattice_brain/runtime dependency graph 정리 and entrypoint documentation added.
|
|
204
|
+
- E2E scenarios for draft install + trigger execution with provenance.
|
|
205
|
+
- All package/runtime/static versions synchronized to 5.4.0; PR #4 remote gates passed.
|
|
206
|
+
|
|
207
|
+
Expected artifacts for 5.4.0 release must use exact filenames:
|
|
208
|
+
|
|
209
|
+
- `dist/ltcai-5.4.0-py3-none-any.whl`
|
|
210
|
+
- `dist/ltcai-5.4.0.tar.gz`
|
|
211
|
+
- `ltcai-5.4.0.tgz`
|
|
212
|
+
- `dist/ltcai-5.4.0.vsix`
|
|
213
|
+
- `src-tauri/target/release/bundle/dmg/Lattice AI_5.4.0_aarch64.dmg`
|
|
214
|
+
|
|
215
|
+
Do not upload `dist/*`. Package registry publishing remains owner-run.
|
|
216
|
+
|
|
221
217
|
## Known Limitations
|
|
222
218
|
|
|
223
|
-
- External package registries are owner-published and can lag behind
|
|
224
|
-
|
|
225
|
-
-
|
|
226
|
-
|
|
227
|
-
update checks require explicit user action.
|
|
219
|
+
- External package registries are owner-published and can lag behind GitHub.
|
|
220
|
+
- PostgreSQL/pgvector is optional scale mode. SQLite is the default local Brain.
|
|
221
|
+
- Docker, model downloads, cloud model calls, Telegram, Brain Network, and update
|
|
222
|
+
checks require explicit user action.
|
|
228
223
|
- Conversation does not fabricate answers when no model is loaded.
|
|
229
|
-
- Agent/workflow simulation without a loaded LLM is deterministic and does not
|
|
230
|
-
|
|
231
|
-
success.
|
|
232
|
-
- Historical artifacts can remain in `dist/`; uploads must use exact target version (e.g. 5.2.0)
|
|
233
|
-
filenames.
|
|
224
|
+
- Agent/workflow simulation without a loaded LLM is deterministic and does not
|
|
225
|
+
call a model; it is labeled as LLM-free/model-free rather than presented as
|
|
226
|
+
autonomous model success.
|
|
234
227
|
|
|
235
228
|
## Release History
|
|
236
229
|
|
|
237
230
|
| Version | Theme |
|
|
238
231
|
| --- | --- |
|
|
239
|
-
| 5.
|
|
240
|
-
| 5.
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
|
|
|
244
|
-
| 4.
|
|
245
|
-
| 4.
|
|
246
|
-
| 4.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
232
|
+
| 5.4.0 | Brain Automation Scheduler: consent-first recipe drafts (Daily/Weekly/Follow-up), TriggerService with dedup/LATTICE_TZ/degraded, runtime graph cleanup, E2E scenarios |
|
|
233
|
+
| 5.3.0 | Product Clarity and Runtime Cleanup: user-first README/onboarding, unified Digital Brain identity, legacy compatibility map, and app factory runtime seams |
|
|
234
|
+
| 5.2.0 | User-Focused Model Transformation: structured model capability registry, HF verification transparency, model recommendation UX, and workspace-scoped marketplace state |
|
|
235
|
+
| 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 |
|
|
236
|
+
| 5.0.0 | Multilingual Brain Foundation Release: adds persisted Korean/English language choice across first-run onboarding, Brain home, graph exploration, and Admin Console |
|
|
237
|
+
| 4.7.2 | Intuitive Brain UX Release: safer login, one-click recommended setup, direct Brain views, memory-save feedback, and exact artifacts |
|
|
238
|
+
| 4.7.0 | Admin Separation Release: adds the separate Admin Console for users/logs/security/Brain operations |
|
|
239
|
+
| 4.6.1 | Living Brain Release Refresh: publishable version bump after v4.6.0 PyPI immutability |
|
|
240
|
+
| 4.6.0 | Living Brain Experience: made Brain plus conversation the home product |
|
|
241
|
+
| 4.5.1 | Product Reimagining RC: reset shell, navigation, onboarding, and visual system |
|
|
242
|
+
| 4.5.0 | Product Experience Recovery RC: restored first-run setup, workspace/model onboarding, and graph discoverability |
|
|
243
|
+
|
|
244
|
+
## Documentation
|
|
245
|
+
|
|
246
|
+
- [docs/WHY_LATTICE.md](docs/WHY_LATTICE.md) - product philosophy.
|
|
252
247
|
- [docs/TRUST_MODEL.md](docs/TRUST_MODEL.md) - local-first trust model.
|
|
253
248
|
- [PRIVACY.md](PRIVACY.md) - privacy and external communication policy.
|
|
254
|
-
- [
|
|
255
|
-
|
|
256
|
-
- [
|
|
257
|
-
|
|
258
|
-
- [
|
|
259
|
-
- [
|
|
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.
|
|
249
|
+
- [ARCHITECTURE.md](ARCHITECTURE.md) - current technical architecture.
|
|
250
|
+
- [FEATURE_STATUS.md](FEATURE_STATUS.md) - current feature status and known limitations.
|
|
251
|
+
- [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) - developer workflow.
|
|
252
|
+
- [docs/LEGACY_COMPATIBILITY.md](docs/LEGACY_COMPATIBILITY.md) - root legacy shim map.
|
|
253
|
+
- [RELEASE.md](RELEASE.md) - release guide and current release notes.
|
|
254
|
+
- [docs/CHANGELOG.md](docs/CHANGELOG.md) - historical changes.
|
|
270
255
|
- [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
256
|
|
|
277
257
|
## License
|
|
278
258
|
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,68 @@
|
|
|
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.4.0] - 2026-06-15
|
|
7
|
+
|
|
8
|
+
> Brain Automation Scheduler. Consent-first recipe drafts (Daily Memory Digest,
|
|
9
|
+
> Weekly Project Review, Follow-up Radar) install as disabled workflows.
|
|
10
|
+
> Scheduler triggers (TriggerService) with dedup, LATTICE_TZ, degraded status,
|
|
11
|
+
> and runtime graph cleanup.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- Consent-first Brain automation recipe drafts for Daily Memory Digest, Weekly
|
|
15
|
+
Project Review, and Follow-up Radar. Recipes install as disabled workflows so
|
|
16
|
+
users can inspect them before any scheduler or Brain-event trigger fires.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- Workflow trigger scanning now treats explicit `enabled: false` trigger config
|
|
20
|
+
as disarmed while preserving legacy behavior for existing workflows that do
|
|
21
|
+
not include an `enabled` field.
|
|
22
|
+
- The Automate page now surfaces Brain automation recipe cards with local-only,
|
|
23
|
+
review-before-run consent copy.
|
|
24
|
+
- Recipe install UX: success feedback on "Create reviewable draft", install-time
|
|
25
|
+
button disabled to block duplicates clicks, and if same recipe draft already
|
|
26
|
+
exists (by metadata), button state changes + guide text instead of re-creating.
|
|
27
|
+
- lattice_brain/runtime dependency/responsibility graph 정리 + 실제 진입점 매핑 문서화 (runtime/* 모듈 헤더 + app_factory 주석). AgentRuntime (lattice_brain facade) vs latticeai/core/agent (single-agent state/plan/transcript) 분리 명확화.
|
|
28
|
+
- TriggerService 스케줄러 엣지케이스 보강: LATTICE_TZ env 지원 (describe() 노출), last_attempt_at + cooldown dedup 가드로 중복 실행 방지 (interval/brain_event), consecutive_failures + "degraded" status per-trigger 서페이싱.
|
|
29
|
+
- A방향 E2E 시나리오 초안 brain_automation.py 에 작성 (draft install, dedup, consent-first, trigger fire with provenance, LATTICE_TZ, degraded, review flow, RunExecutor 경로).
|
|
30
|
+
|
|
31
|
+
## Unreleased
|
|
32
|
+
|
|
33
|
+
## [5.3.0] - 2026-06-14
|
|
34
|
+
|
|
35
|
+
> Product Clarity and Runtime Cleanup. Lattice AI is now presented consistently
|
|
36
|
+
> as a local-first Digital Brain that keeps user knowledge durable across any AI
|
|
37
|
+
> model, while the first runtime extraction seams move out of `app_factory.py`.
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- `docs/DEVELOPMENT.md` for contributor setup, validation gates, runtime
|
|
41
|
+
assembly expectations, and documentation sync rules.
|
|
42
|
+
- `docs/LEGACY_COMPATIBILITY.md` to explain root compatibility modules, their
|
|
43
|
+
current homes, why they remain packaged, and the safe removal checklist.
|
|
44
|
+
- v5.3.0 release evidence index and copied screenshot/GIF paths under
|
|
45
|
+
`output/release/v5.3.0/`.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
- Reorganized README around product identity, user need, user actions,
|
|
49
|
+
one-minute flow, screenshots, installation, architecture, and release
|
|
50
|
+
preparation. Release artifacts no longer interrupt the first screen.
|
|
51
|
+
- Unified public descriptions in README, package metadata, pyproject, feature
|
|
52
|
+
status, architecture, release notes, and VS Code extension docs.
|
|
53
|
+
- Improved onboarding and model setup copy around local ownership, explicit
|
|
54
|
+
consent, model-as-voice, Brain-as-asset, and what happens before download/load.
|
|
55
|
+
- Simplified Basic model setup to a shorter recommendation set while Advanced
|
|
56
|
+
keeps hardware, verification, load strategy, license, and safety detail.
|
|
57
|
+
- Moved config, security, and Brain runtime builders from `latticeai.app_factory`
|
|
58
|
+
into `latticeai.runtime` modules while preserving lazy import compatibility.
|
|
59
|
+
- Bumped synchronized package/runtime/static versions to `5.3.0`.
|
|
60
|
+
|
|
61
|
+
### Preserved
|
|
62
|
+
- No package registry publishing automation.
|
|
63
|
+
- Local-first defaults and explicit consent gates for downloads, cloud calls,
|
|
64
|
+
Telegram, Brain Network, Docker/Postgres setup, and update checks.
|
|
65
|
+
- `server_app.__getattr__` lazy compatibility and app factory import side-effect
|
|
66
|
+
boundaries.
|
|
67
|
+
|
|
6
68
|
## [5.2.0] - 2026-06-14
|
|
7
69
|
|
|
8
70
|
> Lattice AI 5.2.0 — Aggressive User-Focused Model Transformation. Transparent
|
|
@@ -22,6 +84,7 @@ historical and may describe behavior as it existed at that release.
|
|
|
22
84
|
- `model_recommendation.py` `_classify_one` now forwards 5.2 fields (hf_repo, verification, hardware, load_strategy, license, safety, recommended_default).
|
|
23
85
|
- `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
86
|
- Marketplace template installs now keep registry entries scoped per workspace, and `/marketplace/templates/registry` returns only the authorized workspace scope.
|
|
87
|
+
- 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
88
|
- Backend model APIs return rich fields; frontend can render verified badges, modality, hardware notes, strategies.
|
|
26
89
|
- 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
90
|
- 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.
|