[PR #945] [MERGED] perf(inspector): bound runtime script location authorization #2521

Closed
opened 2026-10-17 21:07:07 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/945
Author: @morluto
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @morluto

Base: main ← Head: codex/browser-inspector-audit


📝 Commits (4)

  • 63017c9 perf(inspector): authorize script locations concurrently
  • 9cc6a4a fix(inspector): bound concurrent location authorization
  • a583680 fix(inspector): stop queued authorization on failure
  • bb8c368 test(inspector): avoid freezing authorization scheduling

📊 Changes

2 files changed (+327 additions, -6 deletions)

View changed files

➕ src/inspector/V8InspectorCaptureProjection.test.ts (+272 -0)
📝 src/inspector/V8InspectorCaptureProjection.ts (+55 -6)

📄 Description

Summary

Inspector capture now groups script drafts by raw URL and authorizes distinct locations with eight internal workers. It reuses each decision for duplicate URLs and preserves every draft, exclusion, and the existing sorted result. If an authorization fails, workers stop claiming queued locations, finish in-flight work, then propagate the failure.

Validation

  • Focused Inspector tests: 5 passed, including a 200-location concurrency/coverage regression and failure cleanup.
  • npm run check:fast passed.
  • npm run format:check passed across 1,760 files.
  • Real npm run verify:inspector passed on macOS with Node 24 across eight filename cases; CLI and MCP each returned 82 scripts per case.
  • Real npm run verify:browser passed on Chrome 154, including CLI/MCP capture, network, module trace, and source-map fixture checks.
  • Production finalizer profile over the same 1,000 local file URLs, seven paired runs: sequential median 26.45 ms, bounded median 8.69 ms; full JSON outputs were identical.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/945 **Author:** [@morluto](https://github.com/morluto) **Created:** 10/7/2026 **Status:** ✅ Merged **Merged:** 10/7/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `codex/browser-inspector-audit` --- ### 📝 Commits (4) - [`63017c9`](https://github.com/morluto/rea/commit/63017c9689f55427b05a56b365d2b1a08a33ca9a) perf(inspector): authorize script locations concurrently - [`9cc6a4a`](https://github.com/morluto/rea/commit/9cc6a4ad1c9133b652c4a6b878ad3e2d6e432ea1) fix(inspector): bound concurrent location authorization - [`a583680`](https://github.com/morluto/rea/commit/a583680fa543e78f96a5cdc87b2bd42e3599c694) fix(inspector): stop queued authorization on failure - [`bb8c368`](https://github.com/morluto/rea/commit/bb8c36819fd9115764073f6c16003768dda049e5) test(inspector): avoid freezing authorization scheduling ### 📊 Changes **2 files changed** (+327 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `src/inspector/V8InspectorCaptureProjection.test.ts` (+272 -0) 📝 `src/inspector/V8InspectorCaptureProjection.ts` (+55 -6) </details> ### 📄 Description ## Summary Inspector capture now groups script drafts by raw URL and authorizes distinct locations with eight internal workers. It reuses each decision for duplicate URLs and preserves every draft, exclusion, and the existing sorted result. If an authorization fails, workers stop claiming queued locations, finish in-flight work, then propagate the failure. ## Validation - Focused Inspector tests: 5 passed, including a 200-location concurrency/coverage regression and failure cleanup. - `npm run check:fast` passed. - `npm run format:check` passed across 1,760 files. - Real `npm run verify:inspector` passed on macOS with Node 24 across eight filename cases; CLI and MCP each returned 82 scripts per case. - Real `npm run verify:browser` passed on Chrome 154, including CLI/MCP capture, network, module trace, and source-map fixture checks. - Production finalizer profile over the same 1,000 local file URLs, seven paired runs: sequential median 26.45 ms, bounded median 8.69 ms; full JSON outputs were identical. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-17 21:07:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#2521
No description provided.