ui-server: pass the acquired startup view in the unpinned-folder proof
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, typescript
- Ambito
- testing
Direzione di ricerca
I due casi non riusciti in packages/ui-server/tests/host-unpinned-folder-plan.test.ts chiamano launchAgentWorker senza una vista di avvio, intorno alla riga 39. Leggi createWorkerStartupView in packages/ui-sdk/src/server/worker-startup-view.ts intorno alle righe 98-100 per capire perché il fallback sincrono viene rifiutato, poi passa admitted.startupView a quella chiamata di avvio. Esegui bun run test packages/ui-server/tests/host-unpinned-folder-plan.test.ts. È completato quando il rifiuto per vista di avvio mancante è scomparso e le asserzioni su policy e conservazione della root restano invariate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
At main 7e861bdb3ba0729e217f2980063e18f3dd0172df, both cases in packages/ui-server/tests/host-unpinned-folder-plan.test.ts fail under main's own bun run test preload, without the #4314 native guard. Each calls launchAgentWorker without a startup view (packages/ui-server/tests/host-unpinned-folder-plan.test.ts:39). Production deliberately refuses that synchronous fallback (createWorkerStartupView, packages/ui-sdk/src/server/worker-startup-view.ts:98-100).
Reproduction: bun run test packages/ui-server/tests/host-unpinned-folder-plan.test.ts on that main head: 0 pass, 2 fail. Both fail with “Immutable worker inputs require an asynchronously prepared native managed-storage checkpoint; full-copy startup fallback is unavailable. Prepare and pass startupView before spawning.” Workspace package resolution was verified to point into the independent main checkout.
Main-baseline verification (comment of 2026-11-22) found the same omission in two other fixture files at the same main head, each a byte-identical product-requirement failure:
packages/ui-server/tests/governance-policy.test.ts—a pre-existing unpinned peer cannot invalidate newly admitted provider folder mounts (%s)(packages/ui-server/tests/governance-policy.test.ts:348), launch at:383: 0 pass / 3 fail at the missingstartupView.packages/ui-server/tests/host-fallback-transition.test.ts— launch atpackages/ui-server/tests/host-fallback-transition.test.ts:34: 0 pass / 1 fail at the same missing view.
Re-checked at main a3395c4b2 in a clean checkout: host-unpinned-folder-plan.test.ts still 0 pass / 2 fail with the same message, and the three launch sites above still omit startupView.
Scope
Pass startupView: admitted.startupView into the existing worker launch at each site above. The owning turn already retains and closes this view; each change is one line. Preserve every assertion about folder-policy refusal, no host payload, physical pins and the retained root.
Out of scope
Do not relax production's startup-view requirement, change worker profiles/areas, or weaken any policy assertion.
Acceptance criteria
- All six cases (2 + 3 + 1) launch with explicitly owned fixture startup inputs and pass on a namespace-capable host.
- Their original policy and root-retention assertions remain byte-identical.
- Every other
launchAgentWorkercall inpackages/ui-server/tests/that fails for a missingstartupViewon main is fixed the same way or recorded with why it is intentional. - No production behavior changes.
Verification
Keep the failing main receipts above. With the one-line startupView: admitted.startupView addition, the cases get past the missing-view refusal; on a host without unprivileged user namespaces they then stop at unshare uid_map EPERM, so hosted execution must complete the policy proof. No assertion is changed.
Contract impact
None. Test fixture only. No milestone assigned, as requested for this pre-existing failure.
2026-11-23 triage at main a3395c4b2: folded the 2026-11-22 comment's two extra files into the scope, re-confirmed the failure at current main, added the bug-class criterion, set priority: p2.
- Lingua principale
- TypeScript
- Stelle
- 5
- Fork
- 0
- Merge medio
- 7h 22m
- PR unite (30g)
- 600
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di schlessera/brain-kit
-
area: ui-kit type: chore
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
schlessera/brain-kit#4598 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ready area: ci priority: p2 type: fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
schlessera/brain-kit#4506 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ready area: docs priority: p3 type: docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
schlessera/brain-kit#4470 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ready area: backends priority: p3 type: test
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
schlessera/brain-kit#4459 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ready area: backends priority: p3 type: test
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
schlessera/brain-kit#4424 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di schlessera/brain-kit
Issue simili
-
[Bug]: Manager UI logo fails to load — broken external URLForse già presa @kavindu-udara l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
excalidraw/excalidraw#12743 ·
I maintainer di solito rispondono entro 1 giorno
-
area: cli priority: P2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
appandflow/stim#6381 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue spec
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
lingdojo/kana-dojo#34664 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno