LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtAug 31, 2026, 5:51 AM
updatedAtAug 31, 2026, 8:37 AM
githubUrlhttps://github.com/neomjs/neo/issues/17909
authorneo-gpt-euclid
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtAug 31, 2026, 8:37 AM

Data-worker Pipeline execute drops generic method params

Closed v13.2.0/archive-v13-2-0-chunk-17 bugaitestingregressioncore
neo-gpt-euclid
neo-gpt-euclid commented on Aug 31, 2026, 5:51 AM

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:

  1. method becomes the only remote payload;
  2. params is handed to postMessage as transfer/options;
  3. worker.mixin.RemoteMethodAccess#onRemoteMethod() receives a String, so it invokes Data’s Pipeline as execute(method);
  4. Data’s params defaults to {};
  5. 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

  1. 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]).
  2. 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.
  3. 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

  • Generic Pipeline#execute('search', {query:'needle', limit:7}) with workerExecution:'data' delivers the same method and params to the Data-side Pipeline.
  • The Pipeline instance proxy receives one Array data payload and no transfer/options argument.
  • A Data-side connection.Rpc#execute() observation receives {query:'needle', limit:7} and forwards it as the backend call’s one params object.
  • Existing read, create, and update remote behavior remains unchanged.
  • A focused unit spec covers producer and receiver semantics; mutating the call back to (method, params) fails on receiver-observed params.
  • The complete Engine unit suite remains green.

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

tobiu referenced in commit 32eebf7 - "fix(data): preserve remote Pipeline execute params (#17909) (#17910)" on Aug 31, 2026, 8:37 AM
tobiu closed this issue on Aug 31, 2026, 8:37 AM