Rendering markdown & diagrams...
   1  # TECHNICAL SPECIFICATION DIRECTIVE: DISTRIBUTED ABLITERATED COGNITIVE ARCHITECTURE
   2  ## SYSTEM SPECIFICATION & DEPLOYMENT RUNBOOK
   3  **PUBLICATION CONTROL IDENTIFIER:** SPEC-DOC-SYS-03  
   4  **COMMAND AUTHORITY:** CHIEF ARCHITECT (SHUBHAM)  
   5  **OPERATIONAL STATUS:** SYSTEM OPERATIONAL SPECIFICATION  
   6  **EFFECTIVE DATE:** 2026-11-09  
   7  
   8  ---
   9  
  10  ### 1.0 PHYSICAL AIRFRAME & NODE ASSIGNMENTS
  11  
  12  | Node Identifier | Hardware Platform | Network Coordinate | Memory / Compute Pool | Designated Role |
  13  | :--- | :--- | :--- | :--- | :--- |
  14  | **NODE-MASTER** | Apple Silicon Mac (M4 / M4 Pro) | `192.168.31.177` / Dynamic Mesh | 16 GB – 48 GB Unified Memory (Metal) | High-order inference, chain-of-thought reasoning, code generation. |
  15  | **NODE-BODY** | Dell Inspiron 3521 (`dell-ss`) | `192.168.31.65` / `dell-ss.lan` | 8.0 GB RAM / Intel i5 Ivy Bridge + 2GB AMD | 24/7 kinetic execution sandbox, memory graph anchor, mass storage server. |
  16  
  17  ---
  18  
  19  ### 2.0 PHYSICAL STORAGE MATRIX & MOUNT DIRECTIVES
  20  
  21  The cluster commands **~2.2 Terabytes** of total storage across solid-state and mechanical arrays:
  22  
  23  | Storage Device | Physical Device Node | Volume Capacity | Mount Point | Filesystem | Mount Policy | Operational Role |
  24  | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
  25  | **Internal SSD** | `/dev/sda3` | 145.9 GB | `/` (Root) | ext4 | `rw,relatime` | Base Ubuntu Server OS + L1 Fast Hot Memory (`/var/neural_memory/`). |
  26  | **Protected D:** | `/dev/sda5` | 77.1 GB | `/mnt/drive_d` | NTFS | **`ro,uid=1000,gid=1000`** | **ROE-01 ENFORCED.** Preserved operator volume. Strict read-only. |
  27  | **External HDD 1**| `/dev/sdb1` | 931.5 GB | `/mnt/hdd1` | NTFS | `rw,nofail,uid=1000,gid=1000` | L2 Warm Memory Store, Vector indexes, GGUF model binaries. |
  28  | **External HDD 2**| `/dev/sdc1` | 931.5 GB | `/mnt/hdd2` | ext4 / NTFS | `rw,nofail,uid=1000,gid=1000` | L3 Cold Archival Vault, infinite episodic transcripts, raw datasets. |
  29  
  30  #### 2.1 Dual HDD Auto-Mount Configuration (`/etc/fstab` on Dell)
  31  To ensure the Dell boots cleanly even if external USB drives are temporarily unplugged:
  32  ```fstab
  33  # /etc/fstab entry for External HDD 1 (Warm Store)
  34  /dev/sdb1  /mnt/hdd1  ntfs-3g  rw,uid=1000,gid=1000,dmask=0000,fmask=0000,nofail  0  0
  35  
  36  # /etc/fstab entry for External HDD 2 (Cold Vault)
  37  /dev/sdc1  /mnt/hdd2  auto     rw,uid=1000,gid=1000,nofail                         0  0
  38  ```
  39  
  40  ---
  41  
  42  ### 3.0 MODEL DEPLOYMENT & INFERENCE TOPOLOGY
  43  
  44  | Layer / Role | Recommended Model | Quantization | Size (Disk / RAM) | Host Node | Execution Framework | Purpose |
  45  | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
  46  | **Primary Reasoning** | `DeepSeek-R1-Distill-Qwen-7B-abliterated` | `Q4_K_M` | 4.6 GB / ~5.5 GB | Mac M4 | `llama-server` (Metal) | Chain-of-thought `<think>` reasoning, complex task planning. |
  47  | **Primary Coding** | `Qwen2.5-Coder-14B-Instruct-abliterated` | `Q4_K_M` | 8.9 GB / ~10.5 GB | Mac M4 | `llama-server` (Metal) | High-order bash scripting, system debugging, code synthesis. |
  48  | **Decision Router ("Laya")** | Fast Rule Engine + Llama-3.2-3B | `Q4_K_M` | 2.0 GB / ~2.5 GB | Dell / Mac | Python / `llama-server` | Evaluates prompt intent, triggers graph retrieval vs shell. |
  49  | **Vector Embeddings** | `embeddinggemma-2` / `bge-small` | FP16 / Q8 | 0.3 GB – 0.7 GB | Dell `dell-ss` | Ollama / `onnxruntime` | Generates 768-dim embeddings for knowledge graph nodes. |
  50  
  51  ---
  52  
  53  ### 4.0 CLI TOOLING & EXECUTION HARNESS
  54  
  55  The following native binaries reside in `/Users/shubhamsharma/.local/bin/` on the Mac, providing transparent remote execution:
  56  
  57  ```bash
  58  # 1. Query the persistent memory knowledgebase
  59  recall "AMD GPU"
  60  
  61  # 2. Commit a new fact, incident episode, or procedural skill
  62  remember fact hardware GPU_Discrete "AMD Radeon HD 8730M 2GB VRAM"
  63  remember episode "Cold Mount Setup" "Mounted sda5" "sudo mount -o ro ..." "Verified read-only"
  64  remember skill caffeinate "keep awake" "sudo systemctl mask sleep.target" "Prevents lid sleep"
  65  
  66  # 3. Audit cluster telemetry and memory counts
  67  node-status
  68  
  69  # 4. Dispatch arbitrary bash commands directly to Dell kinetic sandbox
  70  dell "uptime && free -h"
  71  
  72  # 5. Push architecture directives and pull offline memory snapshot
  73  ~/project/sync_memory.sh
  74  ```
  75  
  76  ---
  77  
  78  ### 5.0 STANDING RULES OF ENGAGEMENT (ROE)
  79  
  80  > [!CAUTION]
  81  > **ROE-01 (SANCTITY OF DRIVE D):** Partition `/dev/sda5` (77.1 GB NTFS) on the Tactical Body contains critical non-recoverable operator data. Under no circumstances may this partition be formatted, partitioned, written to, or altered. Only read-only mounts (`-o ro`) are permitted.
  82  
  83  * **ROE-02 (MASS STORAGE HARNESS):** External mechanical storage (`/mnt/hdd1` and `/mnt/hdd2`) must be mounted using non-blocking (`nofail`) kernel directives.
  84  * **ROE-03 (CORE MEMORY ANCHOR):** Core identity, database schemas, and L1 hot memory must permanently reside on internal solid-state blocks (`/dev/sda3` @ `/var/neural_memory/`). It must never depend on external removable media for boot or recall.
  85  * **ROE-04 (DISCLOSURE CONTROL):** Operator credentials must never be requested, echoed, stored in cleartext, or transmitted. Communication relies exclusively on ED25519 public keys.
  86  * **ROE-05 (FAIL-SAFE SLEEP IMMUNITY):** Dell `dell-ss` must maintain masked sleep targets (`sleep.target`, `suspend.target`, `hibernate.target`, `hybrid-sleep.target` linked to `/dev/null`) and disabled Wi-Fi power-save (`wifi.powersave = 2`) to ensure unbroken 24/7 server availability with closed lid.
  87