Repository navigation
Conversation
…overy The CDP WebMCP Annotation type carries an optional consequential boolean (booking a flight, transferring money), but normalization dropped it. Report it per registration alongside the existing hints: true or false as declared, null when the declaration omits it, and absent only in captures recorded before the field was surfaced. Also document the WebMCP prerequisites: the origin trial starts at Chrome 149, a site token and the WebMCPTesting flag are distinct switches, and discovery is attach-only on an existing CDP endpoint and target without navigation.
…tics - Origin-trial token enables the API only while the trial is active and version/platform/settings permit; token presence is not a guarantee. - Flag-vs-default difference labeled as one observed pilot result; third-party-token non-enrollment marked as inference. - WebMCP.enable domain availability recorded as a Chrome 154 observation. - Annotation semantics: true/false declared, null absent-in-declaration, missing key marks older captures. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Draft PRs: morluto#2262 (inspect_signature non-Mach-O gate, minimal cherry-pick onto d96550f with corrected comment) and morluto#2263 (WebMCP consequential fidelity + qualified prereq docs. - Real signed-pkg control: python-3.13.9-macos11.pkg (Developer ID Installer-signed + notarized per pkgutil oracle) now yields honest capability_unavailable instead of signed:false; Mach-O regression intact. - L3 content-egress prep design only: dedicated test user/VM options, proxy-delivered vs egressed distinction, no trust/proxy/pf/VPN changes. - environment.md/branch-audit.md updated with new worktrees, SHAs, PRs. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> EOF )
|
@greptileai review |
|
This PR is set for a Plus review. TREX isn't supported with Plus or Apex reviews yet, so Greptile reviews this PR at Base while TREX is on. |
|
Codex Review SummaryThis 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: 354ec7cee0
ℹ️ 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: 273286fee1
ℹ️ 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".
|
Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open. Handled in 273286f. The fake CDP producer now accepts a caller-selected consequential hint, and the browser discovery scenario runs true and false through CdpBrowserProvider normalization rather than checking only schema parsing. Source inspection and git diff --check completed. Tests, builds, typechecking, lint, and real-provider verification were skipped at the user's explicit request. Handled in 273286f. The comparison owner identifies matching registrations whose consequential annotation was not recorded. It compares their other observed fields together, preserves independently proven changes, and returns unknown when only that unavailable hint prevents equality. Missing legacy data is never hashed as a different declaration value. Source inspection and git diff --check completed. Tests, builds, typechecking, lint, and real-provider verification were skipped at the user's explicit request. Handled in 273286f. CDP admission validates hint presence and type. Explicit null/non-boolean consequential values and malformed annotation records produce invalid_protocol_value exclusions; the registration remains retained with incomplete coverage and its consequential fact omitted. Comparison treats that omitted fact as unknown, rather than turning malformed input into a declared absence. Source inspection and git diff --check completed. Tests, builds, typechecking, lint, and real-provider verification were skipped at the user's explicit request. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cf136ee3b2
ℹ️ 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".
|
Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open. Root cause: comparison behavior for unavailable annotation facts had schema admission coverage but no comparison coverage. Added comparison cases for a missing consequential hint on either side, true versus false, and independent description changes accompanying each missing hint. These use the existing captured browser/discovery boundary and assert unknown without a fabricated change, while preserving observed independent modifications. Validation: inspected producing boundaries and affected consumers; targeted source formatting and git diff --check completed. Tests, typechecks, lint, builds, provider runs and CI reruns were not executed, per the user's explicit instruction. No directly related cleanup is deferred. Root cause: the documentation and comparison reason still described every omitted consequential field as historical, although the admission owner also omits invalid current values. Documentation now distinguishes null (declaration omitted the hint) from an unrecorded/invalid absent key and directs consumers to completeness/exclusions. It accurately describes retained registrations with invalid_protocol_value exclusions; the comparison reason uses the same semantics. Validation: inspected producing boundaries and affected consumers; targeted source formatting and git diff --check completed. Tests, typechecks, lint, builds, provider runs and CI reruns were not executed, per the user's explicit instruction. No directly related cleanup is deferred. |
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The second consequential comparison table duplicated all five scenarios from the table near the top of the file. The main-sync commit removed that duplicate, leaving one owner for these cases and avoiding repeated browser setup. Source diff was checked with git diff --check; tests were not run during this continuation. |
| const malformedAnnotations = | ||
| Object.hasOwn(value, "annotations") && annotations === undefined; | ||
| if (malformedAnnotations) | ||
| completeness.exclude("webmcp_tools", "invalid_protocol_value"); | ||
| const annotation = (key: string): boolean | null => { | ||
| if (annotations === undefined || !Object.hasOwn(annotations, key)) | ||
| return null; | ||
| const hint = annotations[key]; | ||
| if (typeof hint === "boolean") return hint; | ||
| completeness.exclude("webmcp_tools", "invalid_protocol_value"); | ||
| return null; |
There was a problem hiding this comment.
Invalid annotations lack tests
The new invalid-annotation branches in normalizeTool have no browser-level tests. Current cases cover declared booleans and omitted hints, but not a non-boolean consequential value or a malformed annotations object.
Add cases that check the tool is retained, consequential is omitted, and discovery is marked incomplete. Without them, a regression could silently claim complete coverage.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/browser/CdpWebMcpDiscovery.ts
Line: 449-459
Comment:
**Invalid annotations lack tests**
The new invalid-annotation branches in `normalizeTool` have no browser-level tests. Current cases cover declared booleans and omitted hints, but not a non-boolean `consequential` value or a malformed `annotations` object.
Add cases that check the tool is retained, `consequential` is omitted, and discovery is marked incomplete. Without them, a regression could silently claim complete coverage.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Added in 092a86c: a browser-level it.each in tests/boundary/browser/cdpBrowserProvider.document_script.test.ts covering (1) a non-boolean consequential value and (2) a malformed annotations payload, using a new webMcpAnnotations fixture override in tests/fixtures/fakeCdpBrowserEvents.ts. Both cases assert the tool registration is retained, annotations.consequential is omitted, and coverage is marked incomplete (invalid_protocol_value exclusion + webmcp_tools in unavailable_sections). Verified at this SHA: 28/28 in cdpBrowserProvider.document_script.test.ts and 19/19 in webCaptureDiff.test.ts pass; npm run check:fast clean.
…morluto#2262 Per-thread verdicts, fix SHAs, validation scope, and thread states at current remote heads; open bound-invocation P1s recorded as confirmed or not-reproduced with counterexample evidence. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…, and morluto#2465 call-site P1 Records the call-site member-read fix a13b935, the main merge 02ef51a (writeSite origin + [null] mutation encoding), the author-readiness human attestation requirement, and the morluto#2263 test-only follow-up draft PR morluto#3837. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Thanks @aznikline for preserving the page-declared WebMCP |
Summary
WebMCP.Annotationtype carries an optionalconsequentialboolean;normalizeTooldropped it, so the declared hint never reached Evidence.consequentialinwebMcpToolSchema.annotationsasz.boolean().nullable().optional():true/falseare declared values,nullmeans the declaration did not provide the hint, and a missing key keeps older captures parseable incompare_web_captures(same pattern aseffective_url).docs/browser-observation.md: WebMCP discovery prerequisites (origin-trial conditions vsWebMCPTestingflag, attach-only/no-navigation semantics) and the annotation value semantics.debugginghint exists on Chromium main (JS-visible from Chrome ~156) and is not surfaced; nothing is claimed about it.Test plan
src/domain/webMcpDiscovery.test.ts— declared true/false/null, historical capture missing the key,createEvidenceBundle→ serialize → parse round-tripcdpBrowserProvider.document_script.test.ts,browserCli.test.ts— provider and CLI Evidence paths;vitest --maxWorkers=4passnpx tsc --noEmit,oxlint,verify:module-boundariescleanconsequential: false; value survivedinspect-evidence-bundlere-read andevidence-exportcanonical re-encode (Evidenceev_e451abd5…)Scope note
Passive discovery only — no
WebMCP.invokeTool, no page evaluation, no navigation is added.Generated with Devin