Implement the Home-only Bun__ScriptExecutionContext__removeFromContextsMapByIdentifier boundary as a real, thread-safe execution-context registry lifecycle—not a link-only stub.
Scope
- Pin the exact Home teardown bridge and upstream ScriptExecutionContext registry contract.
- Register stable process-wide identifiers with a resolvable live context.
- Export lookup and identifier removal with null/unknown/idempotent behavior.
- Automatically unregister contexts before every C-API destruction path.
- Cover sibling isolation, explicit removal, stale IDs, natural teardown, and concurrent context lifetimes.
- Compile, link, and run exact Home-profile evidence in Debug and ReleaseSafe.
- Refresh ABI inventories, concise README counts, and roadmap evidence.
- Close only after the fixing
mainGitHub Actions run is green.
Source contract
Home 7ed99c02, especially lang/packages/runtime/src/native/napi_weak_home_dups.cpp and its pinned upstream ScriptExecutionContext.cpp. The required behavior removes the worker context before its event loop/VM is freed so late cross-thread posts cannot resolve a dangling identifier.