Repository navigation
Conversation
…, 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>
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. |
[Low impact] This test-only PR appears safe to merge. SummaryAdds browser tests for invalid WebMCP annotations without changing production code.
Reviews (2) · Last reviewed commit: "test(browser): preserve explicit null We..." · Reviewed by Greptile |
…2 closures Ledger updates for comments 4278964125/4278964129 (fixed by 1a866d4 and 025187d on split/intrinsic-boundaries) and 4279727743 (fixed by bcb92eb on test/webmcp-invalid-annotations), plus current thread-resolution readback and the HUMAN_ATTESTATION_REQUIRED blockers. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
TL;DR: The three new test cases pass, and they catch a real break. I removed the check they guard, and two of the three failed. The type check is clean. ResultsBase is main c7f6b8b. The change is applied on top of it.
The two failures are the bad-payload case and the null-payload case. The third case, a non-boolean hint, still passes. A separate source line handles it. I did not remove that line, so I have not shown that the third case catches a break. The mutation was a scratch edit. I put the file back and diffed it against main. Not run
Thanks, aznikline, for the tests. This change only adds tests, so there is no before and after for a fix. Commandsnpm ci && npm run build && npm run test:prepare
npm run typecheck
npm run test:focused -- tests/boundary/browser/cdpBrowserProvider.document_script.test.ts
patch -p1 -F0 < 3837.diffThe scratch edit deleted two lines in one source file. They mark a bad annotations value as incomplete. Test setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
I am helping review first-contributor PRs at the maintainer’s request. The PR body still has no named human owner and all three Author readiness declarations are unchecked; I did not find a separate readiness declaration from the author in the current comments/reviews. Please complete those when you have reviewed and own the final diff and evidence, as required by CONTRIBUTING.md. I will keep the technical review separate from that declaration and will not fill it on your behalf. |
|
Technical follow-up: I integrated unchanged head bcb92eb with main 6c06f40 and ran the exact document/script boundary suite on Linux, pinned Node 24.18.0: 29/29 pass. The explicit-null fixture uses own-property presence correctly, so null reaches the producer; the assertions retain registration while preserving invalid_protocol_value/unavailable coverage. No follow-up code defect found. This is loopback fake-CDP validation, not a real-browser qualification. The selected task took 3.69 s wall / 4.42 s reaped-family CPU / 0.60 GiB sampled peak family RSS (shared host, two cores, 3 GiB heap; model tokens and cold/warm unmeasured). The author ownership/readiness declaration remains incomplete, so I am leaving this PR open rather than attesting to it on the author’s behalf. |
|
@aznikline thanks for the PR — this branch has merge conflicts with |
Retains the tool registration while omitting the consequential hint and marking webmcp_tools coverage incomplete when the page emits a non-boolean consequential value or a malformed annotations object. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The added it.each pushed the discovery describe over the 150-line function limit. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The fixture's `??` fallback replaced a supplied null annotations payload with the default valid object, so the invalid-input case never reached the provider. Select the override by own-property presence and cover the null payload at the browser boundary. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
bcb92eb to
0757b29
Compare
|
Rebased onto main c214fc4 and resolved the conflicts — upstream removed several fixture options this branch relied on, so the resolution adds only the two the new cases need: Local validation (pinned Node 24.22.1): |
Summary
Follow-up test coverage from closed #2263: browser-level cases for invalid WebMCP annotation payloads were committed to
092a86cb4d2bb5b0e322391f1d6230673b3b63f3after that PR closed and were not absorbed by upstreamf6905719c3c80d829037e509d6e46129b131d893or current main.Problem and expected behavior
A page emitting a non-boolean
consequentialvalue, a malformedannotationspayload, orannotations: nullmust keep the tool registration, omit theconsequentialhint, and markwebmcp_toolscoverage incomplete (invalid_protocol_value,unavailable_sections). Existing main coverage exercises only booleanconsequentialvalues.Change and scope
Test-only: adds a fixture override
webMcpAnnotations(tests/fixtures) selected by own-property presence (Object.hasOwn) so an explicitnullreaches the provider instead of falling back to valid defaults, and anit.eachcovering all three invalid payloads. No production code changes; does not reimplement #2263's absorbed fixes.Validation performed
npm run test:focused -- tests/boundary/browser/cdpBrowserProvider.document_script.test.ts— 29/29 pass; thenullcase fails against the pre-fix fixturenpm run check:fast— green (typecheck + lint);oxfmt --checkcleanAuthor readiness
Human owner:
Generated with Devin