Files
openclaw/src/agents
Vyctor H. Brzezowski 69c2c06c46 test(agents): assert real ACP task-row ownership contract (#124260)
* test(agents): assert real ACP task-row ownership contract

The ACP spawn registration test asserted absence of a `requiresTaskRow`
field that has never existed in production, so it protected nothing.
Replace it with an assertion on the real contract: ACP registration
must leave `taskRowOwnership` undefined so the registry falls back to
best-effort task-row creation, contrasted with native/in-process spawn
which forwards `taskRowOwnership: "required"` (and `gateway_best_effort`
for out-of-process dispatch) on the same registration payload.

* test(agents): require ACP registration before checking task-row ownership

Mirror the sibling subagent-spawn test's required-registration pattern
instead of optional-chaining into the mock call. The old assertion
compared undefined?.taskRowOwnership, so it would silently pass even
if registerSubagentRun was never invoked.
2026-08-15 18:42:37 -03:00
..