ltcai 4.6.0 → 4.7.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 (37) hide show
  1. package/README.md +145 -194
  2. package/docs/CHANGELOG.md +139 -1
  3. package/docs/PRODUCT_DIRECTION_REVIEW.md +88 -0
  4. package/docs/V4_6_0_LIVING_BRAIN_EXPERIENCE_REPORT.md +33 -19
  5. package/docs/V4_6_1_RELEASE_REFRESH_REPORT.md +42 -0
  6. package/docs/V4_7_0_ADMIN_SEPARATION_REPORT.md +42 -0
  7. package/docs/V4_DIGITAL_BRAIN_RECOVERY.md +20 -18
  8. package/frontend/src/App.tsx +1098 -171
  9. package/frontend/src/api/client.ts +2 -0
  10. package/frontend/src/components/BrainConversation.tsx +10 -2
  11. package/frontend/src/components/LivingBrain.tsx +197 -106
  12. package/frontend/src/components/ProductFlow.tsx +210 -129
  13. package/frontend/src/styles.css +1946 -36
  14. package/lattice_brain/__init__.py +1 -1
  15. package/lattice_brain/archive.py +86 -13
  16. package/lattice_brain/portability.py +82 -14
  17. package/lattice_brain/runtime/multi_agent.py +1 -1
  18. package/latticeai/__init__.py +1 -1
  19. package/latticeai/api/admin.py +30 -4
  20. package/latticeai/api/chat.py +25 -11
  21. package/latticeai/app_factory.py +8 -2
  22. package/latticeai/core/audit.py +3 -2
  23. package/latticeai/core/marketplace.py +1 -1
  24. package/latticeai/core/workspace_os.py +1 -1
  25. package/package.json +1 -1
  26. package/scripts/launch-pts-grok.sh +56 -0
  27. package/src-tauri/Cargo.lock +1 -1
  28. package/src-tauri/Cargo.toml +1 -1
  29. package/src-tauri/tauri.conf.json +1 -1
  30. package/static/app/asset-manifest.json +5 -5
  31. package/static/app/assets/index-DFmuiJ6t.css +2 -0
  32. package/static/app/assets/index-DwX3rNfA.js +16 -0
  33. package/static/app/assets/index-DwX3rNfA.js.map +1 -0
  34. package/static/app/index.html +2 -2
  35. package/static/app/assets/index-By-G-Kay.css +0 -2
  36. package/static/app/assets/index-CJx6WuQH.js +0 -336
  37. package/static/app/assets/index-CJx6WuQH.js.map +0 -1
