Repository navigation
Commit 69c2c06
authored
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.1 parent f4910cb commit 69c2c06
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | | - | |
910 | | - | |
911 | | - | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
912 | 919 | | |
913 | 920 | | |
914 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1191 | 1194 | | |
1192 | 1195 | | |
1193 | 1196 | | |
| |||
1269 | 1272 | | |
1270 | 1273 | | |
1271 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1272 | 1278 | | |
1273 | 1279 | | |
1274 | 1280 | | |
| |||
0 commit comments