Native profiler sharing at 5cd57e8ea with verified evidence: CLI and inspector owners consume actual JSC samples through detached native records, preserving CLI JSON/Markdown history and independent repeated session windows. Shortest active owner interval is selected; session stop/disconnect preserves CLI profiling and active-session process exit exports successfully. Debug 56/56, all 28 native groups, 14 ABI controls/453 assertions and 32 report-validator controls pass. Twenty unchanged originals retain 53 passed cases, one failed unsupported Runtime.evaluate expectation and 17 process checks; no skips/TODO/filter/retries and no #886 pass credit. Evidence preserves the first inlined-workload assertion failure and 64 replayed report outcomes including 12 negatives; earlier eight resource stops remain in investigation evidence. Full Bun parity, complete realms, worker-to-main inspector attachment, coverage, precise cadence measurement, all ownership schedules, Release/ASAN/all-platform remain open under #428/#66.
Native local Session connect/post/disconnect now dispatches actual JSC commands, routes independent session IDs, emits registered owner-context notifications, supports nested posts/callback disconnect, and retires at process/worker/test-global shutdown. Native Profiler agents derive real sampled profiles and independent session boundaries, with actual definition locations/source IDs and integer timing. Bun synchronous results and actual-main connectToMainThread convenience are preserved; worker-to-main attachment still rejects rather than attaching locally.
Source 035d2a491, verified evidence. Home owns the pinned inspector controller implementation with unchanged header layouts. It releases non-owning checked references before agent destruction and destroys shared frontend state only after the last frontend disconnects. The initial worker teardown abort and 240-second memory deadline are retained; focused and broader exact-source shutdown tests pass, without claiming the timeout's cause resolved.
56/56 Debug steps, all twenty-eight native groups, ordinary protocol/sampling controls, fourteen ABI controls (453 assertions) and 32 validator controls pass. Twenty unchanged originals retain 53 passed cases, one failed “Runtime is unsupported” expectation, plus seventeen process checks. #886 tracks that stale contract; no pass credit or assertion rewriting is used. All 1054 artifacts, fifteen source hashes and 148 report outcomes replay, retaining 25 negatives. Explicit Pickier keeps ten baseline warnings/zero errors and zero new findings; formatting/docs pass.
Still incomplete: all VM-context enumeration/lifecycle, worker-to-main attachment and NodeWorker events, debugger pause/resume, enabled open/close/URL/wait lifecycle, full CDP/WebKit schema compatibility, coverage, tamper-resistant primordials, every shutdown schedule, Release/ASAN/all-platform and full suite. The original acceptance criteria remain below; this issue stays open.
Acceptance criteria:
- import or add current concrete enabled-inspector upstream coverage
- implement inspector.Session connect, post, disconnect, and notification behavior
- implement internal inspector command dispatch
- model CLI enable, URL, wait, and shutdown lifecycle
- support worker inspector attachment and NodeWorker events
- add maintained focused tests and remove any successor expectations only when green
Parent tracker: #66