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

Ouverte
#57 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
react-native, typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

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.
Langage dominant
TypeScript
Étoiles
11
Forks
0
Merge moyen
10 min
PR mergées (30 j)
6

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DojoCodingLabs/hermit

Toutes les issues de DojoCodingLabs/hermit

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.