Boost: spike a turn's round trip between a phone and a computer

Đang mở
#60 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, react-native, typescript
Lĩnh vực
mobile, networking

Hướng nghiên cứu

Start with #59's pairing spike, then read CONTRIBUTING.md's Android build steps, apps/mobile/worklets/wallet/build.mjs, apps/mobile/src/adapters/wallet-worklet.ts, and packages/model/src/engine.ts. Test the three network cases on an arm64 Android phone and a computer, recording the requested timing, throughput, size, stop, and background behavior. Write the results, addon and app size findings, contact hosts, and a QVAC plugin versus Hermit worklet recommendation in docs/research/boost-phone-roundtrip.md, and propose an ASM-12 status.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

device-lab help wanted privacy

Why

ASM-12, "Hyperswarm through QVAC connects two Android phones on the same and on different networks", is unverified, and its spike (SL-19) is open. Boost needs a phone and a computer, and a whole turn's request and answer between them. It also needs to know where the phone's transport can live: a custom plugin in QVAC's worklet (ADR-016, docs/research/vault-p2p.md), or Hermit's own worklet next to it, as the wallet already has (apps/mobile/worklets/wallet). This spike answers both with numbers.

What to do

An experiment on a branch. The code doesn't need to merge.

  1. On an arm64 Android phone with a dev build (CONTRIBUTING.md, Build the Android app), run the "phone" side of the pairing spike inside a worklet. Try Hermit's own worklet first, following apps/mobile/worklets/wallet/build.mjs and apps/mobile/src/adapters/wallet-worklet.ts. Then read QVAC 0.23's custom plugin docs, and say whether the same code fits as a plugin listed in apps/mobile/qvac.config.json and built by scripts/qvac-bundle.mjs.
  2. Check whether QVAC's bundle, tree-shaken to the one plugin in qvac.config.json, still links the native Holepunch addons (udx-native, sodium-native), and whether two worklets load two copies of an addon.
  3. On the computer, run the pairing spike's "computer" side, answering with llama-server or a fixed stub.
  4. From the phone, send an EngineRequest (packages/model/src/engine.ts) built from a made-up chat, stream the answer back, then stop one in the middle.
  5. Measure three cases: the same Wi-Fi; the phone on mobile data and the computer at home; the same Wi-Fi with no internet. Record the connect time, the time to the first token on the phone, tokens per second as the phone sees them, bytes per turn, what a stop costs, and what happens when the app leaves the screen.
  6. Write the finding in docs/research/boost-phone-roundtrip.md (new), with a proposed new status for ASM-12.

Done when

  • The finding is merged with numbers for the three cases, a recommendation between a QVAC plugin and Hermit's own worklet, and the size each one adds to the app.

How to check

  • A reviewer with a phone and a computer repeats one case from the finding's steps.
  • The guard passes on the doc: no device serials, local paths or run logs.

Depends on

  • #59

Keep in mind

  • Keep react-native-bare-kit at ~0.16.0 and @qvac/sdk pinned exactly (AGENTS.md). Never edit apps/mobile/android by hand.
  • Count every host the phone contacts, even in a spike, and list them in the finding.
  • Made-up chats only. Never a real message, contact or account.
Ngôn ngữ chính
TypeScript
Star
11
Fork
0
Merge trung bình
10 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DojoCodingLabs/hermit

Tất cả issue của DojoCodingLabs/hermit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.