Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions src/bluemouse/PRIVACY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 🐭 BlueMouse Privacy & Security Whitepaper (隱私與安全白皮書)

**Version**: 1.1 (v6.1 Gold Master Baseline)
**Status**: 🔵 Enterprise Readiness Certified
**Target Audience**: Security Officers, CTOs, Individual Privacy-Conscious Developers.

---

## 1. Executive Summary (執行摘要)
BlueMouse 是一個遵循 **「絕對隱私 (Zero-Trust Architecture)」** 原則開發的 AI 適配器系統。我們設計的核心目標是確保所有「商業邏輯」與「架構決策」始終維持在您的本地物理環境中,**絕不通過任何網絡傳輸至 BlueMouse 開發者伺服器**。

## 2. The 4-Layer Execution Model (四層執行模型與隱私保障)

| Layer | Execution Site | Data Flow | Integrity |
| :--- | :--- | :--- | :--- |
| **L1: Static Rules** | **LocalStorage** | 0 Network Calls. Rule engine runs on CPU. | 🟢 100% Local |
| **L2: Local AI (Ollama)** | **Local Intranet** | Internal API call to `localhost:11434`. | 🟢 Air-gapped Ready |
| **L3: Cloud AI (BYOK)** | **Encrypted Cloud** | User-owned API keys connect direct to providers (Anthropic/OpenAI). | 🟡 User-controlled |
| **L4: Data-Driven KB** | **Local Disk** | Static knowledge base lookup (`knowledge_base.json`). | 🟢 100% Local |

## 3. Zero Telemetry Policy (零遙測政策)
* **No Usage Analytics**: 我們不統計您的開啟次數、點擊頻率或生成專案的數量。
* **No Error Reporting**: 系統崩潰日誌僅儲存於本地 `server.log`,不會自動上傳回報。
* **No Code Injection**: 所有的輸出均由本地 `django_generator.py` 生成,代碼中不包含任何追蹤器或後門。

## 4. Addressing the "Self-Evolution" Capability (關於自我進化與隱私)
為了維持 100% 本地化,BlueMouse 的「抗體機制」(Anti-body evolution) 採取 **「本地挖掘模型 (Local Mining)」**:
1. 系統在本地掃描您的開發錯誤(Data Traps)。
2. 系統在您的機器上更新您的本地知識庫。
3. **您的專屬經驗永遠留在您的機器上**,不會被共享給其他用戶。

## 5. Enterprise Compliance (企業合規性)
BlueMouse 適合於以下高資安環境:
* **半導體設計 (Semiconductor Design)**: 保護核心算法不進雲端 AI 的訓練集。
* **金融結算 (Financial Settlement)**: 滿足資料不離境、不進公有雲的需求。
* **國防工業 (Defense & Aerospace)**: 可以在完全斷網 (Offline) 的環境下運作。

---

## 🛡️ Identity Certification
本檔案隨專案發布,作為 **v6.1** 版本的正式安全說明。任何對此政策的違反均視為系統性故障。

[**BlueMouse Project Admin**]
12 changes: 12 additions & 0 deletions src/bluemouse/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BlueMouse MCP Server
A data-driven logic gate server that helps AI models avoid architectural hallucinations.
## Overview
BlueMouse acts as a "Prefrontal Cortex" for LLMs, utilizing a massive knowledge base of 180,000+ localized development failure patterns (Data Traps) to interview the AI before it executes code generation.
## Features
- **Socratic Logic Gate**: Forced reasoning through context-aware questioning.
- **Architectural Validation**: Multi-layer integrity checks for Django & Web projects.
- **100% Local-First**: Designed for high-security environments like semiconductor manufacturing.
## Installation
```bash
pip install -r requirements.txt
python run_standalone.py
Loading