@@ -0,0 +1,88 @@
1
+ # Product Direction Review
2
+
3
+ Date: 2026-06-14
4
+
5
+ ## Verdict
6
+
7
+ The direction is coherent and meaningfully differentiated: Lattice AI should be
8
+ positioned as a local-first Digital Brain, not as a graph database, note app,
9
+ dashboard, or model launcher.
10
+
11
+ The distinction between "Digital Brain" and "Knowledge Graph Product" is
12
+ important. A graph product asks users to operate a data structure. A Brain
13
+ product lets users converse with, grow, protect, and carry their own knowledge
14
+ over time. The graph remains valuable, but it is infrastructure and an advanced
15
+ inspection layer.
16
+
17
+ ## Fit With Current Implementation
18
+
19
+ Already aligned:
20
+
21
+ - First launch follows Login -> Environment Analysis -> Recommended Models ->
22
+ Install & Load -> Brain.
23
+ - The post-setup home is the living Brain plus conversation.
24
+ - The graph appears only after progressive depth: Brain -> Memories ->
25
+ Knowledge -> Relationships -> Graph.
26
+ - Brain Core, SQLite default storage, optional PostgreSQL/pgvector scale mode,
27
+ backup/restore, and encrypted `.latticebrain` archives support user ownership.
28
+ - Models are treated as swappable runtime workers rather than the durable asset.
29
+
30
+ Gaps corrected in this review:
31
+
32
+ - `KNOWLEDGE_GRAPH.md` described the Knowledge Graph as the durable center. It
33
+ now states that the Brain is the product and the graph is durable
34
+ infrastructure inside it.
35
+ - `AI_PHILOSOPHY.md` now explicitly captures "models are temporary, knowledge is
36
+ durable" and the Brain-first interaction contract.
37
+ - The Brain home header now surfaces ownership guarantees: Local-first,
38
+ Portable, Private.
39
+
40
+ ## Risks
41
+
42
+ - "Living Brain" can feel abstract if the user cannot quickly see value from
43
+ their own documents and conversations. The first successful recall moment must
44
+ happen early.
45
+ - A brain metaphor can become decorative if backup, restore, provenance, and
46
+ source evidence are hidden too deeply. The product should keep ownership and
47
+ evidence visible without becoming an admin console.
48
+ - Model setup is still a high-friction moment. The product should make the first
49
+ local model recommendation feel safe, short, and reversible.
50
+ - The graph layer must stay inspectable for power users without leaking graph
51
+ mechanics into the default experience.
52
+
53
+ ## Comparisons
54
+
55
+ - Rewind / Limitless: personal memory, but Lattice should emphasize portable
56
+ user-owned Brain archives rather than capture-only recall.
57
+ - Obsidian / Logseq: durable personal knowledge, but Lattice should avoid making
58
+ users manually manage the graph.
59
+ - Notion AI / Mem: AI-assisted workspace memory, but Lattice should compete on
60
+ local-first ownership and model replaceability.
61
+ - AnythingLLM / LM Studio: local AI tooling, but Lattice should not be framed as
62
+ a model runner.
63
+ - Personal graph/RAG tools: relevant infrastructure peers, but not the product
64
+ category Lattice should lead with.
65
+
66
+ ## Priority
67
+
68
+ 1. Make first value unmistakable: ingest something, recall it in conversation,
69
+ show source evidence, and preserve it in the Brain.
70
+ 2. Keep the Brain as home. Avoid reintroducing dashboards, model catalogs, or
71
+ graph explorers as the first screen.
72
+ 3. Make Brain ownership tangible: backup, restore, export, inspect, and move
73
+ should be easy to find and phrased as care for the Brain.
74
+ 4. Improve the early model path until it feels like choosing a voice for the
75
+ Brain rather than configuring inference infrastructure.
76
+ 5. Keep graph power available as the deepest layer for advanced inspection.
77
+ 6. Keep the product reason visible in the first experience: models are
78
+ replaceable, but the user's knowledge, decisions, projects, and context are
79
+ the durable asset.
80
+
81
+ ## Product Answer
82
+
83
+ Yes, this is a product people could want if it reliably turns their own
84
+ knowledge into useful recall and keeps ownership credible. The strongest
85
+ positioning is:
86
+
87
+ Lattice AI is a local-first Digital Brain. It keeps your knowledge durable,
88
+ portable, private, and useful across changing models.
@@ -5,23 +5,26 @@
5
5
  v4.6.0 stops presenting Lattice AI as a graph product or dashboard. The
6
6
  first-run product flow is Login -> Environment Analysis -> Recommended Models
7
7
  -> Install & Load -> Brain. After setup, the Brain is the center of the desktop
8
- experience, and the graph is repositioned as an advanced layer for intentional
9
- relationship exploration.
8
+ experience, and the graph is repositioned as the deepest layer inside Brain
9
+ exploration rather than a separate destination.
10
10
 
11
11
  ## Product Changes
12
12
 
13
13
  - First launch opens to a premium minimal Login screen only.
14
14
  - Setup runs as a full-screen guided sequence: friendly environment analysis,
15
15
  short ranked model recommendations, and install/download/validate/load.
