/ prepare_nlm_full.sh
prepare_nlm_full.sh
 1  #!/bin/bash
 2  # Full NotebookLM export - ALL useful Abzu docs
 3  
 4  SOURCE="/Users/adrian/studio/drive/abzu"
 5  TARGET="/Users/adrian/studio/drive/abzu-nlm-full"
 6  rm -rf "$TARGET"
 7  mkdir -p "$TARGET"
 8  
 9  echo "Creating comprehensive NotebookLM export..."
10  
11  # Counter for ordering
12  N=1
13  
14  copy_with_prefix() {
15      local src="$1"
16      local name="$2"
17      if [ -f "$src" ]; then
18          cp "$src" "$TARGET/$(printf "%02d" $N)_${name}.md"
19          echo "  [$N] $name"
20          N=$((N+1))
21      else
22          echo "  [!] MISSING: $src"
23      fi
24  }
25  
26  echo ""
27  echo "=== SECTION A: OVERVIEW & WHITE PAPER ==="
28  copy_with_prefix "$SOURCE/artifacts/specs/white_paper_v0.4.md" "white_paper_v0.4"
29  copy_with_prefix "$SOURCE/sovereign_mesh_stack/overview.md" "protocol_overview"
30  copy_with_prefix "$SOURCE/artifacts/overview/abzu_protocol_specification.md" "protocol_specification_full"
31  
32  echo ""
33  echo "=== SECTION B: CORE PROTOCOL ==="
34  copy_with_prefix "$SOURCE/sovereign_mesh_stack/overview/protocol_specification.md" "wire_protocol"
35  copy_with_prefix "$SOURCE/sovereign_mesh_stack/implementation/identity_and_key_management.md" "identity_and_keys"
36  copy_with_prefix "$SOURCE/sovereign_mesh_stack/implementation/dht_comprehensive.md" "dht_design"
37  copy_with_prefix "$SOURCE/artifacts/implementation/dht_security_invariants.md" "dht_security"
38  
39  echo ""
40  echo "=== SECTION C: GHOST MODE (TRAFFIC OBFUSCATION) ==="
41  copy_with_prefix "$SOURCE/artifacts/implementation/ghost_mode_comprehensive.md" "ghost_mode"
42  copy_with_prefix "$SOURCE/artifacts/implementation/abzu_chameleon_crate.md" "chameleon_ml_layer"
43  copy_with_prefix "$SOURCE/artifacts/research/ml_traffic_generation.md" "ml_traffic_generation"
44  
45  echo ""
46  echo "=== SECTION D: AGENT OS ==="
47  copy_with_prefix "$SOURCE/sovereign_mesh_stack/os/protocol_0.md" "protocol_0_security"
48  copy_with_prefix "$SOURCE/sovereign_mesh_stack/os/implementation.md" "agent_os_implementation"
49  copy_with_prefix "$SOURCE/sovereign_mesh_stack/os/agentic_patterns.md" "agentic_patterns"
50  copy_with_prefix "$SOURCE/sovereign_mesh_stack/os/rust_runtime.md" "rust_runtime"
51  copy_with_prefix "$SOURCE/sovereign_mesh_stack/os/financial_agency_overview.md" "financial_agency"
52  
53  echo ""
54  echo "=== SECTION E: SOCIAL & CIRCLES ==="
55  copy_with_prefix "$SOURCE/sovereign_mesh_stack/implementation/agent_circles.md" "agent_circles"
56  copy_with_prefix "$SOURCE/sovereign_mesh_stack/implementation/mesh_inference.md" "mesh_inference"
57  
58  echo ""
59  echo "=== SECTION F: MEMORY SYSTEM (MNEME) ==="
60  copy_with_prefix "$SOURCE/mneme_memory/overview.md" "mneme_overview"
61  copy_with_prefix "$SOURCE/mneme_memory/architecture/v2_server_architecture.md" "mneme_architecture"
62  copy_with_prefix "$SOURCE/mneme_memory/implementation/memory_decay_patterns.md" "memory_decay"
63  copy_with_prefix "$SOURCE/mneme_memory/implementation/collective_lessons.md" "collective_lessons"
64  
65  echo ""
66  echo "=== SECTION G: STORAGE ==="
67  copy_with_prefix "$SOURCE/sled_database/overview.md" "sled_overview"
68  copy_with_prefix "$SOURCE/sled_database/studio_integration.md" "sled_integration"
69  copy_with_prefix "$SOURCE/artifacts/implementation/multi_tenant_storage.md" "multi_tenant_storage"
70  
71  echo ""
72  echo "=== SECTION H: SECURITY & AUDITS ==="
73  copy_with_prefix "$SOURCE/artifacts/security/security_and_compliance.md" "security_compliance"
74  copy_with_prefix "$SOURCE/artifacts/audits/jan_2026_architectural_audit.md" "architectural_audit"
75  copy_with_prefix "$SOURCE/artifacts/audits/jan_2026_ghost_mode_audit.md" "ghost_mode_audit"
76  copy_with_prefix "$SOURCE/artifacts/implementation/security_remediation_details.md" "security_remediation"
77  copy_with_prefix "$SOURCE/artifacts/implementation/passkeys_system.md" "passkeys_system"
78  
79  echo ""
80  echo "=== SECTION I: INFRASTRUCTURE ==="
81  copy_with_prefix "$SOURCE/artifacts/implementation/cuckoo_filter_deduplication.md" "cuckoo_filter"
82  copy_with_prefix "$SOURCE/artifacts/implementation/rust_feature_isolation.md" "rust_features"
83  copy_with_prefix "$SOURCE/sovereign_mesh_stack/os/monorepo_consolidation.md" "monorepo_structure"
84  copy_with_prefix "$SOURCE/artifacts/governance/licensing_philosophy.md" "licensing"
85  
86  echo ""
87  echo "=== SECTION J: HAZARDS & LESSONS ==="
88  copy_with_prefix "$SOURCE/artifacts/implementation/known_issues_and_hazards.md" "known_hazards"
89  copy_with_prefix "$SOURCE/sled_database/testing_hazards.md" "testing_hazards"
90  
91  echo ""
92  echo "=== DONE ==="
93  echo ""
94  echo "Total files: $((N-1))"
95  ls -la "$TARGET" | head -50