# Hugging Face App Specification ## Target Hugging Face Space: `ARD-RGL/SB-ARD` Fresh build. Do not patch confused old repo unless approved. ## Recommended first implementation ```text app.py requirements.txt core/sb_nodes.py core/urr_microbrain.py core/orchestrator.py core/storage.py core/source_tools.py core/model_router.py core/prompts.py data/corpus/ data/memory/ data/runs/ ``` ## UI tabs 1. Chat 2. Trace 3. Memory 4. Sources 5. Human Review 6. RH Testcase 7. Settings ## Models Primary router: OpenRouter. Recommended model routing: | Use | Model style | |---|---| | Fast triage | cheap/free model | | Deep answer | DeepSeek V4 Pro / Hermes / Grok via OpenRouter if available | | Candid private writing | Dolphin Venice 24B / similar permissive open model | | Long local context | Vicuna-7B-v1.5-16k or other HF-compatible local model | | Fallback | any configured OpenRouter-compatible model | ## Privacy position Private app. Store data only inside the user's Space/storage unless user exports or calls external APIs. Important: if OpenRouter or any external API is used, that provider receives the prompt. For maximum privacy, use local/HF models only. ## Safety position The app should be candid and private, with no moralizing and no generic refusal spam. It can support raw/vulgar/private adult-toned writing where lawful and consensual. Still keep non-negotiable implementation boundaries: minors, non-consensual sexual content, fraud, weapons, illegal harm, dangerous medical/legal execution, and doxxing. These blocks protect the project while keeping the engine direct.