ui-server: pass the acquired startup view in the unpinned-folder proof

Aperta Adatta ai principianti
#4,456 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

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

agent-ready area: ui-server priority: p2 type: fix

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 missing startupView.
  • packages/ui-server/tests/host-fallback-transition.test.ts — launch at packages/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 launchAgentWorker call in packages/ui-server/tests/ that fails for a missing startupView on 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di schlessera/brain-kit

Tutte le issue di schlessera/brain-kit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.