Boost: decide how open-ended web tasks can run on Boost

Open
#57 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
react-native, typescript

Research direction

Read docs/research/web-on-phone.md and docs/build/open-questions.md (Q38), then compare the conflicting requirements named in the issue. A maintainer must decide the seven listed points; the pull request should record the decision as a dated PDR in docs/prd/hermit-prd.md and mark Q38 resolved. Check that the PDR traces a sample task end to end and that the guard passes.

Written by the indexing model from the issue text.

Description

cage privacy proposal

Why

US-WEB-10 and PDR-018 send open-ended web tasks to Boost, and PDR-026 keeps them there until each family passes an on-phone gate. But US-BOOST-03 says tainted turns never go to Boost, and a web task is tainted from its first page (FR-CAGE-04). As written, US-WEB-10 can never run. docs/research/web-on-phone.md calls this out ("A PRD conflict blocks Boost from doing this job"), and docs/build/open-questions.md logs it as Q38, still open. Where the browser runs is open too. This decision blocks #72.

What to do

  1. The taint conflict. Options, from the research and Q38:
    • Boost may read tainted pages as a step model under the phone's cage. It never holds vault or wallet secrets, every committing step is approved on the phone, and page text reaches the planner only as typed records. This is the research's pick.
    • The same, but only on the user's own computer, never on a future confidential cloud.
    • Keep the rule. Open-ended tasks wait until the phone can do them (US-WEB-12).
  2. Where the browser runs.
    • On the phone, in the in-app browser (BrowserPort in packages/core/src/ports.ts; apps/mobile/modules/hermit-browser). Boost sees only the pruned accessibility tree (FR-WEB-05, about 3,000 characters a step) and returns one action. Logins fill from the vault on the phone, and cookies stay in the phone's per-site profile.
    • On the computer. Steps are faster, and pixels become possible for canvas-heavy sites (web-on-phone.md). But a sign-in would need secrets or cookies on the computer, which US-BOOST-01 rules out, and every committing step still needs the phone's sheet and FR-WEB-09's re-check.
  3. First runs as recipes. Boost does an unseen flow once, and the phone saves it as a recipe it replays without the model (FR-WEB-10; docs/research/web-task-spike.md).
  4. Bounds. Steps (15 on the phone, FR-WEB-06), the domains the task names, task kinds beyond TASK_KINDS in packages/core/src/web-task.ts, and the stop after 3 failed actions in a row.
  5. Payments. On the phone today a pay click pauses the task, and the user pays with their own taps (packages/runtime/src/web-task.ts). Say whether that holds on Boost.
  6. What the user sees. HM-WEB-02 says the steps run on the computer, and keeps Take over and Stop.
  7. The rule. If tainted text may go to Boost, the RFC's wording must say so before any code lands.

Done when

  • A maintainer decides each point in this issue.
  • A pull request records it as a PDR in docs/prd/hermit-prd.md that resolves the conflict between US-BOOST-03 and US-WEB-10, with its date, and marks Q38 resolved in docs/build/open-questions.md.

How to check

  • The PDR walks one made-up task end to end, such as "find a table for two on Friday under 50 dollars on three sites", and says where each step runs and what the user approves.
  • The guard passes on that pull request.

Depends on

  • #61

Keep in mind

  • Approvals, the vault and the signed log stay on the phone (US-WEB-10's own criteria).
  • Page text is data, never an instruction. Payments and logins are refused in a tainted session, in every mode (AGENTS.md rule 5).
  • No cloud browser. ADR-018 rejected it.
Dominant language
TypeScript
Stars
11
Forks
0
Avg merge
10m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DojoCodingLabs/hermit

All issues in DojoCodingLabs/hermit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.