rea/tests/boundary/browser
Ysopwnable b5afa5f91e
feat(browser): attribute native execution and listener sources (#917)
* feat(browser): attribute native execution and listener sources

Integrate finite native precise-coverage windows and direct DOM listener inspection through shared CLI/MCP workflows, exact session script identities, inline source evidence and owned instrumentation cleanup.

Refs #881, #774

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

* fix(browser): preserve runtime identity and settle fixture cleanup

Retain complete reported initiator objects, reject changing loader availability, propagate the selected operation through main-frame authorization and complete effect/help inventories. Close only the synthetic owned Chrome via its native endpoint, await process-group settlement and preserve primary verification errors during cleanup.

Refs #881

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

* fix(browser): settle invalid events and preserve document evidence

Accept same-document URL changes with proven stable loader identity, retain metadata without inventing ownership, terminate malformed event collection immediately, and sanitize known transport URLs without erasing sourceURL declarations.

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

* fix(browser): end detached target windows and sanitize coverage identities

Reuse the existing flat-session event matcher, retain prearming termination, and apply the source identity policy to coverage URLs. Add real MCP target-close verification and producer regressions for detachment orderings.

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

* fix(browser): retain final sample metadata and settle fatal protocol failures

Keep source inventory open through the resetting sample, propagate fatal wire failures without outstanding commands, and check listener collection failures after final document validation.

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

* fix(browser): require default execution worlds for website attribution

Preserve native context and world metadata without treating same-frame isolated or unknown contexts as website sources. Verify actual Chrome isolated function execution before excluding its coverage, and cover ambiguous world metadata with producer regressions.

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

* fix(browser): revalidate runtime source joins and selector failures

Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-10-07 21:45:07 +08:00
..
browserObservationService.test.ts build: verify resolved module boundaries (#862) 2026-10-07 13:02:28 +08:00
browserProcessStartup.test.ts test: eliminate fixture races and prune redundant scaffolding (#849) 2026-10-07 12:25:37 +08:00
cdpBrowserProvider.discovery_authorization.test.ts fix(tools)!: simplify direct invocation and harden boundary contracts (#555) 2026-10-05 20:16:44 +08:00
cdpBrowserProvider.document_script.test.ts fix(browser): distinguish WebMCP registration frame owners (#813) 2026-10-07 10:19:49 +08:00
cdpBrowserProvider.indexed_db.test.ts fix: capture IndexedDB object-store record fingerprints (#809) 2026-10-07 10:18:03 +08:00
cdpBrowserProvider.lifecycle_failures.test.ts test: eliminate fixture races and prune redundant scaffolding (#849) 2026-10-07 12:25:37 +08:00
cdpBrowserProvider.network.test.ts refactor(tools): remove redundant limits and acknowledgements 2026-09-29 10:53:45 +08:00
cdpBrowserProvider.sensitive_data.test.ts fix(browser): fingerprint cookies at the selected page URL (#763) 2026-10-07 10:11:57 +08:00
cdpBrowserProvider.support.ts test: overhaul deterministic suite architecture 2026-07-29 22:00:38 +00:00
cdpBrowserProvider.targetInventory.test.ts refactor(observation): return complete inventories 2026-09-29 13:02:30 +08:00
cdpBrowserProvider.timelineEvents.test.ts refactor(browser): return complete observation evidence 2026-09-29 13:56:49 +08:00
cdpCaptureDocuments.test.ts fix!: repair boundary contracts across CLI and MCP (#597) 2026-10-06 00:50:38 +08:00
cdpCaptureNavigation.test.ts fix(browser): ignore duplicate frame navigations and read block-form source map directives (#546) 2026-10-05 17:25:16 +08:00
cdpCleanupCancellation.test.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
cdpConnection.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpElectronProvider.test.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
cdpJsonShapeComparison.test.ts fix(comparison): break JSON shape collation ties 2026-10-06 01:01:16 -07:00
cdpObservationResourceTypes.test.ts fix(browser): keep subresource redirects out of page navigation scope (#524) 2026-10-05 14:58:14 +08:00
cdpProtocolFailure.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpSafeMetadata.test.ts fix: integrate 24 reviewed browser/native/semantics corrections (#815) 2026-10-07 10:33:10 +08:00
cdpScreenshotDocumentIdentity.test.ts fix(browser): distinguish duplicate screenshot frame events (#612) 2026-10-06 02:10:00 +08:00
cdpWebRuntime.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeFinalCollection.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeInitiator.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeReview.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeSelector.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeSourceIdentity.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeTermination.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
cdpWebRuntimeWorldOwnership.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
electronActiveHook.test.ts refactor(browser): remove arbitrary capture ceilings 2026-09-29 15:31:27 +08:00
runtimeFixtureCleanup.test.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
webCaptureDiff.test.ts fix(web): retain uncertainty for incomplete capture inventories (#513) 2026-10-05 14:58:24 +08:00
webSourceMapFetcher.test.ts fix(browser): preserve evidence through deep AST analysis (#924) 2026-10-07 18:36:18 +08:00
webSourceMapResponseCleanup.test.ts test: eliminate fixture races and prune redundant scaffolding (#849) 2026-10-07 12:25:37 +08:00