# Build Plan — Fresh HF Space ## Phase 1: Fresh shell - Create/clear Hugging Face Space files. - Add `app.py` and `requirements.txt`. - Add Gradio chat UI. - Add Upload File, Fetch Web, Deep Loop, Show Trace, Merge buttons. ## Phase 2: Storage first - Create `data/runs/`, `data/memory/`, `data/sources/`. - Store every user input as raw source. - Store every SB/URR packet as JSONL. - Store uploaded file metadata and extracted text. ## Phase 3: Minimal SB + URR loop - Implement 8 SB stage groups first, not all 70 as hard code. - Each group expands into node packets. - Run URR micro-brain after every SB group or node. - Write memory after every packet. ## Phase 4: Source tools - arXiv search - NASA API placeholder - Wikipedia search - OpenAlex / Semantic Scholar / Crossref optional - Generic web search only if API key/tool exists ## Phase 5: Model router - OpenRouter call wrapper. - Model dropdown. - Fast model vs deep model. - Local HF model hook later. ## Phase 6: RH testcase - Upload RH files. - Run `What is RH theory and why linked with physics?` - Confirm app preserves mirror theory but does not falsely call it proof. ## Phase 7: Deep features - Interference meter. - Click/Merge Engine. - Memory pyramid browser. - Human Halt Review Cards. - Export run as ZIP.