wallet: Make and record an init-messenger pattern decision
Mantenedores costumam responder em até 1 dia
@grypez já está trabalhando nisso.
Desde 26/5/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Problem
The extension and mobile clients both create two restricted messengers per controller: a controller messenger (runtime, narrow privileges) and an init messenger (boot-only, broader privileges for one-shot setup steps). The wallet currently uses a single messenger per controller. Whether to adopt the two-messenger pattern is unresolved and undocumented. Without a written decision, every new controller wired into the wallet inherits this ambiguity silently.
Proposed direction
Evaluate the trade-offs and write a short decision document (init-messenger-decision.md) in the wallet package recording the chosen approach and the concrete conditions under which it should be revisited. Link from the package README.
To inform the decision, gather empirical data on which messenger actions are invoked during init() vs. at runtime across the controllers already wired (see sub-issue for tooling). If the init-time and runtime allowlists are effectively the same, the two-messenger pattern adds boilerplate without narrowing any privileges — which favors deferring adoption.
Acceptance
- A decision is made and written down in
packages/wallet/init-messenger-decision.md. - The document covers: which pattern is chosen, why, and what conditions would trigger revisiting.
packages/wallet/README.mdlinks to the decision document.
Context
- Extension reference:
app/scripts/messenger-client-init/—getInitMessenger/getMessengerfactory pattern. - Mobile reference:
app/core/Engine/messengers/— same dual-factory convention.
Subissues
- #8791
- Linguagem predominante
- TypeScript
- Estrelas
- 422
- Forks
- 313
- Merge médio
- 1d 8h
- PRs com merge (30d)
- 414
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MetaMask/core
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
CI: "Validate changelog diffs" job fails on every fork-sourced pull requestTalvez já em andamento @Roxen-AS assumiu há 20 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
platform-api-docs: `scan` strategy misses ESM-only packages, which ship `.d.ts` rather than `.d.cts`Talvez já em andamento @gaohan1994 assumiu há 22 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
[utils] Replace the `uuid` dependency with `crypto.randomUUID()`Talvez já em andamento @avantikonde assumiu há 34 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
MetaMask/core#10210 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
[utils] `toWei` accepts fractional wei and returns wrong valuesTalvez já em andamento @Roxen-AS assumiu há 20 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
Todas as issues de MetaMask/core
Issues semelhantes
-
grep and find tools search inside VCS directories (.git, .svn, .hg, .jj)Talvez já em andamento @acmerfight assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
earendil-works/pi#12084 ·
Mantenedores costumam responder em até 1 dia
-
comp/desktop P3 type/feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NousResearch/hermes-agent#154285 ·
Mantenedores costumam responder em até 1 dia
-
agent-reported bug from-app needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nightly-labs/openbot#8154 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
jdx/mise-action#730 ·
Mantenedores costumam responder em até 1 dia
-
area:cards enhancement hand-tail ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
fil-donadoni/tolaria#9275 ·
Mantenedores costumam responder em até 1 dia