Boost: decide the wire protocol between phone and computer
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- backend-api-design, mobile
Rechercherichtung
Read the listed constraints and entry points: packages/model/src/port.ts, packages/model/src/engine.ts, packages/core/src/ports.ts, packages/core/src/errors.ts, and section 2.16 of docs/prd/hermit-prd.md. Compare the protocol options against the phone-side cage, privacy, streaming, failure, and trust requirements; the issue says #60 and #61 will provide sizes and latencies. Done means a maintainer resolves every listed decision and an ADR records message shapes, example calls, and any new CT-04 outcome.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Why
Once paired, the phone and the computer need a protocol for Boost turns. ADR-010 keeps the cage on the phone, AGENTS.md says tool calls come back unexecuted, and US-BOOST-02 says approvals and the signed log stay on the phone. The docs point at three levels and don't choose one. This decision blocks the wire protocol core, serving turns on the computer and the phone side of a Boost turn.
What to do
- The level.
- Completion. The phone builds every prompt with
createModelPort(packages/model/src/port.ts) and sends anEngineRequest. The computer runs it and streams back anEngineResult: text, tool calls (unexecuted), the stop reason and stats (packages/model/src/engine.ts). The eval lab already maps this seam tollama-server(packages/eval/src/llama-engine.ts), and docs/research/qvac.md suggests tunnelingqvac serve --openaithe same way. The loop, the router and the cage stay on the phone. - Model port. The phone sends
pick,fillandrespond(ModelPortinpackages/core/src/ports.ts), and the computer builds prompts with its own copy ofpackages/model. - Task. A2A 1.0 objects (Task, Message, Artifact), which the multi-bot design names for Boost (docs/superpowers/specs/2026-11-25-multi-bot-design.md, section 6.3). The computer would run a loop and come back to the phone for every decision.
- Completion. The phone builds every prompt with
- Framing.
protomux-rpcover the secret stream (docs/research/vault-p2p.md), or newline-delimited JSON with a line limit, like the wallet worklet's protocol (createLineSplitterandcreateWalletClientinpackages/payments/src/wallet-ipc.ts). - Versions and capabilities. The protocol version, and what the computer runs: the model file's SHA-256, the profile id, the context size, and whether it supports thinking, JSON schema constraints, native tools and a prompt cache. What the phone does on a mismatch.
- Streaming and stop. Tokens and thinking arrive as they are written (
onToken,onThinking). A stop on the phone (FR-LOOP-06, US-CHAT-06) cancels the computer's run at once. - Failures. A dropped link, a laptop gone to sleep, a timeout. CT-04 (
OUTCOMESinpackages/core/src/errors.ts) has no Boost outcome. Propose one, or reuseofflineormodel_error, with copy. - Limits. The largest message, tokens per request, requests at a time.
- What crosses the wire. Only what the completion needs. No device names, contact data, session ids or log entries.
- What the computer may keep. Prompt caches keyed by
cacheKeysave prompt reading, but they hold conversation content. Options: none; memory only, for one session; encrypted at rest. - Trust. Boost's output is model output: a request the cage decides, never the user's words. Decide whether it also taints the session. The multi-bot design treats another bot's words as untrusted, and a compromised computer can write anything.
- Order and replay. Request ids, sequence numbers, and refusing a replayed message.
- Where the code lives. A pure package,
packages/boost(new), behind a duplex byte-stream port, with no network APIs, likepackages/payments/src/wallet-ipc.ts.
Done when
- A maintainer decides every point in this issue.
- A pull request records it as an ADR in docs/prd/hermit-prd.md (section 2.16), with the message shapes written out, and adds any new CT-04 outcome.
How to check
- The ADR shows one made-up request and answer for each kind of call the protocol carries, including a streamed reply and a stop.
- The guard passes on that pull request.
Depends on
Nothing. When they land, the findings of #60 and #61 give sizes and latencies to check the limits against.
Keep in mind
- The phone runs every tool call through
decide()and the signed log (AGENTS.md rules 4 and 6). Keys, approvals and log entries never cross the wire. - The quarantined reader (FR-WEB-03) reads untrusted text, so its calls stay on the phone while US-BOOST-03 keeps tainted turns off Boost.
- No telemetry, and no hosted relay.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 11
- Forks
- 0
- Ø Merge
- 10 Min.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DojoCodingLabs/hermit
-
docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
DojoCodingLabs/hermit#73 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DojoCodingLabs/hermit#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
DojoCodingLabs/hermit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DojoCodingLabs/hermit#43 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-friendly docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
DojoCodingLabs/hermit#39 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DojoCodingLabs/hermit
Ähnliche Issues
-
bug zoo
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/runntime#151 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
sidebandstudio/clawtrate#728 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug tooling
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
endora-commerce/endora-commerce#1978 ·
Maintainer antworten meist innerhalb von 1 Tag