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

Abierto
#57 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
react-native, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
TypeScript
Estrellas
11
Forks
0
Merge medio
10 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DojoCodingLabs/hermit

Todos los issues de DojoCodingLabs/hermit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.