16
- - After model load, `/app` and `/app#/brain` open into Brain plus conversation.
17
- - The living Brain remains visible during primary conversation and reacts to
18
- listening, recall, thinking, and active agent/workflow signals.
19
- - `/app#/ask` and `/app#/chat` remain compatible but route to the Brain
16
+ - After model load, `/app` and compatible legacy entry URLs open into Brain plus
20
17
  conversation.
21
- - Primary navigation is reduced to Brain, Memory, Files, Automations, Models,
22
- and Settings.
23
- - Brain tabs now follow the product ladder: Brain, Memories, Knowledge,
24
- Relationships, Graph, Care.
18
+ - The living Brain is an anatomical, recognizable Brain that remains visible
19
+ during primary conversation and reacts to listening, recall, thinking,
20
+ planning, and active agent/workflow signals.
21
+ - Brain exploration now has five depths:
22
+ Living Brain, Memory Layer, Knowledge Layer, Relationship Layer, and
23
+ Knowledge Graph.
24
+ - The Knowledge Graph appears only at Level 5 and includes nodes, edges, search,
25
+ and focus details.
26
+ - `/chat`, `/ask`, `/graph`, and other legacy entry URLs remain compatible app
27
+ entry points, but the primary user path inward is through the Brain itself.
25
28
  - First-run setup no longer appears as dashboard cards above any app page; it
26
29
  gates the app before the Brain opens.
27
30
 
@@ -29,23 +32,25 @@ relationship exploration.
29
32
 
30
33
  - Added `frontend/src/components/LivingBrain.tsx` as the animated Brain
31
34
  presence component.
32
- - Added `frontend/src/components/BrainConversation.tsx` to centralize chat
33
- streaming, history, image attachment, model status, memory previews, and
34
- Brain activity state.
35
+ - Updated `frontend/src/App.tsx` to own the five-depth Brain journey and the
36
+ emergent graph surface.
37
+ - `frontend/src/components/BrainConversation.tsx` remains available for legacy
38
+ page compatibility and now shares the expanded Brain activity states.
35
39
  - Added `frontend/src/components/ProductFlow.tsx` to own Login, environment
36
40
  analysis, recommendation, install/download/validate/load, and Brain entry.
37
- - Kept graph parsing, Cytoscape rendering, search, provenance, portability, and
38
- archive APIs intact.
41
+ - Kept graph APIs, memory APIs, search, provenance, portability, and archive
42
+ APIs intact.
39
43
  - Kept FastAPI, Tauri, StorageEngine, Brain Core, backup/restore, and
40
44
  portability unchanged.
41
45
 
42
46
  ## Compatibility
43
47
 
44
48
  - Existing backend routes are unchanged.
45
- - Legacy hash routes continue to resolve through the SPA route alias table.
46
- - The advanced graph remains available at `/app#/knowledge-graph`.
47
- - The old Ask page imports the shared Brain conversation component to avoid
48
- duplicate chat behavior.
49
+ - Legacy hash routes and redirects continue to arrive inside the SPA.
50
+ - The advanced graph capability remains available as Level 5 of Brain
51
+ exploration.
52
+ - The older route components remain in source for compatibility while the
53
+ primary app surface is the Brain Space.
49
54
 
50
55
  ## Validation Scope
51
56
 
@@ -56,3 +61,12 @@ The v4.6.0 work should be validated with:
56
61
  - affected visual tests
57
62
  - unit tests covering version consistency and route compatibility
58
63
  - Tauri cargo check when the desktop toolchain is available
