Context
While tracing the runtime-JSON arm of D#1881 at Engine dev@419437799d, a full App→Data Remote Method Access probe found that generic Pipeline execution drops its backend parameters.
The observed wire receipt was:
{
"wireData": "search",
"transferArg": {"query": "needle", "limit": 7},
"receiverResult": {"method": "search", "params": {}}
}The sender has the correct object. The Data-side Pipeline#execute() receives its default {} instead.
This is unfinished behavior in the already-shipped Pipeline IPC contract, not part of the ungraduated Data-manifest architecture. The historical chain introduced generic remote Pipeline execution in #9453, integrated RPC/Pipeline behavior in #9455, generalized instance RMA in #9544, and moved Pipeline onto declarative instance proxies in #9546. All four are closed; no open ticket or PR currently owns the dropped-params path.
The Problem
src/data/Pipeline.mjs#execute(method, params) currently invokes:
me.remote.data.execute(method, params)
The generated instance proxy in src/core/Base.mjs#initRemote() intentionally has the signature (data, buffer): argument one becomes opts.data, while argument two is passed to promiseMessage() as the transferable/options argument. It is not a second business argument.
Consequently:
method becomes the only remote payload;
params is handed to postMessage as transfer/options;
worker.mixin.RemoteMethodAccess#onRemoteMethod() receives a String, so it invokes Data’s Pipeline as execute(method);
- Data’s
params defaults to {};
data.connection.Rpc#execute() forwards [{}] rather than the caller’s object.
A plain object in postMessage’s second slot is accepted as an options dictionary and its business fields are silently ignored. An array of ordinary objects, or {transfer:[ordinaryObject]}, throws DataCloneError. The current failure can therefore be silent or transport-visible depending on the params shape.
The live affected consumer is remotes/Api.mjs: a method carrying parser, normalizer, or pipeline builds a Data-worker Pipeline, then its generated stub calls pipeline.execute(method, args[0]). Direct Pipeline read, create, and update calls are not affected because they pass params as the first and only remote argument.
The Architectural Reality
- Instance RMA owns one structured-cloneable
data payload plus an optional transfer argument. That contract is used beyond Pipeline and must remain intact.
RemoteMethodAccess#onRemoteMethod() already supports multi-argument method calls when msg.data is an Array: it invokes method.call(target, ...msg.data).
- Pipeline owns the adaptation from its public
execute(method, params) signature to that RMA payload.
connection.Rpc owns backend method/params translation after the Data-side Pipeline receives them.
The smallest repair is therefore one array payload, [method, params], not an RMA signature change and not a new domain-specific Data-worker router.
Pre-Flight (structural fast-path): test/playwright/unit/data/PipelineRemoteExecution.spec.mjs matches sibling test/playwright/unit/data/PipelinePush.spec.mjs; both are focused Pipeline unit specs in the canonical source-mirrored directory. No novel directory choice.
The Fix
- Change the Data-execution branch of
Pipeline#execute() to call the existing instance proxy with a single varargs payload: me.remote.data.execute([method, params]).
- Add focused Pipeline remote-execution coverage which observes both sides of the contract:
- producer: exactly one payload argument
[method, params], no transfer/options argument;
- consumer: RMA spreads that payload and Data’s Pipeline receives the original params object;
- RPC integration:
connection.Rpc#execute() receives those params and forwards them as its one backend argument.
- Mutation-control the test by restoring the current two-argument call; it must fail on the receiver-observed params, not merely on source text.
Contract Ledger Matrix
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
Pipeline#execute(method, params) |
existing public method signature |
App- and Data-executed Pipelines receive byte-equivalent method + params |
existing retry/null behavior remains unchanged |
existing JSDoc remains accurate |
focused producer + receiver unit proof |
| instance RMA payload |
core.Base#initRemote; RemoteMethodAccess#onRemoteMethod |
Pipeline uses the existing Array-as-varargs data form |
optional transfer argument remains reserved for transferables |
no public change |
assert no second proxy argument + receiver spread |
| RPC connection execution |
data.connection.Rpc#execute |
module-bearing Remote API calls preserve args[0] through the Data Pipeline |
endpoint-only RPC unchanged |
no public change |
connection observation with non-empty params |
Decision Record impact
none — restores the existing Pipeline/RMA contract established by #9453 / #9544 / #9546; no architectural direction or public API changes.
Acceptance Criteria
Out of Scope
- App-local
data.mjs, manifest admission, per-app identity/readiness, RPC catalog isolation, and structured refusal envelopes from D#1881.
- Changing RMA into an arbitrary JavaScript-varargs proxy; its second argument remains the transfer/options channel.
- Changing Pipeline retry/null policy or repairing loader-error propagation.
- Refactoring endpoint-only RPC or Data-worker bundle reach.
Avoided Traps
- Change
(data, buffer) to (...args): breaks the explicit transferable channel and expands a Pipeline bug into every RMA consumer.
- Add
onPipelineExecute back to Data: recreates the domain-specific router retired by #9544 / #9546; instance RMA already supports Array varargs.
- Wait for D#1881: makes a current regression contingent on an ungraduated architecture; the narrow repair composes with any future app-key envelope.
- Source-only assertion: proves spelling, not wire behavior; the regression exists because two locally plausible signatures disagree at the transport boundary.
Related
Related: #9453, #9455, #9544, #9546, D#1881.
Live latest-open sweep: checked the latest 20 open Engine issues at 2026-08-31T03:50:13Z; no equivalent found. Exact GitHub issue/PR search found only closed predecessor #9453 and no PR. Recent 30-message all-read-state A2A claim sweep found no overlapping Pipeline/RMA params lane. Knowledge Base ranked archived #9453 first and surfaced no current owner; Memory Core returned no relevant prior decision.
Origin Session ID: a63227a3-7e65-4384-ba2c-89a2fb98ec7b
Retrieval Hint: "Pipeline remote data execute method params become postMessage transfer options receiver defaults empty object"
Retrieval Hint: Engine dev@419437799d, Pipeline.mjs:126, core/Base.mjs:680-707, RemoteMethodAccess.mjs:232-236
Context
While tracing the runtime-JSON arm of D#1881 at Engine
dev@419437799d, a full App→Data Remote Method Access probe found that generic Pipeline execution drops its backend parameters.The observed wire receipt was:
{ "wireData": "search", "transferArg": {"query": "needle", "limit": 7}, "receiverResult": {"method": "search", "params": {}} }The sender has the correct object. The Data-side
Pipeline#execute()receives its default{}instead.This is unfinished behavior in the already-shipped Pipeline IPC contract, not part of the ungraduated Data-manifest architecture. The historical chain introduced generic remote Pipeline execution in #9453, integrated RPC/Pipeline behavior in #9455, generalized instance RMA in #9544, and moved Pipeline onto declarative instance proxies in #9546. All four are closed; no open ticket or PR currently owns the dropped-params path.
The Problem
src/data/Pipeline.mjs#execute(method, params)currently invokes:me.remote.data.execute(method, params)The generated instance proxy in
src/core/Base.mjs#initRemote()intentionally has the signature(data, buffer): argument one becomesopts.data, while argument two is passed topromiseMessage()as the transferable/options argument. It is not a second business argument.Consequently:
methodbecomes the only remote payload;paramsis handed topostMessageas transfer/options;worker.mixin.RemoteMethodAccess#onRemoteMethod()receives a String, so it invokes Data’s Pipeline asexecute(method);paramsdefaults to{};data.connection.Rpc#execute()forwards[{}]rather than the caller’s object.A plain object in
postMessage’s second slot is accepted as an options dictionary and its business fields are silently ignored. An array of ordinary objects, or{transfer:[ordinaryObject]}, throwsDataCloneError. The current failure can therefore be silent or transport-visible depending on the params shape.The live affected consumer is
remotes/Api.mjs: a method carryingparser,normalizer, orpipelinebuilds a Data-worker Pipeline, then its generated stub callspipeline.execute(method, args[0]). Direct Pipelineread,create, andupdatecalls are not affected because they pass params as the first and only remote argument.The Architectural Reality
datapayload plus an optional transfer argument. That contract is used beyond Pipeline and must remain intact.RemoteMethodAccess#onRemoteMethod()already supports multi-argument method calls whenmsg.datais an Array: it invokesmethod.call(target, ...msg.data).execute(method, params)signature to that RMA payload.connection.Rpcowns backend method/params translation after the Data-side Pipeline receives them.The smallest repair is therefore one array payload,
[method, params], not an RMA signature change and not a new domain-specific Data-worker router.Pre-Flight (structural fast-path):
test/playwright/unit/data/PipelineRemoteExecution.spec.mjsmatches siblingtest/playwright/unit/data/PipelinePush.spec.mjs; both are focused Pipeline unit specs in the canonical source-mirrored directory. No novel directory choice.The Fix
Pipeline#execute()to call the existing instance proxy with a single varargs payload:me.remote.data.execute([method, params]).[method, params], no transfer/options argument;connection.Rpc#execute()receives those params and forwards them as its one backend argument.Contract Ledger Matrix
Pipeline#execute(method, params)core.Base#initRemote;RemoteMethodAccess#onRemoteMethoddata.connection.Rpc#executeargs[0]through the Data PipelineDecision Record impact
none— restores the existing Pipeline/RMA contract established by #9453 / #9544 / #9546; no architectural direction or public API changes.Acceptance Criteria
Pipeline#execute('search', {query:'needle', limit:7})withworkerExecution:'data'delivers the same method and params to the Data-side Pipeline.connection.Rpc#execute()observation receives{query:'needle', limit:7}and forwards it as the backend call’s one params object.read,create, andupdateremote behavior remains unchanged.(method, params)fails on receiver-observed params.Out of Scope
data.mjs, manifest admission, per-app identity/readiness, RPC catalog isolation, and structured refusal envelopes from D#1881.Avoided Traps
(data, buffer)to(...args): breaks the explicit transferable channel and expands a Pipeline bug into every RMA consumer.onPipelineExecuteback to Data: recreates the domain-specific router retired by #9544 / #9546; instance RMA already supports Array varargs.Related
Related: #9453, #9455, #9544, #9546, D#1881.
Live latest-open sweep: checked the latest 20 open Engine issues at
2026-08-31T03:50:13Z; no equivalent found. Exact GitHub issue/PR search found only closed predecessor #9453 and no PR. Recent 30-message all-read-state A2A claim sweep found no overlapping Pipeline/RMA params lane. Knowledge Base ranked archived #9453 first and surfaced no current owner; Memory Core returned no relevant prior decision.Origin Session ID: a63227a3-7e65-4384-ba2c-89a2fb98ec7b
Retrieval Hint: "Pipeline remote data execute method params become postMessage transfer options receiver defaults empty object" Retrieval Hint: Engine
dev@419437799d,Pipeline.mjs:126,core/Base.mjs:680-707,RemoteMethodAccess.mjs:232-236