|
| 1 | +# NEXUS Visual Weaver v4.2 Handoff - Quota Exhaustion Coverage |
| 2 | + |
| 3 | +Date: 2026-06-15 |
| 4 | + |
| 5 | +This handoff captures the current live state after the practical UX recovery pass. Use it if the current Codex session or quota expires. |
| 6 | + |
| 7 | +## Current State |
| 8 | + |
| 9 | +- GitHub branch: `main` |
| 10 | +- Latest GitHub commit: `4b9ab3f fix: make creation path practical and visible` |
| 11 | +- Latest HF Space commit: `4c4521d9e88aedcbf2bd01d1394fe9fa683a01b5` |
| 12 | +- HF Space: `build-small-hackathon/NEXUS_Visual_Weaver` |
| 13 | +- Live URL: <https://build-small-hackathon-nexus-visual-weaver-a107340.hf.space/> |
| 14 | +- HF runtime verified after deploy: |
| 15 | + - `dev_mode=false` |
| 16 | + - runtime stage `RUNNING` |
| 17 | + - domain stage `READY` |
| 18 | + - runtime SHA equals Space SHA: `4c4521d9e88aedcbf2bd01d1394fe9fa683a01b5` |
| 19 | + |
| 20 | +## Important Discovery |
| 21 | + |
| 22 | +The live UI was stale because Hugging Face Dev Mode kept an older container running. The repository already had newer code, but the visible Space did not reflect it. |
| 23 | + |
| 24 | +Fixed with: |
| 25 | + |
| 26 | +```powershell |
| 27 | +$env:HTTP_PROXY=''; $env:HTTPS_PROXY=''; $env:ALL_PROXY=''; $env:NO_PROXY='*' |
| 28 | +hf spaces dev-mode build-small-hackathon/NEXUS_Visual_Weaver --stop |
| 29 | +hf spaces restart build-small-hackathon/NEXUS_Visual_Weaver --factory-reboot |
| 30 | +``` |
| 31 | + |
| 32 | +If future screenshots show old labels again, check `runtime.dev_mode` and `runtime.raw.sha` before editing more code. |
| 33 | + |
| 34 | +## Practical UX Fixes Shipped |
| 35 | + |
| 36 | +Commit `4b9ab3f` changes: |
| 37 | + |
| 38 | +- Moves `Artifact Preview Lane` above the workflow graph so real output is visible sooner. |
| 39 | +- Collapses provider lanes by default under `Optional provider lanes`. |
| 40 | +- Moves file upload into a collapsed `Optional ST3GG file/reference scan` section. |
| 41 | +- Makes `Run Active Weave` the primary action. |
| 42 | +- Keeps checkpoint/export/reset as immediate operator actions. |
| 43 | +- Changes generated/export-ready states in the footer from red failure styling to green success styling. |
| 44 | +- Enlarges the artifact preview frame so the generated image reads as the product outcome. |
| 45 | + |
| 46 | +Files changed: |
| 47 | + |
| 48 | +- `app.py` |
| 49 | +- `src/nexus_visual_weaver/render.py` |
| 50 | +- `src/nexus_visual_weaver/styles.py` |
| 51 | +- `.gitignore` now ignores `.hf-upload-cache/` |
| 52 | + |
| 53 | +## What "Missing Secret" Means |
| 54 | + |
| 55 | +`MISSING_SECRET` was not asking for more Hugging Face access. It referred to optional sponsor/provider lanes, mainly: |
| 56 | + |
| 57 | +- OpenBMB/MiniCPM: `MINICPM_BASE_URL` plus `MINICPM_API_KEY` or `OPENBMB_API_KEY` |
| 58 | +- NVIDIA/Nemotron: `NEMOTRON_BASE_URL` plus `NEMOTRON_API_KEY` or `NVIDIA_API_KEY` |
| 59 | +- Other optional gateways: `FAL_KEY`, Netlify, Cloudflare |
| 60 | + |
| 61 | +Those lanes are not the P0 demo. They should remain collapsed or framed as optional. Do not make the main flow depend on them. |
| 62 | + |
| 63 | +## Verification Already Run Locally |
| 64 | + |
| 65 | +Before commit: |
| 66 | + |
| 67 | +```powershell |
| 68 | +python -m compileall app.py src tests |
| 69 | +$env:NEXUS_DISABLE_REAL_HF='1' |
| 70 | +$env:PYTEST_DISABLE_PLUGIN_AUTOLOAD='1' |
| 71 | +python -m pytest -q tests -p no:cacheprovider --basetemp=C:\tmp\pytest-nvw-full |
| 72 | +git grep -n -I -E "hf_[A-Za-z0-9]{20,}|Bearer [A-Za-z0-9._-]+|sk-[A-Za-z0-9_-]{20,}|api[_-]?key\s*=" -- . |
| 73 | +``` |
| 74 | + |
| 75 | +Result: |
| 76 | + |
| 77 | +- Compile clean |
| 78 | +- `288 passed, 1 warning` |
| 79 | +- Secret scan clean |
| 80 | + |
| 81 | +After deploy: |
| 82 | + |
| 83 | +```powershell |
| 84 | +$env:HTTP_PROXY=''; $env:HTTPS_PROXY=''; $env:ALL_PROXY=''; $env:NO_PROXY='*' |
| 85 | +hf spaces info build-small-hackathon/NEXUS_Visual_Weaver --format json |
| 86 | +Invoke-WebRequest -UseBasicParsing https://build-small-hackathon-nexus-visual-weaver-a107340.hf.space/ |
| 87 | +Invoke-WebRequest -UseBasicParsing https://build-small-hackathon-nexus-visual-weaver-a107340.hf.space/gradio_api/info |
| 88 | +``` |
| 89 | + |
| 90 | +Result: |
| 91 | + |
| 92 | +- Space SHA and runtime SHA both `4c4521d9e88aedcbf2bd01d1394fe9fa683a01b5` |
| 93 | +- Root returned HTTP 200 |
| 94 | +- `/gradio_api/info` returned HTTP 200 |
| 95 | + |
| 96 | +## Deployment Commands Used |
| 97 | + |
| 98 | +The standard upload failed once because Hugging Face Xet tried to write into a locked local cache. The successful upload disabled Xet while keeping the existing auth token: |
| 99 | + |
| 100 | +```powershell |
| 101 | +$env:HTTP_PROXY=''; $env:HTTPS_PROXY=''; $env:ALL_PROXY=''; $env:NO_PROXY='*' |
| 102 | +$env:HF_HUB_DISABLE_XET='1' |
| 103 | +Remove-Item Env:\HF_HOME -ErrorAction SilentlyContinue |
| 104 | +hf upload build-small-hackathon/NEXUS_Visual_Weaver C:\tmp\nvw-v422-4b9ab3f . --repo-type=space --commit-message "fix: practical creation path layout" |
| 105 | +hf spaces restart build-small-hackathon/NEXUS_Visual_Weaver --factory-reboot |
| 106 | +``` |
| 107 | + |
| 108 | +## Next Visual QA Checklist |
| 109 | + |
| 110 | +Open the Space in a browser and verify: |
| 111 | + |
| 112 | +- Provider cards are collapsed by default. |
| 113 | +- Upload is inside `Optional ST3GG file/reference scan`, not dominating the main screen. |
| 114 | +- `Artifact Preview Lane` appears before the workflow graph. |
| 115 | +- Footer state after generation reads as success/green, not a red `Generated` block. |
| 116 | +- The main visible path is: controls -> `Run Active Weave` -> artifact preview -> checkpoint/export. |
| 117 | +- Optional provider lanes do not visually dominate with missing-secret labels. |
| 118 | + |
| 119 | +If any of these fail, first confirm the browser is not cached and HF runtime SHA is still `4c4521d9e88aedcbf2bd01d1394fe9fa683a01b5`. |
| 120 | + |
| 121 | +## Remaining Work |
| 122 | + |
| 123 | +P0 next: |
| 124 | + |
| 125 | +- Browser visual inspection of the live Space after rebuild. |
| 126 | +- One live run through `Run Active Weave`. |
| 127 | +- Confirm export packet after checkpoint/override. |
| 128 | + |
| 129 | +Do not spend more time on generated README images, Gamma deck polish, Modal, or video until the practical live UI is confirmed usable. |
| 130 | + |
| 131 | +## Demo Framing |
| 132 | + |
| 133 | +Main proof line: |
| 134 | + |
| 135 | +> NEXUS Visual Weaver generates a real FLUX.2 Klein artifact, keeps ST3GG review and human checkpoint visible, and writes audit evidence instead of silently exporting. |
| 136 | +
|
| 137 | +Avoid claiming: |
| 138 | + |
| 139 | +- Sponsor judge success unless secrets are configured and a real call returns evidence. |
| 140 | +- Video success unless a real `.mp4` is produced by the Space. |
| 141 | +- Dynamic LoRA success unless export evidence reports `loaded`. |
| 142 | + |
0 commit comments