mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[PR #7332] [MERGED] feat(environment): serve query numbers, counted values and made objects #7818
Closed
opened 2026-11-05 01:47:54 +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#7818
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/7332
Author: @earakely-scale
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @morluto
Base:
main← Head:feat/environment-call-values📝 Commits (10+)
0381a18feat(environment): serve the writes callers make without recorded form fields5499355docs(skill): show how to read signed-in pages before recordingf1675f8fix(environment): accept every empty spelling recorded creates sent5a3c676docs(skill): keep the vary-fields step neutral on UI or API writes2fe849ddocs(environment): record verification for blank members and sorted writes0ceff6fMerge remote-tracking branch 'origin/main' into feat/environment-write-quality053264bfix(environment): address review of blank members and sorted writes19f1f8ffeat(environment): serve the writes that later reads explain0c0c6efMerge main19b2972dinto feat/environment-write-qualityb490c8ffix(environment): answer sent empty members as sent, and keep a placed create's order📊 Changes
36 files changed (+1307 additions, -51 deletions)
View changed files
📝
.agents/skills/reverse-engineer-anything/SKILL.md(+1 -1)📝
.agents/skills/reverse-engineer-anything/references/environments.md(+4 -2)📝
docs/agent-environments.md(+5 -3)➕
docs/specs/agent-environments/write-call-values/plan.md(+13 -0)➕
docs/specs/agent-environments/write-call-values/spec.md(+46 -0)➕
docs/specs/agent-environments/write-call-values/tasks.md(+13 -0)➕
docs/specs/agent-environments/write-call-values/verification.md(+88 -0)📝
docs/web-network-captures.md(+19 -5)➕
src/application/environment/environmentQueryText.test.ts(+40 -0)📝
src/application/environment/environmentStateLaterReadsAnswer.test.ts(+7 -0)➕
src/application/environment/environmentStateMadeValuesAnswer.test.ts(+77 -0)📝
src/application/environment/environmentStateWriteAnswer.ts(+47 -14)📝
src/application/environment/environmentToolAnswer.ts(+9 -2)📝
src/application/environment/environmentTools.test.ts(+10 -3)📝
src/application/environment/environmentTools.ts(+19 -2)📝
src/domain/analysisView/EnvironmentStateExtraction.ts(+3 -0)📝
src/domain/analysisView/EnvironmentStateWriteSimulation.ts(+2 -0)📝
src/domain/analysisView/environmentStateCreateCalls.test.ts(+49 -0)📝
src/domain/analysisView/environmentStateGate.ts(+4 -1)📝
src/domain/analysisView/environmentStateLaterReads.test.ts(+8 -0)...and 16 more files
📄 Description
Builds on #7274 (and #7260): the branch holds their commits until they merge; this PR's own changes are its
featcommits.Summary
Agent trajectories from 418 eval runs on rebuilt environments, and the write plans of the recordings they ran on, showed
three gaps REA could close:
numbers and booleans (
maxSize: 50,withItems: true). The MCP server refused those calls before REA saw them: 63runs hit it in EspoCRM, Homebox and PhotoPrism, and 18 never got the tool to answer.
identifier, and makes asubscriptionobject with each task. A second create disagreed with the first on all three,so task creates were withheld.
POST /projects/{id}/tasks/bulk, wrapping the task intasks: [ … ]both ways. REA linked the call to no type, and a linked create served only the project it was recordedin.
This PR:
sequencestart where the first create stood (start), and adopts a later create'scomposed,templateorstarted
sequencerule when it also spells the first create's value.made-objectrule: an object made with the entity, its stamped members taking the write's clock, membersholding the entity's id taking it, and counts going one past the held objects' values.
values when it creates into its type's own parameterless collection and stores each path value in a field.
fields its own read shows can be neither read by id nor updated.
Results:
task create. Vikunja's task create in main's recording is explained too, but main's
unknown-clockwithholds it inboth builds (before that rule: 339 to 341).
28/58 and 23/58, and no recording passes fewer: Vikunja's bulk-create recording passes its create task with both
models.
Problem and expected behavior
entity should not contradict the creates that show them.
fields.
Change and scope
environmentTools.ts,environmentToolAnswer.ts): the query property'soneOfgainsnumberandboolean;withQueryTextspells them where a call enters serving, for replay and state alike.environmentStateWriteCreate.ts,environmentStateWriteCreateCalls.ts,environmentStateWriteValues.ts,environmentStateWriteAnswer.ts): the exemplar records integer fields above everyheld value; the merge adopts a later rule that spells the exemplar's value;
startedSequencefloors replay andserving.
environmentStateWriteStamps.ts,environmentStateWriteRules.ts,environmentStateView.ts,environmentStateWriteApply.ts):createdMadeObjectrequires a member the request stamped; counts merge with theexemplar's value as start; later calls are checked by
followsMadeObjects; serving keys each count's sequence.environmentStateWriteLinks.ts):respondedIdsreads a one-element array member;anyLinkedSourceapplies in replay and serving.docs/web-network-captures.md,docs/agent-environments.md,docs/specs/agent-environments/write-call-values/.Not included: path parameters given as numbers (required properties, kept free of combinators); a counter one
create alone shows; recordings whose request bodies Chromium did not expose.
Contract and boundary impact
numberandbooleanfor queryparameters.
environment-stateviews may carrysequence.startandmade-objectrules. The compact MCP catalogstays under its frame.
versions, whose schemas are strict.
Expected effects:
Evidence and regression coverage
Write plans (#7274 at
67afb9dfagainst this branch at34372105, 130 captures): 615 plans; served 332 and 333;no write from served to withheld; six plans that stay withheld explain more fields; views change only in #7260's two Vikunja recordings whose
UI bodies were lost, where a scratch task the bulk create made is no longer held as seeded.
The same recordings, built by #7274 and by this branch (gpt-oss, GLM):
unknown-clockwithholds the task create and tag create of main's Vikunja and Homebox recordings in bothbuilds. Before that rule, rebuilt on #7274 at
4ede1305, this batch made main's Vikunja create task pass with bothmodels and changed nothing else.
src/domain/analysisView/environmentStateMadeValues.test.ts,src/application/environment/environmentStateMadeValuesAnswer.test.ts,src/application/environment/environmentQueryText.test.tsand a case intests/boundary/mcp/environmentServeMcp.test.ts, with fixtures intests/fixtures/environmentStateMadeValues.ts.4ede1305.For evidence-bearing changes:
Validation performed
npm run -s check:fast,format:check,scan:todos,docs:check,verify:test-discovery,mcp-catalog:checkandjscpd: passed, merged with #7274 at45832406.npx knip:staticFileUrlPathandObjcClassImportBindingCoverageonly, which main8706068badded.npx vitest run --project domain --project services: 11,430 passed, 6 skipped.--project adapters: 7,437 passed,19 skipped, 3 failed (the Inspector cancellation test and two AppKit asset-catalog tests), as on #7274 at
e29e9c74.npm run -s test:focused --environment build, export and serve CLI, analysis-view CLI and MCP, environment serveMCP boundaries: 7 files, 80 passed.
outputSchemaProfile,toolSchemaValidity,mcpSchemaValidation,outputSchemaSemanticConstraintsandanalysisViewMcp: 5 files, 54 passed.4ede1305and pass here.Review round at
34372105, on macOS with Node v24.22.1:6f2553aefixes four Greptile threads (replied in each):made-objectrules count as clock writes, so main'sunknown-clockwithholds them without a clock anchor; a made object links to the id field the create used, includingone the caller chose; later creates are checked against made objects as recorded, before any rewrite; and a template
is adopted only when it spells the later create's value. Its four tests fail on
c94d0559.ed83de32and2e392016merge #7274's2887dbf0and88e16f10, which carry the fixes for the other two Greptilethreads: #7260's sort checks against entities a list last showed in place, and #7274's soft-delete flag.
33f954f3correctsverification.md: six plans that stay withheld explain more, not seven; the seventh, Vikunja'sbulk task create, is served.
34372105merges #7274's67afb9df, which answers served deletes with the deleted flag their recorded answershowed and carries #7260's in-turn sort retry (Greptile follow-ups, one posted here). Its census matches
33f954f3with no plan or view changing; static checks pass but
knip;domain+services11,445 passed; focused boundaries80 passed; the five MCP schema files: 54 passed.
knip, as on main;domain+services11,442 passed; focused boundaries 80 passed;outputSchemaProfile,toolSchemaValidity,mcpSchemaValidation,outputSchemaSemanticConstraintsandanalysisViewMcp: 5 files, 54 passed.c94d0559the only plan thatchanges is #7260's Metabase
put_card_by_id, which loses a name sort only its create guessed.Main merge at
6bb373a4(main5aa23c3d), on macOS with Node v24.22.1:Main's #7267 overlaps this branch in
environmentStateWriteCreate.ts,environmentStateWriteCreateCalls.tsand therecording steps.
2ee34513merges #7260's main merge up to its set-aside;121b7f9amerges main taking main's sidewhere they overlap, so it commits without a conflict (a conflicted merge's pre-commit autofix rewrites main's own
files);
938402f8merges #7274'sebeea8ce; and6bb373a4puts this branch's side back beside main's:made-object agreement next to the
&slug spellings, sequence starts in the earlier evidenceearlierOfnowbuilds, the combined value imports, and recording step 2 next to main's UI-first step 3. It takes skill 53 above
#7274's 52. The diff against main touches the same 59 files as before.
Static checks pass but
knip, which reportsstaticFileUrlPath,ObjcClassImportBindingCoverageandAndroidManifestComponentInventory, as main does.domain+services: 11,684 passed, 8 failed(
appleApplication.test.ts), which fail the same way on main. Focused boundaries 80 passed; the five MCP schemafiles 54 passed.
Census over the 130 captures: main 279, #7274 332 and this branch 333, as before the merge, and no write goes from
served to withheld. Against
34372105only three Grafana folder creates change, to the rules main gives them.2232a53dkeeps a later create's made object only when its clocks are in the rule's format and within the stampwindow of that create's own request (Greptile on #7539, which builds on this branch). Its test fails on
7d01a5d5.Over the 130 captures and the 10-27 round's 18 recordings, no plan changes; static checks pass but
knip(main'sthree findings);
domain+services11,688 passed and 8 failed (main'sappleApplication.test.ts); focusedboundaries 80 passed.
308aebf0(on2362564c) adds no made-object count a later create alone shows once more than the exemplar wasaccepted, since those creates held the member unchanged, as the top-level sequence check already refuses (Greptile on
#7539). Its direct merge test fails on
2362564c. Static checks pass (kniponcedistis built, which the workersubpath imports resolve into);
domain+services11,852 passed; focused boundaries 81 passed. Over the 148captures, 694 plans and 380 served, the same as
2362564cwith no plan changing.Compatibility, safety, and release
into any project its plan stores in a field.
Maintainer validation
At
ba8f1a236, the branch inherits1106a5263and rejects a newly learned sequence when earlier accepted creates contradict it. The new sequence regression fails on2232a53d9.check:fastand five focused source test files passed (149 tests). No new real-provider run was performed.At
05280937e, this branch inherits #7274’s initial soft-delete handling. The focused later-read and made-value source tests passed (33 tests).Merge update at
06cdfe71e: resolved conflicts with main7bc6c5bf6, retaining skill version 53 and the create request timing used by made-object rules.check:fast, 73 focused source tests, and 6 MCP boundary tests passed. No new real-provider run was performed.Review fix at
2362564cc: list admission now checks the same live entity membership serving uses. When a captured list includes an initially deleted entity, its state-backed view is withheld aslist-differsand the recorded response is replayed; item observations remain available. The new producer and serving tests fail on06cdfe71e.check:fast, 145 focused source tests, and 7 built MCP boundary tests passed. Lists requiring replay do not gain dynamic state-backed behavior; no new real-provider run was performed.Author readiness
Human owner: @earakely-scale
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.