Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8545827612
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
dandgabr
left a comment
There was a problem hiding this comment.
Review suggestion
- P2 — Preserve Service Worker ownership when client state is unknown. In
#versions, a missing or malformedcontrolledClientsproducescontrols === null, but theelsebranch removes the target from#controlled. After a prior event confirmed this page as a client, the unknown update is treated like revocation and subsequent worker events are filtered out. Change membership only whencontrolsis explicitlytrueorfalse; retain the last known state fornull.
|
Addressed the worker review findings in 629e43d:
Six regression cases fail against the previous implementation and pass with the fix. Validation: 410 browser/export boundary tests pass (9 existing platform/selection skips), 27 focused contract/worker/cleanup tests pass, full check and docs check pass, and the real Chrome CLI/MCP worker workflow passes, including rejection of the unsupported bundle option and its absence from the SDK catalog. The existing real browser-runtime verifier also passes. Main was merged to include the upstream setup-cleanup CI repair (98d8470); CI is running on this new head. Follow-up 6c8c0df: the Linux runtime lane exposed initial fixture navigation racing the first page evaluation. The verifier now waits for the expected page URL and load state before reading its readiness promise. The complete real runtime/worker lane passes locally with this change, and CI is rerunning. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6c8c0dfff0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
TL;DR: On real headless Chromium 154 on Linux, head 6c8c0df keeps each worker's source and owner. Base kept no source and no ownership record. Two pages with the same worker URL stay apart on head, and every source matched the fixture byte for byte. What I sawI ran the CLI by hand against the PR's own fixture. It has two same-origin pages (A and B) and one page on a second origin. Each page starts a dedicated worker, a module worker, a shared worker and a service worker.
More results
One surprise. The PR body says base returned
dandgabr asked that an unknown client list not count as a revoked one. Head does this ( Not run
Thanks, cyanseek, for the work on this. Thanks, dandgabr, for the review. Commands# per capture (Node 24; pages A, B, C and the explicit options varied)
node /tmp/pr2068/head/scripts/rea.mjs inspect-web-page http://127.0.0.1:PORT PAGE_ID \
--include-script-sources --observation-ms 500 --json [--worker-target-ids SHARED_ID]
node /tmp/pr2068/base/scripts/rea.mjs inspect-web-page http://127.0.0.1:PORT PAGE_ID \
--include-script-sources --observation-ms 500 --json
# verifier, one Node at a time
REA_BROWSER_EXECUTABLE=/usr/bin/chromium-browser node scripts/verify-browser-runtime.mjs
# tests, one Node at a time
node node_modules/vitest/vitest.mjs run src/domain/browserObservation.test.ts \
tests/boundary/browser/cdpWorkerCapture.test.tsChromium ran as Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
@greptileai review |
[High impact] The reviewed changes appear safe to merge. SummaryAdds scoped worker source and runtime capture, retained ownership facts, export coverage, and conservative comparisons.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Worker session detaches] --> B[Mark coverage unavailable]
A --> C[Keep collected scripts]
B --> D[Missing scripts stay unknown]
C --> E[Export saved sources]
C --> F[Match known source digests]
Reviews (57) · Last reviewed commit: "fix(browser): report coverage gaps after..." · Reviewed by Greptile |
|
Addressed the latest review in ec6c988, after merging current main:
Validation: six new behavior/scope regressions fail before the fixes and pass afterward; 113 focused tests and 434 browser/export boundary tests pass. Full static checks, docs checks and the real Windows Chrome 145 CLI/MCP/runtime/worker verifier also pass. The boundary run excludes the previously reproduced Windows signal-termination mismatch and platform-selected cases. Thanks to CassieFox23 for independently testing the source/ownership, Unicode digests, origin boundary and Service Worker cases on Linux Chromium 154. I clarified the PR's base-reproduction statement: the empty inventory was our Windows Chrome 145 result; your Linux base retained dedicated-worker inventory but lacked source and ownership evidence. Your reported platform checks remain separately attributed from my local verification. |
|
Addressed the two follow-up findings in 117a05f. Script capture selection now retains each worker's original completeness and limitations, and publication carries them into both the inline result and persisted manifest as optional The new export regression exercises an unavailable worker Debugger through the capture boundary and actual CLI export, then checks both returned Evidence and the durable manifest. Three new regression cases fail before the changes and pass afterward. The complete focused selection passes 82 tests (5 platform skips), static/docs checks pass, and the real Chrome CLI/MCP/runtime/export verifier passes with exact per-worker manifest coverage checks. I also corrected the shadowed-parameter assertion to the current explicit unknown-provenance contract. The previous CI shard failure reproduced unchanged on main; this assertion now passes locally alongside the worker/export checks. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 117a05f122
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed the four additional transport/coverage/comparison findings in 768ec97.
Validation: three coverage/diff regressions and three transport regressions fail before their fixes and pass afterward. The comparison case verifies complete CLI/stdio-MCP Evidence parity and a subsequent ping. The final Windows-applicable browser/export selection passes 445 tests, with 14 platform/selection exclusions; this explicitly excludes the existing POSIX self-SIGTERM assertion on Windows. The 42 worker/discovery transport cases, static/docs checks and real Chrome 145 runtime/worker verifier also pass, including opt-out ledger retention in the exported manifest. Real execution coverage is Windows; whole-process lineage remains unavailable in this verifier's report. The CI release-preflight test now validates the selected runnable job without requiring steps on unrelated reusable-workflow jobs. Its old schema failure was reproduced from the exact earlier CI merge's release.yml; local checkpoint validation passes 35 tests with four Bash-specific exclusions. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 768ec97381
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a2cc23391e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac45239680
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b52cf5c94
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f34fdc25c1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: efe9fae001
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 95c13fe74b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a68d5e8311
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@cyanseek thanks for the PR — there are 24 open review threads here:
Could you address or reply to these? Once they're resolved and CI is green we can take another look. |
|
@cyanseek also, this branch has merge conflicts with |
|
I merged current main in The updated PR description records the local results. Across 179 files, 3,053 tests passed with one conditional skip. Both real Chromium verifiers passed, including the 8 public runtime and 14 worker cases. The GitHub CI run is in progress. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cd7f04c73c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Summary
Fixes #883.
inspect_web_pageretains worker sources and runtime evidence with explicit ownership, selection and coverage. Matching URLs do not establish ownership: dedicated workers use observed page/frame attachment, Service Workers use observed controlled clients, and explicitly selected shared/unrelated workers retain unknown ownership.Change and scope
Contract and boundary impact
Additive
worker_target_ids/--worker-target-ids, optional worker observations/metadata, response-source facts and export coverage. Historical captures remain readable.Static bundle capture remains page-only and rejects worker selection. Explicit selection does not bypass origins or manufacture ownership.
REA owns its passive sessions and releases them on success/failure/cancellation. It does not evaluate, pause, start or terminate target workers. No new dependency, installer, version or generated-output commit.
Read existing files or captured data.
Launch or attach to a process.
Contact network services.
Treat confirmed auto-detachment as completed child cleanup so parallel browser-socket leases remain usable. Unconfirmed cleanup still evicts the connection.
Validate retained worker source-map declarations at the same selection/origin boundary as script URLs. Missing worker metadata remains unknown in capture comparisons while independently established differences stay visible.
Validate supplied Service Worker client lists before routing versions with or without a target ID, retaining malformed ownership as an explicit discovery gap.
Keep shared connections after a confirmed worker-attachment rejection; evict them when attachment or cleanup remains unconfirmed. Preserve discovery gaps for running targetless versions with unknown clients.
Keep worker events observable through the final document check while sealing new source reads. Eligible scripts skipped during this interval remain visible as inventory and selected-source coverage gaps.
Identify the exhausted worker event or retained-source byte budget in public errors, with the corresponding recovery parameters.
Share the source-collection allowance across active worker read batches, excluding idle observation time. Record per-script omissions on expiry. The existing page/Electron source-budget owner also handles the CDP response timer expiring first.
Include owned and explicitly selected worker ledgers in overall reconciliation coverage and graph omission knowledge. Preserve missing legacy observations as gaps and keep unselected, unrelated observations outside that scope.
An allowed out-of-process iframe that arrives after child-observer setup closes records unavailable worker discovery. This coverage gap carries into script reconciliation.
Validation performed
Updated the published branch through merge commit
15af49dd4. Across 179 selected files, 3,053 distinct tests passed and one conditional SAZ test skipped on this host. The first pass identified three expectations for the pre-feat(errors)!: add the TargetFailure model, its projection table and conformance registry #14247 error code. The complete worker-capture file passed all 241 cases after two assertions adopted the current publicpartialcode.The two review regressions failed on the previous head. Both response and redirect tests cover proven response-source differences with a partial inventory on either side. The late-iframe test verifies the discovery gap, closed setup queue and session cleanup.
Real Chrome 151.0.7922.34 passed the complete browser verifier, including a 9,467,940-byte native PNG through CLI and stdio MCP and complete export. The separate runtime verifier passed 8 public cases and 14 worker cases, including source digests, origin isolation, cancellation and export of four worker sources. Both verifiers ended with zero owned descendants.
The public CLI and MCP returned the expected
payload_limitreason, byte ceiling and recovery parameters for event and source exhaustion. Worker and page source-deadline controls each recorded all 30 withheld replies. Electron source success, timeout and cancellation passed. Both orders of the worker-session registration control passed.Build and full local
check:cipassed, including test discovery, 189 Python tests and typed lint on 8,617 files. After the assertion update, the final pre-push check passed full TypeScript, lint and architecture checks. The two edited validation files passed format checking. POSIX catalog generation changed only the compact input digest forinspect_web_page. All required engines accepted 38 patterns, and Rust and Python validated all 273 advertised schemas.Follow-up
cd7f04c73reconciles the guide’s worker coverage description and uses the transport and export owners for test guidance. Both changed-wording controls passed, and deliberately dropping transport guidance or altering the omitted-worker count failed the corresponding tests. On this head, all 249 tests in the two related files, the documentation build and eight conformance tests, pre-push checks, and the 8 public plus 14 worker Chromium scenarios passed.Worker observations remain attach-limited. Coverage gaps stay visible after control returns, and incomplete worker inventory cannot establish a mapped static module's absence.
Author readiness
Human owner: @cyanseek