fix: HF bus /bus/v1/call uses Body(...) not Request (422 on Space FastAPI)
GitHub Actions
428efdf
The request: Request param wasn't recognized by the Space's FastAPI version
and was treated as a query field (422). Read the JSON body via Body(...) for
version-robust parsing. Also rewrite connect_to_hf.py as a self-contained
in-process demo that peers with the Space and routes a real llm.chat call.
types.py: add all Phase 3 type aliases per IMPLEMENTATION_REFERENCE_p3.md §4
- ShardID, ExpertID, ExpertKind, ClaimID, SourceID, EvidenceLevel
- RoundID, LoraBeaconID, LoraDeviceID, AlertID, AlertSeverity, AckStatus
- ProtocolVersion dataclass with __str__
constants.py: add all Phase 3 numeric constants per impl_ref_p3.md §5
- M26 distributed inference (8 constants)
- M27 MoE routing (7 constants)
- M28 fedlearn (9 constants)
- M29 LoRa beacons (6 constants)
- M30 evidence graph (3 constants)
- M31 civil defense (5 constants)
- X08 tensor transport (5 constants)
- X09 conformance suite (2 constants)
ARCHITECTURE.md: new top-level architecture reference
- Full module map (Phase 1+2+3 + cross-cutting)
- Composition root pattern (HearthNode)
- Capability bus data flow diagram
- Discovery + emergency mode flows
- MoE expert routing flow
- M26 distributed inference / BitTorrent-style model sharing flow
- File tree with annotations
- Config reference (…
fix: 0 test failures; FileService; real RagService; emergency probe; chat return
GitHub Actions
4aaae80
TESTS:
- conftest.py: nest_asyncio.apply() fixes Python 3.13 + pytest-asyncio 0.26
event-loop isolation — was causing 32 cross-test failures; now 102 passed 0 failed
- pyproject.toml: asyncio_mode=strict + asyncio_default_fixture_loop_scope=function
SERVICES (no mocks, no fakes in production):
- hearthnet/services/__init__.py: import real RagService not demo.RagService
- hearthnet/services/files/: new FileService providing file.put/file.get/file.list/
file.delete via bus (BLAKE3 CID, in-memory or disk store)
- node.py: register FileService in both install_demo_services and install_services
- marketplace: add market.delete capability (alias for expire)
UI BUGS FIXED:
- ui/tabs/chat.py: add missing return in except block (was returning None on error)
- ui/tabs/emergency.py: wire Run Connectivity Probe button with sync probe +
show results; was defined but never connected
- ui/tabs/settings.py: gen_invite gracefully handles missing nacl/community manifest
APP.PY (HF Space):
- Reg…
feat: mesh graph tab, routing trace, QR invite, remove all fakes, specialized-node tests
GitHub Actions
7573216
- hearthnet/ui/tabs/mesh.py: NEW — live SVG topology from bus.registry.all_remote()
- hearthnet/ui/tabs/ask.py: routing trace panel shows which node answered each request
- hearthnet/ui/tabs/settings.py: QR code join, specialized-node howto, full help text
- hearthnet/ui/tabs/chat.py: proper help text, delivery status explained
- hearthnet/ui/tabs/marketplace.py: remove Demo Post fake (show empty or error)
- hearthnet/ui/app.py: add Mesh tab (7 tabs total)
- hearthnet/bus/registry.py: fix remote params_compatible — corpus/model routing now
works correctly across peer nodes (was always True, now checks descriptor params)
- app.py: replace hardcoded NODES/marketplace items with reference topology + note
- tests/test_specialized_nodes.py: 15 new tests covering OCR-only, medical RAG,
thin client, combined node, 4-node routing matrix, failover, local-first routing
- requirements.txt: add qrcode[svg] for scannable invite QR codes
- docs/screenshots/: updated — mesh graph (Alice+Bob), cha…