mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[PR #7469] [MERGED] fix(mcp): summarize copied browser observations in input declarations #7857
Closed
opened 2026-11-05 01:48:11 +00:00 by bsakaguchi
·
0 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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#7857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/morluto/rea/pull/7469
Author: @gensokyo-dev
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @gensokyo-dev
Base:
main← Head:fix/4973-claude-full-schema📝 Commits (1)
b16fc6bfix(mcp): summarize copied browser observations in input declarations📊 Changes
8 files changed (+158 additions, -66 deletions)
View changed files
📝
docs/mcp-contracts.md(+13 -2)➕
src/contracts/inputObservationPresentation.test.ts(+70 -0)📝
src/contracts/inputSchemaPresentation.ts(+32 -18)📝
src/contracts/toolSchemaMetadata.ts(+1 -1)📝
src/domain/browserScenarioDiffValues.ts(+8 -6)📝
src/domain/webCaptureDiffSchemas.ts(+6 -3)📝
tests/boundary/mcp/browserComparisonInput.test.ts(+19 -9)📝
tests/boundary/mcp/toolSchemaValidity.test.ts(+9 -27)📄 Description
Summary
Refs #4973 and its closed duplicate #4081. Full-profile
compare_web_capturesadvertised 168,631 bytes, exceeding the reported Claude Desktop 65,536-byte per-tool gate. It now advertises 9,463 bytes by declaring copied complete producer observations as object operands. Analyst-authored normalization rules stay explicit; canonical validation still rejects incomplete or malformed observations before comparison.Change and boundary
The capture-input owners mark complete normalized observations. The shared schema presentation owner handles only those marked schema positions; no depth-based or catalog-wide fitter is added. Property guidance is passed into its owning renderer so parent description fallback cannot overwrite the abbreviated-observation notice. CLI/MCP continue using the same complete canonical inputs and pure comparators; source values, Evidence, coverage, defaults and unknowns are unchanged. Only this input declaration changes among 229 tools; all other tool declarations and this tool's output are identical to base.
Scope decision: not applicable, ordinary presentation fix within existing boundaries. No new provider, target authority, configuration changes or cleanup policy. Generated catalogs remain ignored build artifacts; owning docs describe the advertisement/runtime distinction.
Executed validation
Base:
b8cdbdf0ef2c479919cfed2c217b5710c2c294db; head:b16fc6b5e278f964ef333d4ff12e0c6cdd6e332f.tools/listregression fails on base: 168,631 > 65,536. Final focused suites: 110 passed, covering full/compact catalog validity, SDK conversion, both comparison families, canonical malformed-input rejection before effects, complete inline Evidence/selectors, draft-07/2020-12 and literal metadata preservation. An initial 3-test failure exposed parent guidance overwriting the new notice; the owner was corrected and all 110 passed.npm run check:fastpassed serially: 51.328 s elapsed / 54.874 s CPU / 3802.38 MiB sampled family RSS.npm run docs:checkpassed. Final edits after these gates only clarify documentation/comments.inspect_web_pagecalls observe before/after text and an added article (DOM 11 → 13 nodes). The same unchanged capture pair (SHA-256561fb9b82d4f6a2cb20e7811f0937254ace1ccabf40d350b9cbdaba09c9515b6) was replayed on pristine base and fixed builds: four valid MCP comparisons, two CLI comparisons and one malformed-payload control per lane. Complete normalized results, Evidence IDs, parameters, analysis profiles and source links match across CLI/MCP and revisions. Self-comparison preserves overallunknownwith DOMunchanged; the modified page reportschanged. The real production MCP server rejects the partial observation and keeps its advertised catalog stable after materialization.Completed-task costs and limits
The replay task includes fresh MCP discovery/materialization, warm repeats, two fresh CLI processes and the negative control. Base → fixed: 34.220 → 28.892 s elapsed; 35.461 → 31.319 s CPU; 1389.50 → 1343.39 MiB sampled family RSS. First MCP operation includes materialization (24.427 → 21.413 s); remaining warm operations range 11–20 → 12–49 ms. This single ordered pair has uncontrolled filesystem cache/host load and supports no causal speedup claim. No new cache was introduced.
All 229 projected name/description/input declarations total 1,024,207 → 865,039 UTF-8 JSON bytes; comparison arguments and replies are unchanged. Model-token usage was not measured, and byte savings alone do not establish token savings. Fixture acquisition is separate (46.179 s / 38.048 s CPU / 2065.55 MiB family RSS). Checks are pinned to two CPUs; family RSS samples every 100 ms can double-count shared pages and miss short peaks. No resource guard fired.
Remaining scope and compatibility
No input API or configuration migration. Partial observation payloads may pass the intentionally abbreviated advertisement but still fail the unchanged canonical runtime schema. Native Claude Desktop on Windows/macOS was unavailable; its model behavior and the separate screenshot string-argument report remain unverified.
inspect_analysis_viewremains byte-identical and oversized at 85,954 bytes; this patch does not claim to resolve every full-profile client limit or close all of #4973. No new live browser scenario capture was recorded; both scenario comparison and full normalization constraints ran through the SDK regression.CI run 40476314311 completed on exact main
b8cdbdf0ef2c479919cfed2c217b5710c2c294db: 7 successful / 4 failed / 7 cancelled / 19 skipped jobs. Static checks, build, docs, real-browser verification and Linux x64 native-package baseline passed. Source has 17 failed / 20,788 passed / 15 skipped; all 17 failure names reproduce on pristine main (17 failed / 49 passed). Shard 3 has 10 failed / 1,872 passed / 15 skipped; all ten reproduce on pristine main (10 failed / 99 filtered/skipped), covering browser cleanup, ledger history, TOML configuration, model-parent identity and native plist defaults. Portable/required jobs aggregate these same failures. Seven fail-fast cancellations are unverified coverage, not passes. No failure unique to this patch was found. Greptile completed on this head with 5/5, no actionable findings. Codex review quota is exhausted; that review is unavailable, not passed. The requester authorizes ready status and administrative bypass of unrelated-main CI/readiness failures; that is not a declaration that human review occurred.Author readiness
Human owner: @gensokyo-dev
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.