rea/src/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
..
assets feat(browser): trace captured website source-map locations (#897) 2026-10-07 16:21:18 +08:00
execution feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
modules feat(browser): trace captured website source-map locations (#897) 2026-10-07 16:21:18 +08:00
network feat(browser): capture correlated network content and lifecycle evidence (#797) 2026-10-07 04:35:49 +08:00
BrowserProcessStartup.ts refactor(runtime): name all silent catch causes without changing diagnostics (#637) 2026-10-06 05:58:46 +08:00
BrowserScenario.test.ts feat(browser): capture correlated network content and lifecycle evidence (#797) 2026-10-07 04:35:49 +08:00
BrowserScenarioSecrets.ts feat(browser): capture correlated network content and lifecycle evidence (#797) 2026-10-07 04:35:49 +08:00
BrowserScenarioSessionPort.ts fix(browser): capture popup network and report early event gaps (#614) 2026-10-06 01:58:54 +08:00
CdpAuthorizedMainFrame.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpAuthorizedTarget.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpBrowserProvider.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpCaptureCompleteness.test.ts refactor(test): keep coverage at behavioral boundaries (#474) 2026-08-11 18:34:32 +08:00
CdpCaptureCompleteness.ts feat: add web and Electron reverse-engineering workflows 2026-07-14 20:24:12 +09:00
CdpCaptureContextRetention.test.ts refactor(tools): remove redundant limits and acknowledgements 2026-09-29 10:53:45 +08:00
CdpCaptureDocuments.baseUrl.test.ts fix(browser): preserve form destinations and satisfies mutation uncertainty (#825) 2026-10-07 11:22:03 +08:00
CdpCaptureDocuments.test.ts refactor(browser): return complete observation evidence 2026-09-29 13:56:49 +08:00
CdpCaptureDocuments.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCaptureEventBodyShapes.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCaptureEventHandlers.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCaptureEventHelpers.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCaptureEventState.ts fix(browser): ignore duplicate frame navigations and read block-form source map directives (#546) 2026-10-05 17:25:16 +08:00
CdpCaptureEventTypes.ts refactor(adapters): split oversized provider workflows 2026-07-18 05:49:14 +00:00
CdpCaptureEvents.ts fix(browser): ignore duplicate frame navigations and read block-form source map directives (#546) 2026-10-05 17:25:16 +08:00
CdpCaptureStorage.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCaptureStorageFingerprints.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCaptureValues.test.ts refactor(tools): return complete analysis results inline 2026-09-29 14:53:50 +08:00
CdpCaptureValues.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpCommandRejection.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpConnection.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpElectronInspection.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
CdpElectronProvider.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
CdpElectronScriptEvents.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpElectronScripts.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
CdpElectronWorkers.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
CdpEndpoint.ts refactor(runtime): name all silent catch causes without changing diagnostics (#637) 2026-10-06 05:58:46 +08:00
CdpObservationSession.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpOptionalCommand.ts refactor(domain): split error taxonomy into thematic modules (#636) 2026-10-06 05:57:38 +08:00
CdpPageCapture.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpPageCaptureScripts.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpPageCaptureWorkers.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpSafeMetadata.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpScreenshot.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
CdpTargetEvents.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpTargetSession.ts feat(browser): attribute native execution and listener sources (#917) 2026-10-07 21:45:07 +08:00
CdpWebMcpDiscovery.ts refactor(domain): extract source-map envelope walk and disambiguate stringValue (#828) 2026-10-07 11:23:37 +08:00
ElectronFileScope.ts refactor(runtime): name all silent catch causes without changing diagnostics (#637) 2026-10-06 05:58:46 +08:00
PlaywrightBrowserScenarioProvider.test.ts fix(browser): capture popup network and report early event gaps (#614) 2026-10-06 01:58:54 +08:00
PlaywrightBrowserScenarioProvider.ts fix(mcp): isolate optional observation adapter failures (#838) 2026-10-07 11:45:17 +08:00
PlaywrightElectronActiveActions.test.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
PlaywrightElectronActiveActions.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
PlaywrightElectronActiveProvider.ts refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
PlaywrightExecutionBoundary.test.ts refactor(domain): split error taxonomy into thematic modules (#636) 2026-10-06 05:57:38 +08:00
PlaywrightExecutionBoundary.ts refactor(domain): split error taxonomy into thematic modules (#636) 2026-10-06 05:57:38 +08:00
PlaywrightScenarioActions.test.ts fix(tools)!: simplify direct invocation and harden boundary contracts (#555) 2026-10-05 20:16:44 +08:00
PlaywrightScenarioActions.ts fix(tools)!: simplify direct invocation and harden boundary contracts (#555) 2026-10-05 20:16:44 +08:00
PlaywrightScenarioArtifacts.test.ts refactor!: simplify runtime tools and remove replay engines (#572) 2026-10-05 21:15:04 +08:00
PlaywrightScenarioArtifacts.ts refactor(runtime): name all silent catch causes without changing diagnostics (#637) 2026-10-06 05:58:46 +08:00
PlaywrightScenarioBrowser.test.ts fix!: repair boundary contracts across CLI and MCP (#597) 2026-10-06 00:50:38 +08:00
PlaywrightScenarioBrowser.ts refactor(domain): split error taxonomy into thematic modules (#636) 2026-10-06 05:57:38 +08:00
PlaywrightScenarioEvents.test.ts fix(browser): capture selected events in popup pages (#600) 2026-10-06 01:51:10 +08:00
PlaywrightScenarioEvents.ts feat(browser): capture correlated network content and lifecycle evidence (#797) 2026-10-07 04:35:49 +08:00
PlaywrightScenarioSession.ts feat(browser): capture correlated network content and lifecycle evidence (#797) 2026-10-07 04:35:49 +08:00
PngVisualDiff.test.ts fix(browser): preserve RGB PNG transparent samples (#595) 2026-10-06 01:51:32 +08:00
PngVisualDiff.ts fix(browser): preserve RGB PNG transparent samples (#595) 2026-10-06 01:51:32 +08:00
WebSourceMapFetcher.ts fix(browser): preserve evidence through deep AST analysis (#924) 2026-10-07 18:36:18 +08:00
providerIdentities.ts refactor: give Inspector its own capability directory (#869) 2026-10-07 13:53:25 +08:00