64
+
65
+ Validated in this update:
66
+
67
+ - `npm run lint`
68
+ - `npm run test:visual`
69
+ - `npm run check:python`
70
+ - `npm run test:unit`
71
+ - `npm run test:integration` with the local server on port 8899
72
+ - `npm run build`
@@ -0,0 +1,42 @@
1
+ # v4.6.1 Living Brain Release Refresh Report
2
+
3
+ ## Scope
4
+
5
+ v4.6.1 is the publishable Living Brain release refresh after the v4.6.0 PyPI
6
+ immutability block. The work intentionally does not redesign backend
7
+ architecture or add unrelated product features.
8
+
9
+ ## Completed Refresh Areas
10
+
11
+ - Synchronized current-release version metadata to `4.6.1`.
12
+ - Reframed README around the current Living Brain flow:
13
+ Login -> Environment Analysis -> Recommended Models -> Install & Load ->
14
+ Brain Chat.
15
+ - Documented the five Brain depths: Living Brain, Memory Layer, Knowledge Layer,
16
+ Relationship Layer, and Knowledge Graph.
17
+ - Kept the Knowledge Graph positioned as the deepest Brain exploration layer,
18
+ not a standalone dashboard or home screen.
19
+ - Updated ARCHITECTURE.md for the current Tauri, React/Vite, FastAPI,
20
+ independent `lattice_brain`, StorageEngine, SQLite default, optional
21
+ PostgreSQL/pgvector, backup/restore, and `.latticebrain` portability reality.
22
+ - Added v4.6.1 release notes and synchronized the changelog, feature status,
23
+ security policy, VS Code extension README, and release guide.
24
+
25
+ ## Evidence
26
+
27
+ Fresh v4.6.1 screenshots and walkthrough media are indexed in
28
+ [output/release/v4.6.1/SCREENSHOT_INDEX.md](../output/release/v4.6.1/SCREENSHOT_INDEX.md).
29
+
30
+ ## Expected Artifacts
31
+
32
+ - `dist/ltcai-4.6.1-py3-none-any.whl`
33
+ - `dist/ltcai-4.6.1.tar.gz`
34
+ - `dist/ltcai-4.6.1.vsix`
35
+ - `ltcai-4.6.1.tgz`
36
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_4.6.1_aarch64.dmg`
37
+
38
+ ## Validation Checklist
39
+
40
+ The final release report records command results, artifact SHA256 hashes, commit,
41
+ tag, push, and GitHub Release URL. External package registries are not published
42
+ by this refresh.
@@ -0,0 +1,42 @@
1
+ # v4.7.0 Admin Separation Report
2
+
3
+ ## Scope
4
+
5
+ v4.7.0 turns Lattice AI into a cleaner product split: everyday users live in the
6
+ Living Brain, while operators use a dedicated Admin Console for observability and
7
+ maintenance. This release does not redesign Brain Core or the storage layer.
8
+
9
+ ## Completed Areas
10
+
11
+ - Separated the admin route into `#/admin` while keeping `/app` focused on Brain
12
+ plus conversation.
13
+ - Added admin overview cards for users, recent logs, security, and Brain index
14
+ status.
15
+ - Added admin panels for user directory, audit logs, security events, policies,
16
+ and index rebuild operations.
17
+ - Added workspace-aware filtering for admin summary, stats, sensitivity, and
18
+ audit reads when the active workspace header/query is present.
19
+ - Added frontend API helpers for `/admin/stats` and `/admin/security/events`.
20
+ - Updated visual validation to confirm the admin console is separate from the
21
+ user Brain surface.
22
+ - Synchronized current-release version metadata to `4.7.0`.
23
+ - Updated README, RELEASE.md, release notes, changelog, architecture, security,
24
+ feature status, VS Code extension docs, and release evidence references.
25
+
26
+ ## Evidence
27
+
28
+ Fresh v4.7.0 screenshots and walkthrough media are indexed in
29
+ [output/release/v4.7.0/SCREENSHOT_INDEX.md](../output/release/v4.7.0/SCREENSHOT_INDEX.md).
30
+
31
+ ## Expected Artifacts
32
+
33
+ - `dist/ltcai-4.7.0-py3-none-any.whl`
34
+ - `dist/ltcai-4.7.0.tar.gz`
35
+ - `dist/ltcai-4.7.0.vsix`
36
+ - `ltcai-4.7.0.tgz`
37
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_4.7.0_aarch64.dmg`
38
+
39
+ ## Validation Checklist
40
+
41
+ The final release report records command results, artifact SHA256 hashes, commit,
42
+ tag, push, GitHub Release URL, and package registry publish status.
@@ -5,21 +5,23 @@
5
5
  > completed analysis. **Update this file before ending any phase and before any
6
6
  > likely session/context/usage limit.**
7
7
  >
8
- > Last updated: 2026-06-13 — v4.6.0 Living Brain Experience; Remaining Gaps remain empty
8
+ > Last updated: 2026-06-14 — v4.7.0 Admin Separation Release; Remaining Gaps remain empty
9
9
 
10
10
  ---
11
11
 
12
- ## 0. RELEASE STATUS (v4.6.0)
13
-
14
- **v4.6.0 makes the Brain the product after the v4.5.1 product-shell reset
15
- without changing Brain Core, storage, API, model runtime, backup, portability,
16
- or agent/workflow behavior.** Current implementation milestone: Brain plus
17
- conversation is the home screen, the living Brain is always visible during the
18
- primary conversation experience, and graph exploration is preserved as the
19
- deepest intentional layer behind Memories, Knowledge, and Relationships.
20
- The v4.6.0 process builds locally validated artifacts only. Tagging, GitHub
21
- Release creation, PyPI, npm Registry, VS Code Marketplace, Open VSX, and
22
- production deployments remain out of scope unless explicitly requested.
12
+ ## 0. RELEASE STATUS (v4.7.0)
13
+
14
+ **v4.7.0 is the Admin Separation Release. It keeps the Living Brain
15
+ implementation without changing Brain Core, storage, API, model runtime, backup,
16
+ portability, or agent/workflow behavior.** Current implementation milestone:
17
+ Brain plus conversation is the home screen, the living Brain is always visible
18
+ during the primary conversation experience, graph exploration is preserved as
19
+ the deepest intentional layer, and operators use a separate Admin Console for
20
+ users, logs, security events, policies, and Brain operations.
21
+ The v4.7.0 process builds locally validated artifacts, tag, and GitHub Release
22
+ assets. PyPI, npm Registry, VS Code Marketplace, and Open VSX publishing are
23
+ explicitly requested for v4.7.0 and are gated by available owner credentials.
24
+ Production deployments remain out of scope unless explicitly requested.
23
25
  Remaining implementation gaps: **none**.
24
26
  Owner-only blockers: pptx history rewrite (requires force-push/owner decision)
25
27
  and consent-gated production embedder provisioning (silent default download is
@@ -27,12 +29,12 @@ not permitted).
27
29
 
28
30
  ## Remaining Gaps
29
31
 
30
- None. v4.6.0 preserves the already-empty v4.3.2/v4.3.3/v4.5.0/v4.5.1 gap list
31
- and promotes the Living Brain tree: Brain conversation is primary, graph
32
- exploration remains real and API-backed, readable product state remains in
33
- place, archive import/restore flows remain exposed through existing APIs,
34
- desktop sidecar behavior remains validated, and exact v4.6.0 artifacts are the
35
- validation target.
32
+ None. v4.7.0 preserves the already-empty v4.3.2/v4.3.3/v4.5.0/v4.5.1/v4.6.0
33
+ gap list and promotes the Living Brain tree: Brain conversation is primary,
34
+ admin operations are separate, graph exploration remains real and API-backed,
35
+ readable product state remains in place, archive import/restore flows remain
36
+ exposed through existing APIs, desktop sidecar behavior remains validated, and
37
+ exact v4.7.0 artifacts are the validation target.
36
38
  Owner-only blockers above are intentionally not implementation gaps.
37
39
 
38
40
  ## 1. Program Charter (from the user's v4.0.0 directive)